diff --git a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js index 646ab18a..84ae3057 100644 --- a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js +++ b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js @@ -1,34 +1,34 @@ -"use strict";(()=>{var sPt=Object.create;var e7=Object.defineProperty;var oPt=Object.getOwnPropertyDescriptor;var cPt=Object.getOwnPropertyNames;var uPt=Object.getPrototypeOf,lPt=Object.prototype.hasOwnProperty;var o1e=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var ce=(r,e)=>()=>(r&&(e=r(r=0)),e);var x=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cr=(r,e)=>{for(var t in e)e7(r,t,{get:e[t],enumerable:!0})},XP=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of cPt(e))!lPt.call(r,a)&&a!==t&&e7(r,a,{get:()=>e[a],enumerable:!(n=oPt(e,a))||n.enumerable});return r},gr=(r,e,t)=>(XP(r,e,"default"),t&&XP(t,e,"default")),un=(r,e,t)=>(t=r!=null?sPt(uPt(r)):{},XP(e||!r||!r.__esModule?e7(t,"default",{value:r,enumerable:!0}):t,r)),nt=r=>XP(e7({},"__esModule",{value:!0}),r);var g,d=ce(()=>{g={env:"production"}});var l1e=x(t7=>{"use strict";d();p();t7.byteLength=hPt;t7.toByteArray=mPt;t7.fromByteArray=bPt;var df=[],kd=[],pPt=typeof Uint8Array<"u"?Uint8Array:Array,hK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Yg=0,c1e=hK.length;Yg0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function hPt(r){var e=u1e(r),t=e[0],n=e[1];return(t+n)*3/4-n}function fPt(r,e,t){return(e+t)*3/4-t}function mPt(r){var e,t=u1e(r),n=t[0],a=t[1],i=new pPt(fPt(r,n,a)),s=0,o=a>0?n-4:n,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=kd[r.charCodeAt(c)]<<2|kd[r.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=kd[r.charCodeAt(c)]<<10|kd[r.charCodeAt(c+1)]<<4|kd[r.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function yPt(r){return df[r>>18&63]+df[r>>12&63]+df[r>>6&63]+df[r&63]}function gPt(r,e,t){for(var n,a=[],i=e;io?o:s+i));return n===1?(e=r[t-1],a.push(df[e>>2]+df[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(df[e>>10]+df[e>>4&63]+df[e<<2&63]+"=")),a.join("")}});var d1e=x(fK=>{d();p();fK.read=function(r,e,t,n,a){var i,s,o=a*8-n-1,c=(1<>1,l=-7,h=t?a-1:0,f=t?-1:1,m=r[e+h];for(h+=f,i=m&(1<<-l)-1,m>>=-l,l+=o;l>0;i=i*256+r[e+h],h+=f,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[e+h],h+=f,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(m?-1:1)*s*Math.pow(2,i-n)};fK.write=function(r,e,t,n,a,i){var s,o,c,u=i*8-a-1,l=(1<>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=l?(o=0,s=l):s+h>=1?(o=(e*c-1)*Math.pow(2,a),s=s+h):(o=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;r[t+m]=o&255,m+=y,o/=256,a-=8);for(s=s<0;r[t+m]=s&255,m+=y,s/=256,u-=8);r[t+m-y]|=E*128}});var lc=x(s5=>{"use strict";d();p();var mK=l1e(),i5=d1e(),p1e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s5.Buffer=xe;s5.SlowBuffer=EPt;s5.INSPECT_MAX_BYTES=50;var r7=2147483647;s5.kMaxLength=r7;xe.TYPED_ARRAY_SUPPORT=vPt();!xe.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function vPt(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(xe.prototype,"parent",{enumerable:!0,get:function(){if(!!xe.isBuffer(this))return this.buffer}});Object.defineProperty(xe.prototype,"offset",{enumerable:!0,get:function(){if(!!xe.isBuffer(this))return this.byteOffset}});function zm(r){if(r>r7)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,xe.prototype),e}function xe(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vK(r)}return m1e(r,e,t)}xe.poolSize=8192;function m1e(r,e,t){if(typeof r=="string")return _Pt(r,e);if(ArrayBuffer.isView(r))return xPt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(pf(r,ArrayBuffer)||r&&pf(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pf(r,SharedArrayBuffer)||r&&pf(r.buffer,SharedArrayBuffer)))return gK(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return xe.from(n,e,t);var a=TPt(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return xe.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}xe.from=function(r,e,t){return m1e(r,e,t)};Object.setPrototypeOf(xe.prototype,Uint8Array.prototype);Object.setPrototypeOf(xe,Uint8Array);function y1e(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function wPt(r,e,t){return y1e(r),r<=0?zm(r):e!==void 0?typeof t=="string"?zm(r).fill(e,t):zm(r).fill(e):zm(r)}xe.alloc=function(r,e,t){return wPt(r,e,t)};function vK(r){return y1e(r),zm(r<0?0:wK(r)|0)}xe.allocUnsafe=function(r){return vK(r)};xe.allocUnsafeSlow=function(r){return vK(r)};function _Pt(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!xe.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=g1e(r,e)|0,n=zm(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function yK(r){for(var e=r.length<0?0:wK(r.length)|0,t=zm(e),n=0;n=r7)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r7.toString(16)+" bytes");return r|0}function EPt(r){return+r!=r&&(r=0),xe.alloc(+r)}xe.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==xe.prototype};xe.compare=function(e,t){if(pf(e,Uint8Array)&&(e=xe.from(e,e.offset,e.byteLength)),pf(t,Uint8Array)&&(t=xe.from(t,t.offset,t.byteLength)),!xe.isBuffer(e)||!xe.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?xe.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(xe.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function g1e(r,e){if(xe.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||pf(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return bK(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return T1e(r).length;default:if(a)return n?-1:bK(r).length;e=(""+e).toLowerCase(),a=!0}}xe.byteLength=g1e;function CPt(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return DPt(this,e,t);case"utf8":case"utf-8":return v1e(this,e,t);case"ascii":return NPt(this,e,t);case"latin1":case"binary":return BPt(this,e,t);case"base64":return RPt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return OPt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}xe.prototype._isBuffer=!0;function Jg(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}xe.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};p1e&&(xe.prototype[p1e]=xe.prototype.inspect);xe.prototype.compare=function(e,t,n,a,i){if(pf(e,Uint8Array)&&(e=xe.from(e,e.offset,e.byteLength)),!xe.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-t,c=Math.min(s,o),u=this.slice(a,i),l=e.slice(t,n),h=0;h2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,_K(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=xe.from(e,n)),xe.isBuffer(e))return e.length===0?-1:h1e(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):h1e(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function h1e(r,e,t,n,a){var i=1,s=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function c(m,y){return i===1?m[y]:m.readUInt16BE(y*i)}var u;if(a){var l=-1;for(u=t;us&&(t=s-o),u=t;u>=0;u--){for(var h=!0,f=0;fa&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return IPt(this,e,t,n);case"utf8":case"utf-8":return kPt(this,e,t,n);case"ascii":case"latin1":case"binary":return APt(this,e,t,n);case"base64":return SPt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return PPt(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function RPt(r,e,t){return e===0&&t===r.length?mK.fromByteArray(r):mK.fromByteArray(r.slice(e,t))}function v1e(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+o<=t){var c,u,l,h;switch(o){case 1:i<128&&(s=i);break;case 2:c=r[a+1],(c&192)===128&&(h=(i&31)<<6|c&63,h>127&&(s=h));break;case 3:c=r[a+1],u=r[a+2],(c&192)===128&&(u&192)===128&&(h=(i&15)<<12|(c&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:c=r[a+1],u=r[a+2],l=r[a+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(h=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=o}return MPt(n)}var f1e=4096;function MPt(r){var e=r.length;if(e<=f1e)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}xe.prototype.readUintLE=xe.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Po(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||Po(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};xe.prototype.readUint8=xe.prototype.readUInt8=function(e,t){return e=e>>>0,t||Po(e,1,this.length),this[e]};xe.prototype.readUint16LE=xe.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Po(e,2,this.length),this[e]|this[e+1]<<8};xe.prototype.readUint16BE=xe.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Po(e,2,this.length),this[e]<<8|this[e+1]};xe.prototype.readUint32LE=xe.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Po(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};xe.prototype.readUint32BE=xe.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Po(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};xe.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Po(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};xe.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Po(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};xe.prototype.readInt8=function(e,t){return e=e>>>0,t||Po(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};xe.prototype.readInt16LE=function(e,t){e=e>>>0,t||Po(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};xe.prototype.readInt16BE=function(e,t){e=e>>>0,t||Po(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};xe.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Po(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};xe.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Po(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};xe.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Po(e,4,this.length),i5.read(this,e,!0,23,4)};xe.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Po(e,4,this.length),i5.read(this,e,!1,23,4)};xe.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Po(e,8,this.length),i5.read(this,e,!0,52,8)};xe.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Po(e,8,this.length),i5.read(this,e,!1,52,8)};function ul(r,e,t,n,a,i){if(!xe.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}xe.prototype.writeUintLE=xe.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ul(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=e&255;++o>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ul(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=e&255;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n};xe.prototype.writeUint8=xe.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,1,255,0),this[t]=e&255,t+1};xe.prototype.writeUint16LE=xe.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};xe.prototype.writeUint16BE=xe.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};xe.prototype.writeUint32LE=xe.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};xe.prototype.writeUint32BE=xe.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};xe.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ul(this,e,t,n,i-1,-i)}var s=0,o=1,c=0;for(this[t]=e&255;++s>0)-c&255;return t+n};xe.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ul(this,e,t,n,i-1,-i)}var s=n-1,o=1,c=0;for(this[t+s]=e&255;--s>=0&&(o*=256);)e<0&&c===0&&this[t+s+1]!==0&&(c=1),this[t+s]=(e/o>>0)-c&255;return t+n};xe.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};xe.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};xe.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};xe.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};xe.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function w1e(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function _1e(r,e,t,n,a){return e=+e,t=t>>>0,a||w1e(r,e,t,4,34028234663852886e22,-34028234663852886e22),i5.write(r,e,t,n,23,4),t+4}xe.prototype.writeFloatLE=function(e,t,n){return _1e(this,e,t,!0,n)};xe.prototype.writeFloatBE=function(e,t,n){return _1e(this,e,t,!1,n)};function x1e(r,e,t,n,a){return e=+e,t=t>>>0,a||w1e(r,e,t,8,17976931348623157e292,-17976931348623157e292),i5.write(r,e,t,n,52,8),t+8}xe.prototype.writeDoubleLE=function(e,t,n){return x1e(this,e,t,!0,n)};xe.prototype.writeDoubleBE=function(e,t,n){return x1e(this,e,t,!1,n)};xe.prototype.copy=function(e,t,n,a){if(!xe.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function qPt(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function T1e(r){return mK.toByteArray(FPt(r))}function n7(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function pf(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function _K(r){return r!==r}var UPt=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var A1e=x((D5n,k1e)=>{d();p();var Ts=k1e.exports={},hf,ff;function xK(){throw new Error("setTimeout has not been defined")}function TK(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?hf=setTimeout:hf=xK}catch{hf=xK}try{typeof clearTimeout=="function"?ff=clearTimeout:ff=TK}catch{ff=TK}})();function E1e(r){if(hf===setTimeout)return setTimeout(r,0);if((hf===xK||!hf)&&setTimeout)return hf=setTimeout,setTimeout(r,0);try{return hf(r,0)}catch{try{return hf.call(null,r,0)}catch{return hf.call(this,r,0)}}}function HPt(r){if(ff===clearTimeout)return clearTimeout(r);if((ff===TK||!ff)&&clearTimeout)return ff=clearTimeout,clearTimeout(r);try{return ff(r)}catch{try{return ff.call(null,r)}catch{return ff.call(this,r)}}}var Km=[],o5=!1,Qg,a7=-1;function jPt(){!o5||!Qg||(o5=!1,Qg.length?Km=Qg.concat(Km):a7=-1,Km.length&&C1e())}function C1e(){if(!o5){var r=E1e(jPt);o5=!0;for(var e=Km.length;e;){for(Qg=Km,Km=[];++a71)for(var t=1;t{b=un(lc()),w=un(A1e()),zPt=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),global=zPt});var Ir=x((S1e,EK)=>{d();p();(function(r,e){"use strict";function t(A,v){if(!A)throw new Error(v||"Assertion failed")}function n(A,v){A.super_=v;var k=function(){};k.prototype=v.prototype,A.prototype=new k,A.prototype.constructor=A}function a(A,v,k){if(a.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((v==="le"||v==="be")&&(k=v,v=10),this._init(A||0,v||10,k||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=lc().Buffer}catch{}a.isBN=function(v){return v instanceof a?!0:v!==null&&typeof v=="object"&&v.constructor.wordSize===a.wordSize&&Array.isArray(v.words)},a.max=function(v,k){return v.cmp(k)>0?v:k},a.min=function(v,k){return v.cmp(k)<0?v:k},a.prototype._init=function(v,k,O){if(typeof v=="number")return this._initNumber(v,k,O);if(typeof v=="object")return this._initArray(v,k,O);k==="hex"&&(k=16),t(k===(k|0)&&k>=2&&k<=36),v=v.toString().replace(/\s+/g,"");var D=0;v[0]==="-"&&(D++,this.negative=1),D=0;D-=3)_=v[D]|v[D-1]<<8|v[D-2]<<16,this.words[B]|=_<>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);else if(O==="le")for(D=0,B=0;D>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);return this._strip()};function s(A,v){var k=A.charCodeAt(v);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;t(!1,"Invalid character in "+A)}function o(A,v,k){var O=s(A,k);return k-1>=v&&(O|=s(A,k-1)<<4),O}a.prototype._parseHex=function(v,k,O){this.length=Math.ceil((v.length-k)/6),this.words=new Array(this.length);for(var D=0;D=k;D-=2)N=o(v,k,D)<=18?(B-=18,_+=1,this.words[_]|=N>>>26):B+=8;else{var U=v.length-k;for(D=U%2===0?k+1:k;D=18?(B-=18,_+=1,this.words[_]|=N>>>26):B+=8}this._strip()};function c(A,v,k,O){for(var D=0,B=0,_=Math.min(A.length,k),N=v;N<_;N++){var U=A.charCodeAt(N)-48;D*=O,U>=49?B=U-49+10:U>=17?B=U-17+10:B=U,t(U>=0&&B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(v,k){v=v||10,k=k|0||1;var O;if(v===16||v==="hex"){O="";for(var D=0,B=0,_=0;_>>24-D&16777215,D+=2,D>=26&&(D-=26,_--),B!==0||_!==this.length-1?O=h[6-U.length]+U+O:O=U+O}for(B!==0&&(O=B.toString(16)+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(v===(v|0)&&v>=2&&v<=36){var C=f[v],z=m[v];O="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var j=ee.modrn(z).toString(v);ee=ee.idivn(z),ee.isZero()?O=j+O:O=h[C-j.length]+j+O}for(this.isZero()&&(O="0"+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(v,k){return this.toArrayLike(i,v,k)}),a.prototype.toArray=function(v,k){return this.toArrayLike(Array,v,k)};var y=function(v,k){return v.allocUnsafe?v.allocUnsafe(k):new v(k)};a.prototype.toArrayLike=function(v,k,O){this._strip();var D=this.byteLength(),B=O||Math.max(1,D);t(D<=B,"byte array longer than desired length"),t(B>0,"Requested array length <= 0");var _=y(v,B),N=k==="le"?"LE":"BE";return this["_toArrayLike"+N](_,D),_},a.prototype._toArrayLikeLE=function(v,k){for(var O=0,D=0,B=0,_=0;B>8&255),O>16&255),_===6?(O>24&255),D=0,_=0):(D=N>>>24,_+=2)}if(O=0&&(v[O--]=N>>8&255),O>=0&&(v[O--]=N>>16&255),_===6?(O>=0&&(v[O--]=N>>24&255),D=0,_=0):(D=N>>>24,_+=2)}if(O>=0)for(v[O--]=D;O>=0;)v[O--]=0},Math.clz32?a.prototype._countBits=function(v){return 32-Math.clz32(v)}:a.prototype._countBits=function(v){var k=v,O=0;return k>=4096&&(O+=13,k>>>=13),k>=64&&(O+=7,k>>>=7),k>=8&&(O+=4,k>>>=4),k>=2&&(O+=2,k>>>=2),O+k},a.prototype._zeroBits=function(v){if(v===0)return 26;var k=v,O=0;return(k&8191)===0&&(O+=13,k>>>=13),(k&127)===0&&(O+=7,k>>>=7),(k&15)===0&&(O+=4,k>>>=4),(k&3)===0&&(O+=2,k>>>=2),(k&1)===0&&O++,O},a.prototype.bitLength=function(){var v=this.words[this.length-1],k=this._countBits(v);return(this.length-1)*26+k};function E(A){for(var v=new Array(A.bitLength()),k=0;k>>D&1}return v}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,k=0;kv.length?this.clone().ior(v):v.clone().ior(this)},a.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},a.prototype.iuand=function(v){var k;this.length>v.length?k=v:k=this;for(var O=0;Ov.length?this.clone().iand(v):v.clone().iand(this)},a.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},a.prototype.iuxor=function(v){var k,O;this.length>v.length?(k=this,O=v):(k=v,O=this);for(var D=0;Dv.length?this.clone().ixor(v):v.clone().ixor(this)},a.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},a.prototype.inotn=function(v){t(typeof v=="number"&&v>=0);var k=Math.ceil(v/26)|0,O=v%26;this._expand(k),O>0&&k--;for(var D=0;D0&&(this.words[D]=~this.words[D]&67108863>>26-O),this._strip()},a.prototype.notn=function(v){return this.clone().inotn(v)},a.prototype.setn=function(v,k){t(typeof v=="number"&&v>=0);var O=v/26|0,D=v%26;return this._expand(O+1),k?this.words[O]=this.words[O]|1<v.length?(O=this,D=v):(O=v,D=this);for(var B=0,_=0;_>>26;for(;B!==0&&_>>26;if(this.length=O.length,B!==0)this.words[this.length]=B,this.length++;else if(O!==this)for(;_v.length?this.clone().iadd(v):v.clone().iadd(this)},a.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var k=this.iadd(v);return v.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var O=this.cmp(v);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;O>0?(D=this,B=v):(D=v,B=this);for(var _=0,N=0;N>26,this.words[N]=k&67108863;for(;_!==0&&N>26,this.words[N]=k&67108863;if(_===0&&N>>26,ee=U&67108863,j=Math.min(C,v.length-1),X=Math.max(0,C-A.length+1);X<=j;X++){var ie=C-X|0;D=A.words[ie]|0,B=v.words[X]|0,_=D*B+ee,z+=_/67108864|0,ee=_&67108863}k.words[C]=ee|0,U=z|0}return U!==0?k.words[C]=U|0:k.length--,k._strip()}var S=function(v,k,O){var D=v.words,B=k.words,_=O.words,N=0,U,C,z,ee=D[0]|0,j=ee&8191,X=ee>>>13,ie=D[1]|0,ue=ie&8191,he=ie>>>13,ke=D[2]|0,ge=ke&8191,me=ke>>>13,Ke=D[3]|0,ve=Ke&8191,Ae=Ke>>>13,lo=D[4]|0,It=lo&8191,bt=lo>>>13,li=D[5]|0,_t=li&8191,st=li>>>13,di=D[6]|0,Nt=di&8191,dt=di>>>13,po=D[7]|0,jt=po&8191,Bt=po>>>13,sc=D[8]|0,ot=sc&8191,pt=sc>>>13,Dc=D[9]|0,kt=Dc&8191,At=Dc>>>13,Oc=B[0]|0,Dt=Oc&8191,St=Oc>>>13,Lc=B[1]|0,Pt=Lc&8191,Ot=Lc>>>13,oc=B[2]|0,Lt=oc&8191,Ft=oc>>>13,Fc=B[3]|0,Rt=Fc&8191,qt=Fc>>>13,qc=B[4]|0,Mt=qc&8191,Wt=qc>>>13,cc=B[5]|0,Je=cc&8191,it=cc>>>13,uc=B[6]|0,Ut=uc&8191,Kt=uc>>>13,ol=B[7]|0,Gt=ol&8191,Vt=ol>>>13,cl=B[8]|0,$t=cl&8191,Yt=cl>>>13,Bu=B[9]|0,on=Bu&8191,cn=Bu>>>13;O.negative=v.negative^k.negative,O.length=19,U=Math.imul(j,Dt),C=Math.imul(j,St),C=C+Math.imul(X,Dt)|0,z=Math.imul(X,St);var Wc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,U=Math.imul(ue,Dt),C=Math.imul(ue,St),C=C+Math.imul(he,Dt)|0,z=Math.imul(he,St),U=U+Math.imul(j,Pt)|0,C=C+Math.imul(j,Ot)|0,C=C+Math.imul(X,Pt)|0,z=z+Math.imul(X,Ot)|0;var Uc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,U=Math.imul(ge,Dt),C=Math.imul(ge,St),C=C+Math.imul(me,Dt)|0,z=Math.imul(me,St),U=U+Math.imul(ue,Pt)|0,C=C+Math.imul(ue,Ot)|0,C=C+Math.imul(he,Pt)|0,z=z+Math.imul(he,Ot)|0,U=U+Math.imul(j,Lt)|0,C=C+Math.imul(j,Ft)|0,C=C+Math.imul(X,Lt)|0,z=z+Math.imul(X,Ft)|0;var Hc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,U=Math.imul(ve,Dt),C=Math.imul(ve,St),C=C+Math.imul(Ae,Dt)|0,z=Math.imul(Ae,St),U=U+Math.imul(ge,Pt)|0,C=C+Math.imul(ge,Ot)|0,C=C+Math.imul(me,Pt)|0,z=z+Math.imul(me,Ot)|0,U=U+Math.imul(ue,Lt)|0,C=C+Math.imul(ue,Ft)|0,C=C+Math.imul(he,Lt)|0,z=z+Math.imul(he,Ft)|0,U=U+Math.imul(j,Rt)|0,C=C+Math.imul(j,qt)|0,C=C+Math.imul(X,Rt)|0,z=z+Math.imul(X,qt)|0;var jc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(jc>>>26)|0,jc&=67108863,U=Math.imul(It,Dt),C=Math.imul(It,St),C=C+Math.imul(bt,Dt)|0,z=Math.imul(bt,St),U=U+Math.imul(ve,Pt)|0,C=C+Math.imul(ve,Ot)|0,C=C+Math.imul(Ae,Pt)|0,z=z+Math.imul(Ae,Ot)|0,U=U+Math.imul(ge,Lt)|0,C=C+Math.imul(ge,Ft)|0,C=C+Math.imul(me,Lt)|0,z=z+Math.imul(me,Ft)|0,U=U+Math.imul(ue,Rt)|0,C=C+Math.imul(ue,qt)|0,C=C+Math.imul(he,Rt)|0,z=z+Math.imul(he,qt)|0,U=U+Math.imul(j,Mt)|0,C=C+Math.imul(j,Wt)|0,C=C+Math.imul(X,Mt)|0,z=z+Math.imul(X,Wt)|0;var zc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(zc>>>26)|0,zc&=67108863,U=Math.imul(_t,Dt),C=Math.imul(_t,St),C=C+Math.imul(st,Dt)|0,z=Math.imul(st,St),U=U+Math.imul(It,Pt)|0,C=C+Math.imul(It,Ot)|0,C=C+Math.imul(bt,Pt)|0,z=z+Math.imul(bt,Ot)|0,U=U+Math.imul(ve,Lt)|0,C=C+Math.imul(ve,Ft)|0,C=C+Math.imul(Ae,Lt)|0,z=z+Math.imul(Ae,Ft)|0,U=U+Math.imul(ge,Rt)|0,C=C+Math.imul(ge,qt)|0,C=C+Math.imul(me,Rt)|0,z=z+Math.imul(me,qt)|0,U=U+Math.imul(ue,Mt)|0,C=C+Math.imul(ue,Wt)|0,C=C+Math.imul(he,Mt)|0,z=z+Math.imul(he,Wt)|0,U=U+Math.imul(j,Je)|0,C=C+Math.imul(j,it)|0,C=C+Math.imul(X,Je)|0,z=z+Math.imul(X,it)|0;var Gp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,U=Math.imul(Nt,Dt),C=Math.imul(Nt,St),C=C+Math.imul(dt,Dt)|0,z=Math.imul(dt,St),U=U+Math.imul(_t,Pt)|0,C=C+Math.imul(_t,Ot)|0,C=C+Math.imul(st,Pt)|0,z=z+Math.imul(st,Ot)|0,U=U+Math.imul(It,Lt)|0,C=C+Math.imul(It,Ft)|0,C=C+Math.imul(bt,Lt)|0,z=z+Math.imul(bt,Ft)|0,U=U+Math.imul(ve,Rt)|0,C=C+Math.imul(ve,qt)|0,C=C+Math.imul(Ae,Rt)|0,z=z+Math.imul(Ae,qt)|0,U=U+Math.imul(ge,Mt)|0,C=C+Math.imul(ge,Wt)|0,C=C+Math.imul(me,Mt)|0,z=z+Math.imul(me,Wt)|0,U=U+Math.imul(ue,Je)|0,C=C+Math.imul(ue,it)|0,C=C+Math.imul(he,Je)|0,z=z+Math.imul(he,it)|0,U=U+Math.imul(j,Ut)|0,C=C+Math.imul(j,Kt)|0,C=C+Math.imul(X,Ut)|0,z=z+Math.imul(X,Kt)|0;var Vp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,U=Math.imul(jt,Dt),C=Math.imul(jt,St),C=C+Math.imul(Bt,Dt)|0,z=Math.imul(Bt,St),U=U+Math.imul(Nt,Pt)|0,C=C+Math.imul(Nt,Ot)|0,C=C+Math.imul(dt,Pt)|0,z=z+Math.imul(dt,Ot)|0,U=U+Math.imul(_t,Lt)|0,C=C+Math.imul(_t,Ft)|0,C=C+Math.imul(st,Lt)|0,z=z+Math.imul(st,Ft)|0,U=U+Math.imul(It,Rt)|0,C=C+Math.imul(It,qt)|0,C=C+Math.imul(bt,Rt)|0,z=z+Math.imul(bt,qt)|0,U=U+Math.imul(ve,Mt)|0,C=C+Math.imul(ve,Wt)|0,C=C+Math.imul(Ae,Mt)|0,z=z+Math.imul(Ae,Wt)|0,U=U+Math.imul(ge,Je)|0,C=C+Math.imul(ge,it)|0,C=C+Math.imul(me,Je)|0,z=z+Math.imul(me,it)|0,U=U+Math.imul(ue,Ut)|0,C=C+Math.imul(ue,Kt)|0,C=C+Math.imul(he,Ut)|0,z=z+Math.imul(he,Kt)|0,U=U+Math.imul(j,Gt)|0,C=C+Math.imul(j,Vt)|0,C=C+Math.imul(X,Gt)|0,z=z+Math.imul(X,Vt)|0;var $p=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+($p>>>26)|0,$p&=67108863,U=Math.imul(ot,Dt),C=Math.imul(ot,St),C=C+Math.imul(pt,Dt)|0,z=Math.imul(pt,St),U=U+Math.imul(jt,Pt)|0,C=C+Math.imul(jt,Ot)|0,C=C+Math.imul(Bt,Pt)|0,z=z+Math.imul(Bt,Ot)|0,U=U+Math.imul(Nt,Lt)|0,C=C+Math.imul(Nt,Ft)|0,C=C+Math.imul(dt,Lt)|0,z=z+Math.imul(dt,Ft)|0,U=U+Math.imul(_t,Rt)|0,C=C+Math.imul(_t,qt)|0,C=C+Math.imul(st,Rt)|0,z=z+Math.imul(st,qt)|0,U=U+Math.imul(It,Mt)|0,C=C+Math.imul(It,Wt)|0,C=C+Math.imul(bt,Mt)|0,z=z+Math.imul(bt,Wt)|0,U=U+Math.imul(ve,Je)|0,C=C+Math.imul(ve,it)|0,C=C+Math.imul(Ae,Je)|0,z=z+Math.imul(Ae,it)|0,U=U+Math.imul(ge,Ut)|0,C=C+Math.imul(ge,Kt)|0,C=C+Math.imul(me,Ut)|0,z=z+Math.imul(me,Kt)|0,U=U+Math.imul(ue,Gt)|0,C=C+Math.imul(ue,Vt)|0,C=C+Math.imul(he,Gt)|0,z=z+Math.imul(he,Vt)|0,U=U+Math.imul(j,$t)|0,C=C+Math.imul(j,Yt)|0,C=C+Math.imul(X,$t)|0,z=z+Math.imul(X,Yt)|0;var Yp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,U=Math.imul(kt,Dt),C=Math.imul(kt,St),C=C+Math.imul(At,Dt)|0,z=Math.imul(At,St),U=U+Math.imul(ot,Pt)|0,C=C+Math.imul(ot,Ot)|0,C=C+Math.imul(pt,Pt)|0,z=z+Math.imul(pt,Ot)|0,U=U+Math.imul(jt,Lt)|0,C=C+Math.imul(jt,Ft)|0,C=C+Math.imul(Bt,Lt)|0,z=z+Math.imul(Bt,Ft)|0,U=U+Math.imul(Nt,Rt)|0,C=C+Math.imul(Nt,qt)|0,C=C+Math.imul(dt,Rt)|0,z=z+Math.imul(dt,qt)|0,U=U+Math.imul(_t,Mt)|0,C=C+Math.imul(_t,Wt)|0,C=C+Math.imul(st,Mt)|0,z=z+Math.imul(st,Wt)|0,U=U+Math.imul(It,Je)|0,C=C+Math.imul(It,it)|0,C=C+Math.imul(bt,Je)|0,z=z+Math.imul(bt,it)|0,U=U+Math.imul(ve,Ut)|0,C=C+Math.imul(ve,Kt)|0,C=C+Math.imul(Ae,Ut)|0,z=z+Math.imul(Ae,Kt)|0,U=U+Math.imul(ge,Gt)|0,C=C+Math.imul(ge,Vt)|0,C=C+Math.imul(me,Gt)|0,z=z+Math.imul(me,Vt)|0,U=U+Math.imul(ue,$t)|0,C=C+Math.imul(ue,Yt)|0,C=C+Math.imul(he,$t)|0,z=z+Math.imul(he,Yt)|0,U=U+Math.imul(j,on)|0,C=C+Math.imul(j,cn)|0,C=C+Math.imul(X,on)|0,z=z+Math.imul(X,cn)|0;var Jp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,U=Math.imul(kt,Pt),C=Math.imul(kt,Ot),C=C+Math.imul(At,Pt)|0,z=Math.imul(At,Ot),U=U+Math.imul(ot,Lt)|0,C=C+Math.imul(ot,Ft)|0,C=C+Math.imul(pt,Lt)|0,z=z+Math.imul(pt,Ft)|0,U=U+Math.imul(jt,Rt)|0,C=C+Math.imul(jt,qt)|0,C=C+Math.imul(Bt,Rt)|0,z=z+Math.imul(Bt,qt)|0,U=U+Math.imul(Nt,Mt)|0,C=C+Math.imul(Nt,Wt)|0,C=C+Math.imul(dt,Mt)|0,z=z+Math.imul(dt,Wt)|0,U=U+Math.imul(_t,Je)|0,C=C+Math.imul(_t,it)|0,C=C+Math.imul(st,Je)|0,z=z+Math.imul(st,it)|0,U=U+Math.imul(It,Ut)|0,C=C+Math.imul(It,Kt)|0,C=C+Math.imul(bt,Ut)|0,z=z+Math.imul(bt,Kt)|0,U=U+Math.imul(ve,Gt)|0,C=C+Math.imul(ve,Vt)|0,C=C+Math.imul(Ae,Gt)|0,z=z+Math.imul(Ae,Vt)|0,U=U+Math.imul(ge,$t)|0,C=C+Math.imul(ge,Yt)|0,C=C+Math.imul(me,$t)|0,z=z+Math.imul(me,Yt)|0,U=U+Math.imul(ue,on)|0,C=C+Math.imul(ue,cn)|0,C=C+Math.imul(he,on)|0,z=z+Math.imul(he,cn)|0;var Qp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,U=Math.imul(kt,Lt),C=Math.imul(kt,Ft),C=C+Math.imul(At,Lt)|0,z=Math.imul(At,Ft),U=U+Math.imul(ot,Rt)|0,C=C+Math.imul(ot,qt)|0,C=C+Math.imul(pt,Rt)|0,z=z+Math.imul(pt,qt)|0,U=U+Math.imul(jt,Mt)|0,C=C+Math.imul(jt,Wt)|0,C=C+Math.imul(Bt,Mt)|0,z=z+Math.imul(Bt,Wt)|0,U=U+Math.imul(Nt,Je)|0,C=C+Math.imul(Nt,it)|0,C=C+Math.imul(dt,Je)|0,z=z+Math.imul(dt,it)|0,U=U+Math.imul(_t,Ut)|0,C=C+Math.imul(_t,Kt)|0,C=C+Math.imul(st,Ut)|0,z=z+Math.imul(st,Kt)|0,U=U+Math.imul(It,Gt)|0,C=C+Math.imul(It,Vt)|0,C=C+Math.imul(bt,Gt)|0,z=z+Math.imul(bt,Vt)|0,U=U+Math.imul(ve,$t)|0,C=C+Math.imul(ve,Yt)|0,C=C+Math.imul(Ae,$t)|0,z=z+Math.imul(Ae,Yt)|0,U=U+Math.imul(ge,on)|0,C=C+Math.imul(ge,cn)|0,C=C+Math.imul(me,on)|0,z=z+Math.imul(me,cn)|0;var Zp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,U=Math.imul(kt,Rt),C=Math.imul(kt,qt),C=C+Math.imul(At,Rt)|0,z=Math.imul(At,qt),U=U+Math.imul(ot,Mt)|0,C=C+Math.imul(ot,Wt)|0,C=C+Math.imul(pt,Mt)|0,z=z+Math.imul(pt,Wt)|0,U=U+Math.imul(jt,Je)|0,C=C+Math.imul(jt,it)|0,C=C+Math.imul(Bt,Je)|0,z=z+Math.imul(Bt,it)|0,U=U+Math.imul(Nt,Ut)|0,C=C+Math.imul(Nt,Kt)|0,C=C+Math.imul(dt,Ut)|0,z=z+Math.imul(dt,Kt)|0,U=U+Math.imul(_t,Gt)|0,C=C+Math.imul(_t,Vt)|0,C=C+Math.imul(st,Gt)|0,z=z+Math.imul(st,Vt)|0,U=U+Math.imul(It,$t)|0,C=C+Math.imul(It,Yt)|0,C=C+Math.imul(bt,$t)|0,z=z+Math.imul(bt,Yt)|0,U=U+Math.imul(ve,on)|0,C=C+Math.imul(ve,cn)|0,C=C+Math.imul(Ae,on)|0,z=z+Math.imul(Ae,cn)|0;var Xp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Xp>>>26)|0,Xp&=67108863,U=Math.imul(kt,Mt),C=Math.imul(kt,Wt),C=C+Math.imul(At,Mt)|0,z=Math.imul(At,Wt),U=U+Math.imul(ot,Je)|0,C=C+Math.imul(ot,it)|0,C=C+Math.imul(pt,Je)|0,z=z+Math.imul(pt,it)|0,U=U+Math.imul(jt,Ut)|0,C=C+Math.imul(jt,Kt)|0,C=C+Math.imul(Bt,Ut)|0,z=z+Math.imul(Bt,Kt)|0,U=U+Math.imul(Nt,Gt)|0,C=C+Math.imul(Nt,Vt)|0,C=C+Math.imul(dt,Gt)|0,z=z+Math.imul(dt,Vt)|0,U=U+Math.imul(_t,$t)|0,C=C+Math.imul(_t,Yt)|0,C=C+Math.imul(st,$t)|0,z=z+Math.imul(st,Yt)|0,U=U+Math.imul(It,on)|0,C=C+Math.imul(It,cn)|0,C=C+Math.imul(bt,on)|0,z=z+Math.imul(bt,cn)|0;var eh=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(eh>>>26)|0,eh&=67108863,U=Math.imul(kt,Je),C=Math.imul(kt,it),C=C+Math.imul(At,Je)|0,z=Math.imul(At,it),U=U+Math.imul(ot,Ut)|0,C=C+Math.imul(ot,Kt)|0,C=C+Math.imul(pt,Ut)|0,z=z+Math.imul(pt,Kt)|0,U=U+Math.imul(jt,Gt)|0,C=C+Math.imul(jt,Vt)|0,C=C+Math.imul(Bt,Gt)|0,z=z+Math.imul(Bt,Vt)|0,U=U+Math.imul(Nt,$t)|0,C=C+Math.imul(Nt,Yt)|0,C=C+Math.imul(dt,$t)|0,z=z+Math.imul(dt,Yt)|0,U=U+Math.imul(_t,on)|0,C=C+Math.imul(_t,cn)|0,C=C+Math.imul(st,on)|0,z=z+Math.imul(st,cn)|0;var Vg=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,U=Math.imul(kt,Ut),C=Math.imul(kt,Kt),C=C+Math.imul(At,Ut)|0,z=Math.imul(At,Kt),U=U+Math.imul(ot,Gt)|0,C=C+Math.imul(ot,Vt)|0,C=C+Math.imul(pt,Gt)|0,z=z+Math.imul(pt,Vt)|0,U=U+Math.imul(jt,$t)|0,C=C+Math.imul(jt,Yt)|0,C=C+Math.imul(Bt,$t)|0,z=z+Math.imul(Bt,Yt)|0,U=U+Math.imul(Nt,on)|0,C=C+Math.imul(Nt,cn)|0,C=C+Math.imul(dt,on)|0,z=z+Math.imul(dt,cn)|0;var $g=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+($g>>>26)|0,$g&=67108863,U=Math.imul(kt,Gt),C=Math.imul(kt,Vt),C=C+Math.imul(At,Gt)|0,z=Math.imul(At,Vt),U=U+Math.imul(ot,$t)|0,C=C+Math.imul(ot,Yt)|0,C=C+Math.imul(pt,$t)|0,z=z+Math.imul(pt,Yt)|0,U=U+Math.imul(jt,on)|0,C=C+Math.imul(jt,cn)|0,C=C+Math.imul(Bt,on)|0,z=z+Math.imul(Bt,cn)|0;var lK=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(lK>>>26)|0,lK&=67108863,U=Math.imul(kt,$t),C=Math.imul(kt,Yt),C=C+Math.imul(At,$t)|0,z=Math.imul(At,Yt),U=U+Math.imul(ot,on)|0,C=C+Math.imul(ot,cn)|0,C=C+Math.imul(pt,on)|0,z=z+Math.imul(pt,cn)|0;var dK=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(dK>>>26)|0,dK&=67108863,U=Math.imul(kt,on),C=Math.imul(kt,cn),C=C+Math.imul(At,on)|0,z=Math.imul(At,cn);var pK=(N+U|0)+((C&8191)<<13)|0;return N=(z+(C>>>13)|0)+(pK>>>26)|0,pK&=67108863,_[0]=Wc,_[1]=Uc,_[2]=Hc,_[3]=jc,_[4]=zc,_[5]=Gp,_[6]=Vp,_[7]=$p,_[8]=Yp,_[9]=Jp,_[10]=Qp,_[11]=Zp,_[12]=Xp,_[13]=eh,_[14]=Vg,_[15]=$g,_[16]=lK,_[17]=dK,_[18]=pK,N!==0&&(_[19]=N,O.length++),O};Math.imul||(S=I);function L(A,v,k){k.negative=v.negative^A.negative,k.length=A.length+v.length;for(var O=0,D=0,B=0;B>>26)|0,D+=_>>>26,_&=67108863}k.words[B]=N,O=_,_=D}return O!==0?k.words[B]=O:k.length--,k._strip()}function q(A,v,k){return L(A,v,k)}a.prototype.mulTo=function(v,k){var O,D=this.length+v.length;return this.length===10&&v.length===10?O=S(this,v,k):D<63?O=I(this,v,k):D<1024?O=L(this,v,k):O=q(this,v,k),O};function W(A,v){this.x=A,this.y=v}W.prototype.makeRBT=function(v){for(var k=new Array(v),O=a.prototype._countBits(v)-1,D=0;D>=1;return D},W.prototype.permute=function(v,k,O,D,B,_){for(var N=0;N<_;N++)D[N]=k[v[N]],B[N]=O[v[N]]},W.prototype.transform=function(v,k,O,D,B,_){this.permute(_,v,k,O,D,B);for(var N=1;N>>1)B++;return 1<>>13,O[2*_+1]=B&8191,B=B>>>13;for(_=2*k;_>=26,O+=B/67108864|0,O+=_>>>26,this.words[D]=_&67108863}return O!==0&&(this.words[D]=O,this.length++),k?this.ineg():this},a.prototype.muln=function(v){return this.clone().imuln(v)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(v){var k=E(v);if(k.length===0)return new a(1);for(var O=this,D=0;D=0);var k=v%26,O=(v-k)/26,D=67108863>>>26-k<<26-k,B;if(k!==0){var _=0;for(B=0;B>>26-k}_&&(this.words[B]=_,this.length++)}if(O!==0){for(B=this.length-1;B>=0;B--)this.words[B+O]=this.words[B];for(B=0;B=0);var D;k?D=(k-k%26)/26:D=0;var B=v%26,_=Math.min((v-B)/26,this.length),N=67108863^67108863>>>B<_)for(this.length-=_,C=0;C=0&&(z!==0||C>=D);C--){var ee=this.words[C]|0;this.words[C]=z<<26-B|ee>>>B,z=ee&N}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(v,k,O){return t(this.negative===0),this.iushrn(v,k,O)},a.prototype.shln=function(v){return this.clone().ishln(v)},a.prototype.ushln=function(v){return this.clone().iushln(v)},a.prototype.shrn=function(v){return this.clone().ishrn(v)},a.prototype.ushrn=function(v){return this.clone().iushrn(v)},a.prototype.testn=function(v){t(typeof v=="number"&&v>=0);var k=v%26,O=(v-k)/26,D=1<=0);var k=v%26,O=(v-k)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(k!==0&&O++,this.length=Math.min(O,this.length),k!==0){var D=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(v){if(t(typeof v=="number"),t(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(U/67108864|0),this.words[B+O]=_&67108863}for(;B>26,this.words[B+O]=_&67108863;if(N===0)return this._strip();for(t(N===-1),N=0,B=0;B>26,this.words[B]=_&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(v,k){var O=this.length-v.length,D=this.clone(),B=v,_=B.words[B.length-1]|0,N=this._countBits(_);O=26-N,O!==0&&(B=B.ushln(O),D.iushln(O),_=B.words[B.length-1]|0);var U=D.length-B.length,C;if(k!=="mod"){C=new a(null),C.length=U+1,C.words=new Array(C.length);for(var z=0;z=0;j--){var X=(D.words[B.length+j]|0)*67108864+(D.words[B.length+j-1]|0);for(X=Math.min(X/_|0,67108863),D._ishlnsubmul(B,X,j);D.negative!==0;)X--,D.negative=0,D._ishlnsubmul(B,1,j),D.isZero()||(D.negative^=1);C&&(C.words[j]=X)}return C&&C._strip(),D._strip(),k!=="div"&&O!==0&&D.iushrn(O),{div:C||null,mod:D}},a.prototype.divmod=function(v,k,O){if(t(!v.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var D,B,_;return this.negative!==0&&v.negative===0?(_=this.neg().divmod(v,k),k!=="mod"&&(D=_.div.neg()),k!=="div"&&(B=_.mod.neg(),O&&B.negative!==0&&B.iadd(v)),{div:D,mod:B}):this.negative===0&&v.negative!==0?(_=this.divmod(v.neg(),k),k!=="mod"&&(D=_.div.neg()),{div:D,mod:_.mod}):(this.negative&v.negative)!==0?(_=this.neg().divmod(v.neg(),k),k!=="div"&&(B=_.mod.neg(),O&&B.negative!==0&&B.isub(v)),{div:_.div,mod:B}):v.length>this.length||this.cmp(v)<0?{div:new a(0),mod:this}:v.length===1?k==="div"?{div:this.divn(v.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new a(this.modrn(v.words[0]))}:this._wordDiv(v,k)},a.prototype.div=function(v){return this.divmod(v,"div",!1).div},a.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},a.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},a.prototype.divRound=function(v){var k=this.divmod(v);if(k.mod.isZero())return k.div;var O=k.div.negative!==0?k.mod.isub(v):k.mod,D=v.ushrn(1),B=v.andln(1),_=O.cmp(D);return _<0||B===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modrn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=(1<<26)%v,D=0,B=this.length-1;B>=0;B--)D=(O*D+(this.words[B]|0))%v;return k?-D:D},a.prototype.modn=function(v){return this.modrn(v)},a.prototype.idivn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+O*67108864;this.words[D]=B/v|0,O=B%v}return this._strip(),k?this.ineg():this},a.prototype.divn=function(v){return this.clone().idivn(v)},a.prototype.egcd=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),_=new a(0),N=new a(1),U=0;k.isEven()&&O.isEven();)k.iushrn(1),O.iushrn(1),++U;for(var C=O.clone(),z=k.clone();!k.isZero();){for(var ee=0,j=1;(k.words[0]&j)===0&&ee<26;++ee,j<<=1);if(ee>0)for(k.iushrn(ee);ee-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd(C),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var X=0,ie=1;(O.words[0]&ie)===0&&X<26;++X,ie<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(C),N.isub(z)),_.iushrn(1),N.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(_),B.isub(N)):(O.isub(k),_.isub(D),N.isub(B))}return{a:_,b:N,gcd:O.iushln(U)}},a.prototype._invmp=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),_=O.clone();k.cmpn(1)>0&&O.cmpn(1)>0;){for(var N=0,U=1;(k.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(k.iushrn(N);N-- >0;)D.isOdd()&&D.iadd(_),D.iushrn(1);for(var C=0,z=1;(O.words[0]&z)===0&&C<26;++C,z<<=1);if(C>0)for(O.iushrn(C);C-- >0;)B.isOdd()&&B.iadd(_),B.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(B)):(O.isub(k),B.isub(D))}var ee;return k.cmpn(1)===0?ee=D:ee=B,ee.cmpn(0)<0&&ee.iadd(v),ee},a.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var k=this.clone(),O=v.clone();k.negative=0,O.negative=0;for(var D=0;k.isEven()&&O.isEven();D++)k.iushrn(1),O.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;O.isEven();)O.iushrn(1);var B=k.cmp(O);if(B<0){var _=k;k=O,O=_}else if(B===0||O.cmpn(1)===0)break;k.isub(O)}while(!0);return O.iushln(D)},a.prototype.invm=function(v){return this.egcd(v).a.umod(v)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(v){return this.words[0]&v},a.prototype.bincn=function(v){t(typeof v=="number");var k=v%26,O=(v-k)/26,D=1<>>26,N&=67108863,this.words[_]=N}return B!==0&&(this.words[_]=B,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(v){var k=v<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var O;if(this.length>1)O=1;else{k&&(v=-v),t(v<=67108863,"Number is too big");var D=this.words[0]|0;O=D===v?0:Dv.length)return 1;if(this.length=0;O--){var D=this.words[O]|0,B=v.words[O]|0;if(D!==B){DB&&(k=1);break}}return k},a.prototype.gtn=function(v){return this.cmpn(v)===1},a.prototype.gt=function(v){return this.cmp(v)===1},a.prototype.gten=function(v){return this.cmpn(v)>=0},a.prototype.gte=function(v){return this.cmp(v)>=0},a.prototype.ltn=function(v){return this.cmpn(v)===-1},a.prototype.lt=function(v){return this.cmp(v)===-1},a.prototype.lten=function(v){return this.cmpn(v)<=0},a.prototype.lte=function(v){return this.cmp(v)<=0},a.prototype.eqn=function(v){return this.cmpn(v)===0},a.prototype.eq=function(v){return this.cmp(v)===0},a.red=function(v){return new T(v)},a.prototype.toRed=function(v){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(v){return this.red=v,this},a.prototype.forceRed=function(v){return t(!this.red,"Already a number in reduction context"),this._forceRed(v)},a.prototype.redAdd=function(v){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},a.prototype.redIAdd=function(v){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},a.prototype.redSub=function(v){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},a.prototype.redISub=function(v){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},a.prototype.redShl=function(v){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},a.prototype.redMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},a.prototype.redIMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(v){return t(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var V={k256:null,p224:null,p192:null,p25519:null};function K(A,v){this.name=A,this.p=new a(v,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var v=new a(null);return v.words=new Array(Math.ceil(this.n/13)),v},K.prototype.ireduce=function(v){var k=v,O;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),O=k.bitLength();while(O>this.n);var D=O0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},K.prototype.split=function(v,k){v.iushrn(this.n,0,k)},K.prototype.imulK=function(v){return v.imul(this.k)};function H(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(H,K),H.prototype.split=function(v,k){for(var O=4194303,D=Math.min(v.length,9),B=0;B>>22,_=N}_>>>=22,v.words[B-10]=_,_===0&&v.length>10?v.length-=10:v.length-=9},H.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var k=0,O=0;O>>=26,v.words[O]=B,k=D}return k!==0&&(v.words[v.length++]=k),v},a._prime=function(v){if(V[v])return V[v];var k;if(v==="k256")k=new H;else if(v==="p224")k=new G;else if(v==="p192")k=new J;else if(v==="p25519")k=new F;else throw new Error("Unknown prime "+v);return V[v]=k,k};function T(A){if(typeof A=="string"){var v=a._prime(A);this.m=v.p,this.prime=v}else t(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}T.prototype._verify1=function(v){t(v.negative===0,"red works only with positives"),t(v.red,"red works only with red numbers")},T.prototype._verify2=function(v,k){t((v.negative|k.negative)===0,"red works only with positives"),t(v.red&&v.red===k.red,"red works only with red numbers")},T.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(u(v,v.umod(this.m)._forceRed(this)),v)},T.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},T.prototype.add=function(v,k){this._verify2(v,k);var O=v.add(k);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},T.prototype.iadd=function(v,k){this._verify2(v,k);var O=v.iadd(k);return O.cmp(this.m)>=0&&O.isub(this.m),O},T.prototype.sub=function(v,k){this._verify2(v,k);var O=v.sub(k);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},T.prototype.isub=function(v,k){this._verify2(v,k);var O=v.isub(k);return O.cmpn(0)<0&&O.iadd(this.m),O},T.prototype.shl=function(v,k){return this._verify1(v),this.imod(v.ushln(k))},T.prototype.imul=function(v,k){return this._verify2(v,k),this.imod(v.imul(k))},T.prototype.mul=function(v,k){return this._verify2(v,k),this.imod(v.mul(k))},T.prototype.isqr=function(v){return this.imul(v,v.clone())},T.prototype.sqr=function(v){return this.mul(v,v)},T.prototype.sqrt=function(v){if(v.isZero())return v.clone();var k=this.m.andln(3);if(t(k%2===1),k===3){var O=this.m.add(new a(1)).iushrn(2);return this.pow(v,O)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);t(!D.isZero());var _=new a(1).toRed(this),N=_.redNeg(),U=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,U).cmp(N)!==0;)C.redIAdd(N);for(var z=this.pow(C,D),ee=this.pow(v,D.addn(1).iushrn(1)),j=this.pow(v,D),X=B;j.cmp(_)!==0;){for(var ie=j,ue=0;ie.cmp(_)!==0;ue++)ie=ie.redSqr();t(ue=0;B--){for(var z=k.words[B],ee=C-1;ee>=0;ee--){var j=z>>ee&1;if(_!==D[0]&&(_=this.sqr(_)),j===0&&N===0){U=0;continue}N<<=1,N|=j,U++,!(U!==O&&(B!==0||ee!==0))&&(_=this.mul(_,D[N]),U=0,N=0)}C=26}return _},T.prototype.convertTo=function(v){var k=v.umod(this.m);return k===v?k.clone():k},T.prototype.convertFrom=function(v){var k=v.clone();return k.red=null,k},a.mont=function(v){return new P(v)};function P(A){T.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(P,T),P.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},P.prototype.convertFrom=function(v){var k=this.imod(v.mul(this.rinv));return k.red=null,k},P.prototype.imul=function(v,k){if(v.isZero()||k.isZero())return v.words[0]=0,v.length=1,v;var O=v.imul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),_=B;return B.cmp(this.m)>=0?_=B.isub(this.m):B.cmpn(0)<0&&(_=B.iadd(this.m)),_._forceRed(this)},P.prototype.mul=function(v,k){if(v.isZero()||k.isZero())return new a(0)._forceRed(this);var O=v.mul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),_=B;return B.cmp(this.m)>=0?_=B.isub(this.m):B.cmpn(0)<0&&(_=B.iadd(this.m)),_._forceRed(this)},P.prototype.invm=function(v){var k=this.imod(v._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof EK>"u"||EK,S1e)});var P1e=x(i7=>{"use strict";d();p();Object.defineProperty(i7,"__esModule",{value:!0});i7.version=void 0;i7.version="logger/5.7.0"});var Zt=x(yf=>{"use strict";d();p();Object.defineProperty(yf,"__esModule",{value:!0});yf.Logger=yf.ErrorCode=yf.LogLevel=void 0;var R1e=!1,M1e=!1,s7={debug:1,default:2,info:2,warning:3,error:4,off:5},N1e=s7.default,KPt=P1e(),CK=null;function GPt(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var B1e=GPt(),O1e;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(O1e=yf.LogLevel||(yf.LogLevel={}));var mf;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(mf=yf.ErrorCode||(yf.ErrorCode={}));var D1e="0123456789abcdef",VPt=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();s7[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(N1e>s7[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],h+=D1e[l[f]&15];a.push(u+"=Uint8Array(0x"+h+")")}else a.push(u+"="+JSON.stringify(l))}catch{a.push(u+"="+JSON.stringify(n[u].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case mf.NUMERIC_FAULT:{s="NUMERIC_FAULT";var o=e;switch(o){case"overflow":case"underflow":case"division-by-zero":s+="-"+o;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case mf.CALL_EXCEPTION:case mf.INSUFFICIENT_FUNDS:case mf.MISSING_NEW:case mf.NONCE_EXPIRED:case mf.REPLACEMENT_UNDERPRICED:case mf.TRANSACTION_REPLACED:case mf.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var c=new Error(e);return c.reason=i,c.code=t,Object.keys(n).forEach(function(u){c[u]=n[u]}),c},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),B1e&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:B1e})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return CK||(CK=new r(KPt.version)),CK},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),R1e){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}M1e=!!e,R1e=!!t},r.setLogLevel=function(e){var t=s7[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}N1e=t},r.from=function(e){return new r(e)},r.errors=mf,r.levels=O1e,r}();yf.Logger=VPt});var L1e=x(o7=>{"use strict";d();p();Object.defineProperty(o7,"__esModule",{value:!0});o7.version=void 0;o7.version="bytes/5.7.0"});var wr=x(Zr=>{"use strict";d();p();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.joinSignature=Zr.splitSignature=Zr.hexZeroPad=Zr.hexStripZeros=Zr.hexValue=Zr.hexConcat=Zr.hexDataSlice=Zr.hexDataLength=Zr.hexlify=Zr.isHexString=Zr.zeroPad=Zr.stripZeros=Zr.concat=Zr.arrayify=Zr.isBytes=Zr.isBytesLike=void 0;var $Pt=Zt(),YPt=L1e(),is=new $Pt.Logger(YPt.version);function q1e(r){return!!r.toHexString}function c5(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return c5(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function W1e(r){return th(r)&&!(r.length%2)||u7(r)}Zr.isBytesLike=W1e;function F1e(r){return typeof r=="number"&&r==r&&r%1===0}function u7(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!F1e(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}Zr.isBytes=u7;function Zg(r,e){if(e||(e={}),typeof r=="number"){is.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),c5(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),q1e(r)&&(r=r.toHexString()),th(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":is.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&is.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),c5(t)}Zr.zeroPad=H1e;function th(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}Zr.isHexString=th;var IK="0123456789abcdef";function Kc(r,e){if(e||(e={}),typeof r=="number"){is.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=IK[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),q1e(r))return r.toHexString();if(th(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":is.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(u7(r)){for(var n="0x",a=0;a>4]+IK[i&15]}return n}return is.throwArgumentError("invalid hexlify value","value",r)}Zr.hexlify=Kc;function QPt(r){if(typeof r!="string")r=Kc(r);else if(!th(r)||r.length%2)return null;return(r.length-2)/2}Zr.hexDataLength=QPt;function ZPt(r,e,t){return typeof r!="string"?r=Kc(r):(!th(r)||r.length%2)&&is.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}Zr.hexDataSlice=ZPt;function XPt(r){var e="0x";return r.forEach(function(t){e+=Kc(t).substring(2)}),e}Zr.hexConcat=XPt;function e7t(r){var e=j1e(Kc(r,{hexPad:"left"}));return e==="0x"?"0x0":e}Zr.hexValue=e7t;function j1e(r){typeof r!="string"&&(r=Kc(r)),th(r)||is.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&is.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}Zr.hexZeroPad=c7;function z1e(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(W1e(r)){var t=Zg(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=Kc(t.slice(0,32)),e.s=Kc(t.slice(32,64))):t.length===65?(e.r=Kc(t.slice(0,32)),e.s=Kc(t.slice(32,64)),e.v=t[64]):is.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:is.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=Kc(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=H1e(Zg(e._vs),32);e._vs=Kc(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&is.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=Kc(n);e.s==null?e.s=i:e.s!==i&&is.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?is.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&is.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!th(e.r)?is.throwArgumentError("signature missing or invalid r","signature",r):e.r=c7(e.r,32),e.s==null||!th(e.s)?is.throwArgumentError("signature missing or invalid s","signature",r):e.s=c7(e.s,32);var o=Zg(e.s);o[0]>=128&&is.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(o[0]|=128);var c=Kc(o);e._vs&&(th(e._vs)||is.throwArgumentError("signature invalid _vs","signature",r),e._vs=c7(e._vs,32)),e._vs==null?e._vs=c:e._vs!==c&&is.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Zr.splitSignature=z1e;function t7t(r){return r=z1e(r),Kc(U1e([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}Zr.joinSignature=t7t});var kK=x(l7=>{"use strict";d();p();Object.defineProperty(l7,"__esModule",{value:!0});l7.version=void 0;l7.version="bignumber/5.7.0"});var p7=x(Sd=>{"use strict";d();p();var r7t=Sd&&Sd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sd,"__esModule",{value:!0});Sd._base16To36=Sd._base36To16=Sd.BigNumber=Sd.isBigNumberish=void 0;var n7t=r7t(Ir()),IE=n7t.default.BN,u5=wr(),l5=Zt(),a7t=kK(),Vm=new l5.Logger(a7t.version),AK={},K1e=9007199254740991;function i7t(r){return r!=null&&(d7.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,u5.isHexString)(r)||typeof r=="bigint"||(0,u5.isBytes)(r))}Sd.isBigNumberish=i7t;var G1e=!1,d7=function(){function r(e,t){e!==AK&&Vm.throwError("cannot call constructor directly; use BigNumber.from",l5.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return ll(Wr(this).fromTwos(e))},r.prototype.toTwos=function(e){return ll(Wr(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return ll(Wr(this).add(Wr(e)))},r.prototype.sub=function(e){return ll(Wr(this).sub(Wr(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&Ad("division-by-zero","div"),ll(Wr(this).div(Wr(e)))},r.prototype.mul=function(e){return ll(Wr(this).mul(Wr(e)))},r.prototype.mod=function(e){var t=Wr(e);return t.isNeg()&&Ad("division-by-zero","mod"),ll(Wr(this).umod(t))},r.prototype.pow=function(e){var t=Wr(e);return t.isNeg()&&Ad("negative-power","pow"),ll(Wr(this).pow(t))},r.prototype.and=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Ad("unbound-bitwise-result","and"),ll(Wr(this).and(t))},r.prototype.or=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Ad("unbound-bitwise-result","or"),ll(Wr(this).or(t))},r.prototype.xor=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Ad("unbound-bitwise-result","xor"),ll(Wr(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&Ad("negative-width","mask"),ll(Wr(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&Ad("negative-width","shl"),ll(Wr(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&Ad("negative-width","shr"),ll(Wr(this).shrn(e))},r.prototype.eq=function(e){return Wr(this).eq(Wr(e))},r.prototype.lt=function(e){return Wr(this).lt(Wr(e))},r.prototype.lte=function(e){return Wr(this).lte(Wr(e))},r.prototype.gt=function(e){return Wr(this).gt(Wr(e))},r.prototype.gte=function(e){return Wr(this).gte(Wr(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return Wr(this).isZero()},r.prototype.toNumber=function(){try{return Wr(this).toNumber()}catch{Ad("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return Vm.throwError("this platform does not support BigInt",l5.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?G1e||(G1e=!0,Vm.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Vm.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l5.Logger.errors.UNEXPECTED_ARGUMENT,{}):Vm.throwError("BigNumber.toString does not accept parameters",l5.Logger.errors.UNEXPECTED_ARGUMENT,{})),Wr(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(AK,kE(e)):e.match(/^-?[0-9]+$/)?new r(AK,kE(new IE(e))):Vm.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Ad("underflow","BigNumber.from",e),(e>=K1e||e<=-K1e)&&Ad("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,u5.isBytes)(t))return r.from((0,u5.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,u5.isHexString)(n)||n[0]==="-"&&(0,u5.isHexString)(n.substring(1))))return r.from(n)}return Vm.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();Sd.BigNumber=d7;function kE(r){if(typeof r!="string")return kE(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&Vm.throwArgumentError("invalid hex","value",r),r=kE(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function ll(r){return d7.from(kE(r))}function Wr(r){var e=d7.from(r).toHexString();return e[0]==="-"?new IE("-"+e.substring(3),16):new IE(e.substring(2),16)}function Ad(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),Vm.throwError(r,l5.Logger.errors.NUMERIC_FAULT,n)}function s7t(r){return new IE(r,36).toString(16)}Sd._base36To16=s7t;function o7t(r){return new IE(r,16).toString(36)}Sd._base16To36=o7t});var Q1e=x(bf=>{"use strict";d();p();Object.defineProperty(bf,"__esModule",{value:!0});bf.FixedNumber=bf.FixedFormat=bf.parseFixed=bf.formatFixed=void 0;var h7=wr(),PE=Zt(),c7t=kK(),Du=new PE.Logger(c7t.version),$m=p7(),AE={},$1e=$m.BigNumber.from(0),Y1e=$m.BigNumber.from(-1);function J1e(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),Du.throwError(r,PE.Logger.errors.NUMERIC_FAULT,a)}var SE="0";for(;SE.length<256;)SE+=SE;function SK(r){if(typeof r!="number")try{r=$m.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+SE.substring(0,r):Du.throwArgumentError("invalid decimal size","decimals",r)}function f7(r,e){e==null&&(e=0);var t=SK(e);r=$m.BigNumber.from(r);var n=r.lt($1e);n&&(r=r.mul(Y1e));for(var a=r.mod(t).toString();a.length2&&Du.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&J1e("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&Du.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(AE,t,n,a)},r}();bf.FixedFormat=m7;var PK=function(){function r(e,t,n,a){e!==AE&&Du.throwError("cannot use FixedNumber constructor; use FixedNumber.from",PE.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Du.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(V1e.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(V1e.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&Du.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+SE.substring(0,e),this.format),a=u7t.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Du.throwArgumentError("invalid byte width","width",e);var t=$m.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,h7.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,$m.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(f7(e,t),m7.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=m7.from(t),a=gf(e,n.decimals);!n.signed&&a.lt($1e)&&J1e("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,h7.hexZeroPad)(i,n.width/8));var s=f7(a,n.decimals);return new r(AE,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=m7.from(t);if((0,h7.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=$m.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=f7(a,n.decimals);return new r(AE,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,h7.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==PE.Logger.errors.INVALID_ARGUMENT)throw n}return Du.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();bf.FixedNumber=PK;var V1e=PK.from(1),u7t=PK.from("0.5")});var Ws=x(Gc=>{"use strict";d();p();Object.defineProperty(Gc,"__esModule",{value:!0});Gc._base36To16=Gc._base16To36=Gc.parseFixed=Gc.FixedNumber=Gc.FixedFormat=Gc.formatFixed=Gc.BigNumber=void 0;var l7t=p7();Object.defineProperty(Gc,"BigNumber",{enumerable:!0,get:function(){return l7t.BigNumber}});var y7=Q1e();Object.defineProperty(Gc,"formatFixed",{enumerable:!0,get:function(){return y7.formatFixed}});Object.defineProperty(Gc,"FixedFormat",{enumerable:!0,get:function(){return y7.FixedFormat}});Object.defineProperty(Gc,"FixedNumber",{enumerable:!0,get:function(){return y7.FixedNumber}});Object.defineProperty(Gc,"parseFixed",{enumerable:!0,get:function(){return y7.parseFixed}});var Z1e=p7();Object.defineProperty(Gc,"_base16To36",{enumerable:!0,get:function(){return Z1e._base16To36}});Object.defineProperty(Gc,"_base36To16",{enumerable:!0,get:function(){return Z1e._base36To16}})});var X1e=x(g7=>{"use strict";d();p();Object.defineProperty(g7,"__esModule",{value:!0});g7.version=void 0;g7.version="properties/5.7.0"});var Aa=x(Us=>{"use strict";d();p();var d7t=Us&&Us.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},p7t=Us&&Us.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(w7,"__esModule",{value:!0});w7.version=void 0;w7.version="abi/5.7.0"});var k7=x(nr=>{"use strict";d();p();var E7=nr&&nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nr,"__esModule",{value:!0});nr.ErrorFragment=nr.FunctionFragment=nr.ConstructorFragment=nr.EventFragment=nr.Fragment=nr.ParamType=nr.FormatTypes=void 0;var BK=Ws(),x7t=Aa(),C7=Zt(),T7t=d5(),zr=new C7.Logger(T7t.version),Xg={},rge={calldata:!0,memory:!0,storage:!0},E7t={calldata:!0,memory:!0};function _7(r,e){if(r==="bytes"||r==="string"){if(rge[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&E7t[e])return!0;return(rge[e]||e==="payable")&&zr.throwArgumentError("invalid modifier","name",e),!1}function C7t(r,e){var t=r;function n(h){zr.throwArgumentError("unexpected character at position "+h,"param",r)}r=r.replace(/\s/g," ");function a(h){var f={type:"",name:"",parent:h,state:{allowType:!0}};return e&&(f.indexed=!1),f}for(var i={type:"",name:"",state:{allowType:!0}},s=i,o=0;o2&&zr.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||zr.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=BK.BigNumber.from(t[1]),t[0]):r}function ige(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function sge(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&zr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&zr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&zr.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e}var T7=function(r){E7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===nr.FormatTypes.sighash&&zr.throwError("cannot format a constructor for sighash",C7.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&zr.throwArgumentError("invalid constructor object","value",t);var n=sge(t);n.constant&&zr.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(eb.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?BK.BigNumber.from(t.gas):null};return new e(Xg,a)},e.fromString=function(t){var n={type:"constructor"};t=age(t,n);var a=t.match(NE);return(!a||a[1].trim()!=="constructor")&&zr.throwArgumentError("invalid constructor string","value",t),n.inputs=RE(a[2].trim(),!1),ige(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(I7);nr.ConstructorFragment=T7;var MK=function(r){E7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",t!==nr.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&zr.throwArgumentError("invalid function object","value",t);var n=sge(t),a={type:t.type,name:ME(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(eb.fromObject):[],outputs:t.outputs?t.outputs.map(eb.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?BK.BigNumber.from(t.gas):null};return new e(Xg,a)},e.fromString=function(t){var n={type:"function"};t=age(t,n);var a=t.split(" returns ");a.length>2&&zr.throwArgumentError("invalid function string","value",t);var i=a[0].match(NE);if(i||zr.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&ME(n.name),n.inputs=RE(i[2],!1),ige(i[3].trim(),n),a.length>1){var s=a[1].match(NE);(s[1].trim()!=""||s[3].trim()!="")&&zr.throwArgumentError("unexpected tokens","value",t),n.outputs=RE(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(T7);nr.FunctionFragment=MK;function nge(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&zr.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var NK=function(r){E7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&zr.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:ME(t.name),inputs:t.inputs?t.inputs.map(eb.fromObject):[]};return nge(new e(Xg,n))},e.fromString=function(t){var n={type:"error"},a=t.match(NE);return a||zr.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&ME(n.name),n.inputs=RE(a[2],!1),nge(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(I7);nr.ErrorFragment=NK;function p5(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var k7t=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function ME(r){return(!r||!r.match(k7t))&&zr.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var NE=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function A7t(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";d();p();Object.defineProperty(vf,"__esModule",{value:!0});vf.Reader=vf.Writer=vf.Coder=vf.checkResultErrors=void 0;var Ey=wr(),oge=Ws(),BE=Aa(),DK=Zt(),S7t=d5(),OK=new DK.Logger(S7t.version);function P7t(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(o){e.push({path:s,error:o})}}};return t([],r),e}vf.checkResultErrors=P7t;var R7t=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){OK.throwArgumentError(e,this.localName,t)},r}();vf.Coder=R7t;var M7t=function(){function r(e){(0,BE.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,Ey.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,Ey.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,Ey.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,Ey.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,Ey.arrayify)(oge.BigNumber.from(e));return t.length>this.wordSize&&OK.throwError("value out-of-bounds",DK.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,Ey.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();vf.Writer=M7t;var N7t=function(){function r(e,t,n,a){(0,BE.defineReadOnly)(this,"_data",(0,Ey.arrayify)(e)),(0,BE.defineReadOnly)(this,"wordSize",t||32),(0,BE.defineReadOnly)(this,"_coerceFunc",n),(0,BE.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,Ey.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:OK.throwError("data out-of-bounds",DK.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return oge.BigNumber.from(this.readBytes(this.wordSize))},r}();vf.Reader=N7t});var LK=x((I3n,A7)=>{d();p();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof g=="object"&&g.versions&&g.versions.node;i?n=global:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof A7=="object"&&A7.exports,o=typeof define=="function"&&define.amd,c=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),l=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],f=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],E=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],I=[224,256,384,512],S=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],q={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(j){return Object.prototype.toString.call(j)==="[object Array]"}),c&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(j){return typeof j=="object"&&j.buffer&&j.buffer.constructor===ArrayBuffer});for(var W=function(j,X,ie){return function(ue){return new C(j,X,j).update(ue)[ie]()}},V=function(j,X,ie){return function(ue,he){return new C(j,X,he).update(ue)[ie]()}},K=function(j,X,ie){return function(ue,he,ke,ge){return v["cshake"+j].update(ue,he,ke,ge)[ie]()}},H=function(j,X,ie){return function(ue,he,ke,ge){return v["kmac"+j].update(ue,he,ke,ge)[ie]()}},G=function(j,X,ie,ue){for(var he=0;he>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ie>>5,this.extraBytes=(ie&31)>>3;for(var ue=0;ue<50;++ue)this.s[ue]=0}C.prototype.update=function(j){if(this.finalized)throw new Error(e);var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}for(var ue=this.blocks,he=this.byteCount,ke=j.length,ge=this.blockCount,me=0,Ke=this.s,ve,Ae;me>2]|=j[me]<>2]|=Ae<>2]|=(192|Ae>>6)<>2]|=(128|Ae&63)<=57344?(ue[ve>>2]|=(224|Ae>>12)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<>2]|=(240|Ae>>18)<>2]|=(128|Ae>>12&63)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<=he){for(this.start=ve-he,this.block=ue[ge],ve=0;ve>8,ie=j&255;ie>0;)he.unshift(ie),j=j>>8,ie=j&255,++ue;return X?he.push(ue):he.unshift(ue),this.update(he),he.length},C.prototype.encodeString=function(j){var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}var ue=0,he=j.length;if(X)ue=he;else for(var ke=0;ke=57344?ue+=3:(ge=65536+((ge&1023)<<10|j.charCodeAt(++ke)&1023),ue+=4)}return ue+=this.encode(ue*8),this.update(j),ue},C.prototype.bytepad=function(j,X){for(var ie=this.encode(X),ue=0;ue>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for(j[0]=j[ie],X=1;X>4&15]+u[me&15]+u[me>>12&15]+u[me>>8&15]+u[me>>20&15]+u[me>>16&15]+u[me>>28&15]+u[me>>24&15];ke%j===0&&(ee(X),he=0)}return ue&&(me=X[he],ge+=u[me>>4&15]+u[me&15],ue>1&&(ge+=u[me>>12&15]+u[me>>8&15]),ue>2&&(ge+=u[me>>20&15]+u[me>>16&15])),ge},C.prototype.arrayBuffer=function(){this.finalize();var j=this.blockCount,X=this.s,ie=this.outputBlocks,ue=this.extraBytes,he=0,ke=0,ge=this.outputBits>>3,me;ue?me=new ArrayBuffer(ie+1<<2):me=new ArrayBuffer(ge);for(var Ke=new Uint32Array(me);ke>8&255,ge[me+2]=Ke>>16&255,ge[me+3]=Ke>>24&255;ke%j===0&&ee(X)}return ue&&(me=ke<<2,Ke=X[he],ge[me]=Ke&255,ue>1&&(ge[me+1]=Ke>>8&255),ue>2&&(ge[me+2]=Ke>>16&255)),ge};function z(j,X,ie){C.call(this,j,X,ie)}z.prototype=new C,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),C.prototype.finalize.call(this)};var ee=function(j){var X,ie,ue,he,ke,ge,me,Ke,ve,Ae,lo,It,bt,li,_t,st,di,Nt,dt,po,jt,Bt,sc,ot,pt,Dc,kt,At,Oc,Dt,St,Lc,Pt,Ot,oc,Lt,Ft,Fc,Rt,qt,qc,Mt,Wt,cc,Je,it,uc,Ut,Kt,ol,Gt,Vt,cl,$t,Yt,Bu,on,cn,Wc,Uc,Hc,jc,zc;for(ue=0;ue<48;ue+=2)he=j[0]^j[10]^j[20]^j[30]^j[40],ke=j[1]^j[11]^j[21]^j[31]^j[41],ge=j[2]^j[12]^j[22]^j[32]^j[42],me=j[3]^j[13]^j[23]^j[33]^j[43],Ke=j[4]^j[14]^j[24]^j[34]^j[44],ve=j[5]^j[15]^j[25]^j[35]^j[45],Ae=j[6]^j[16]^j[26]^j[36]^j[46],lo=j[7]^j[17]^j[27]^j[37]^j[47],It=j[8]^j[18]^j[28]^j[38]^j[48],bt=j[9]^j[19]^j[29]^j[39]^j[49],X=It^(ge<<1|me>>>31),ie=bt^(me<<1|ge>>>31),j[0]^=X,j[1]^=ie,j[10]^=X,j[11]^=ie,j[20]^=X,j[21]^=ie,j[30]^=X,j[31]^=ie,j[40]^=X,j[41]^=ie,X=he^(Ke<<1|ve>>>31),ie=ke^(ve<<1|Ke>>>31),j[2]^=X,j[3]^=ie,j[12]^=X,j[13]^=ie,j[22]^=X,j[23]^=ie,j[32]^=X,j[33]^=ie,j[42]^=X,j[43]^=ie,X=ge^(Ae<<1|lo>>>31),ie=me^(lo<<1|Ae>>>31),j[4]^=X,j[5]^=ie,j[14]^=X,j[15]^=ie,j[24]^=X,j[25]^=ie,j[34]^=X,j[35]^=ie,j[44]^=X,j[45]^=ie,X=Ke^(It<<1|bt>>>31),ie=ve^(bt<<1|It>>>31),j[6]^=X,j[7]^=ie,j[16]^=X,j[17]^=ie,j[26]^=X,j[27]^=ie,j[36]^=X,j[37]^=ie,j[46]^=X,j[47]^=ie,X=Ae^(he<<1|ke>>>31),ie=lo^(ke<<1|he>>>31),j[8]^=X,j[9]^=ie,j[18]^=X,j[19]^=ie,j[28]^=X,j[29]^=ie,j[38]^=X,j[39]^=ie,j[48]^=X,j[49]^=ie,li=j[0],_t=j[1],it=j[11]<<4|j[10]>>>28,uc=j[10]<<4|j[11]>>>28,At=j[20]<<3|j[21]>>>29,Oc=j[21]<<3|j[20]>>>29,Uc=j[31]<<9|j[30]>>>23,Hc=j[30]<<9|j[31]>>>23,Mt=j[40]<<18|j[41]>>>14,Wt=j[41]<<18|j[40]>>>14,Ot=j[2]<<1|j[3]>>>31,oc=j[3]<<1|j[2]>>>31,st=j[13]<<12|j[12]>>>20,di=j[12]<<12|j[13]>>>20,Ut=j[22]<<10|j[23]>>>22,Kt=j[23]<<10|j[22]>>>22,Dt=j[33]<<13|j[32]>>>19,St=j[32]<<13|j[33]>>>19,jc=j[42]<<2|j[43]>>>30,zc=j[43]<<2|j[42]>>>30,$t=j[5]<<30|j[4]>>>2,Yt=j[4]<<30|j[5]>>>2,Lt=j[14]<<6|j[15]>>>26,Ft=j[15]<<6|j[14]>>>26,Nt=j[25]<<11|j[24]>>>21,dt=j[24]<<11|j[25]>>>21,ol=j[34]<<15|j[35]>>>17,Gt=j[35]<<15|j[34]>>>17,Lc=j[45]<<29|j[44]>>>3,Pt=j[44]<<29|j[45]>>>3,ot=j[6]<<28|j[7]>>>4,pt=j[7]<<28|j[6]>>>4,Bu=j[17]<<23|j[16]>>>9,on=j[16]<<23|j[17]>>>9,Fc=j[26]<<25|j[27]>>>7,Rt=j[27]<<25|j[26]>>>7,po=j[36]<<21|j[37]>>>11,jt=j[37]<<21|j[36]>>>11,Vt=j[47]<<24|j[46]>>>8,cl=j[46]<<24|j[47]>>>8,cc=j[8]<<27|j[9]>>>5,Je=j[9]<<27|j[8]>>>5,Dc=j[18]<<20|j[19]>>>12,kt=j[19]<<20|j[18]>>>12,cn=j[29]<<7|j[28]>>>25,Wc=j[28]<<7|j[29]>>>25,qt=j[38]<<8|j[39]>>>24,qc=j[39]<<8|j[38]>>>24,Bt=j[48]<<14|j[49]>>>18,sc=j[49]<<14|j[48]>>>18,j[0]=li^~st&Nt,j[1]=_t^~di&dt,j[10]=ot^~Dc&At,j[11]=pt^~kt&Oc,j[20]=Ot^~Lt&Fc,j[21]=oc^~Ft&Rt,j[30]=cc^~it&Ut,j[31]=Je^~uc&Kt,j[40]=$t^~Bu&cn,j[41]=Yt^~on&Wc,j[2]=st^~Nt&po,j[3]=di^~dt&jt,j[12]=Dc^~At&Dt,j[13]=kt^~Oc&St,j[22]=Lt^~Fc&qt,j[23]=Ft^~Rt&qc,j[32]=it^~Ut&ol,j[33]=uc^~Kt&Gt,j[42]=Bu^~cn&Uc,j[43]=on^~Wc&Hc,j[4]=Nt^~po&Bt,j[5]=dt^~jt&sc,j[14]=At^~Dt&Lc,j[15]=Oc^~St&Pt,j[24]=Fc^~qt&Mt,j[25]=Rt^~qc&Wt,j[34]=Ut^~ol&Vt,j[35]=Kt^~Gt&cl,j[44]=cn^~Uc&jc,j[45]=Wc^~Hc&zc,j[6]=po^~Bt&li,j[7]=jt^~sc&_t,j[16]=Dt^~Lc&ot,j[17]=St^~Pt&pt,j[26]=qt^~Mt&Ot,j[27]=qc^~Wt&oc,j[36]=ol^~Vt&cc,j[37]=Gt^~cl&Je,j[46]=Uc^~jc&$t,j[47]=Hc^~zc&Yt,j[8]=Bt^~li&st,j[9]=sc^~_t&di,j[18]=Lc^~ot&Dc,j[19]=Pt^~pt&kt,j[28]=Mt^~Ot&Lt,j[29]=Wt^~oc&Ft,j[38]=Vt^~cc&it,j[39]=cl^~Je&uc,j[48]=jc^~$t&Bu,j[49]=zc^~Yt&on,j[0]^=E[ue],j[1]^=E[ue+1]};if(s)A7.exports=v;else{for(O=0;O{"use strict";d();p();var B7t=h5&&h5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(h5,"__esModule",{value:!0});h5.keccak256=void 0;var D7t=B7t(LK()),O7t=wr();function L7t(r){return"0x"+D7t.default.keccak_256((0,O7t.arrayify)(r))}h5.keccak256=L7t});var cge=x(S7=>{"use strict";d();p();Object.defineProperty(S7,"__esModule",{value:!0});S7.version=void 0;S7.version="rlp/5.7.0"});var P7=x(f5=>{"use strict";d();p();Object.defineProperty(f5,"__esModule",{value:!0});f5.decode=f5.encode=void 0;var tb=wr(),Ym=Zt(),F7t=cge(),wf=new Ym.Logger(F7t.version);function uge(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function lge(r,e,t){for(var n=0,a=0;ae+1+n&&wf.throwError("child data too short",Ym.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function hge(r,e){if(r.length===0&&wf.throwError("data too short",Ym.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&wf.throwError("data short segment too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var n=lge(r,e+1,t);return e+1+t+n>r.length&&wf.throwError("data long segment too short",Ym.Logger.errors.BUFFER_OVERRUN,{}),dge(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&wf.throwError("data array too short",Ym.Logger.errors.BUFFER_OVERRUN,{}),dge(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&wf.throwError("data array too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var i=lge(r,e+1,t);e+1+t+i>r.length&&wf.throwError("data array too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var s=(0,tb.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var o=r[e]-128;e+1+o>r.length&&wf.throwError("data too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var s=(0,tb.hexlify)(r.slice(e+1,e+1+o));return{consumed:1+o,result:s}}return{consumed:1,result:(0,tb.hexlify)(r[e])}}function W7t(r){var e=(0,tb.arrayify)(r),t=hge(e,0);return t.consumed!==e.length&&wf.throwArgumentError("invalid rlp data","data",r),t.result}f5.decode=W7t});var fge=x(R7=>{"use strict";d();p();Object.defineProperty(R7,"__esModule",{value:!0});R7.version=void 0;R7.version="address/5.7.0"});var Md=x(Rd=>{"use strict";d();p();Object.defineProperty(Rd,"__esModule",{value:!0});Rd.getCreate2Address=Rd.getContractAddress=Rd.getIcapAddress=Rd.isAddress=Rd.getAddress=void 0;var Jm=wr(),FK=Ws(),qK=Kl(),U7t=P7(),H7t=Zt(),j7t=fge(),Cy=new H7t.Logger(j7t.version);function mge(r){(0,Jm.isHexString)(r,20)||Cy.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,Jm.arrayify)((0,qK.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var z7t=9007199254740991;function K7t(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var WK={};for(rh=0;rh<10;rh++)WK[String(rh)]=String(rh);var rh;for(rh=0;rh<26;rh++)WK[String.fromCharCode(65+rh)]=String(10+rh);var rh,yge=Math.floor(K7t(z7t));function gge(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return WK[a]}).join("");e.length>=yge;){var t=e.substring(0,yge);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function rb(r){var e=null;if(typeof r!="string"&&Cy.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=mge(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&Cy.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==gge(r)&&Cy.throwArgumentError("bad icap checksum","address",r),e=(0,FK._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=mge("0x"+e)}else Cy.throwArgumentError("invalid address","address",r);return e}Rd.getAddress=rb;function G7t(r){try{return rb(r),!0}catch{}return!1}Rd.isAddress=G7t;function V7t(r){for(var e=(0,FK._base16To36)(rb(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+gge("XE00"+e)+e}Rd.getIcapAddress=V7t;function $7t(r){var e=null;try{e=rb(r.from)}catch{Cy.throwArgumentError("missing from address","transaction",r)}var t=(0,Jm.stripZeros)((0,Jm.arrayify)(FK.BigNumber.from(r.nonce).toHexString()));return rb((0,Jm.hexDataSlice)((0,qK.keccak256)((0,U7t.encode)([e,t])),12))}Rd.getContractAddress=$7t;function Y7t(r,e,t){return(0,Jm.hexDataLength)(e)!==32&&Cy.throwArgumentError("salt must be 32 bytes","salt",e),(0,Jm.hexDataLength)(t)!==32&&Cy.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),rb((0,Jm.hexDataSlice)((0,qK.keccak256)((0,Jm.concat)(["0xff",rb(r),e,t])),12))}Rd.getCreate2Address=Y7t});var vge=x(m5=>{"use strict";d();p();var J7t=m5&&m5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(m5,"__esModule",{value:!0});m5.AddressCoder=void 0;var bge=Md(),Q7t=wr(),Z7t=Pd(),X7t=function(r){J7t(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,bge.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,bge.getAddress)((0,Q7t.hexZeroPad)(t.readValue().toHexString(),20))},e}(Z7t.Coder);m5.AddressCoder=X7t});var wge=x(y5=>{"use strict";d();p();var eRt=y5&&y5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(y5,"__esModule",{value:!0});y5.AnonymousCoder=void 0;var tRt=Pd(),rRt=function(r){eRt(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(tRt.Coder);y5.AnonymousCoder=rRt});var HK=x(_f=>{"use strict";d();p();var nRt=_f&&_f.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_f,"__esModule",{value:!0});_f.ArrayCoder=_f.unpack=_f.pack=void 0;var b5=Zt(),aRt=d5(),g5=new b5.Logger(aRt.version),UK=Pd(),iRt=wge();function _ge(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(u){var l=u.localName;return l||g5.throwError("cannot encode object for signature with missing names",b5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]&&g5.throwError("cannot encode object for signature with duplicate names",b5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]=!0,t[l]})}else g5.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&g5.throwArgumentError("types/value length mismatch","tuple",t);var i=new UK.Writer(r.wordSize),s=new UK.Writer(r.wordSize),o=[];e.forEach(function(u,l){var h=n[l];if(u.dynamic){var f=s.length;u.encode(s,h);var m=i.writeUpdatableValue();o.push(function(y){m(y+f)})}else u.encode(i,h)}),o.forEach(function(u){u(i.length)});var c=r.appendWriter(i);return c+=r.appendWriter(s),c}_f.pack=_ge;function xge(r,e){var t=[],n=r.subReader(0);e.forEach(function(o){var c=null;if(o.dynamic){var u=r.readValue(),l=n.subReader(u.toNumber());try{c=o.decode(l)}catch(h){if(h.code===b5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}}else try{c=o.decode(r)}catch(h){if(h.code===b5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}c!=null&&t.push(c)});var a=e.reduce(function(o,c){var u=c.localName;return u&&(o[u]||(o[u]=0),o[u]++),o},{});e.forEach(function(o,c){var u=o.localName;if(!(!u||a[u]!==1)&&(u==="length"&&(u="_length"),t[u]==null)){var l=t[c];l instanceof Error?Object.defineProperty(t,u,{enumerable:!0,get:function(){throw l}}):t[u]=l}});for(var i=function(o){var c=t[o];c instanceof Error&&Object.defineProperty(t,o,{enumerable:!0,get:function(){throw c}})},s=0;s=0?n:"")+"]",o=n===-1||t.dynamic;return i=r.call(this,"array",s,a,o)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&g5.throwError("insufficient data length",b5.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";d();p();var oRt=v5&&v5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(v5,"__esModule",{value:!0});v5.BooleanCoder=void 0;var cRt=Pd(),uRt=function(r){oRt(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(cRt.Coder);v5.BooleanCoder=uRt});var jK=x(Iy=>{"use strict";d();p();var Ege=Iy&&Iy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Iy,"__esModule",{value:!0});Iy.BytesCoder=Iy.DynamicBytesCoder=void 0;var Cge=wr(),lRt=Pd(),Ige=function(r){Ege(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,Cge.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(lRt.Coder);Iy.DynamicBytesCoder=Ige;var dRt=function(r){Ege(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,Cge.hexlify)(r.prototype.decode.call(this,t)))},e}(Ige);Iy.BytesCoder=dRt});var Age=x(w5=>{"use strict";d();p();var pRt=w5&&w5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(w5,"__esModule",{value:!0});w5.FixedBytesCoder=void 0;var kge=wr(),hRt=Pd(),fRt=function(r){pRt(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,kge.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,kge.hexlify)(t.readBytes(this.size)))},e}(hRt.Coder);w5.FixedBytesCoder=fRt});var Sge=x(_5=>{"use strict";d();p();var mRt=_5&&_5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_5,"__esModule",{value:!0});_5.NullCoder=void 0;var yRt=Pd(),gRt=function(r){mRt(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(yRt.Coder);_5.NullCoder=gRt});var Pge=x(M7=>{"use strict";d();p();Object.defineProperty(M7,"__esModule",{value:!0});M7.AddressZero=void 0;M7.AddressZero="0x0000000000000000000000000000000000000000"});var Rge=x(Ro=>{"use strict";d();p();Object.defineProperty(Ro,"__esModule",{value:!0});Ro.MaxInt256=Ro.MinInt256=Ro.MaxUint256=Ro.WeiPerEther=Ro.Two=Ro.One=Ro.Zero=Ro.NegativeOne=void 0;var ky=Ws(),bRt=ky.BigNumber.from(-1);Ro.NegativeOne=bRt;var vRt=ky.BigNumber.from(0);Ro.Zero=vRt;var wRt=ky.BigNumber.from(1);Ro.One=wRt;var _Rt=ky.BigNumber.from(2);Ro.Two=_Rt;var xRt=ky.BigNumber.from("1000000000000000000");Ro.WeiPerEther=xRt;var TRt=ky.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Ro.MaxUint256=TRt;var ERt=ky.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");Ro.MinInt256=ERt;var CRt=ky.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Ro.MaxInt256=CRt});var Mge=x(N7=>{"use strict";d();p();Object.defineProperty(N7,"__esModule",{value:!0});N7.HashZero=void 0;N7.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var Nge=x(B7=>{"use strict";d();p();Object.defineProperty(B7,"__esModule",{value:!0});B7.EtherSymbol=void 0;B7.EtherSymbol="\u039E"});var nb=x(wi=>{"use strict";d();p();Object.defineProperty(wi,"__esModule",{value:!0});wi.EtherSymbol=wi.HashZero=wi.MaxInt256=wi.MinInt256=wi.MaxUint256=wi.WeiPerEther=wi.Two=wi.One=wi.Zero=wi.NegativeOne=wi.AddressZero=void 0;var IRt=Pge();Object.defineProperty(wi,"AddressZero",{enumerable:!0,get:function(){return IRt.AddressZero}});var Ay=Rge();Object.defineProperty(wi,"NegativeOne",{enumerable:!0,get:function(){return Ay.NegativeOne}});Object.defineProperty(wi,"Zero",{enumerable:!0,get:function(){return Ay.Zero}});Object.defineProperty(wi,"One",{enumerable:!0,get:function(){return Ay.One}});Object.defineProperty(wi,"Two",{enumerable:!0,get:function(){return Ay.Two}});Object.defineProperty(wi,"WeiPerEther",{enumerable:!0,get:function(){return Ay.WeiPerEther}});Object.defineProperty(wi,"MaxUint256",{enumerable:!0,get:function(){return Ay.MaxUint256}});Object.defineProperty(wi,"MinInt256",{enumerable:!0,get:function(){return Ay.MinInt256}});Object.defineProperty(wi,"MaxInt256",{enumerable:!0,get:function(){return Ay.MaxInt256}});var kRt=Mge();Object.defineProperty(wi,"HashZero",{enumerable:!0,get:function(){return kRt.HashZero}});var ARt=Nge();Object.defineProperty(wi,"EtherSymbol",{enumerable:!0,get:function(){return ARt.EtherSymbol}})});var Bge=x(x5=>{"use strict";d();p();var SRt=x5&&x5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x5,"__esModule",{value:!0});x5.NumberCoder=void 0;var PRt=Ws(),D7=nb(),RRt=Pd(),MRt=function(r){SRt(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=PRt.BigNumber.from(n),i=D7.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(D7.One).mul(D7.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(D7.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(RRt.Coder);x5.NumberCoder=MRt});var Dge=x(O7=>{"use strict";d();p();Object.defineProperty(O7,"__esModule",{value:!0});O7.version=void 0;O7.version="strings/5.7.0"});var F7=x(Es=>{"use strict";d();p();Object.defineProperty(Es,"__esModule",{value:!0});Es.toUtf8CodePoints=Es.toUtf8String=Es._toUtf8String=Es._toEscapedUtf8String=Es.toUtf8Bytes=Es.Utf8ErrorFuncs=Es.Utf8ErrorReason=Es.UnicodeNormalizationForm=void 0;var Oge=wr(),NRt=Zt(),BRt=Dge(),Lge=new NRt.Logger(BRt.version),L7;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(L7=Es.UnicodeNormalizationForm||(Es.UnicodeNormalizationForm={}));var Nd;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Nd=Es.Utf8ErrorReason||(Es.Utf8ErrorReason={}));function DRt(r,e,t,n,a){return Lge.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function Fge(r,e,t,n,a){if(r===Nd.BAD_PREFIX||r===Nd.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===Nd.OVERRUN?t.length-e-1:0}function ORt(r,e,t,n,a){return r===Nd.OVERLONG?(n.push(a),0):(n.push(65533),Fge(r,e,t,n,a))}Es.Utf8ErrorFuncs=Object.freeze({error:DRt,ignore:Fge,replace:ORt});function KK(r,e){e==null&&(e=Es.Utf8ErrorFuncs.error),r=(0,Oge.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(Nd.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(Nd.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(Nd.OVERRUN,n-1,r,t);continue}for(var o=a&(1<<8-i-1)-1,c=0;c1114111){n+=e(Nd.OUT_OF_RANGE,n-1-i,r,t,o);continue}if(o>=55296&&o<=57343){n+=e(Nd.UTF16_SURROGATE,n-1-i,r,t,o);continue}if(o<=s){n+=e(Nd.OVERLONG,n-1-i,r,t,o);continue}t.push(o)}}return t}function qge(r,e){e===void 0&&(e=L7.current),e!=L7.current&&(Lge.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,Oge.arrayify)(t)}Es.toUtf8Bytes=qge;function zK(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function LRt(r,e){return'"'+KK(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?zK(t):(t-=65536,zK((t>>10&1023)+55296)+zK((t&1023)+56320))}).join("")+'"'}Es._toEscapedUtf8String=LRt;function Wge(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}Es._toUtf8String=Wge;function FRt(r,e){return Wge(KK(r,e))}Es.toUtf8String=FRt;function qRt(r,e){return e===void 0&&(e=L7.current),KK(qge(r,e))}Es.toUtf8CodePoints=qRt});var Hge=x(T5=>{"use strict";d();p();Object.defineProperty(T5,"__esModule",{value:!0});T5.parseBytes32String=T5.formatBytes32String=void 0;var WRt=nb(),GK=wr(),Uge=F7();function URt(r){var e=(0,Uge.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,GK.hexlify)((0,GK.concat)([e,WRt.HashZero]).slice(0,32))}T5.formatBytes32String=URt;function HRt(r){var e=(0,GK.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,Uge.toUtf8String)(e.slice(0,t))}T5.parseBytes32String=HRt});var Vge=x(xf=>{"use strict";d();p();Object.defineProperty(xf,"__esModule",{value:!0});xf.nameprep=xf._nameprepTableC=xf._nameprepTableB2=xf._nameprepTableA1=void 0;var DE=F7();function jRt(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var zRt=jge("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),KRt="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),GRt=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],VRt=VK("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),$Rt=VK("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),YRt=VK("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",jRt),JRt=jge("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function QRt(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function zge(r){return!!$K(r,zRt)}xf._nameprepTableA1=zge;function Kge(r){var e=$K(r,GRt);if(e)return[r+e.s];var t=VRt[r];if(t)return t;var n=$Rt[r];if(n)return[r+n[0]];var a=YRt[r];return a||null}xf._nameprepTableB2=Kge;function Gge(r){return!!$K(r,JRt)}xf._nameprepTableC=Gge;function ZRt(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,DE.toUtf8CodePoints)(r);e=QRt(e.map(function(n){if(KRt.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=Kge(n);return a||[n]})),e=(0,DE.toUtf8CodePoints)((0,DE._toUtf8String)(e),DE.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(Gge(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(zge(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,DE._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}xf.nameprep=ZRt});var Hs=x(ss=>{"use strict";d();p();Object.defineProperty(ss,"__esModule",{value:!0});ss.nameprep=ss.parseBytes32String=ss.formatBytes32String=ss.UnicodeNormalizationForm=ss.Utf8ErrorReason=ss.Utf8ErrorFuncs=ss.toUtf8String=ss.toUtf8CodePoints=ss.toUtf8Bytes=ss._toEscapedUtf8String=void 0;var $ge=Hge();Object.defineProperty(ss,"formatBytes32String",{enumerable:!0,get:function(){return $ge.formatBytes32String}});Object.defineProperty(ss,"parseBytes32String",{enumerable:!0,get:function(){return $ge.parseBytes32String}});var XRt=Vge();Object.defineProperty(ss,"nameprep",{enumerable:!0,get:function(){return XRt.nameprep}});var ab=F7();Object.defineProperty(ss,"_toEscapedUtf8String",{enumerable:!0,get:function(){return ab._toEscapedUtf8String}});Object.defineProperty(ss,"toUtf8Bytes",{enumerable:!0,get:function(){return ab.toUtf8Bytes}});Object.defineProperty(ss,"toUtf8CodePoints",{enumerable:!0,get:function(){return ab.toUtf8CodePoints}});Object.defineProperty(ss,"toUtf8String",{enumerable:!0,get:function(){return ab.toUtf8String}});Object.defineProperty(ss,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return ab.UnicodeNormalizationForm}});Object.defineProperty(ss,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return ab.Utf8ErrorFuncs}});Object.defineProperty(ss,"Utf8ErrorReason",{enumerable:!0,get:function(){return ab.Utf8ErrorReason}})});var Jge=x(E5=>{"use strict";d();p();var e9t=E5&&E5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E5,"__esModule",{value:!0});E5.StringCoder=void 0;var Yge=Hs(),t9t=jK(),r9t=function(r){e9t(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,Yge.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,Yge.toUtf8String)(r.prototype.decode.call(this,t))},e}(t9t.DynamicBytesCoder);E5.StringCoder=r9t});var Zge=x(C5=>{"use strict";d();p();var n9t=C5&&C5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C5,"__esModule",{value:!0});C5.TupleCoder=void 0;var a9t=Pd(),Qge=HK(),i9t=function(r){n9t(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(c){c.dynamic&&(i=!0),s.push(c.type)});var o="tuple("+s.join(",")+")";return a=r.call(this,"tuple",o,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,Qge.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,Qge.unpack)(t,this.coders))},e}(a9t.Coder);C5.TupleCoder=i9t});var JK=x(I5=>{"use strict";d();p();Object.defineProperty(I5,"__esModule",{value:!0});I5.defaultAbiCoder=I5.AbiCoder=void 0;var s9t=wr(),o9t=Aa(),ebe=Zt(),c9t=d5(),q7=new ebe.Logger(c9t.version),Xge=Pd(),u9t=vge(),l9t=HK(),d9t=Tge(),p9t=jK(),h9t=Age(),f9t=Sge(),m9t=Bge(),y9t=Jge(),W7=Zge(),YK=k7(),g9t=new RegExp(/^bytes([0-9]*)$/),b9t=new RegExp(/^(u?int)([0-9]*)$/),tbe=function(){function r(e){(0,o9t.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new u9t.AddressCoder(e.name);case"bool":return new d9t.BooleanCoder(e.name);case"string":return new y9t.StringCoder(e.name);case"bytes":return new p9t.BytesCoder(e.name);case"array":return new l9t.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new W7.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new f9t.NullCoder(e.name)}var n=e.type.match(b9t);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&q7.throwArgumentError("invalid "+n[1]+" bit length","param",e),new m9t.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(g9t),n){var a=parseInt(n[1]);return(a===0||a>32)&&q7.throwArgumentError("invalid bytes length","param",e),new h9t.FixedBytesCoder(a,e.name)}return q7.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new Xge.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new Xge.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(YK.ParamType.from(i))}),a=new W7.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&q7.throwError("types/values length mismatch",ebe.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(o){return n._getCoder(YK.ParamType.from(o))}),i=new W7.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(o){return a._getCoder(YK.ParamType.from(o))}),s=new W7.TupleCoder(i,"_");return s.decode(this._getReader((0,s9t.arrayify)(t),n))},r}();I5.AbiCoder=tbe;I5.defaultAbiCoder=new tbe});var QK=x(U7=>{"use strict";d();p();Object.defineProperty(U7,"__esModule",{value:!0});U7.id=void 0;var v9t=Kl(),w9t=Hs();function _9t(r){return(0,v9t.keccak256)((0,w9t.toUtf8Bytes)(r))}U7.id=_9t});var ZK=x(H7=>{"use strict";d();p();Object.defineProperty(H7,"__esModule",{value:!0});H7.version=void 0;H7.version="hash/5.7.0"});var nbe=x(k5=>{"use strict";d();p();Object.defineProperty(k5,"__esModule",{value:!0});k5.encode=k5.decode=void 0;var rbe=wr();function x9t(r){r=atob(r);for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(A5,"__esModule",{value:!0});A5.encode=A5.decode=void 0;var abe=nbe();Object.defineProperty(A5,"decode",{enumerable:!0,get:function(){return abe.decode}});Object.defineProperty(A5,"encode",{enumerable:!0,get:function(){return abe.encode}})});var eG=x(Mo=>{"use strict";d();p();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.read_emoji_trie=Mo.read_zero_terminated_array=Mo.read_mapped_map=Mo.read_member_array=Mo.signed=Mo.read_compressed_payload=Mo.read_payload=Mo.decode_arithmetic=void 0;function sbe(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(o){s>0&&Array.isArray(o)?a(o,s-1):t.push(o)})};return a(r,e),t}function E9t(r){for(var e={},t=0;t>--u&1}for(var f=31,m=Math.pow(2,f),y=m>>>1,E=y>>1,I=m-1,S=0,s=0;s1;){var G=K+H>>>1;V>>1|h(),J=J<<1^y,F=(F^y)<<1|y|1;q=J,W=1+F-J}var T=n-4;return L.map(function(P){switch(P-T){case 3:return T+65792+(r[c++]<<16|r[c++]<<8|r[c++]);case 2:return T+256+(r[c++]<<8|r[c++]);case 1:return T+r[c++];default:return P-1}})}Mo.decode_arithmetic=obe;function cbe(r){var e=0;return function(){return r[e++]}}Mo.read_payload=cbe;function C9t(r){return cbe(obe(r))}Mo.read_compressed_payload=C9t;function ube(r){return r&1?~r>>1:r>>1}Mo.signed=ube;function I9t(r,e){for(var t=Array(r),n=0;n>=1;var c=i==1,u=i==2;return{branches:n,valid:s,fe0f:o,save:c,check:u}}}Mo.read_emoji_trie=R9t});var pbe=x(j7=>{"use strict";d();p();Object.defineProperty(j7,"__esModule",{value:!0});j7.getData=void 0;var M9t=OE(),N9t=eG();function B9t(){return(0,N9t.read_compressed_payload)((0,M9t.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}j7.getData=B9t});var ybe=x(S5=>{"use strict";d();p();Object.defineProperty(S5,"__esModule",{value:!0});S5.ens_normalize=S5.ens_normalize_post_check=void 0;var D9t=Hs(),O9t=pbe(),z7=(0,O9t.getData)(),K7=eG(),L9t=new Set((0,K7.read_member_array)(z7)),F9t=new Set((0,K7.read_member_array)(z7)),q9t=(0,K7.read_mapped_map)(z7),W9t=(0,K7.read_emoji_trie)(z7),hbe=45,fbe=95;function mbe(r){return(0,D9t.toUtf8CodePoints)(r)}function U9t(r){return r.filter(function(e){return e!=65039})}function tG(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==fbe)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===hbe&&a[3]===hbe)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}S5.ens_normalize_post_check=tG;function H9t(r){return tG(j9t(r,U9t))}S5.ens_normalize=H9t;function j9t(r,e){for(var t=mbe(r).reverse(),n=[];t.length;){var a=K9t(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if(L9t.has(i)){n.push(i);continue}if(!F9t.has(i)){var s=q9t[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return tG(z9t(String.fromCodePoint.apply(String,n)))}function z9t(r){return r.normalize("NFC")}function K9t(r,e){var t,n=W9t,a,i,s=[],o=r.length;e&&(e.length=0);for(var c=function(){var l=r[--o];if(n=(t=n.branches.find(function(h){return h.set.has(l)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=l;else if(n.check&&l===i)return"break";s.push(l),n.fe0f&&(s.push(65039),o>0&&r[o-1]==65039&&o--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(o).reverse()),r.length=o)};o;){var u=c();if(u==="break")break}return a}});var rG=x(Tf=>{"use strict";d();p();Object.defineProperty(Tf,"__esModule",{value:!0});Tf.dnsEncode=Tf.namehash=Tf.isValidName=Tf.ensNormalize=void 0;var G7=wr(),vbe=Hs(),gbe=Kl(),G9t=Zt(),V9t=ZK(),$9t=new G9t.Logger(V9t.version),Y9t=ybe(),wbe=new Uint8Array(32);wbe.fill(0);function bbe(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function V7(r){var e=(0,vbe.toUtf8Bytes)((0,Y9t.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(bbe(e.slice(n))),t}function J9t(r){return V7(r).map(function(e){return(0,vbe.toUtf8String)(e)}).join(".")}Tf.ensNormalize=J9t;function Q9t(r){try{return V7(r).length!==0}catch{}return!1}Tf.isValidName=Q9t;function Z9t(r){typeof r!="string"&&$9t.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=wbe,t=V7(r);t.length;)e=(0,gbe.keccak256)((0,G7.concat)([e,(0,gbe.keccak256)(t.pop())]));return(0,G7.hexlify)(e)}Tf.namehash=Z9t;function X9t(r){return(0,G7.hexlify)((0,G7.concat)(V7(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}Tf.dnsEncode=X9t});var _be=x(ib=>{"use strict";d();p();Object.defineProperty(ib,"__esModule",{value:!0});ib.hashMessage=ib.messagePrefix=void 0;var eMt=wr(),tMt=Kl(),nG=Hs();ib.messagePrefix=`Ethereum Signed Message: -`;function rMt(r){return typeof r=="string"&&(r=(0,nG.toUtf8Bytes)(r)),(0,tMt.keccak256)((0,eMt.concat)([(0,nG.toUtf8Bytes)(ib.messagePrefix),(0,nG.toUtf8Bytes)(String(r.length)),r]))}ib.hashMessage=rMt});var Pbe=x(Sy=>{"use strict";d();p();var nMt=Sy&&Sy.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},aMt=Sy&&Sy.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]256||e[2]&&e[2]!==String(n))&&Vi.throwArgumentError("invalid numeric width","type",r);var a=cMt.mask(t?n-1:n),i=t?a.add(Sbe).mul(oMt):Abe;return function(o){var c=ob.BigNumber.from(o);return(c.lt(i)||c.gt(a))&&Vi.throwArgumentError("value out-of-bounds for "+r,"value",o),(0,dc.hexZeroPad)(c.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Vi.throwArgumentError("invalid bytes width","type",r),function(c){var u=(0,dc.arrayify)(c);return u.length!==s&&Vi.throwArgumentError("invalid length for "+r,"value",c),uMt(c)}}}switch(r){case"address":return function(o){return(0,dc.hexZeroPad)((0,Cbe.getAddress)(o),32)};case"bool":return function(o){return o?lMt:dMt};case"bytes":return function(o){return(0,P5.keccak256)(o)};case"string":return function(o){return(0,Ibe.id)(o)}}return null}function Ebe(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var hMt=function(){function r(e){(0,sb.defineReadOnly)(this,"types",Object.freeze((0,sb.deepCopy)(e))),(0,sb.defineReadOnly)(this,"_encoderCache",{}),(0,sb.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(h){t[h]={},n[h]=[],a[h]={}});var i=function(h){var f={};e[h].forEach(function(m){f[m.name]&&Vi.throwArgumentError("duplicate variable name "+JSON.stringify(m.name)+" in "+JSON.stringify(h),"types",e),f[m.name]=!0;var y=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===h&&Vi.throwArgumentError("circular type reference to "+JSON.stringify(y),"types",e);var E=iG(y);E||(n[y]||Vi.throwArgumentError("unknown type "+JSON.stringify(y),"types",e),n[y].push(h),t[h][y]=!0)})};for(var s in e)i(s);var o=Object.keys(n).filter(function(h){return n[h].length===0});o.length===0?Vi.throwArgumentError("missing primary type","types",e):o.length>1&&Vi.throwArgumentError("ambiguous primary types or unused types: "+o.map(function(h){return JSON.stringify(h)}).join(", "),"types",e),(0,sb.defineReadOnly)(this,"primaryType",o[0]);function c(h,f){f[h]&&Vi.throwArgumentError("circular type reference to "+JSON.stringify(h),"types",e),f[h]=!0,Object.keys(t[h]).forEach(function(m){!n[m]||(c(m,f),Object.keys(f).forEach(function(y){a[y][m]=!0}))}),delete f[h]}c(this.primaryType,{});for(var u in a){var l=Object.keys(a[u]);l.sort(),this._types[u]=Ebe(u,e[u])+l.map(function(h){return Ebe(h,e[h])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=iG(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),o=parseInt(a[3]);return function(l){o>=0&&l.length!==o&&Vi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);var h=l.map(s);return t._types[i]&&(h=h.map(P5.keccak256)),(0,P5.keccak256)((0,dc.hexConcat)(h))}}var c=this.types[e];if(c){var u=(0,Ibe.id)(this._types[e]);return function(l){var h=c.map(function(f){var m=f.name,y=f.type,E=t.getEncoder(y)(l[m]);return t._types[y]?(0,P5.keccak256)(E):E});return h.unshift(u),(0,dc.hexConcat)(h)}}return Vi.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Vi.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,P5.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=iG(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var o=s[1],c=parseInt(s[3]);return c>=0&&t.length!==c&&Vi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(l){return a._visit(o,l,n)})}var u=this.types[e];return u?u.reduce(function(l,h){var f=h.name,m=h.type;return l[f]=a._visit(m,t[f],n),l},{}):Vi.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=xbe[n];a||Vi.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return aG.indexOf(i.name)-aG.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,dc.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,P5.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return nMt(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f;return aMt(this,function(m){switch(m.label){case 0:e=(0,sb.shallowCopy)(e),i={},e.verifyingContract&&!(0,dc.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(y,E){return y==="address"&&!(0,dc.isHexString)(E,20)&&(i[E]="0x"),E}),o=[];for(c in i)o.push(c);u=0,m.label=1;case 1:return u{"use strict";d();p();Object.defineProperty(No,"__esModule",{value:!0});No._TypedDataEncoder=No.hashMessage=No.messagePrefix=No.ensNormalize=No.isValidName=No.namehash=No.dnsEncode=No.id=void 0;var fMt=QK();Object.defineProperty(No,"id",{enumerable:!0,get:function(){return fMt.id}});var sG=rG();Object.defineProperty(No,"dnsEncode",{enumerable:!0,get:function(){return sG.dnsEncode}});Object.defineProperty(No,"isValidName",{enumerable:!0,get:function(){return sG.isValidName}});Object.defineProperty(No,"namehash",{enumerable:!0,get:function(){return sG.namehash}});var Rbe=_be();Object.defineProperty(No,"hashMessage",{enumerable:!0,get:function(){return Rbe.hashMessage}});Object.defineProperty(No,"messagePrefix",{enumerable:!0,get:function(){return Rbe.messagePrefix}});var mMt=rG();Object.defineProperty(No,"ensNormalize",{enumerable:!0,get:function(){return mMt.ensNormalize}});var yMt=Pbe();Object.defineProperty(No,"_TypedDataEncoder",{enumerable:!0,get:function(){return yMt.TypedDataEncoder}})});var Fbe=x(Vc=>{"use strict";d();p();var J7=Vc&&Vc.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Interface=Vc.Indexed=Vc.ErrorDescription=Vc.TransactionDescription=Vc.LogDescription=Vc.checkResultErrors=void 0;var gMt=Md(),Mbe=Ws(),_i=wr(),$7=cb(),Nbe=Kl(),pc=Aa(),bMt=JK(),vMt=Pd();Object.defineProperty(Vc,"checkResultErrors",{enumerable:!0,get:function(){return vMt.checkResultErrors}});var Qm=k7(),Y7=Zt(),wMt=d5(),$i=new Y7.Logger(wMt.version),Dbe=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.LogDescription=Dbe;var Obe=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.TransactionDescription=Obe;var Lbe=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.ErrorDescription=Lbe;var oG=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(pc.Description);Vc.Indexed=oG;var _Mt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Bbe(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var xMt=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,pc.defineReadOnly)(this,"fragments",a.map(function(i){return Qm.Fragment.from(i)}).filter(function(i){return i!=null})),(0,pc.defineReadOnly)(this,"_abiCoder",(0,pc.getStatic)(t,"getAbiCoder")()),(0,pc.defineReadOnly)(this,"functions",{}),(0,pc.defineReadOnly)(this,"errors",{}),(0,pc.defineReadOnly)(this,"events",{}),(0,pc.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){$i.warn("duplicate definition - constructor");return}(0,pc.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var o=i.format();if(s[o]){$i.warn("duplicate definition - "+o);return}s[o]=i}),this.deploy||(0,pc.defineReadOnly)(this,"deploy",Qm.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,pc.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=Qm.FormatTypes.full),e===Qm.FormatTypes.sighash&&$i.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===Qm.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return bMt.defaultAbiCoder},r.getAddress=function(e){return(0,gMt.getAddress)(e)},r.getSighash=function(e){return(0,_i.hexDataSlice)((0,$7.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,$7.id)(e.format())},r.prototype.getFunction=function(e){if((0,_i.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];$i.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?$i.throwArgumentError("no matching function","name",n):a.length>1&&$i.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[Qm.FunctionFragment.fromString(e).format()];return i||$i.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,_i.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];$i.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(o){return o.split("(")[0]===a});return i.length===0?$i.throwArgumentError("no matching event","name",a):i.length>1&&$i.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[Qm.EventFragment.fromString(e).format()];return s||$i.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,_i.isHexString)(e)){var t=(0,pc.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}$i.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(c){return c.split("(")[0]===i});return s.length===0?$i.throwArgumentError("no matching error","name",i):s.length>1&&$i.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var o=this.errors[Qm.FunctionFragment.fromString(e).format()];return o||$i.throwArgumentError("no matching error","signature",e),o},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,pc.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,pc.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,_i.arrayify)(t);return(0,_i.hexlify)(n.slice(0,4))!==this.getSighash(e)&&$i.throwArgumentError("data signature does not match error "+e.name+".","data",(0,_i.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,_i.hexlify)((0,_i.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,_i.arrayify)(t);return(0,_i.hexlify)(n.slice(0,4))!==this.getSighash(e)&&$i.throwArgumentError("data signature does not match function "+e.name+".","data",(0,_i.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,_i.hexlify)((0,_i.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,_i.arrayify)(t),a=null,i="",s=null,o=null,c=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var u=(0,_i.hexlify)(n.slice(0,4)),l=_Mt[u];if(l)s=this._abiCoder.decode(l.inputs,n.slice(4)),o=l.name,c=l.signature,l.reason&&(a=s[0]),o==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):o==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var h=this.getError(u);s=this._abiCoder.decode(h.inputs,n.slice(4)),o=h.name,c=h.format()}catch{}break}}return $i.throwError("call revert exception"+i,Y7.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,_i.hexlify)(t),errorArgs:s,errorName:o,errorSignature:c,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,_i.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&$i.throwError("too many arguments for "+e.format(),Y7.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,o){return s.type==="string"?(0,$7.id)(o):s.type==="bytes"?(0,Nbe.keccak256)((0,_i.hexlify)(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=Mbe.BigNumber.from(o).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[o]),(0,_i.hexZeroPad)((0,_i.hexlify)(o),32))};for(t.forEach(function(s,o){var c=e.inputs[o];if(!c.indexed){s!=null&&$i.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,s);return}s==null?a.push(null):c.baseType==="array"||c.baseType==="tuple"?$i.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,s):Array.isArray(s)?a.push(s.map(function(u){return i(c,u)})):a.push(i(c,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&$i.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(o,c){var u=t[c];if(o.indexed)if(o.type==="string")a.push((0,$7.id)(u));else if(o.type==="bytes")a.push((0,Nbe.keccak256)(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([o.type],[u]))}else i.push(o),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,_i.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&$i.throwError("fragment/topic mismatch",Y7.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],o=[];e.inputs.forEach(function(E,I){E.indexed?E.type==="string"||E.type==="bytes"||E.baseType==="tuple"||E.baseType==="array"?(i.push(Qm.ParamType.fromObject({type:"bytes32",name:E.name})),o.push(!0)):(i.push(E),o.push(!1)):(s.push(E),o.push(!1))});var c=n!=null?this._abiCoder.decode(i,(0,_i.concat)(n)):null,u=this._abiCoder.decode(s,t,!0),l=[],h=0,f=0;e.inputs.forEach(function(E,I){if(E.indexed)if(c==null)l[I]=new oG({_isIndexed:!0,hash:null});else if(o[I])l[I]=new oG({_isIndexed:!0,hash:c[f++]});else try{l[I]=c[f++]}catch(L){l[I]=L}else try{l[I]=u[h++]}catch(L){l[I]=L}if(E.name&&l[E.name]==null){var S=l[I];S instanceof Error?Object.defineProperty(l,E.name,{enumerable:!0,get:function(){throw Bbe("property "+JSON.stringify(E.name),S)}}):l[E.name]=S}});for(var m=function(E){var I=l[E];I instanceof Error&&Object.defineProperty(l,E,{enumerable:!0,get:function(){throw Bbe("index "+E,I)}})},y=0;y{"use strict";d();p();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TransactionDescription=Sa.LogDescription=Sa.checkResultErrors=Sa.Indexed=Sa.Interface=Sa.defaultAbiCoder=Sa.AbiCoder=Sa.FormatTypes=Sa.ParamType=Sa.FunctionFragment=Sa.Fragment=Sa.EventFragment=Sa.ErrorFragment=Sa.ConstructorFragment=void 0;var ub=k7();Object.defineProperty(Sa,"ConstructorFragment",{enumerable:!0,get:function(){return ub.ConstructorFragment}});Object.defineProperty(Sa,"ErrorFragment",{enumerable:!0,get:function(){return ub.ErrorFragment}});Object.defineProperty(Sa,"EventFragment",{enumerable:!0,get:function(){return ub.EventFragment}});Object.defineProperty(Sa,"FormatTypes",{enumerable:!0,get:function(){return ub.FormatTypes}});Object.defineProperty(Sa,"Fragment",{enumerable:!0,get:function(){return ub.Fragment}});Object.defineProperty(Sa,"FunctionFragment",{enumerable:!0,get:function(){return ub.FunctionFragment}});Object.defineProperty(Sa,"ParamType",{enumerable:!0,get:function(){return ub.ParamType}});var qbe=JK();Object.defineProperty(Sa,"AbiCoder",{enumerable:!0,get:function(){return qbe.AbiCoder}});Object.defineProperty(Sa,"defaultAbiCoder",{enumerable:!0,get:function(){return qbe.defaultAbiCoder}});var LE=Fbe();Object.defineProperty(Sa,"checkResultErrors",{enumerable:!0,get:function(){return LE.checkResultErrors}});Object.defineProperty(Sa,"Indexed",{enumerable:!0,get:function(){return LE.Indexed}});Object.defineProperty(Sa,"Interface",{enumerable:!0,get:function(){return LE.Interface}});Object.defineProperty(Sa,"LogDescription",{enumerable:!0,get:function(){return LE.LogDescription}});Object.defineProperty(Sa,"TransactionDescription",{enumerable:!0,get:function(){return LE.TransactionDescription}})});var Wbe=x(Q7=>{"use strict";d();p();Object.defineProperty(Q7,"__esModule",{value:!0});Q7.version=void 0;Q7.version="abstract-provider/5.7.0"});var R5=x(Bo=>{"use strict";d();p();var X7=Bo&&Bo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),TMt=Bo&&Bo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},EMt=Bo&&Bo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(tR,"__esModule",{value:!0});tR.version=void 0;tR.version="abstract-signer/5.7.0"});var qE=x(Dd=>{"use strict";d();p();var MMt=Dd&&Dd.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nh=Dd&&Dd.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},ah=Dd&&Dd.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0)throw c;return Bd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Zm.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:c,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(c){return c[1]!==0&&c[0]!==c[1]&&Bd.throwArgumentError("chainId address mismatch","transaction",e),c[0]}),[4,(0,Py.resolveProperties)(t)];case 6:return[2,o.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||Bd.throwError("missing provider",Zm.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Dd.Signer=Hbe;var OMt=function(r){MMt(e,r);function e(t,n){var a=r.call(this)||this;return(0,Py.defineReadOnly)(a,"address",t),(0,Py.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){Bd.throwError(t,Zm.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(Hbe);Dd.VoidSigner=OMt});var jbe=x((Jxn,LMt)=>{LMt.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var ho=x((zbe,lG)=>{d();p();(function(r,e){"use strict";function t(F,T){if(!F)throw new Error(T||"Assertion failed")}function n(F,T){F.super_=T;var P=function(){};P.prototype=T.prototype,F.prototype=new P,F.prototype.constructor=F}function a(F,T,P){if(a.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((T==="le"||T==="be")&&(P=T,T=10),this._init(F||0,T||10,P||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=lc().Buffer}catch{}a.isBN=function(T){return T instanceof a?!0:T!==null&&typeof T=="object"&&T.constructor.wordSize===a.wordSize&&Array.isArray(T.words)},a.max=function(T,P){return T.cmp(P)>0?T:P},a.min=function(T,P){return T.cmp(P)<0?T:P},a.prototype._init=function(T,P,A){if(typeof T=="number")return this._initNumber(T,P,A);if(typeof T=="object")return this._initArray(T,P,A);P==="hex"&&(P=16),t(P===(P|0)&&P>=2&&P<=36),T=T.toString().replace(/\s+/g,"");var v=0;T[0]==="-"&&(v++,this.negative=1),v=0;v-=3)O=T[v]|T[v-1]<<8|T[v-2]<<16,this.words[k]|=O<>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);else if(A==="le")for(v=0,k=0;v>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);return this.strip()};function s(F,T){var P=F.charCodeAt(T);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function o(F,T,P){var A=s(F,P);return P-1>=T&&(A|=s(F,P-1)<<4),A}a.prototype._parseHex=function(T,P,A){this.length=Math.ceil((T.length-P)/6),this.words=new Array(this.length);for(var v=0;v=P;v-=2)D=o(T,P,v)<=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8;else{var B=T.length-P;for(v=B%2===0?P+1:P;v=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8}this.strip()};function c(F,T,P,A){for(var v=0,k=Math.min(F.length,P),O=T;O=49?v+=D-49+10:D>=17?v+=D-17+10:v+=D}return v}a.prototype._parseBase=function(T,P,A){this.words=[0],this.length=1;for(var v=0,k=1;k<=67108863;k*=P)v++;v--,k=k/P|0;for(var O=T.length-A,D=O%v,B=Math.min(O,O-D)+A,_=0,N=A;N1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(T,P){T=T||10,P=P|0||1;var A;if(T===16||T==="hex"){A="";for(var v=0,k=0,O=0;O>>24-v&16777215,k!==0||O!==this.length-1?A=u[6-B.length]+B+A:A=B+A,v+=2,v>=26&&(v-=26,O--)}for(k!==0&&(A=k.toString(16)+A);A.length%P!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(T===(T|0)&&T>=2&&T<=36){var _=l[T],N=h[T];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var C=U.modn(N).toString(T);U=U.idivn(N),U.isZero()?A=C+A:A=u[_-C.length]+C+A}for(this.isZero()&&(A="0"+A);A.length%P!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(T,P){return t(typeof i<"u"),this.toArrayLike(i,T,P)},a.prototype.toArray=function(T,P){return this.toArrayLike(Array,T,P)},a.prototype.toArrayLike=function(T,P,A){var v=this.byteLength(),k=A||Math.max(1,v);t(v<=k,"byte array longer than desired length"),t(k>0,"Requested array length <= 0"),this.strip();var O=P==="le",D=new T(k),B,_,N=this.clone();if(O){for(_=0;!N.isZero();_++)B=N.andln(255),N.iushrn(8),D[_]=B;for(;_=4096&&(A+=13,P>>>=13),P>=64&&(A+=7,P>>>=7),P>=8&&(A+=4,P>>>=4),P>=2&&(A+=2,P>>>=2),A+P},a.prototype._zeroBits=function(T){if(T===0)return 26;var P=T,A=0;return(P&8191)===0&&(A+=13,P>>>=13),(P&127)===0&&(A+=7,P>>>=7),(P&15)===0&&(A+=4,P>>>=4),(P&3)===0&&(A+=2,P>>>=2),(P&1)===0&&A++,A},a.prototype.bitLength=function(){var T=this.words[this.length-1],P=this._countBits(T);return(this.length-1)*26+P};function f(F){for(var T=new Array(F.bitLength()),P=0;P>>v}return T}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,P=0;PT.length?this.clone().ior(T):T.clone().ior(this)},a.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},a.prototype.iuand=function(T){var P;this.length>T.length?P=T:P=this;for(var A=0;AT.length?this.clone().iand(T):T.clone().iand(this)},a.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},a.prototype.iuxor=function(T){var P,A;this.length>T.length?(P=this,A=T):(P=T,A=this);for(var v=0;vT.length?this.clone().ixor(T):T.clone().ixor(this)},a.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},a.prototype.inotn=function(T){t(typeof T=="number"&&T>=0);var P=Math.ceil(T/26)|0,A=T%26;this._expand(P),A>0&&P--;for(var v=0;v0&&(this.words[v]=~this.words[v]&67108863>>26-A),this.strip()},a.prototype.notn=function(T){return this.clone().inotn(T)},a.prototype.setn=function(T,P){t(typeof T=="number"&&T>=0);var A=T/26|0,v=T%26;return this._expand(A+1),P?this.words[A]=this.words[A]|1<T.length?(A=this,v=T):(A=T,v=this);for(var k=0,O=0;O>>26;for(;k!==0&&O>>26;if(this.length=A.length,k!==0)this.words[this.length]=k,this.length++;else if(A!==this)for(;OT.length?this.clone().iadd(T):T.clone().iadd(this)},a.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var P=this.iadd(T);return T.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var A=this.cmp(T);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,k;A>0?(v=this,k=T):(v=T,k=this);for(var O=0,D=0;D>26,this.words[D]=P&67108863;for(;O!==0&&D>26,this.words[D]=P&67108863;if(O===0&&D>>26,U=B&67108863,C=Math.min(_,T.length-1),z=Math.max(0,_-F.length+1);z<=C;z++){var ee=_-z|0;v=F.words[ee]|0,k=T.words[z]|0,O=v*k+U,N+=O/67108864|0,U=O&67108863}P.words[_]=U|0,B=N|0}return B!==0?P.words[_]=B|0:P.length--,P.strip()}var y=function(T,P,A){var v=T.words,k=P.words,O=A.words,D=0,B,_,N,U=v[0]|0,C=U&8191,z=U>>>13,ee=v[1]|0,j=ee&8191,X=ee>>>13,ie=v[2]|0,ue=ie&8191,he=ie>>>13,ke=v[3]|0,ge=ke&8191,me=ke>>>13,Ke=v[4]|0,ve=Ke&8191,Ae=Ke>>>13,lo=v[5]|0,It=lo&8191,bt=lo>>>13,li=v[6]|0,_t=li&8191,st=li>>>13,di=v[7]|0,Nt=di&8191,dt=di>>>13,po=v[8]|0,jt=po&8191,Bt=po>>>13,sc=v[9]|0,ot=sc&8191,pt=sc>>>13,Dc=k[0]|0,kt=Dc&8191,At=Dc>>>13,Oc=k[1]|0,Dt=Oc&8191,St=Oc>>>13,Lc=k[2]|0,Pt=Lc&8191,Ot=Lc>>>13,oc=k[3]|0,Lt=oc&8191,Ft=oc>>>13,Fc=k[4]|0,Rt=Fc&8191,qt=Fc>>>13,qc=k[5]|0,Mt=qc&8191,Wt=qc>>>13,cc=k[6]|0,Je=cc&8191,it=cc>>>13,uc=k[7]|0,Ut=uc&8191,Kt=uc>>>13,ol=k[8]|0,Gt=ol&8191,Vt=ol>>>13,cl=k[9]|0,$t=cl&8191,Yt=cl>>>13;A.negative=T.negative^P.negative,A.length=19,B=Math.imul(C,kt),_=Math.imul(C,At),_=_+Math.imul(z,kt)|0,N=Math.imul(z,At);var Bu=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,B=Math.imul(j,kt),_=Math.imul(j,At),_=_+Math.imul(X,kt)|0,N=Math.imul(X,At),B=B+Math.imul(C,Dt)|0,_=_+Math.imul(C,St)|0,_=_+Math.imul(z,Dt)|0,N=N+Math.imul(z,St)|0;var on=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(on>>>26)|0,on&=67108863,B=Math.imul(ue,kt),_=Math.imul(ue,At),_=_+Math.imul(he,kt)|0,N=Math.imul(he,At),B=B+Math.imul(j,Dt)|0,_=_+Math.imul(j,St)|0,_=_+Math.imul(X,Dt)|0,N=N+Math.imul(X,St)|0,B=B+Math.imul(C,Pt)|0,_=_+Math.imul(C,Ot)|0,_=_+Math.imul(z,Pt)|0,N=N+Math.imul(z,Ot)|0;var cn=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(cn>>>26)|0,cn&=67108863,B=Math.imul(ge,kt),_=Math.imul(ge,At),_=_+Math.imul(me,kt)|0,N=Math.imul(me,At),B=B+Math.imul(ue,Dt)|0,_=_+Math.imul(ue,St)|0,_=_+Math.imul(he,Dt)|0,N=N+Math.imul(he,St)|0,B=B+Math.imul(j,Pt)|0,_=_+Math.imul(j,Ot)|0,_=_+Math.imul(X,Pt)|0,N=N+Math.imul(X,Ot)|0,B=B+Math.imul(C,Lt)|0,_=_+Math.imul(C,Ft)|0,_=_+Math.imul(z,Lt)|0,N=N+Math.imul(z,Ft)|0;var Wc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,B=Math.imul(ve,kt),_=Math.imul(ve,At),_=_+Math.imul(Ae,kt)|0,N=Math.imul(Ae,At),B=B+Math.imul(ge,Dt)|0,_=_+Math.imul(ge,St)|0,_=_+Math.imul(me,Dt)|0,N=N+Math.imul(me,St)|0,B=B+Math.imul(ue,Pt)|0,_=_+Math.imul(ue,Ot)|0,_=_+Math.imul(he,Pt)|0,N=N+Math.imul(he,Ot)|0,B=B+Math.imul(j,Lt)|0,_=_+Math.imul(j,Ft)|0,_=_+Math.imul(X,Lt)|0,N=N+Math.imul(X,Ft)|0,B=B+Math.imul(C,Rt)|0,_=_+Math.imul(C,qt)|0,_=_+Math.imul(z,Rt)|0,N=N+Math.imul(z,qt)|0;var Uc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,B=Math.imul(It,kt),_=Math.imul(It,At),_=_+Math.imul(bt,kt)|0,N=Math.imul(bt,At),B=B+Math.imul(ve,Dt)|0,_=_+Math.imul(ve,St)|0,_=_+Math.imul(Ae,Dt)|0,N=N+Math.imul(Ae,St)|0,B=B+Math.imul(ge,Pt)|0,_=_+Math.imul(ge,Ot)|0,_=_+Math.imul(me,Pt)|0,N=N+Math.imul(me,Ot)|0,B=B+Math.imul(ue,Lt)|0,_=_+Math.imul(ue,Ft)|0,_=_+Math.imul(he,Lt)|0,N=N+Math.imul(he,Ft)|0,B=B+Math.imul(j,Rt)|0,_=_+Math.imul(j,qt)|0,_=_+Math.imul(X,Rt)|0,N=N+Math.imul(X,qt)|0,B=B+Math.imul(C,Mt)|0,_=_+Math.imul(C,Wt)|0,_=_+Math.imul(z,Mt)|0,N=N+Math.imul(z,Wt)|0;var Hc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,B=Math.imul(_t,kt),_=Math.imul(_t,At),_=_+Math.imul(st,kt)|0,N=Math.imul(st,At),B=B+Math.imul(It,Dt)|0,_=_+Math.imul(It,St)|0,_=_+Math.imul(bt,Dt)|0,N=N+Math.imul(bt,St)|0,B=B+Math.imul(ve,Pt)|0,_=_+Math.imul(ve,Ot)|0,_=_+Math.imul(Ae,Pt)|0,N=N+Math.imul(Ae,Ot)|0,B=B+Math.imul(ge,Lt)|0,_=_+Math.imul(ge,Ft)|0,_=_+Math.imul(me,Lt)|0,N=N+Math.imul(me,Ft)|0,B=B+Math.imul(ue,Rt)|0,_=_+Math.imul(ue,qt)|0,_=_+Math.imul(he,Rt)|0,N=N+Math.imul(he,qt)|0,B=B+Math.imul(j,Mt)|0,_=_+Math.imul(j,Wt)|0,_=_+Math.imul(X,Mt)|0,N=N+Math.imul(X,Wt)|0,B=B+Math.imul(C,Je)|0,_=_+Math.imul(C,it)|0,_=_+Math.imul(z,Je)|0,N=N+Math.imul(z,it)|0;var jc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(jc>>>26)|0,jc&=67108863,B=Math.imul(Nt,kt),_=Math.imul(Nt,At),_=_+Math.imul(dt,kt)|0,N=Math.imul(dt,At),B=B+Math.imul(_t,Dt)|0,_=_+Math.imul(_t,St)|0,_=_+Math.imul(st,Dt)|0,N=N+Math.imul(st,St)|0,B=B+Math.imul(It,Pt)|0,_=_+Math.imul(It,Ot)|0,_=_+Math.imul(bt,Pt)|0,N=N+Math.imul(bt,Ot)|0,B=B+Math.imul(ve,Lt)|0,_=_+Math.imul(ve,Ft)|0,_=_+Math.imul(Ae,Lt)|0,N=N+Math.imul(Ae,Ft)|0,B=B+Math.imul(ge,Rt)|0,_=_+Math.imul(ge,qt)|0,_=_+Math.imul(me,Rt)|0,N=N+Math.imul(me,qt)|0,B=B+Math.imul(ue,Mt)|0,_=_+Math.imul(ue,Wt)|0,_=_+Math.imul(he,Mt)|0,N=N+Math.imul(he,Wt)|0,B=B+Math.imul(j,Je)|0,_=_+Math.imul(j,it)|0,_=_+Math.imul(X,Je)|0,N=N+Math.imul(X,it)|0,B=B+Math.imul(C,Ut)|0,_=_+Math.imul(C,Kt)|0,_=_+Math.imul(z,Ut)|0,N=N+Math.imul(z,Kt)|0;var zc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(zc>>>26)|0,zc&=67108863,B=Math.imul(jt,kt),_=Math.imul(jt,At),_=_+Math.imul(Bt,kt)|0,N=Math.imul(Bt,At),B=B+Math.imul(Nt,Dt)|0,_=_+Math.imul(Nt,St)|0,_=_+Math.imul(dt,Dt)|0,N=N+Math.imul(dt,St)|0,B=B+Math.imul(_t,Pt)|0,_=_+Math.imul(_t,Ot)|0,_=_+Math.imul(st,Pt)|0,N=N+Math.imul(st,Ot)|0,B=B+Math.imul(It,Lt)|0,_=_+Math.imul(It,Ft)|0,_=_+Math.imul(bt,Lt)|0,N=N+Math.imul(bt,Ft)|0,B=B+Math.imul(ve,Rt)|0,_=_+Math.imul(ve,qt)|0,_=_+Math.imul(Ae,Rt)|0,N=N+Math.imul(Ae,qt)|0,B=B+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,Wt)|0,_=_+Math.imul(me,Mt)|0,N=N+Math.imul(me,Wt)|0,B=B+Math.imul(ue,Je)|0,_=_+Math.imul(ue,it)|0,_=_+Math.imul(he,Je)|0,N=N+Math.imul(he,it)|0,B=B+Math.imul(j,Ut)|0,_=_+Math.imul(j,Kt)|0,_=_+Math.imul(X,Ut)|0,N=N+Math.imul(X,Kt)|0,B=B+Math.imul(C,Gt)|0,_=_+Math.imul(C,Vt)|0,_=_+Math.imul(z,Gt)|0,N=N+Math.imul(z,Vt)|0;var Gp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,B=Math.imul(ot,kt),_=Math.imul(ot,At),_=_+Math.imul(pt,kt)|0,N=Math.imul(pt,At),B=B+Math.imul(jt,Dt)|0,_=_+Math.imul(jt,St)|0,_=_+Math.imul(Bt,Dt)|0,N=N+Math.imul(Bt,St)|0,B=B+Math.imul(Nt,Pt)|0,_=_+Math.imul(Nt,Ot)|0,_=_+Math.imul(dt,Pt)|0,N=N+Math.imul(dt,Ot)|0,B=B+Math.imul(_t,Lt)|0,_=_+Math.imul(_t,Ft)|0,_=_+Math.imul(st,Lt)|0,N=N+Math.imul(st,Ft)|0,B=B+Math.imul(It,Rt)|0,_=_+Math.imul(It,qt)|0,_=_+Math.imul(bt,Rt)|0,N=N+Math.imul(bt,qt)|0,B=B+Math.imul(ve,Mt)|0,_=_+Math.imul(ve,Wt)|0,_=_+Math.imul(Ae,Mt)|0,N=N+Math.imul(Ae,Wt)|0,B=B+Math.imul(ge,Je)|0,_=_+Math.imul(ge,it)|0,_=_+Math.imul(me,Je)|0,N=N+Math.imul(me,it)|0,B=B+Math.imul(ue,Ut)|0,_=_+Math.imul(ue,Kt)|0,_=_+Math.imul(he,Ut)|0,N=N+Math.imul(he,Kt)|0,B=B+Math.imul(j,Gt)|0,_=_+Math.imul(j,Vt)|0,_=_+Math.imul(X,Gt)|0,N=N+Math.imul(X,Vt)|0,B=B+Math.imul(C,$t)|0,_=_+Math.imul(C,Yt)|0,_=_+Math.imul(z,$t)|0,N=N+Math.imul(z,Yt)|0;var Vp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,B=Math.imul(ot,Dt),_=Math.imul(ot,St),_=_+Math.imul(pt,Dt)|0,N=Math.imul(pt,St),B=B+Math.imul(jt,Pt)|0,_=_+Math.imul(jt,Ot)|0,_=_+Math.imul(Bt,Pt)|0,N=N+Math.imul(Bt,Ot)|0,B=B+Math.imul(Nt,Lt)|0,_=_+Math.imul(Nt,Ft)|0,_=_+Math.imul(dt,Lt)|0,N=N+Math.imul(dt,Ft)|0,B=B+Math.imul(_t,Rt)|0,_=_+Math.imul(_t,qt)|0,_=_+Math.imul(st,Rt)|0,N=N+Math.imul(st,qt)|0,B=B+Math.imul(It,Mt)|0,_=_+Math.imul(It,Wt)|0,_=_+Math.imul(bt,Mt)|0,N=N+Math.imul(bt,Wt)|0,B=B+Math.imul(ve,Je)|0,_=_+Math.imul(ve,it)|0,_=_+Math.imul(Ae,Je)|0,N=N+Math.imul(Ae,it)|0,B=B+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,Kt)|0,_=_+Math.imul(me,Ut)|0,N=N+Math.imul(me,Kt)|0,B=B+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,Vt)|0,_=_+Math.imul(he,Gt)|0,N=N+Math.imul(he,Vt)|0,B=B+Math.imul(j,$t)|0,_=_+Math.imul(j,Yt)|0,_=_+Math.imul(X,$t)|0,N=N+Math.imul(X,Yt)|0;var $p=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+($p>>>26)|0,$p&=67108863,B=Math.imul(ot,Pt),_=Math.imul(ot,Ot),_=_+Math.imul(pt,Pt)|0,N=Math.imul(pt,Ot),B=B+Math.imul(jt,Lt)|0,_=_+Math.imul(jt,Ft)|0,_=_+Math.imul(Bt,Lt)|0,N=N+Math.imul(Bt,Ft)|0,B=B+Math.imul(Nt,Rt)|0,_=_+Math.imul(Nt,qt)|0,_=_+Math.imul(dt,Rt)|0,N=N+Math.imul(dt,qt)|0,B=B+Math.imul(_t,Mt)|0,_=_+Math.imul(_t,Wt)|0,_=_+Math.imul(st,Mt)|0,N=N+Math.imul(st,Wt)|0,B=B+Math.imul(It,Je)|0,_=_+Math.imul(It,it)|0,_=_+Math.imul(bt,Je)|0,N=N+Math.imul(bt,it)|0,B=B+Math.imul(ve,Ut)|0,_=_+Math.imul(ve,Kt)|0,_=_+Math.imul(Ae,Ut)|0,N=N+Math.imul(Ae,Kt)|0,B=B+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,Vt)|0,_=_+Math.imul(me,Gt)|0,N=N+Math.imul(me,Vt)|0,B=B+Math.imul(ue,$t)|0,_=_+Math.imul(ue,Yt)|0,_=_+Math.imul(he,$t)|0,N=N+Math.imul(he,Yt)|0;var Yp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,B=Math.imul(ot,Lt),_=Math.imul(ot,Ft),_=_+Math.imul(pt,Lt)|0,N=Math.imul(pt,Ft),B=B+Math.imul(jt,Rt)|0,_=_+Math.imul(jt,qt)|0,_=_+Math.imul(Bt,Rt)|0,N=N+Math.imul(Bt,qt)|0,B=B+Math.imul(Nt,Mt)|0,_=_+Math.imul(Nt,Wt)|0,_=_+Math.imul(dt,Mt)|0,N=N+Math.imul(dt,Wt)|0,B=B+Math.imul(_t,Je)|0,_=_+Math.imul(_t,it)|0,_=_+Math.imul(st,Je)|0,N=N+Math.imul(st,it)|0,B=B+Math.imul(It,Ut)|0,_=_+Math.imul(It,Kt)|0,_=_+Math.imul(bt,Ut)|0,N=N+Math.imul(bt,Kt)|0,B=B+Math.imul(ve,Gt)|0,_=_+Math.imul(ve,Vt)|0,_=_+Math.imul(Ae,Gt)|0,N=N+Math.imul(Ae,Vt)|0,B=B+Math.imul(ge,$t)|0,_=_+Math.imul(ge,Yt)|0,_=_+Math.imul(me,$t)|0,N=N+Math.imul(me,Yt)|0;var Jp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,B=Math.imul(ot,Rt),_=Math.imul(ot,qt),_=_+Math.imul(pt,Rt)|0,N=Math.imul(pt,qt),B=B+Math.imul(jt,Mt)|0,_=_+Math.imul(jt,Wt)|0,_=_+Math.imul(Bt,Mt)|0,N=N+Math.imul(Bt,Wt)|0,B=B+Math.imul(Nt,Je)|0,_=_+Math.imul(Nt,it)|0,_=_+Math.imul(dt,Je)|0,N=N+Math.imul(dt,it)|0,B=B+Math.imul(_t,Ut)|0,_=_+Math.imul(_t,Kt)|0,_=_+Math.imul(st,Ut)|0,N=N+Math.imul(st,Kt)|0,B=B+Math.imul(It,Gt)|0,_=_+Math.imul(It,Vt)|0,_=_+Math.imul(bt,Gt)|0,N=N+Math.imul(bt,Vt)|0,B=B+Math.imul(ve,$t)|0,_=_+Math.imul(ve,Yt)|0,_=_+Math.imul(Ae,$t)|0,N=N+Math.imul(Ae,Yt)|0;var Qp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,B=Math.imul(ot,Mt),_=Math.imul(ot,Wt),_=_+Math.imul(pt,Mt)|0,N=Math.imul(pt,Wt),B=B+Math.imul(jt,Je)|0,_=_+Math.imul(jt,it)|0,_=_+Math.imul(Bt,Je)|0,N=N+Math.imul(Bt,it)|0,B=B+Math.imul(Nt,Ut)|0,_=_+Math.imul(Nt,Kt)|0,_=_+Math.imul(dt,Ut)|0,N=N+Math.imul(dt,Kt)|0,B=B+Math.imul(_t,Gt)|0,_=_+Math.imul(_t,Vt)|0,_=_+Math.imul(st,Gt)|0,N=N+Math.imul(st,Vt)|0,B=B+Math.imul(It,$t)|0,_=_+Math.imul(It,Yt)|0,_=_+Math.imul(bt,$t)|0,N=N+Math.imul(bt,Yt)|0;var Zp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,B=Math.imul(ot,Je),_=Math.imul(ot,it),_=_+Math.imul(pt,Je)|0,N=Math.imul(pt,it),B=B+Math.imul(jt,Ut)|0,_=_+Math.imul(jt,Kt)|0,_=_+Math.imul(Bt,Ut)|0,N=N+Math.imul(Bt,Kt)|0,B=B+Math.imul(Nt,Gt)|0,_=_+Math.imul(Nt,Vt)|0,_=_+Math.imul(dt,Gt)|0,N=N+Math.imul(dt,Vt)|0,B=B+Math.imul(_t,$t)|0,_=_+Math.imul(_t,Yt)|0,_=_+Math.imul(st,$t)|0,N=N+Math.imul(st,Yt)|0;var Xp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Xp>>>26)|0,Xp&=67108863,B=Math.imul(ot,Ut),_=Math.imul(ot,Kt),_=_+Math.imul(pt,Ut)|0,N=Math.imul(pt,Kt),B=B+Math.imul(jt,Gt)|0,_=_+Math.imul(jt,Vt)|0,_=_+Math.imul(Bt,Gt)|0,N=N+Math.imul(Bt,Vt)|0,B=B+Math.imul(Nt,$t)|0,_=_+Math.imul(Nt,Yt)|0,_=_+Math.imul(dt,$t)|0,N=N+Math.imul(dt,Yt)|0;var eh=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(eh>>>26)|0,eh&=67108863,B=Math.imul(ot,Gt),_=Math.imul(ot,Vt),_=_+Math.imul(pt,Gt)|0,N=Math.imul(pt,Vt),B=B+Math.imul(jt,$t)|0,_=_+Math.imul(jt,Yt)|0,_=_+Math.imul(Bt,$t)|0,N=N+Math.imul(Bt,Yt)|0;var Vg=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,B=Math.imul(ot,$t),_=Math.imul(ot,Yt),_=_+Math.imul(pt,$t)|0,N=Math.imul(pt,Yt);var $g=(D+B|0)+((_&8191)<<13)|0;return D=(N+(_>>>13)|0)+($g>>>26)|0,$g&=67108863,O[0]=Bu,O[1]=on,O[2]=cn,O[3]=Wc,O[4]=Uc,O[5]=Hc,O[6]=jc,O[7]=zc,O[8]=Gp,O[9]=Vp,O[10]=$p,O[11]=Yp,O[12]=Jp,O[13]=Qp,O[14]=Zp,O[15]=Xp,O[16]=eh,O[17]=Vg,O[18]=$g,D!==0&&(O[19]=D,A.length++),A};Math.imul||(y=m);function E(F,T,P){P.negative=T.negative^F.negative,P.length=F.length+T.length;for(var A=0,v=0,k=0;k>>26)|0,v+=O>>>26,O&=67108863}P.words[k]=D,A=O,O=v}return A!==0?P.words[k]=A:P.length--,P.strip()}function I(F,T,P){var A=new S;return A.mulp(F,T,P)}a.prototype.mulTo=function(T,P){var A,v=this.length+T.length;return this.length===10&&T.length===10?A=y(this,T,P):v<63?A=m(this,T,P):v<1024?A=E(this,T,P):A=I(this,T,P),A};function S(F,T){this.x=F,this.y=T}S.prototype.makeRBT=function(T){for(var P=new Array(T),A=a.prototype._countBits(T)-1,v=0;v>=1;return v},S.prototype.permute=function(T,P,A,v,k,O){for(var D=0;D>>1)k++;return 1<>>13,A[2*O+1]=k&8191,k=k>>>13;for(O=2*P;O>=26,P+=v/67108864|0,P+=k>>>26,this.words[A]=k&67108863}return P!==0&&(this.words[A]=P,this.length++),this},a.prototype.muln=function(T){return this.clone().imuln(T)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(T){var P=f(T);if(P.length===0)return new a(1);for(var A=this,v=0;v=0);var P=T%26,A=(T-P)/26,v=67108863>>>26-P<<26-P,k;if(P!==0){var O=0;for(k=0;k>>26-P}O&&(this.words[k]=O,this.length++)}if(A!==0){for(k=this.length-1;k>=0;k--)this.words[k+A]=this.words[k];for(k=0;k=0);var v;P?v=(P-P%26)/26:v=0;var k=T%26,O=Math.min((T-k)/26,this.length),D=67108863^67108863>>>k<O)for(this.length-=O,_=0;_=0&&(N!==0||_>=v);_--){var U=this.words[_]|0;this.words[_]=N<<26-k|U>>>k,N=U&D}return B&&N!==0&&(B.words[B.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(T,P,A){return t(this.negative===0),this.iushrn(T,P,A)},a.prototype.shln=function(T){return this.clone().ishln(T)},a.prototype.ushln=function(T){return this.clone().iushln(T)},a.prototype.shrn=function(T){return this.clone().ishrn(T)},a.prototype.ushrn=function(T){return this.clone().iushrn(T)},a.prototype.testn=function(T){t(typeof T=="number"&&T>=0);var P=T%26,A=(T-P)/26,v=1<=0);var P=T%26,A=(T-P)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(P!==0&&A++,this.length=Math.min(A,this.length),P!==0){var v=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},a.prototype.isubn=function(T){if(t(typeof T=="number"),t(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(B/67108864|0),this.words[k+A]=O&67108863}for(;k>26,this.words[k+A]=O&67108863;if(D===0)return this.strip();for(t(D===-1),D=0,k=0;k>26,this.words[k]=O&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(T,P){var A=this.length-T.length,v=this.clone(),k=T,O=k.words[k.length-1]|0,D=this._countBits(O);A=26-D,A!==0&&(k=k.ushln(A),v.iushln(A),O=k.words[k.length-1]|0);var B=v.length-k.length,_;if(P!=="mod"){_=new a(null),_.length=B+1,_.words=new Array(_.length);for(var N=0;N<_.length;N++)_.words[N]=0}var U=v.clone()._ishlnsubmul(k,1,B);U.negative===0&&(v=U,_&&(_.words[B]=1));for(var C=B-1;C>=0;C--){var z=(v.words[k.length+C]|0)*67108864+(v.words[k.length+C-1]|0);for(z=Math.min(z/O|0,67108863),v._ishlnsubmul(k,z,C);v.negative!==0;)z--,v.negative=0,v._ishlnsubmul(k,1,C),v.isZero()||(v.negative^=1);_&&(_.words[C]=z)}return _&&_.strip(),v.strip(),P!=="div"&&A!==0&&v.iushrn(A),{div:_||null,mod:v}},a.prototype.divmod=function(T,P,A){if(t(!T.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var v,k,O;return this.negative!==0&&T.negative===0?(O=this.neg().divmod(T,P),P!=="mod"&&(v=O.div.neg()),P!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.iadd(T)),{div:v,mod:k}):this.negative===0&&T.negative!==0?(O=this.divmod(T.neg(),P),P!=="mod"&&(v=O.div.neg()),{div:v,mod:O.mod}):(this.negative&T.negative)!==0?(O=this.neg().divmod(T.neg(),P),P!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.isub(T)),{div:O.div,mod:k}):T.length>this.length||this.cmp(T)<0?{div:new a(0),mod:this}:T.length===1?P==="div"?{div:this.divn(T.words[0]),mod:null}:P==="mod"?{div:null,mod:new a(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new a(this.modn(T.words[0]))}:this._wordDiv(T,P)},a.prototype.div=function(T){return this.divmod(T,"div",!1).div},a.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},a.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},a.prototype.divRound=function(T){var P=this.divmod(T);if(P.mod.isZero())return P.div;var A=P.div.negative!==0?P.mod.isub(T):P.mod,v=T.ushrn(1),k=T.andln(1),O=A.cmp(v);return O<0||k===1&&O===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},a.prototype.modn=function(T){t(T<=67108863);for(var P=(1<<26)%T,A=0,v=this.length-1;v>=0;v--)A=(P*A+(this.words[v]|0))%T;return A},a.prototype.idivn=function(T){t(T<=67108863);for(var P=0,A=this.length-1;A>=0;A--){var v=(this.words[A]|0)+P*67108864;this.words[A]=v/T|0,P=v%T}return this.strip()},a.prototype.divn=function(T){return this.clone().idivn(T)},a.prototype.egcd=function(T){t(T.negative===0),t(!T.isZero());var P=this,A=T.clone();P.negative!==0?P=P.umod(T):P=P.clone();for(var v=new a(1),k=new a(0),O=new a(0),D=new a(1),B=0;P.isEven()&&A.isEven();)P.iushrn(1),A.iushrn(1),++B;for(var _=A.clone(),N=P.clone();!P.isZero();){for(var U=0,C=1;(P.words[0]&C)===0&&U<26;++U,C<<=1);if(U>0)for(P.iushrn(U);U-- >0;)(v.isOdd()||k.isOdd())&&(v.iadd(_),k.isub(N)),v.iushrn(1),k.iushrn(1);for(var z=0,ee=1;(A.words[0]&ee)===0&&z<26;++z,ee<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(O.isOdd()||D.isOdd())&&(O.iadd(_),D.isub(N)),O.iushrn(1),D.iushrn(1);P.cmp(A)>=0?(P.isub(A),v.isub(O),k.isub(D)):(A.isub(P),O.isub(v),D.isub(k))}return{a:O,b:D,gcd:A.iushln(B)}},a.prototype._invmp=function(T){t(T.negative===0),t(!T.isZero());var P=this,A=T.clone();P.negative!==0?P=P.umod(T):P=P.clone();for(var v=new a(1),k=new a(0),O=A.clone();P.cmpn(1)>0&&A.cmpn(1)>0;){for(var D=0,B=1;(P.words[0]&B)===0&&D<26;++D,B<<=1);if(D>0)for(P.iushrn(D);D-- >0;)v.isOdd()&&v.iadd(O),v.iushrn(1);for(var _=0,N=1;(A.words[0]&N)===0&&_<26;++_,N<<=1);if(_>0)for(A.iushrn(_);_-- >0;)k.isOdd()&&k.iadd(O),k.iushrn(1);P.cmp(A)>=0?(P.isub(A),v.isub(k)):(A.isub(P),k.isub(v))}var U;return P.cmpn(1)===0?U=v:U=k,U.cmpn(0)<0&&U.iadd(T),U},a.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var P=this.clone(),A=T.clone();P.negative=0,A.negative=0;for(var v=0;P.isEven()&&A.isEven();v++)P.iushrn(1),A.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;A.isEven();)A.iushrn(1);var k=P.cmp(A);if(k<0){var O=P;P=A,A=O}else if(k===0||A.cmpn(1)===0)break;P.isub(A)}while(!0);return A.iushln(v)},a.prototype.invm=function(T){return this.egcd(T).a.umod(T)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(T){return this.words[0]&T},a.prototype.bincn=function(T){t(typeof T=="number");var P=T%26,A=(T-P)/26,v=1<>>26,D&=67108863,this.words[O]=D}return k!==0&&(this.words[O]=k,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(T){var P=T<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var A;if(this.length>1)A=1;else{P&&(T=-T),t(T<=67108863,"Number is too big");var v=this.words[0]|0;A=v===T?0:vT.length)return 1;if(this.length=0;A--){var v=this.words[A]|0,k=T.words[A]|0;if(v!==k){vk&&(P=1);break}}return P},a.prototype.gtn=function(T){return this.cmpn(T)===1},a.prototype.gt=function(T){return this.cmp(T)===1},a.prototype.gten=function(T){return this.cmpn(T)>=0},a.prototype.gte=function(T){return this.cmp(T)>=0},a.prototype.ltn=function(T){return this.cmpn(T)===-1},a.prototype.lt=function(T){return this.cmp(T)===-1},a.prototype.lten=function(T){return this.cmpn(T)<=0},a.prototype.lte=function(T){return this.cmp(T)<=0},a.prototype.eqn=function(T){return this.cmpn(T)===0},a.prototype.eq=function(T){return this.cmp(T)===0},a.red=function(T){return new G(T)},a.prototype.toRed=function(T){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(T){return this.red=T,this},a.prototype.forceRed=function(T){return t(!this.red,"Already a number in reduction context"),this._forceRed(T)},a.prototype.redAdd=function(T){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},a.prototype.redIAdd=function(T){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},a.prototype.redSub=function(T){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},a.prototype.redISub=function(T){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},a.prototype.redShl=function(T){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},a.prototype.redMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},a.prototype.redIMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(T){return t(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var L={k256:null,p224:null,p192:null,p25519:null};function q(F,T){this.name=F,this.p=new a(T,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var T=new a(null);return T.words=new Array(Math.ceil(this.n/13)),T},q.prototype.ireduce=function(T){var P=T,A;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),A=P.bitLength();while(A>this.n);var v=A0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},q.prototype.split=function(T,P){T.iushrn(this.n,0,P)},q.prototype.imulK=function(T){return T.imul(this.k)};function W(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(W,q),W.prototype.split=function(T,P){for(var A=4194303,v=Math.min(T.length,9),k=0;k>>22,O=D}O>>>=22,T.words[k-10]=O,O===0&&T.length>10?T.length-=10:T.length-=9},W.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var P=0,A=0;A>>=26,T.words[A]=k,P=v}return P!==0&&(T.words[T.length++]=P),T},a._prime=function(T){if(L[T])return L[T];var P;if(T==="k256")P=new W;else if(T==="p224")P=new V;else if(T==="p192")P=new K;else if(T==="p25519")P=new H;else throw new Error("Unknown prime "+T);return L[T]=P,P};function G(F){if(typeof F=="string"){var T=a._prime(F);this.m=T.p,this.prime=T}else t(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}G.prototype._verify1=function(T){t(T.negative===0,"red works only with positives"),t(T.red,"red works only with red numbers")},G.prototype._verify2=function(T,P){t((T.negative|P.negative)===0,"red works only with positives"),t(T.red&&T.red===P.red,"red works only with red numbers")},G.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},G.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},G.prototype.add=function(T,P){this._verify2(T,P);var A=T.add(P);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},G.prototype.iadd=function(T,P){this._verify2(T,P);var A=T.iadd(P);return A.cmp(this.m)>=0&&A.isub(this.m),A},G.prototype.sub=function(T,P){this._verify2(T,P);var A=T.sub(P);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},G.prototype.isub=function(T,P){this._verify2(T,P);var A=T.isub(P);return A.cmpn(0)<0&&A.iadd(this.m),A},G.prototype.shl=function(T,P){return this._verify1(T),this.imod(T.ushln(P))},G.prototype.imul=function(T,P){return this._verify2(T,P),this.imod(T.imul(P))},G.prototype.mul=function(T,P){return this._verify2(T,P),this.imod(T.mul(P))},G.prototype.isqr=function(T){return this.imul(T,T.clone())},G.prototype.sqr=function(T){return this.mul(T,T)},G.prototype.sqrt=function(T){if(T.isZero())return T.clone();var P=this.m.andln(3);if(t(P%2===1),P===3){var A=this.m.add(new a(1)).iushrn(2);return this.pow(T,A)}for(var v=this.m.subn(1),k=0;!v.isZero()&&v.andln(1)===0;)k++,v.iushrn(1);t(!v.isZero());var O=new a(1).toRed(this),D=O.redNeg(),B=this.m.subn(1).iushrn(1),_=this.m.bitLength();for(_=new a(2*_*_).toRed(this);this.pow(_,B).cmp(D)!==0;)_.redIAdd(D);for(var N=this.pow(_,v),U=this.pow(T,v.addn(1).iushrn(1)),C=this.pow(T,v),z=k;C.cmp(O)!==0;){for(var ee=C,j=0;ee.cmp(O)!==0;j++)ee=ee.redSqr();t(j=0;k--){for(var N=P.words[k],U=_-1;U>=0;U--){var C=N>>U&1;if(O!==v[0]&&(O=this.sqr(O)),C===0&&D===0){B=0;continue}D<<=1,D|=C,B++,!(B!==A&&(k!==0||U!==0))&&(O=this.mul(O,v[D]),B=0,D=0)}_=26}return O},G.prototype.convertTo=function(T){var P=T.umod(this.m);return P===T?P.clone():P},G.prototype.convertFrom=function(T){var P=T.clone();return P.red=null,P},a.mont=function(T){return new J(T)};function J(F){G.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(J,G),J.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},J.prototype.convertFrom=function(T){var P=this.imod(T.mul(this.rinv));return P.red=null,P},J.prototype.imul=function(T,P){if(T.isZero()||P.isZero())return T.words[0]=0,T.length=1,T;var A=T.imul(P),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},J.prototype.mul=function(T,P){if(T.isZero()||P.isZero())return new a(0)._forceRed(this);var A=T.mul(P),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},J.prototype.invm=function(T){var P=this.imod(T._invmp(this.m).mul(this.r2));return P._forceRed(this)}})(typeof lG>"u"||lG,zbe)});var Gl=x((Xxn,Gbe)=>{d();p();Gbe.exports=Kbe;function Kbe(r,e){if(!r)throw new Error(e||"Assertion failed")}Kbe.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var dG=x(Ybe=>{"use strict";d();p();var rR=Ybe;function FMt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}rR.toArray=FMt;function Vbe(r){return r.length===1?"0"+r:r}rR.zero2=Vbe;function $be(r){for(var e="",t=0;t{"use strict";d();p();var ih=Jbe,qMt=ho(),WMt=Gl(),nR=dG();ih.assert=WMt;ih.toArray=nR.toArray;ih.zero2=nR.zero2;ih.toHex=nR.toHex;ih.encode=nR.encode;function UMt(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?o=(a>>1)-c:o=c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n}ih.getNAF=UMt;function HMt(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,o=e.andln(3)+a&3;s===3&&(s=-1),o===3&&(o=-1);var c;(s&1)===0?c=0:(i=r.andln(7)+n&7,(i===3||i===5)&&o===2?c=-s:c=s),t[0].push(c);var u;(o&1)===0?u=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?u=-o:u=o),t[1].push(u),2*n===c+1&&(n=1-n),2*a===u+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}ih.getJSF=HMt;function jMt(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}ih.cachedProperty=jMt;function zMt(r){return typeof r=="string"?ih.toArray(r,"hex"):r}ih.parseBytes=zMt;function KMt(r){return new qMt(r,"hex","le")}ih.intFromLE=KMt});var Er=x((pG,Zbe)=>{d();p();var aR=lc(),Ef=aR.Buffer;function Qbe(r,e){for(var t in r)e[t]=r[t]}Ef.from&&Ef.alloc&&Ef.allocUnsafe&&Ef.allocUnsafeSlow?Zbe.exports=aR:(Qbe(aR,pG),pG.Buffer=lb);function lb(r,e,t){return Ef(r,e,t)}lb.prototype=Object.create(Ef.prototype);Qbe(Ef,lb);lb.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Ef(r,e,t)};lb.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=Ef(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};lb.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Ef(r)};lb.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return aR.SlowBuffer(r)}});var db=x((lTn,fG)=>{"use strict";d();p();var hG=65536,GMt=4294967295;function VMt(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var $Mt=Er().Buffer,iR=global.crypto||global.msCrypto;iR&&iR.getRandomValues?fG.exports=YMt:fG.exports=VMt;function YMt(r,e){if(r>GMt)throw new RangeError("requested too many random bytes");var t=$Mt.allocUnsafe(r);if(r>0)if(r>hG)for(var n=0;n{d();p();typeof Object.create=="function"?mG.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:mG.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ou=x((yTn,yG)=>{"use strict";d();p();var M5=typeof Reflect=="object"?Reflect:null,Xbe=M5&&typeof M5.apply=="function"?M5.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},sR;M5&&typeof M5.ownKeys=="function"?sR=M5.ownKeys:Object.getOwnPropertySymbols?sR=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:sR=function(e){return Object.getOwnPropertyNames(e)};function JMt(r){console&&console.warn&&console.warn(r)}var tve=Number.isNaN||function(e){return e!==e};function Fa(){Fa.init.call(this)}yG.exports=Fa;yG.exports.once=eNt;Fa.EventEmitter=Fa;Fa.prototype._events=void 0;Fa.prototype._eventsCount=0;Fa.prototype._maxListeners=void 0;var eve=10;function oR(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Fa,"defaultMaxListeners",{enumerable:!0,get:function(){return eve},set:function(r){if(typeof r!="number"||r<0||tve(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");eve=r}});Fa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Fa.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||tve(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function rve(r){return r._maxListeners===void 0?Fa.defaultMaxListeners:r._maxListeners}Fa.prototype.getMaxListeners=function(){return rve(this)};Fa.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(c===void 0)return!1;if(typeof c=="function")Xbe(c,this,t);else for(var u=c.length,l=ove(c,u),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=r,o.type=e,o.count=s.length,JMt(o)}return r}Fa.prototype.addListener=function(e,t){return nve(this,e,t,!1)};Fa.prototype.on=Fa.prototype.addListener;Fa.prototype.prependListener=function(e,t){return nve(this,e,t,!0)};function QMt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ave(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=QMt.bind(n);return a.listener=t,n.wrapFn=a,a}Fa.prototype.once=function(e,t){return oR(t),this.on(e,ave(this,e,t)),this};Fa.prototype.prependOnceListener=function(e,t){return oR(t),this.prependListener(e,ave(this,e,t)),this};Fa.prototype.removeListener=function(e,t){var n,a,i,s,o;if(oR(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():ZMt(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};Fa.prototype.off=Fa.prototype.removeListener;Fa.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function ive(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?XMt(a):ove(a,a.length)}Fa.prototype.listeners=function(e){return ive(this,e,!0)};Fa.prototype.rawListeners=function(e){return ive(this,e,!1)};Fa.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):sve.call(r,e)};Fa.prototype.listenerCount=sve;function sve(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Fa.prototype.eventNames=function(){return this._eventsCount>0?sR(this._events):[]};function ove(r,e){for(var t=new Array(e),n=0;n{d();p();uve.exports=Ou().EventEmitter});var bG=x((xTn,lve)=>{"use strict";d();p();lve.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var WE=x((CTn,dve)=>{"use strict";d();p();var rNt=bG();dve.exports=function(){return rNt()&&!!Symbol.toStringTag}});var fve=x((ATn,hve)=>{"use strict";d();p();var pve=typeof Symbol<"u"&&Symbol,nNt=bG();hve.exports=function(){return typeof pve!="function"||typeof Symbol!="function"||typeof pve("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:nNt()}});var yve=x((RTn,mve)=>{"use strict";d();p();var aNt="Function.prototype.bind called on incompatible ",vG=Array.prototype.slice,iNt=Object.prototype.toString,sNt="[object Function]";mve.exports=function(e){var t=this;if(typeof t!="function"||iNt.call(t)!==sNt)throw new TypeError(aNt+t);for(var n=vG.call(arguments,1),a,i=function(){if(this instanceof a){var l=t.apply(this,n.concat(vG.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(vG.call(arguments)))},s=Math.max(0,t.length-n.length),o=[],c=0;c{"use strict";d();p();var oNt=yve();gve.exports=Function.prototype.bind||oNt});var vve=x((LTn,bve)=>{"use strict";d();p();var cNt=cR();bve.exports=cNt.call(Function.call,Object.prototype.hasOwnProperty)});var HE=x((WTn,Eve)=>{"use strict";d();p();var Ur,O5=SyntaxError,Tve=Function,D5=TypeError,wG=function(r){try{return Tve('"use strict"; return ('+r+").constructor;")()}catch{}},pb=Object.getOwnPropertyDescriptor;if(pb)try{pb({},"")}catch{pb=null}var _G=function(){throw new D5},uNt=pb?function(){try{return arguments.callee,_G}catch{try{return pb(arguments,"callee").get}catch{return _G}}}():_G,N5=fve()(),Cf=Object.getPrototypeOf||function(r){return r.__proto__},B5={},lNt=typeof Uint8Array>"u"?Ur:Cf(Uint8Array),hb={"%AggregateError%":typeof AggregateError>"u"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":N5?Cf([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":B5,"%AsyncGenerator%":B5,"%AsyncGeneratorFunction%":B5,"%AsyncIteratorPrototype%":B5,"%Atomics%":typeof Atomics>"u"?Ur:Atomics,"%BigInt%":typeof BigInt>"u"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ur:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ur:FinalizationRegistry,"%Function%":Tve,"%GeneratorFunction%":B5,"%Int8Array%":typeof Int8Array>"u"?Ur:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ur:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N5?Cf(Cf([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map>"u"?Ur:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N5?Ur:Cf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ur:Promise,"%Proxy%":typeof Proxy>"u"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ur:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N5?Ur:Cf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N5?Cf(""[Symbol.iterator]()):Ur,"%Symbol%":N5?Symbol:Ur,"%SyntaxError%":O5,"%ThrowTypeError%":uNt,"%TypedArray%":lNt,"%TypeError%":D5,"%Uint8Array%":typeof Uint8Array>"u"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ur:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ur:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ur:WeakSet};try{null.error}catch(r){wve=Cf(Cf(r)),hb["%Error.prototype%"]=wve}var wve,dNt=function r(e){var t;if(e==="%AsyncFunction%")t=wG("async function () {}");else if(e==="%GeneratorFunction%")t=wG("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=wG("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Cf(a.prototype))}return hb[e]=t,t},_ve={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},UE=cR(),uR=vve(),pNt=UE.call(Function.call,Array.prototype.concat),hNt=UE.call(Function.apply,Array.prototype.splice),xve=UE.call(Function.call,String.prototype.replace),lR=UE.call(Function.call,String.prototype.slice),fNt=UE.call(Function.call,RegExp.prototype.exec),mNt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yNt=/\\(\\)?/g,gNt=function(e){var t=lR(e,0,1),n=lR(e,-1);if(t==="%"&&n!=="%")throw new O5("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new O5("invalid intrinsic syntax, expected opening `%`");var a=[];return xve(e,mNt,function(i,s,o,c){a[a.length]=o?xve(c,yNt,"$1"):s||i}),a},bNt=function(e,t){var n=e,a;if(uR(_ve,n)&&(a=_ve[n],n="%"+a[0]+"%"),uR(hb,n)){var i=hb[n];if(i===B5&&(i=dNt(n)),typeof i>"u"&&!t)throw new D5("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new O5("intrinsic "+e+" does not exist!")};Eve.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new D5("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new D5('"allowMissing" argument must be a boolean');if(fNt(/^%?[^%]*%?$/,e)===null)throw new O5("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=gNt(e),a=n.length>0?n[0]:"",i=bNt("%"+a+"%",t),s=i.name,o=i.value,c=!1,u=i.alias;u&&(a=u[0],hNt(n,pNt([0,1],u)));for(var l=1,h=!0;l=n.length){var E=pb(o,f);h=!!E,h&&"get"in E&&!("originalValue"in E.get)?o=E.get:o=o[f]}else h=uR(o,f),o=o[f];h&&!c&&(hb[s]=o)}}return o}});var Pve=x((jTn,dR)=>{"use strict";d();p();var xG=cR(),L5=HE(),kve=L5("%Function.prototype.apply%"),Ave=L5("%Function.prototype.call%"),Sve=L5("%Reflect.apply%",!0)||xG.call(Ave,kve),Cve=L5("%Object.getOwnPropertyDescriptor%",!0),fb=L5("%Object.defineProperty%",!0),vNt=L5("%Math.max%");if(fb)try{fb({},"a",{value:1})}catch{fb=null}dR.exports=function(e){var t=Sve(xG,Ave,arguments);if(Cve&&fb){var n=Cve(t,"length");n.configurable&&fb(t,"length",{value:1+vNt(0,e.length-(arguments.length-1))})}return t};var Ive=function(){return Sve(xG,kve,arguments)};fb?fb(dR.exports,"apply",{value:Ive}):dR.exports.apply=Ive});var jE=x((GTn,Nve)=>{"use strict";d();p();var Rve=HE(),Mve=Pve(),wNt=Mve(Rve("String.prototype.indexOf"));Nve.exports=function(e,t){var n=Rve(e,!!t);return typeof n=="function"&&wNt(e,".prototype.")>-1?Mve(n):n}});var Ove=x((YTn,Dve)=>{"use strict";d();p();var _Nt=WE()(),xNt=jE(),TG=xNt("Object.prototype.toString"),pR=function(e){return _Nt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:TG(e)==="[object Arguments]"},Bve=function(e){return pR(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&TG(e)!=="[object Array]"&&TG(e.callee)==="[object Function]"},TNt=function(){return pR(arguments)}();pR.isLegacyArguments=Bve;Dve.exports=TNt?pR:Bve});var qve=x((ZTn,Fve)=>{"use strict";d();p();var ENt=Object.prototype.toString,CNt=Function.prototype.toString,INt=/^\s*(?:function)?\*/,Lve=WE()(),EG=Object.getPrototypeOf,kNt=function(){if(!Lve)return!1;try{return Function("return function*() {}")()}catch{}},CG;Fve.exports=function(e){if(typeof e!="function")return!1;if(INt.test(CNt.call(e)))return!0;if(!Lve){var t=ENt.call(e);return t==="[object GeneratorFunction]"}if(!EG)return!1;if(typeof CG>"u"){var n=kNt();CG=n?EG(n):!1}return EG(e)===CG}});var jve=x((t6n,Hve)=>{"use strict";d();p();var Uve=Function.prototype.toString,F5=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,kG,hR;if(typeof F5=="function"&&typeof Object.defineProperty=="function")try{kG=Object.defineProperty({},"length",{get:function(){throw hR}}),hR={},F5(function(){throw 42},null,kG)}catch(r){r!==hR&&(F5=null)}else F5=null;var ANt=/^\s*class\b/,AG=function(e){try{var t=Uve.call(e);return ANt.test(t)}catch{return!1}},IG=function(e){try{return AG(e)?!1:(Uve.call(e),!0)}catch{return!1}},fR=Object.prototype.toString,SNt="[object Object]",PNt="[object Function]",RNt="[object GeneratorFunction]",MNt="[object HTMLAllCollection]",NNt="[object HTML document.all class]",BNt="[object HTMLCollection]",DNt=typeof Symbol=="function"&&!!Symbol.toStringTag,ONt=!(0 in[,]),SG=function(){return!1};typeof document=="object"&&(Wve=document.all,fR.call(Wve)===fR.call(document.all)&&(SG=function(e){if((ONt||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=fR.call(e);return(t===MNt||t===NNt||t===BNt||t===SNt)&&e("")==null}catch{}return!1}));var Wve;Hve.exports=F5?function(e){if(SG(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{F5(e,null,kG)}catch(t){if(t!==hR)return!1}return!AG(e)&&IG(e)}:function(e){if(SG(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(DNt)return IG(e);if(AG(e))return!1;var t=fR.call(e);return t!==PNt&&t!==RNt&&!/^\[object HTML/.test(t)?!1:IG(e)}});var PG=x((a6n,Kve)=>{"use strict";d();p();var LNt=jve(),FNt=Object.prototype.toString,zve=Object.prototype.hasOwnProperty,qNt=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),FNt.call(e)==="[object Array]"?qNt(e,t,a):typeof e=="string"?WNt(e,t,a):UNt(e,t,a)};Kve.exports=HNt});var MG=x((o6n,Gve)=>{"use strict";d();p();var RG=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],jNt=typeof globalThis>"u"?global:globalThis;Gve.exports=function(){for(var e=[],t=0;t{"use strict";d();p();var zNt=HE(),mR=zNt("%Object.getOwnPropertyDescriptor%",!0);if(mR)try{mR([],"length")}catch{mR=null}Vve.exports=mR});var OG=x((h6n,Zve)=>{"use strict";d();p();var $ve=PG(),KNt=MG(),DG=jE(),GNt=DG("Object.prototype.toString"),Yve=WE()(),yR=NG(),VNt=typeof globalThis>"u"?global:globalThis,Jve=KNt(),$Nt=DG("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return yR?JNt(e):!1}});var i2e=x((y6n,a2e)=>{"use strict";d();p();var e2e=PG(),QNt=MG(),t2e=jE(),LG=NG(),ZNt=t2e("Object.prototype.toString"),r2e=WE()(),Xve=typeof globalThis>"u"?global:globalThis,XNt=QNt(),eBt=t2e("String.prototype.slice"),n2e={},FG=Object.getPrototypeOf;r2e&&LG&&FG&&e2e(XNt,function(r){if(typeof Xve[r]=="function"){var e=new Xve[r];if(Symbol.toStringTag in e){var t=FG(e),n=LG(t,Symbol.toStringTag);if(!n){var a=FG(t);n=LG(a,Symbol.toStringTag)}n2e[r]=n.get}}});var tBt=function(e){var t=!1;return e2e(n2e,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},rBt=OG();a2e.exports=function(e){return rBt(e)?!r2e||!(Symbol.toStringTag in e)?eBt(ZNt(e),8,-1):tBt(e):!1}});var v2e=x(Or=>{"use strict";d();p();var nBt=Ove(),aBt=qve(),sh=i2e(),s2e=OG();function q5(r){return r.call.bind(r)}var o2e=typeof BigInt<"u",c2e=typeof Symbol<"u",Od=q5(Object.prototype.toString),iBt=q5(Number.prototype.valueOf),sBt=q5(String.prototype.valueOf),oBt=q5(Boolean.prototype.valueOf);o2e&&(u2e=q5(BigInt.prototype.valueOf));var u2e;c2e&&(l2e=q5(Symbol.prototype.valueOf));var l2e;function KE(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}Or.isArgumentsObject=nBt;Or.isGeneratorFunction=aBt;Or.isTypedArray=s2e;function cBt(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}Or.isPromise=cBt;function uBt(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):s2e(r)||p2e(r)}Or.isArrayBufferView=uBt;function lBt(r){return sh(r)==="Uint8Array"}Or.isUint8Array=lBt;function dBt(r){return sh(r)==="Uint8ClampedArray"}Or.isUint8ClampedArray=dBt;function pBt(r){return sh(r)==="Uint16Array"}Or.isUint16Array=pBt;function hBt(r){return sh(r)==="Uint32Array"}Or.isUint32Array=hBt;function fBt(r){return sh(r)==="Int8Array"}Or.isInt8Array=fBt;function mBt(r){return sh(r)==="Int16Array"}Or.isInt16Array=mBt;function yBt(r){return sh(r)==="Int32Array"}Or.isInt32Array=yBt;function gBt(r){return sh(r)==="Float32Array"}Or.isFloat32Array=gBt;function bBt(r){return sh(r)==="Float64Array"}Or.isFloat64Array=bBt;function vBt(r){return sh(r)==="BigInt64Array"}Or.isBigInt64Array=vBt;function wBt(r){return sh(r)==="BigUint64Array"}Or.isBigUint64Array=wBt;function gR(r){return Od(r)==="[object Map]"}gR.working=typeof Map<"u"&&gR(new Map);function _Bt(r){return typeof Map>"u"?!1:gR.working?gR(r):r instanceof Map}Or.isMap=_Bt;function bR(r){return Od(r)==="[object Set]"}bR.working=typeof Set<"u"&&bR(new Set);function xBt(r){return typeof Set>"u"?!1:bR.working?bR(r):r instanceof Set}Or.isSet=xBt;function vR(r){return Od(r)==="[object WeakMap]"}vR.working=typeof WeakMap<"u"&&vR(new WeakMap);function TBt(r){return typeof WeakMap>"u"?!1:vR.working?vR(r):r instanceof WeakMap}Or.isWeakMap=TBt;function WG(r){return Od(r)==="[object WeakSet]"}WG.working=typeof WeakSet<"u"&&WG(new WeakSet);function EBt(r){return WG(r)}Or.isWeakSet=EBt;function wR(r){return Od(r)==="[object ArrayBuffer]"}wR.working=typeof ArrayBuffer<"u"&&wR(new ArrayBuffer);function d2e(r){return typeof ArrayBuffer>"u"?!1:wR.working?wR(r):r instanceof ArrayBuffer}Or.isArrayBuffer=d2e;function _R(r){return Od(r)==="[object DataView]"}_R.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&_R(new DataView(new ArrayBuffer(1),0,1));function p2e(r){return typeof DataView>"u"?!1:_R.working?_R(r):r instanceof DataView}Or.isDataView=p2e;var qG=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function zE(r){return Od(r)==="[object SharedArrayBuffer]"}function h2e(r){return typeof qG>"u"?!1:(typeof zE.working>"u"&&(zE.working=zE(new qG)),zE.working?zE(r):r instanceof qG)}Or.isSharedArrayBuffer=h2e;function CBt(r){return Od(r)==="[object AsyncFunction]"}Or.isAsyncFunction=CBt;function IBt(r){return Od(r)==="[object Map Iterator]"}Or.isMapIterator=IBt;function kBt(r){return Od(r)==="[object Set Iterator]"}Or.isSetIterator=kBt;function ABt(r){return Od(r)==="[object Generator]"}Or.isGeneratorObject=ABt;function SBt(r){return Od(r)==="[object WebAssembly.Module]"}Or.isWebAssemblyCompiledModule=SBt;function f2e(r){return KE(r,iBt)}Or.isNumberObject=f2e;function m2e(r){return KE(r,sBt)}Or.isStringObject=m2e;function y2e(r){return KE(r,oBt)}Or.isBooleanObject=y2e;function g2e(r){return o2e&&KE(r,u2e)}Or.isBigIntObject=g2e;function b2e(r){return c2e&&KE(r,l2e)}Or.isSymbolObject=b2e;function PBt(r){return f2e(r)||m2e(r)||y2e(r)||g2e(r)||b2e(r)}Or.isBoxedPrimitive=PBt;function RBt(r){return typeof Uint8Array<"u"&&(d2e(r)||h2e(r))}Or.isAnyArrayBuffer=RBt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(Or,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var _2e=x((x6n,w2e)=>{d();p();w2e.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var SR=x(Lr=>{d();p();var x2e=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return o}}),s=n[t];t"u")return function(){return Lr.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(g.throwDeprecation)throw new Error(e);g.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var xR={},T2e=/^$/;g.env.NODE_DEBUG&&(TR=g.env.NODE_DEBUG,TR=TR.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),T2e=new RegExp("^"+TR+"$","i"));var TR;Lr.debuglog=function(r){if(r=r.toUpperCase(),!xR[r])if(T2e.test(r)){var e=g.pid;xR[r]=function(){var t=Lr.format.apply(Lr,arguments);console.error("%s %d: %s",r,e,t)}}else xR[r]=function(){};return xR[r]};function Ry(r,e){var t={seen:[],stylize:BBt};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),zG(e)?t.showHidden=e:e&&Lr._extend(t,e),yb(t.showHidden)&&(t.showHidden=!1),yb(t.depth)&&(t.depth=2),yb(t.colors)&&(t.colors=!1),yb(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=NBt),CR(t,r,t.depth)}Lr.inspect=Ry;Ry.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ry.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NBt(r,e){var t=Ry.styles[e];return t?"\x1B["+Ry.colors[t][0]+"m"+r+"\x1B["+Ry.colors[t][1]+"m":r}function BBt(r,e){return r}function DBt(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function CR(r,e,t){if(r.customInspect&&e&&ER(e.inspect)&&e.inspect!==Lr.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return AR(n)||(n=CR(r,n,t)),n}var a=OBt(r,e);if(a)return a;var i=Object.keys(e),s=DBt(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),VE(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return UG(e);if(i.length===0){if(ER(e)){var o=e.name?": "+e.name:"";return r.stylize("[Function"+o+"]","special")}if(GE(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(IR(e))return r.stylize(Date.prototype.toString.call(e),"date");if(VE(e))return UG(e)}var c="",u=!1,l=["{","}"];if(E2e(e)&&(u=!0,l=["[","]"]),ER(e)){var h=e.name?": "+e.name:"";c=" [Function"+h+"]"}if(GE(e)&&(c=" "+RegExp.prototype.toString.call(e)),IR(e)&&(c=" "+Date.prototype.toUTCString.call(e)),VE(e)&&(c=" "+UG(e)),i.length===0&&(!u||e.length==0))return l[0]+c+l[1];if(t<0)return GE(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var f;return u?f=LBt(r,e,t,s,i):f=i.map(function(m){return jG(r,e,t,s,m,u)}),r.seen.pop(),FBt(f,c,l)}function OBt(r,e){if(yb(e))return r.stylize("undefined","undefined");if(AR(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(C2e(e))return r.stylize(""+e,"number");if(zG(e))return r.stylize(""+e,"boolean");if(kR(e))return r.stylize("null","null")}function UG(r){return"["+Error.prototype.toString.call(r)+"]"}function LBt(r,e,t,n,a){for(var i=[],s=0,o=e.length;s{var W7t=Object.create;var Aie=Object.defineProperty;var U7t=Object.getOwnPropertyDescriptor;var H7t=Object.getOwnPropertyNames;var j7t=Object.getPrototypeOf,z7t=Object.prototype.hasOwnProperty;var tqe=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var ce=(r,e)=>()=>(r&&(e=r(r=0)),e);var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cr=(r,e)=>{for(var t in e)Aie(r,t,{get:e[t],enumerable:!0})},kie=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of H7t(e))!z7t.call(r,a)&&a!==t&&Aie(r,a,{get:()=>e[a],enumerable:!(n=U7t(e,a))||n.enumerable});return r},gr=(r,e,t)=>(kie(r,e,"default"),t&&kie(t,e,"default")),un=(r,e,t)=>(t=r!=null?W7t(j7t(r)):{},kie(e||!r||!r.__esModule?Aie(t,"default",{value:r,enumerable:!0}):t,r)),nt=r=>kie(Aie({},"__esModule",{value:!0}),r);var g,d=ce(()=>{g={env:"production"}});var aqe=_(Pie=>{"use strict";d();p();Pie.byteLength=V7t;Pie.toByteArray=$7t;Pie.fromByteArray=Z7t;var uf=[],Ed=[],G7t=typeof Uint8Array<"u"?Uint8Array:Array,Kve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(J1=0,rqe=Kve.length;J10)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function V7t(r){var e=nqe(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Y7t(r,e,t){return(e+t)*3/4-t}function $7t(r){var e,t=nqe(r),n=t[0],a=t[1],i=new G7t(Y7t(r,n,a)),s=0,o=a>0?n-4:n,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=Ed[r.charCodeAt(c)]<<2|Ed[r.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=Ed[r.charCodeAt(c)]<<10|Ed[r.charCodeAt(c+1)]<<4|Ed[r.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function Q7t(r){return uf[r>>18&63]+uf[r>>12&63]+uf[r>>6&63]+uf[r&63]}function J7t(r,e,t){for(var n,a=[],i=e;io?o:s+i));return n===1?(e=r[t-1],a.push(uf[e>>2]+uf[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(uf[e>>10]+uf[e>>4&63]+uf[e<<2&63]+"=")),a.join("")}});var iqe=_(Gve=>{d();p();Gve.read=function(r,e,t,n,a){var i,s,o=a*8-n-1,c=(1<>1,l=-7,h=t?a-1:0,f=t?-1:1,m=r[e+h];for(h+=f,i=m&(1<<-l)-1,m>>=-l,l+=o;l>0;i=i*256+r[e+h],h+=f,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[e+h],h+=f,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(m?-1:1)*s*Math.pow(2,i-n)};Gve.write=function(r,e,t,n,a,i){var s,o,c,u=i*8-a-1,l=(1<>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=l?(o=0,s=l):s+h>=1?(o=(e*c-1)*Math.pow(2,a),s=s+h):(o=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;r[t+m]=o&255,m+=y,o/=256,a-=8);for(s=s<0;r[t+m]=s&255,m+=y,s/=256,u-=8);r[t+m-y]|=I*128}});var lc=_(L5=>{"use strict";d();p();var Vve=aqe(),D5=iqe(),sqe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L5.Buffer=_e;L5.SlowBuffer=aRt;L5.INSPECT_MAX_BYTES=50;var Sie=2147483647;L5.kMaxLength=Sie;_e.TYPED_ARRAY_SUPPORT=X7t();!_e.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function X7t(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(_e.prototype,"parent",{enumerable:!0,get:function(){if(!!_e.isBuffer(this))return this.buffer}});Object.defineProperty(_e.prototype,"offset",{enumerable:!0,get:function(){if(!!_e.isBuffer(this))return this.byteOffset}});function Hm(r){if(r>Sie)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,_e.prototype),e}function _e(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jve(r)}return uqe(r,e,t)}_e.poolSize=8192;function uqe(r,e,t){if(typeof r=="string")return tRt(r,e);if(ArrayBuffer.isView(r))return rRt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(lf(r,ArrayBuffer)||r&&lf(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(lf(r,SharedArrayBuffer)||r&&lf(r.buffer,SharedArrayBuffer)))return $ve(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return _e.from(n,e,t);var a=nRt(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return _e.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}_e.from=function(r,e,t){return uqe(r,e,t)};Object.setPrototypeOf(_e.prototype,Uint8Array.prototype);Object.setPrototypeOf(_e,Uint8Array);function lqe(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function eRt(r,e,t){return lqe(r),r<=0?Hm(r):e!==void 0?typeof t=="string"?Hm(r).fill(e,t):Hm(r).fill(e):Hm(r)}_e.alloc=function(r,e,t){return eRt(r,e,t)};function Jve(r){return lqe(r),Hm(r<0?0:Zve(r)|0)}_e.allocUnsafe=function(r){return Jve(r)};_e.allocUnsafeSlow=function(r){return Jve(r)};function tRt(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!_e.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=dqe(r,e)|0,n=Hm(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function Yve(r){for(var e=r.length<0?0:Zve(r.length)|0,t=Hm(e),n=0;n=Sie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sie.toString(16)+" bytes");return r|0}function aRt(r){return+r!=r&&(r=0),_e.alloc(+r)}_e.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==_e.prototype};_e.compare=function(e,t){if(lf(e,Uint8Array)&&(e=_e.from(e,e.offset,e.byteLength)),lf(t,Uint8Array)&&(t=_e.from(t,t.offset,t.byteLength)),!_e.isBuffer(e)||!_e.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?_e.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(_e.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function dqe(r,e){if(_e.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||lf(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Qve(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gqe(r).length;default:if(a)return n?-1:Qve(r).length;e=(""+e).toLowerCase(),a=!0}}_e.byteLength=dqe;function iRt(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return mRt(this,e,t);case"utf8":case"utf-8":return hqe(this,e,t);case"ascii":return hRt(this,e,t);case"latin1":case"binary":return fRt(this,e,t);case"base64":return dRt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yRt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}_e.prototype._isBuffer=!0;function Z1(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}_e.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};sqe&&(_e.prototype[sqe]=_e.prototype.inspect);_e.prototype.compare=function(e,t,n,a,i){if(lf(e,Uint8Array)&&(e=_e.from(e,e.offset,e.byteLength)),!_e.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-t,c=Math.min(s,o),u=this.slice(a,i),l=e.slice(t,n),h=0;h2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Xve(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=_e.from(e,n)),_e.isBuffer(e))return e.length===0?-1:oqe(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):oqe(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function oqe(r,e,t,n,a){var i=1,s=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function c(m,y){return i===1?m[y]:m.readUInt16BE(y*i)}var u;if(a){var l=-1;for(u=t;us&&(t=s-o),u=t;u>=0;u--){for(var h=!0,f=0;fa&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return sRt(this,e,t,n);case"utf8":case"utf-8":return oRt(this,e,t,n);case"ascii":case"latin1":case"binary":return cRt(this,e,t,n);case"base64":return uRt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lRt(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};_e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dRt(r,e,t){return e===0&&t===r.length?Vve.fromByteArray(r):Vve.fromByteArray(r.slice(e,t))}function hqe(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+o<=t){var c,u,l,h;switch(o){case 1:i<128&&(s=i);break;case 2:c=r[a+1],(c&192)===128&&(h=(i&31)<<6|c&63,h>127&&(s=h));break;case 3:c=r[a+1],u=r[a+2],(c&192)===128&&(u&192)===128&&(h=(i&15)<<12|(c&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:c=r[a+1],u=r[a+2],l=r[a+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(h=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=o}return pRt(n)}var cqe=4096;function pRt(r){var e=r.length;if(e<=cqe)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}_e.prototype.readUintLE=_e.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};_e.prototype.readUint8=_e.prototype.readUInt8=function(e,t){return e=e>>>0,t||Ao(e,1,this.length),this[e]};_e.prototype.readUint16LE=_e.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Ao(e,2,this.length),this[e]|this[e+1]<<8};_e.prototype.readUint16BE=_e.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Ao(e,2,this.length),this[e]<<8|this[e+1]};_e.prototype.readUint32LE=_e.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};_e.prototype.readUint32BE=_e.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};_e.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};_e.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};_e.prototype.readInt8=function(e,t){return e=e>>>0,t||Ao(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};_e.prototype.readInt16LE=function(e,t){e=e>>>0,t||Ao(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};_e.prototype.readInt16BE=function(e,t){e=e>>>0,t||Ao(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};_e.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};_e.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};_e.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),D5.read(this,e,!0,23,4)};_e.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),D5.read(this,e,!1,23,4)};_e.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Ao(e,8,this.length),D5.read(this,e,!0,52,8)};_e.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Ao(e,8,this.length),D5.read(this,e,!1,52,8)};function ol(r,e,t,n,a,i){if(!_e.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}_e.prototype.writeUintLE=_e.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ol(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=e&255;++o>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ol(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=e&255;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n};_e.prototype.writeUint8=_e.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,1,255,0),this[t]=e&255,t+1};_e.prototype.writeUint16LE=_e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};_e.prototype.writeUint16BE=_e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};_e.prototype.writeUint32LE=_e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};_e.prototype.writeUint32BE=_e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};_e.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ol(this,e,t,n,i-1,-i)}var s=0,o=1,c=0;for(this[t]=e&255;++s>0)-c&255;return t+n};_e.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ol(this,e,t,n,i-1,-i)}var s=n-1,o=1,c=0;for(this[t+s]=e&255;--s>=0&&(o*=256);)e<0&&c===0&&this[t+s+1]!==0&&(c=1),this[t+s]=(e/o>>0)-c&255;return t+n};_e.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};_e.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};_e.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};_e.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};_e.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function fqe(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function mqe(r,e,t,n,a){return e=+e,t=t>>>0,a||fqe(r,e,t,4,34028234663852886e22,-34028234663852886e22),D5.write(r,e,t,n,23,4),t+4}_e.prototype.writeFloatLE=function(e,t,n){return mqe(this,e,t,!0,n)};_e.prototype.writeFloatBE=function(e,t,n){return mqe(this,e,t,!1,n)};function yqe(r,e,t,n,a){return e=+e,t=t>>>0,a||fqe(r,e,t,8,17976931348623157e292,-17976931348623157e292),D5.write(r,e,t,n,52,8),t+8}_e.prototype.writeDoubleLE=function(e,t,n){return yqe(this,e,t,!0,n)};_e.prototype.writeDoubleBE=function(e,t,n){return yqe(this,e,t,!1,n)};_e.prototype.copy=function(e,t,n,a){if(!_e.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function vRt(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function gqe(r){return Vve.toByteArray(bRt(r))}function Rie(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function lf(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Xve(r){return r!==r}var xRt=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var _qe=_((V_n,xqe)=>{d();p();var gs=xqe.exports={},df,pf;function e2e(){throw new Error("setTimeout has not been defined")}function t2e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?df=setTimeout:df=e2e}catch{df=e2e}try{typeof clearTimeout=="function"?pf=clearTimeout:pf=t2e}catch{pf=t2e}})();function bqe(r){if(df===setTimeout)return setTimeout(r,0);if((df===e2e||!df)&&setTimeout)return df=setTimeout,setTimeout(r,0);try{return df(r,0)}catch{try{return df.call(null,r,0)}catch{return df.call(this,r,0)}}}function _Rt(r){if(pf===clearTimeout)return clearTimeout(r);if((pf===t2e||!pf)&&clearTimeout)return pf=clearTimeout,clearTimeout(r);try{return pf(r)}catch{try{return pf.call(null,r)}catch{return pf.call(this,r)}}}var jm=[],O5=!1,X1,Mie=-1;function TRt(){!O5||!X1||(O5=!1,X1.length?jm=X1.concat(jm):Mie=-1,jm.length&&vqe())}function vqe(){if(!O5){var r=bqe(TRt);O5=!0;for(var e=jm.length;e;){for(X1=jm,jm=[];++Mie1)for(var t=1;t{b=un(lc()),w=un(_qe()),IRt=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),global=IRt});var Cr=_((Tqe,r2e)=>{d();p();(function(r,e){"use strict";function t(A,v){if(!A)throw new Error(v||"Assertion failed")}function n(A,v){A.super_=v;var k=function(){};k.prototype=v.prototype,A.prototype=new k,A.prototype.constructor=A}function a(A,v,k){if(a.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((v==="le"||v==="be")&&(k=v,v=10),this._init(A||0,v||10,k||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=lc().Buffer}catch{}a.isBN=function(v){return v instanceof a?!0:v!==null&&typeof v=="object"&&v.constructor.wordSize===a.wordSize&&Array.isArray(v.words)},a.max=function(v,k){return v.cmp(k)>0?v:k},a.min=function(v,k){return v.cmp(k)<0?v:k},a.prototype._init=function(v,k,O){if(typeof v=="number")return this._initNumber(v,k,O);if(typeof v=="object")return this._initArray(v,k,O);k==="hex"&&(k=16),t(k===(k|0)&&k>=2&&k<=36),v=v.toString().replace(/\s+/g,"");var D=0;v[0]==="-"&&(D++,this.negative=1),D=0;D-=3)x=v[D]|v[D-1]<<8|v[D-2]<<16,this.words[B]|=x<>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);else if(O==="le")for(D=0,B=0;D>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);return this._strip()};function s(A,v){var k=A.charCodeAt(v);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;t(!1,"Invalid character in "+A)}function o(A,v,k){var O=s(A,k);return k-1>=v&&(O|=s(A,k-1)<<4),O}a.prototype._parseHex=function(v,k,O){this.length=Math.ceil((v.length-k)/6),this.words=new Array(this.length);for(var D=0;D=k;D-=2)N=o(v,k,D)<=18?(B-=18,x+=1,this.words[x]|=N>>>26):B+=8;else{var U=v.length-k;for(D=U%2===0?k+1:k;D=18?(B-=18,x+=1,this.words[x]|=N>>>26):B+=8}this._strip()};function c(A,v,k,O){for(var D=0,B=0,x=Math.min(A.length,k),N=v;N=49?B=U-49+10:U>=17?B=U-17+10:B=U,t(U>=0&&B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(v,k){v=v||10,k=k|0||1;var O;if(v===16||v==="hex"){O="";for(var D=0,B=0,x=0;x>>24-D&16777215,D+=2,D>=26&&(D-=26,x--),B!==0||x!==this.length-1?O=h[6-U.length]+U+O:O=U+O}for(B!==0&&(O=B.toString(16)+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(v===(v|0)&&v>=2&&v<=36){var E=f[v],z=m[v];O="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var j=ee.modrn(z).toString(v);ee=ee.idivn(z),ee.isZero()?O=j+O:O=h[E-j.length]+j+O}for(this.isZero()&&(O="0"+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(v,k){return this.toArrayLike(i,v,k)}),a.prototype.toArray=function(v,k){return this.toArrayLike(Array,v,k)};var y=function(v,k){return v.allocUnsafe?v.allocUnsafe(k):new v(k)};a.prototype.toArrayLike=function(v,k,O){this._strip();var D=this.byteLength(),B=O||Math.max(1,D);t(D<=B,"byte array longer than desired length"),t(B>0,"Requested array length <= 0");var x=y(v,B),N=k==="le"?"LE":"BE";return this["_toArrayLike"+N](x,D),x},a.prototype._toArrayLikeLE=function(v,k){for(var O=0,D=0,B=0,x=0;B>8&255),O>16&255),x===6?(O>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O=0&&(v[O--]=N>>8&255),O>=0&&(v[O--]=N>>16&255),x===6?(O>=0&&(v[O--]=N>>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O>=0)for(v[O--]=D;O>=0;)v[O--]=0},Math.clz32?a.prototype._countBits=function(v){return 32-Math.clz32(v)}:a.prototype._countBits=function(v){var k=v,O=0;return k>=4096&&(O+=13,k>>>=13),k>=64&&(O+=7,k>>>=7),k>=8&&(O+=4,k>>>=4),k>=2&&(O+=2,k>>>=2),O+k},a.prototype._zeroBits=function(v){if(v===0)return 26;var k=v,O=0;return(k&8191)===0&&(O+=13,k>>>=13),(k&127)===0&&(O+=7,k>>>=7),(k&15)===0&&(O+=4,k>>>=4),(k&3)===0&&(O+=2,k>>>=2),(k&1)===0&&O++,O},a.prototype.bitLength=function(){var v=this.words[this.length-1],k=this._countBits(v);return(this.length-1)*26+k};function I(A){for(var v=new Array(A.bitLength()),k=0;k>>D&1}return v}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,k=0;kv.length?this.clone().ior(v):v.clone().ior(this)},a.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},a.prototype.iuand=function(v){var k;this.length>v.length?k=v:k=this;for(var O=0;Ov.length?this.clone().iand(v):v.clone().iand(this)},a.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},a.prototype.iuxor=function(v){var k,O;this.length>v.length?(k=this,O=v):(k=v,O=this);for(var D=0;Dv.length?this.clone().ixor(v):v.clone().ixor(this)},a.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},a.prototype.inotn=function(v){t(typeof v=="number"&&v>=0);var k=Math.ceil(v/26)|0,O=v%26;this._expand(k),O>0&&k--;for(var D=0;D0&&(this.words[D]=~this.words[D]&67108863>>26-O),this._strip()},a.prototype.notn=function(v){return this.clone().inotn(v)},a.prototype.setn=function(v,k){t(typeof v=="number"&&v>=0);var O=v/26|0,D=v%26;return this._expand(O+1),k?this.words[O]=this.words[O]|1<v.length?(O=this,D=v):(O=v,D=this);for(var B=0,x=0;x>>26;for(;B!==0&&x>>26;if(this.length=O.length,B!==0)this.words[this.length]=B,this.length++;else if(O!==this)for(;xv.length?this.clone().iadd(v):v.clone().iadd(this)},a.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var k=this.iadd(v);return v.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var O=this.cmp(v);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;O>0?(D=this,B=v):(D=v,B=this);for(var x=0,N=0;N>26,this.words[N]=k&67108863;for(;x!==0&&N>26,this.words[N]=k&67108863;if(x===0&&N>>26,ee=U&67108863,j=Math.min(E,v.length-1),X=Math.max(0,E-A.length+1);X<=j;X++){var ie=E-X|0;D=A.words[ie]|0,B=v.words[X]|0,x=D*B+ee,z+=x/67108864|0,ee=x&67108863}k.words[E]=ee|0,U=z|0}return U!==0?k.words[E]=U|0:k.length--,k._strip()}var R=function(v,k,O){var D=v.words,B=k.words,x=O.words,N=0,U,E,z,ee=D[0]|0,j=ee&8191,X=ee>>>13,ie=D[1]|0,ue=ie&8191,he=ie>>>13,ke=D[2]|0,ge=ke&8191,me=ke>>>13,Ke=D[3]|0,ve=Ke&8191,Ae=Ke>>>13,so=D[4]|0,It=so&8191,bt=so>>>13,ai=D[5]|0,xt=ai&8191,st=ai>>>13,ii=D[6]|0,Nt=ii&8191,dt=ii>>>13,oo=D[7]|0,jt=oo&8191,Bt=oo>>>13,sc=D[8]|0,ot=sc&8191,pt=sc>>>13,Dc=D[9]|0,Et=Dc&8191,Ct=Dc>>>13,Lc=B[0]|0,Dt=Lc&8191,kt=Lc>>>13,Oc=B[1]|0,At=Oc&8191,Lt=Oc>>>13,oc=B[2]|0,Ot=oc&8191,qt=oc>>>13,qc=B[3]|0,Pt=qc&8191,Ft=qc>>>13,Fc=B[4]|0,St=Fc&8191,Wt=Fc>>>13,cc=B[5]|0,Qe=cc&8191,it=cc>>>13,uc=B[6]|0,Ut=uc&8191,Kt=uc>>>13,il=B[7]|0,Gt=il&8191,Vt=il>>>13,sl=B[8]|0,Yt=sl&8191,$t=sl>>>13,Bu=B[9]|0,on=Bu&8191,cn=Bu>>>13;O.negative=v.negative^k.negative,O.length=19,U=Math.imul(j,Dt),E=Math.imul(j,kt),E=E+Math.imul(X,Dt)|0,z=Math.imul(X,kt);var Wc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,U=Math.imul(ue,Dt),E=Math.imul(ue,kt),E=E+Math.imul(he,Dt)|0,z=Math.imul(he,kt),U=U+Math.imul(j,At)|0,E=E+Math.imul(j,Lt)|0,E=E+Math.imul(X,At)|0,z=z+Math.imul(X,Lt)|0;var Uc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,U=Math.imul(ge,Dt),E=Math.imul(ge,kt),E=E+Math.imul(me,Dt)|0,z=Math.imul(me,kt),U=U+Math.imul(ue,At)|0,E=E+Math.imul(ue,Lt)|0,E=E+Math.imul(he,At)|0,z=z+Math.imul(he,Lt)|0,U=U+Math.imul(j,Ot)|0,E=E+Math.imul(j,qt)|0,E=E+Math.imul(X,Ot)|0,z=z+Math.imul(X,qt)|0;var Hc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,U=Math.imul(ve,Dt),E=Math.imul(ve,kt),E=E+Math.imul(Ae,Dt)|0,z=Math.imul(Ae,kt),U=U+Math.imul(ge,At)|0,E=E+Math.imul(ge,Lt)|0,E=E+Math.imul(me,At)|0,z=z+Math.imul(me,Lt)|0,U=U+Math.imul(ue,Ot)|0,E=E+Math.imul(ue,qt)|0,E=E+Math.imul(he,Ot)|0,z=z+Math.imul(he,qt)|0,U=U+Math.imul(j,Pt)|0,E=E+Math.imul(j,Ft)|0,E=E+Math.imul(X,Pt)|0,z=z+Math.imul(X,Ft)|0;var jc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(jc>>>26)|0,jc&=67108863,U=Math.imul(It,Dt),E=Math.imul(It,kt),E=E+Math.imul(bt,Dt)|0,z=Math.imul(bt,kt),U=U+Math.imul(ve,At)|0,E=E+Math.imul(ve,Lt)|0,E=E+Math.imul(Ae,At)|0,z=z+Math.imul(Ae,Lt)|0,U=U+Math.imul(ge,Ot)|0,E=E+Math.imul(ge,qt)|0,E=E+Math.imul(me,Ot)|0,z=z+Math.imul(me,qt)|0,U=U+Math.imul(ue,Pt)|0,E=E+Math.imul(ue,Ft)|0,E=E+Math.imul(he,Pt)|0,z=z+Math.imul(he,Ft)|0,U=U+Math.imul(j,St)|0,E=E+Math.imul(j,Wt)|0,E=E+Math.imul(X,St)|0,z=z+Math.imul(X,Wt)|0;var zc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(zc>>>26)|0,zc&=67108863,U=Math.imul(xt,Dt),E=Math.imul(xt,kt),E=E+Math.imul(st,Dt)|0,z=Math.imul(st,kt),U=U+Math.imul(It,At)|0,E=E+Math.imul(It,Lt)|0,E=E+Math.imul(bt,At)|0,z=z+Math.imul(bt,Lt)|0,U=U+Math.imul(ve,Ot)|0,E=E+Math.imul(ve,qt)|0,E=E+Math.imul(Ae,Ot)|0,z=z+Math.imul(Ae,qt)|0,U=U+Math.imul(ge,Pt)|0,E=E+Math.imul(ge,Ft)|0,E=E+Math.imul(me,Pt)|0,z=z+Math.imul(me,Ft)|0,U=U+Math.imul(ue,St)|0,E=E+Math.imul(ue,Wt)|0,E=E+Math.imul(he,St)|0,z=z+Math.imul(he,Wt)|0,U=U+Math.imul(j,Qe)|0,E=E+Math.imul(j,it)|0,E=E+Math.imul(X,Qe)|0,z=z+Math.imul(X,it)|0;var zp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(zp>>>26)|0,zp&=67108863,U=Math.imul(Nt,Dt),E=Math.imul(Nt,kt),E=E+Math.imul(dt,Dt)|0,z=Math.imul(dt,kt),U=U+Math.imul(xt,At)|0,E=E+Math.imul(xt,Lt)|0,E=E+Math.imul(st,At)|0,z=z+Math.imul(st,Lt)|0,U=U+Math.imul(It,Ot)|0,E=E+Math.imul(It,qt)|0,E=E+Math.imul(bt,Ot)|0,z=z+Math.imul(bt,qt)|0,U=U+Math.imul(ve,Pt)|0,E=E+Math.imul(ve,Ft)|0,E=E+Math.imul(Ae,Pt)|0,z=z+Math.imul(Ae,Ft)|0,U=U+Math.imul(ge,St)|0,E=E+Math.imul(ge,Wt)|0,E=E+Math.imul(me,St)|0,z=z+Math.imul(me,Wt)|0,U=U+Math.imul(ue,Qe)|0,E=E+Math.imul(ue,it)|0,E=E+Math.imul(he,Qe)|0,z=z+Math.imul(he,it)|0,U=U+Math.imul(j,Ut)|0,E=E+Math.imul(j,Kt)|0,E=E+Math.imul(X,Ut)|0,z=z+Math.imul(X,Kt)|0;var Kp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,U=Math.imul(jt,Dt),E=Math.imul(jt,kt),E=E+Math.imul(Bt,Dt)|0,z=Math.imul(Bt,kt),U=U+Math.imul(Nt,At)|0,E=E+Math.imul(Nt,Lt)|0,E=E+Math.imul(dt,At)|0,z=z+Math.imul(dt,Lt)|0,U=U+Math.imul(xt,Ot)|0,E=E+Math.imul(xt,qt)|0,E=E+Math.imul(st,Ot)|0,z=z+Math.imul(st,qt)|0,U=U+Math.imul(It,Pt)|0,E=E+Math.imul(It,Ft)|0,E=E+Math.imul(bt,Pt)|0,z=z+Math.imul(bt,Ft)|0,U=U+Math.imul(ve,St)|0,E=E+Math.imul(ve,Wt)|0,E=E+Math.imul(Ae,St)|0,z=z+Math.imul(Ae,Wt)|0,U=U+Math.imul(ge,Qe)|0,E=E+Math.imul(ge,it)|0,E=E+Math.imul(me,Qe)|0,z=z+Math.imul(me,it)|0,U=U+Math.imul(ue,Ut)|0,E=E+Math.imul(ue,Kt)|0,E=E+Math.imul(he,Ut)|0,z=z+Math.imul(he,Kt)|0,U=U+Math.imul(j,Gt)|0,E=E+Math.imul(j,Vt)|0,E=E+Math.imul(X,Gt)|0,z=z+Math.imul(X,Vt)|0;var Gp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,U=Math.imul(ot,Dt),E=Math.imul(ot,kt),E=E+Math.imul(pt,Dt)|0,z=Math.imul(pt,kt),U=U+Math.imul(jt,At)|0,E=E+Math.imul(jt,Lt)|0,E=E+Math.imul(Bt,At)|0,z=z+Math.imul(Bt,Lt)|0,U=U+Math.imul(Nt,Ot)|0,E=E+Math.imul(Nt,qt)|0,E=E+Math.imul(dt,Ot)|0,z=z+Math.imul(dt,qt)|0,U=U+Math.imul(xt,Pt)|0,E=E+Math.imul(xt,Ft)|0,E=E+Math.imul(st,Pt)|0,z=z+Math.imul(st,Ft)|0,U=U+Math.imul(It,St)|0,E=E+Math.imul(It,Wt)|0,E=E+Math.imul(bt,St)|0,z=z+Math.imul(bt,Wt)|0,U=U+Math.imul(ve,Qe)|0,E=E+Math.imul(ve,it)|0,E=E+Math.imul(Ae,Qe)|0,z=z+Math.imul(Ae,it)|0,U=U+Math.imul(ge,Ut)|0,E=E+Math.imul(ge,Kt)|0,E=E+Math.imul(me,Ut)|0,z=z+Math.imul(me,Kt)|0,U=U+Math.imul(ue,Gt)|0,E=E+Math.imul(ue,Vt)|0,E=E+Math.imul(he,Gt)|0,z=z+Math.imul(he,Vt)|0,U=U+Math.imul(j,Yt)|0,E=E+Math.imul(j,$t)|0,E=E+Math.imul(X,Yt)|0,z=z+Math.imul(X,$t)|0;var Vp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,U=Math.imul(Et,Dt),E=Math.imul(Et,kt),E=E+Math.imul(Ct,Dt)|0,z=Math.imul(Ct,kt),U=U+Math.imul(ot,At)|0,E=E+Math.imul(ot,Lt)|0,E=E+Math.imul(pt,At)|0,z=z+Math.imul(pt,Lt)|0,U=U+Math.imul(jt,Ot)|0,E=E+Math.imul(jt,qt)|0,E=E+Math.imul(Bt,Ot)|0,z=z+Math.imul(Bt,qt)|0,U=U+Math.imul(Nt,Pt)|0,E=E+Math.imul(Nt,Ft)|0,E=E+Math.imul(dt,Pt)|0,z=z+Math.imul(dt,Ft)|0,U=U+Math.imul(xt,St)|0,E=E+Math.imul(xt,Wt)|0,E=E+Math.imul(st,St)|0,z=z+Math.imul(st,Wt)|0,U=U+Math.imul(It,Qe)|0,E=E+Math.imul(It,it)|0,E=E+Math.imul(bt,Qe)|0,z=z+Math.imul(bt,it)|0,U=U+Math.imul(ve,Ut)|0,E=E+Math.imul(ve,Kt)|0,E=E+Math.imul(Ae,Ut)|0,z=z+Math.imul(Ae,Kt)|0,U=U+Math.imul(ge,Gt)|0,E=E+Math.imul(ge,Vt)|0,E=E+Math.imul(me,Gt)|0,z=z+Math.imul(me,Vt)|0,U=U+Math.imul(ue,Yt)|0,E=E+Math.imul(ue,$t)|0,E=E+Math.imul(he,Yt)|0,z=z+Math.imul(he,$t)|0,U=U+Math.imul(j,on)|0,E=E+Math.imul(j,cn)|0,E=E+Math.imul(X,on)|0,z=z+Math.imul(X,cn)|0;var Yp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,U=Math.imul(Et,At),E=Math.imul(Et,Lt),E=E+Math.imul(Ct,At)|0,z=Math.imul(Ct,Lt),U=U+Math.imul(ot,Ot)|0,E=E+Math.imul(ot,qt)|0,E=E+Math.imul(pt,Ot)|0,z=z+Math.imul(pt,qt)|0,U=U+Math.imul(jt,Pt)|0,E=E+Math.imul(jt,Ft)|0,E=E+Math.imul(Bt,Pt)|0,z=z+Math.imul(Bt,Ft)|0,U=U+Math.imul(Nt,St)|0,E=E+Math.imul(Nt,Wt)|0,E=E+Math.imul(dt,St)|0,z=z+Math.imul(dt,Wt)|0,U=U+Math.imul(xt,Qe)|0,E=E+Math.imul(xt,it)|0,E=E+Math.imul(st,Qe)|0,z=z+Math.imul(st,it)|0,U=U+Math.imul(It,Ut)|0,E=E+Math.imul(It,Kt)|0,E=E+Math.imul(bt,Ut)|0,z=z+Math.imul(bt,Kt)|0,U=U+Math.imul(ve,Gt)|0,E=E+Math.imul(ve,Vt)|0,E=E+Math.imul(Ae,Gt)|0,z=z+Math.imul(Ae,Vt)|0,U=U+Math.imul(ge,Yt)|0,E=E+Math.imul(ge,$t)|0,E=E+Math.imul(me,Yt)|0,z=z+Math.imul(me,$t)|0,U=U+Math.imul(ue,on)|0,E=E+Math.imul(ue,cn)|0,E=E+Math.imul(he,on)|0,z=z+Math.imul(he,cn)|0;var $p=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+($p>>>26)|0,$p&=67108863,U=Math.imul(Et,Ot),E=Math.imul(Et,qt),E=E+Math.imul(Ct,Ot)|0,z=Math.imul(Ct,qt),U=U+Math.imul(ot,Pt)|0,E=E+Math.imul(ot,Ft)|0,E=E+Math.imul(pt,Pt)|0,z=z+Math.imul(pt,Ft)|0,U=U+Math.imul(jt,St)|0,E=E+Math.imul(jt,Wt)|0,E=E+Math.imul(Bt,St)|0,z=z+Math.imul(Bt,Wt)|0,U=U+Math.imul(Nt,Qe)|0,E=E+Math.imul(Nt,it)|0,E=E+Math.imul(dt,Qe)|0,z=z+Math.imul(dt,it)|0,U=U+Math.imul(xt,Ut)|0,E=E+Math.imul(xt,Kt)|0,E=E+Math.imul(st,Ut)|0,z=z+Math.imul(st,Kt)|0,U=U+Math.imul(It,Gt)|0,E=E+Math.imul(It,Vt)|0,E=E+Math.imul(bt,Gt)|0,z=z+Math.imul(bt,Vt)|0,U=U+Math.imul(ve,Yt)|0,E=E+Math.imul(ve,$t)|0,E=E+Math.imul(Ae,Yt)|0,z=z+Math.imul(Ae,$t)|0,U=U+Math.imul(ge,on)|0,E=E+Math.imul(ge,cn)|0,E=E+Math.imul(me,on)|0,z=z+Math.imul(me,cn)|0;var Qp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,U=Math.imul(Et,Pt),E=Math.imul(Et,Ft),E=E+Math.imul(Ct,Pt)|0,z=Math.imul(Ct,Ft),U=U+Math.imul(ot,St)|0,E=E+Math.imul(ot,Wt)|0,E=E+Math.imul(pt,St)|0,z=z+Math.imul(pt,Wt)|0,U=U+Math.imul(jt,Qe)|0,E=E+Math.imul(jt,it)|0,E=E+Math.imul(Bt,Qe)|0,z=z+Math.imul(Bt,it)|0,U=U+Math.imul(Nt,Ut)|0,E=E+Math.imul(Nt,Kt)|0,E=E+Math.imul(dt,Ut)|0,z=z+Math.imul(dt,Kt)|0,U=U+Math.imul(xt,Gt)|0,E=E+Math.imul(xt,Vt)|0,E=E+Math.imul(st,Gt)|0,z=z+Math.imul(st,Vt)|0,U=U+Math.imul(It,Yt)|0,E=E+Math.imul(It,$t)|0,E=E+Math.imul(bt,Yt)|0,z=z+Math.imul(bt,$t)|0,U=U+Math.imul(ve,on)|0,E=E+Math.imul(ve,cn)|0,E=E+Math.imul(Ae,on)|0,z=z+Math.imul(Ae,cn)|0;var Jp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,U=Math.imul(Et,St),E=Math.imul(Et,Wt),E=E+Math.imul(Ct,St)|0,z=Math.imul(Ct,Wt),U=U+Math.imul(ot,Qe)|0,E=E+Math.imul(ot,it)|0,E=E+Math.imul(pt,Qe)|0,z=z+Math.imul(pt,it)|0,U=U+Math.imul(jt,Ut)|0,E=E+Math.imul(jt,Kt)|0,E=E+Math.imul(Bt,Ut)|0,z=z+Math.imul(Bt,Kt)|0,U=U+Math.imul(Nt,Gt)|0,E=E+Math.imul(Nt,Vt)|0,E=E+Math.imul(dt,Gt)|0,z=z+Math.imul(dt,Vt)|0,U=U+Math.imul(xt,Yt)|0,E=E+Math.imul(xt,$t)|0,E=E+Math.imul(st,Yt)|0,z=z+Math.imul(st,$t)|0,U=U+Math.imul(It,on)|0,E=E+Math.imul(It,cn)|0,E=E+Math.imul(bt,on)|0,z=z+Math.imul(bt,cn)|0;var Zp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,U=Math.imul(Et,Qe),E=Math.imul(Et,it),E=E+Math.imul(Ct,Qe)|0,z=Math.imul(Ct,it),U=U+Math.imul(ot,Ut)|0,E=E+Math.imul(ot,Kt)|0,E=E+Math.imul(pt,Ut)|0,z=z+Math.imul(pt,Kt)|0,U=U+Math.imul(jt,Gt)|0,E=E+Math.imul(jt,Vt)|0,E=E+Math.imul(Bt,Gt)|0,z=z+Math.imul(Bt,Vt)|0,U=U+Math.imul(Nt,Yt)|0,E=E+Math.imul(Nt,$t)|0,E=E+Math.imul(dt,Yt)|0,z=z+Math.imul(dt,$t)|0,U=U+Math.imul(xt,on)|0,E=E+Math.imul(xt,cn)|0,E=E+Math.imul(st,on)|0,z=z+Math.imul(st,cn)|0;var $1=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+($1>>>26)|0,$1&=67108863,U=Math.imul(Et,Ut),E=Math.imul(Et,Kt),E=E+Math.imul(Ct,Ut)|0,z=Math.imul(Ct,Kt),U=U+Math.imul(ot,Gt)|0,E=E+Math.imul(ot,Vt)|0,E=E+Math.imul(pt,Gt)|0,z=z+Math.imul(pt,Vt)|0,U=U+Math.imul(jt,Yt)|0,E=E+Math.imul(jt,$t)|0,E=E+Math.imul(Bt,Yt)|0,z=z+Math.imul(Bt,$t)|0,U=U+Math.imul(Nt,on)|0,E=E+Math.imul(Nt,cn)|0,E=E+Math.imul(dt,on)|0,z=z+Math.imul(dt,cn)|0;var Q1=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Q1>>>26)|0,Q1&=67108863,U=Math.imul(Et,Gt),E=Math.imul(Et,Vt),E=E+Math.imul(Ct,Gt)|0,z=Math.imul(Ct,Vt),U=U+Math.imul(ot,Yt)|0,E=E+Math.imul(ot,$t)|0,E=E+Math.imul(pt,Yt)|0,z=z+Math.imul(pt,$t)|0,U=U+Math.imul(jt,on)|0,E=E+Math.imul(jt,cn)|0,E=E+Math.imul(Bt,on)|0,z=z+Math.imul(Bt,cn)|0;var Hve=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Hve>>>26)|0,Hve&=67108863,U=Math.imul(Et,Yt),E=Math.imul(Et,$t),E=E+Math.imul(Ct,Yt)|0,z=Math.imul(Ct,$t),U=U+Math.imul(ot,on)|0,E=E+Math.imul(ot,cn)|0,E=E+Math.imul(pt,on)|0,z=z+Math.imul(pt,cn)|0;var jve=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(jve>>>26)|0,jve&=67108863,U=Math.imul(Et,on),E=Math.imul(Et,cn),E=E+Math.imul(Ct,on)|0,z=Math.imul(Ct,cn);var zve=(N+U|0)+((E&8191)<<13)|0;return N=(z+(E>>>13)|0)+(zve>>>26)|0,zve&=67108863,x[0]=Wc,x[1]=Uc,x[2]=Hc,x[3]=jc,x[4]=zc,x[5]=zp,x[6]=Kp,x[7]=Gp,x[8]=Vp,x[9]=Yp,x[10]=$p,x[11]=Qp,x[12]=Jp,x[13]=Zp,x[14]=$1,x[15]=Q1,x[16]=Hve,x[17]=jve,x[18]=zve,N!==0&&(x[19]=N,O.length++),O};Math.imul||(R=C);function L(A,v,k){k.negative=v.negative^A.negative,k.length=A.length+v.length;for(var O=0,D=0,B=0;B>>26)|0,D+=x>>>26,x&=67108863}k.words[B]=N,O=x,x=D}return O!==0?k.words[B]=O:k.length--,k._strip()}function F(A,v,k){return L(A,v,k)}a.prototype.mulTo=function(v,k){var O,D=this.length+v.length;return this.length===10&&v.length===10?O=R(this,v,k):D<63?O=C(this,v,k):D<1024?O=L(this,v,k):O=F(this,v,k),O};function W(A,v){this.x=A,this.y=v}W.prototype.makeRBT=function(v){for(var k=new Array(v),O=a.prototype._countBits(v)-1,D=0;D>=1;return D},W.prototype.permute=function(v,k,O,D,B,x){for(var N=0;N>>1)B++;return 1<>>13,O[2*x+1]=B&8191,B=B>>>13;for(x=2*k;x>=26,O+=B/67108864|0,O+=x>>>26,this.words[D]=x&67108863}return O!==0&&(this.words[D]=O,this.length++),k?this.ineg():this},a.prototype.muln=function(v){return this.clone().imuln(v)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(v){var k=I(v);if(k.length===0)return new a(1);for(var O=this,D=0;D=0);var k=v%26,O=(v-k)/26,D=67108863>>>26-k<<26-k,B;if(k!==0){var x=0;for(B=0;B>>26-k}x&&(this.words[B]=x,this.length++)}if(O!==0){for(B=this.length-1;B>=0;B--)this.words[B+O]=this.words[B];for(B=0;B=0);var D;k?D=(k-k%26)/26:D=0;var B=v%26,x=Math.min((v-B)/26,this.length),N=67108863^67108863>>>B<x)for(this.length-=x,E=0;E=0&&(z!==0||E>=D);E--){var ee=this.words[E]|0;this.words[E]=z<<26-B|ee>>>B,z=ee&N}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(v,k,O){return t(this.negative===0),this.iushrn(v,k,O)},a.prototype.shln=function(v){return this.clone().ishln(v)},a.prototype.ushln=function(v){return this.clone().iushln(v)},a.prototype.shrn=function(v){return this.clone().ishrn(v)},a.prototype.ushrn=function(v){return this.clone().iushrn(v)},a.prototype.testn=function(v){t(typeof v=="number"&&v>=0);var k=v%26,O=(v-k)/26,D=1<=0);var k=v%26,O=(v-k)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(k!==0&&O++,this.length=Math.min(O,this.length),k!==0){var D=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(v){if(t(typeof v=="number"),t(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(U/67108864|0),this.words[B+O]=x&67108863}for(;B>26,this.words[B+O]=x&67108863;if(N===0)return this._strip();for(t(N===-1),N=0,B=0;B>26,this.words[B]=x&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(v,k){var O=this.length-v.length,D=this.clone(),B=v,x=B.words[B.length-1]|0,N=this._countBits(x);O=26-N,O!==0&&(B=B.ushln(O),D.iushln(O),x=B.words[B.length-1]|0);var U=D.length-B.length,E;if(k!=="mod"){E=new a(null),E.length=U+1,E.words=new Array(E.length);for(var z=0;z=0;j--){var X=(D.words[B.length+j]|0)*67108864+(D.words[B.length+j-1]|0);for(X=Math.min(X/x|0,67108863),D._ishlnsubmul(B,X,j);D.negative!==0;)X--,D.negative=0,D._ishlnsubmul(B,1,j),D.isZero()||(D.negative^=1);E&&(E.words[j]=X)}return E&&E._strip(),D._strip(),k!=="div"&&O!==0&&D.iushrn(O),{div:E||null,mod:D}},a.prototype.divmod=function(v,k,O){if(t(!v.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var D,B,x;return this.negative!==0&&v.negative===0?(x=this.neg().divmod(v,k),k!=="mod"&&(D=x.div.neg()),k!=="div"&&(B=x.mod.neg(),O&&B.negative!==0&&B.iadd(v)),{div:D,mod:B}):this.negative===0&&v.negative!==0?(x=this.divmod(v.neg(),k),k!=="mod"&&(D=x.div.neg()),{div:D,mod:x.mod}):(this.negative&v.negative)!==0?(x=this.neg().divmod(v.neg(),k),k!=="div"&&(B=x.mod.neg(),O&&B.negative!==0&&B.isub(v)),{div:x.div,mod:B}):v.length>this.length||this.cmp(v)<0?{div:new a(0),mod:this}:v.length===1?k==="div"?{div:this.divn(v.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new a(this.modrn(v.words[0]))}:this._wordDiv(v,k)},a.prototype.div=function(v){return this.divmod(v,"div",!1).div},a.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},a.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},a.prototype.divRound=function(v){var k=this.divmod(v);if(k.mod.isZero())return k.div;var O=k.div.negative!==0?k.mod.isub(v):k.mod,D=v.ushrn(1),B=v.andln(1),x=O.cmp(D);return x<0||B===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modrn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=(1<<26)%v,D=0,B=this.length-1;B>=0;B--)D=(O*D+(this.words[B]|0))%v;return k?-D:D},a.prototype.modn=function(v){return this.modrn(v)},a.prototype.idivn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+O*67108864;this.words[D]=B/v|0,O=B%v}return this._strip(),k?this.ineg():this},a.prototype.divn=function(v){return this.clone().idivn(v)},a.prototype.egcd=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),x=new a(0),N=new a(1),U=0;k.isEven()&&O.isEven();)k.iushrn(1),O.iushrn(1),++U;for(var E=O.clone(),z=k.clone();!k.isZero();){for(var ee=0,j=1;(k.words[0]&j)===0&&ee<26;++ee,j<<=1);if(ee>0)for(k.iushrn(ee);ee-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd(E),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var X=0,ie=1;(O.words[0]&ie)===0&&X<26;++X,ie<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(x.isOdd()||N.isOdd())&&(x.iadd(E),N.isub(z)),x.iushrn(1),N.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(x),B.isub(N)):(O.isub(k),x.isub(D),N.isub(B))}return{a:x,b:N,gcd:O.iushln(U)}},a.prototype._invmp=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),x=O.clone();k.cmpn(1)>0&&O.cmpn(1)>0;){for(var N=0,U=1;(k.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(k.iushrn(N);N-- >0;)D.isOdd()&&D.iadd(x),D.iushrn(1);for(var E=0,z=1;(O.words[0]&z)===0&&E<26;++E,z<<=1);if(E>0)for(O.iushrn(E);E-- >0;)B.isOdd()&&B.iadd(x),B.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(B)):(O.isub(k),B.isub(D))}var ee;return k.cmpn(1)===0?ee=D:ee=B,ee.cmpn(0)<0&&ee.iadd(v),ee},a.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var k=this.clone(),O=v.clone();k.negative=0,O.negative=0;for(var D=0;k.isEven()&&O.isEven();D++)k.iushrn(1),O.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;O.isEven();)O.iushrn(1);var B=k.cmp(O);if(B<0){var x=k;k=O,O=x}else if(B===0||O.cmpn(1)===0)break;k.isub(O)}while(!0);return O.iushln(D)},a.prototype.invm=function(v){return this.egcd(v).a.umod(v)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(v){return this.words[0]&v},a.prototype.bincn=function(v){t(typeof v=="number");var k=v%26,O=(v-k)/26,D=1<>>26,N&=67108863,this.words[x]=N}return B!==0&&(this.words[x]=B,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(v){var k=v<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var O;if(this.length>1)O=1;else{k&&(v=-v),t(v<=67108863,"Number is too big");var D=this.words[0]|0;O=D===v?0:Dv.length)return 1;if(this.length=0;O--){var D=this.words[O]|0,B=v.words[O]|0;if(D!==B){DB&&(k=1);break}}return k},a.prototype.gtn=function(v){return this.cmpn(v)===1},a.prototype.gt=function(v){return this.cmp(v)===1},a.prototype.gten=function(v){return this.cmpn(v)>=0},a.prototype.gte=function(v){return this.cmp(v)>=0},a.prototype.ltn=function(v){return this.cmpn(v)===-1},a.prototype.lt=function(v){return this.cmp(v)===-1},a.prototype.lten=function(v){return this.cmpn(v)<=0},a.prototype.lte=function(v){return this.cmp(v)<=0},a.prototype.eqn=function(v){return this.cmpn(v)===0},a.prototype.eq=function(v){return this.cmp(v)===0},a.red=function(v){return new T(v)},a.prototype.toRed=function(v){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(v){return this.red=v,this},a.prototype.forceRed=function(v){return t(!this.red,"Already a number in reduction context"),this._forceRed(v)},a.prototype.redAdd=function(v){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},a.prototype.redIAdd=function(v){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},a.prototype.redSub=function(v){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},a.prototype.redISub=function(v){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},a.prototype.redShl=function(v){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},a.prototype.redMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},a.prototype.redIMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(v){return t(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var V={k256:null,p224:null,p192:null,p25519:null};function K(A,v){this.name=A,this.p=new a(v,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var v=new a(null);return v.words=new Array(Math.ceil(this.n/13)),v},K.prototype.ireduce=function(v){var k=v,O;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),O=k.bitLength();while(O>this.n);var D=O0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},K.prototype.split=function(v,k){v.iushrn(this.n,0,k)},K.prototype.imulK=function(v){return v.imul(this.k)};function H(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(H,K),H.prototype.split=function(v,k){for(var O=4194303,D=Math.min(v.length,9),B=0;B>>22,x=N}x>>>=22,v.words[B-10]=x,x===0&&v.length>10?v.length-=10:v.length-=9},H.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var k=0,O=0;O>>=26,v.words[O]=B,k=D}return k!==0&&(v.words[v.length++]=k),v},a._prime=function(v){if(V[v])return V[v];var k;if(v==="k256")k=new H;else if(v==="p224")k=new G;else if(v==="p192")k=new Q;else if(v==="p25519")k=new q;else throw new Error("Unknown prime "+v);return V[v]=k,k};function T(A){if(typeof A=="string"){var v=a._prime(A);this.m=v.p,this.prime=v}else t(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}T.prototype._verify1=function(v){t(v.negative===0,"red works only with positives"),t(v.red,"red works only with red numbers")},T.prototype._verify2=function(v,k){t((v.negative|k.negative)===0,"red works only with positives"),t(v.red&&v.red===k.red,"red works only with red numbers")},T.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(u(v,v.umod(this.m)._forceRed(this)),v)},T.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},T.prototype.add=function(v,k){this._verify2(v,k);var O=v.add(k);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},T.prototype.iadd=function(v,k){this._verify2(v,k);var O=v.iadd(k);return O.cmp(this.m)>=0&&O.isub(this.m),O},T.prototype.sub=function(v,k){this._verify2(v,k);var O=v.sub(k);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},T.prototype.isub=function(v,k){this._verify2(v,k);var O=v.isub(k);return O.cmpn(0)<0&&O.iadd(this.m),O},T.prototype.shl=function(v,k){return this._verify1(v),this.imod(v.ushln(k))},T.prototype.imul=function(v,k){return this._verify2(v,k),this.imod(v.imul(k))},T.prototype.mul=function(v,k){return this._verify2(v,k),this.imod(v.mul(k))},T.prototype.isqr=function(v){return this.imul(v,v.clone())},T.prototype.sqr=function(v){return this.mul(v,v)},T.prototype.sqrt=function(v){if(v.isZero())return v.clone();var k=this.m.andln(3);if(t(k%2===1),k===3){var O=this.m.add(new a(1)).iushrn(2);return this.pow(v,O)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);t(!D.isZero());var x=new a(1).toRed(this),N=x.redNeg(),U=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new a(2*E*E).toRed(this);this.pow(E,U).cmp(N)!==0;)E.redIAdd(N);for(var z=this.pow(E,D),ee=this.pow(v,D.addn(1).iushrn(1)),j=this.pow(v,D),X=B;j.cmp(x)!==0;){for(var ie=j,ue=0;ie.cmp(x)!==0;ue++)ie=ie.redSqr();t(ue=0;B--){for(var z=k.words[B],ee=E-1;ee>=0;ee--){var j=z>>ee&1;if(x!==D[0]&&(x=this.sqr(x)),j===0&&N===0){U=0;continue}N<<=1,N|=j,U++,!(U!==O&&(B!==0||ee!==0))&&(x=this.mul(x,D[N]),U=0,N=0)}E=26}return x},T.prototype.convertTo=function(v){var k=v.umod(this.m);return k===v?k.clone():k},T.prototype.convertFrom=function(v){var k=v.clone();return k.red=null,k},a.mont=function(v){return new M(v)};function M(A){T.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(M,T),M.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},M.prototype.convertFrom=function(v){var k=this.imod(v.mul(this.rinv));return k.red=null,k},M.prototype.imul=function(v,k){if(v.isZero()||k.isZero())return v.words[0]=0,v.length=1,v;var O=v.imul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),x=B;return B.cmp(this.m)>=0?x=B.isub(this.m):B.cmpn(0)<0&&(x=B.iadd(this.m)),x._forceRed(this)},M.prototype.mul=function(v,k){if(v.isZero()||k.isZero())return new a(0)._forceRed(this);var O=v.mul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),x=B;return B.cmp(this.m)>=0?x=B.isub(this.m):B.cmpn(0)<0&&(x=B.iadd(this.m)),x._forceRed(this)},M.prototype.invm=function(v){var k=this.imod(v._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof r2e>"u"||r2e,Tqe)});var Iqe=_(Nie=>{"use strict";d();p();Object.defineProperty(Nie,"__esModule",{value:!0});Nie.version=void 0;Nie.version="logger/5.7.0"});var Zt=_(ff=>{"use strict";d();p();Object.defineProperty(ff,"__esModule",{value:!0});ff.Logger=ff.ErrorCode=ff.LogLevel=void 0;var Eqe=!1,Cqe=!1,Bie={debug:1,default:2,info:2,warning:3,error:4,off:5},kqe=Bie.default,ERt=Iqe(),n2e=null;function CRt(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var Aqe=CRt(),Sqe;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(Sqe=ff.LogLevel||(ff.LogLevel={}));var hf;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(hf=ff.ErrorCode||(ff.ErrorCode={}));var Pqe="0123456789abcdef",kRt=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();Bie[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(kqe>Bie[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],h+=Pqe[l[f]&15];a.push(u+"=Uint8Array(0x"+h+")")}else a.push(u+"="+JSON.stringify(l))}catch{a.push(u+"="+JSON.stringify(n[u].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case hf.NUMERIC_FAULT:{s="NUMERIC_FAULT";var o=e;switch(o){case"overflow":case"underflow":case"division-by-zero":s+="-"+o;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case hf.CALL_EXCEPTION:case hf.INSUFFICIENT_FUNDS:case hf.MISSING_NEW:case hf.NONCE_EXPIRED:case hf.REPLACEMENT_UNDERPRICED:case hf.TRANSACTION_REPLACED:case hf.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var c=new Error(e);return c.reason=i,c.code=t,Object.keys(n).forEach(function(u){c[u]=n[u]}),c},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),Aqe&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Aqe})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return n2e||(n2e=new r(ERt.version)),n2e},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Eqe){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Cqe=!!e,Eqe=!!t},r.setLogLevel=function(e){var t=Bie[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}kqe=t},r.from=function(e){return new r(e)},r.errors=hf,r.levels=Sqe,r}();ff.Logger=kRt});var Rqe=_(Die=>{"use strict";d();p();Object.defineProperty(Die,"__esModule",{value:!0});Die.version=void 0;Die.version="bytes/5.7.0"});var wr=_(Zr=>{"use strict";d();p();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.joinSignature=Zr.splitSignature=Zr.hexZeroPad=Zr.hexStripZeros=Zr.hexValue=Zr.hexConcat=Zr.hexDataSlice=Zr.hexDataLength=Zr.hexlify=Zr.isHexString=Zr.zeroPad=Zr.stripZeros=Zr.concat=Zr.arrayify=Zr.isBytes=Zr.isBytesLike=void 0;var ARt=Zt(),PRt=Rqe(),ts=new ARt.Logger(PRt.version);function Nqe(r){return!!r.toHexString}function q5(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return q5(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function Bqe(r){return Xp(r)&&!(r.length%2)||Oie(r)}Zr.isBytesLike=Bqe;function Mqe(r){return typeof r=="number"&&r==r&&r%1===0}function Oie(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!Mqe(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}Zr.isBytes=Oie;function eb(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),q5(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Nqe(r)&&(r=r.toHexString()),Xp(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":ts.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&ts.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),q5(t)}Zr.zeroPad=Lqe;function Xp(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}Zr.isHexString=Xp;var a2e="0123456789abcdef";function Kc(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=a2e[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Nqe(r))return r.toHexString();if(Xp(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":ts.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Oie(r)){for(var n="0x",a=0;a>4]+a2e[i&15]}return n}return ts.throwArgumentError("invalid hexlify value","value",r)}Zr.hexlify=Kc;function RRt(r){if(typeof r!="string")r=Kc(r);else if(!Xp(r)||r.length%2)return null;return(r.length-2)/2}Zr.hexDataLength=RRt;function MRt(r,e,t){return typeof r!="string"?r=Kc(r):(!Xp(r)||r.length%2)&&ts.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}Zr.hexDataSlice=MRt;function NRt(r){var e="0x";return r.forEach(function(t){e+=Kc(t).substring(2)}),e}Zr.hexConcat=NRt;function BRt(r){var e=Oqe(Kc(r,{hexPad:"left"}));return e==="0x"?"0x0":e}Zr.hexValue=BRt;function Oqe(r){typeof r!="string"&&(r=Kc(r)),Xp(r)||ts.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&ts.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}Zr.hexZeroPad=Lie;function qqe(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Bqe(r)){var t=eb(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=Kc(t.slice(0,32)),e.s=Kc(t.slice(32,64))):t.length===65?(e.r=Kc(t.slice(0,32)),e.s=Kc(t.slice(32,64)),e.v=t[64]):ts.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:ts.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=Kc(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=Lqe(eb(e._vs),32);e._vs=Kc(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&ts.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=Kc(n);e.s==null?e.s=i:e.s!==i&&ts.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?ts.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&ts.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!Xp(e.r)?ts.throwArgumentError("signature missing or invalid r","signature",r):e.r=Lie(e.r,32),e.s==null||!Xp(e.s)?ts.throwArgumentError("signature missing or invalid s","signature",r):e.s=Lie(e.s,32);var o=eb(e.s);o[0]>=128&&ts.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(o[0]|=128);var c=Kc(o);e._vs&&(Xp(e._vs)||ts.throwArgumentError("signature invalid _vs","signature",r),e._vs=Lie(e._vs,32)),e._vs==null?e._vs=c:e._vs!==c&&ts.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Zr.splitSignature=qqe;function DRt(r){return r=qqe(r),Kc(Dqe([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}Zr.joinSignature=DRt});var i2e=_(qie=>{"use strict";d();p();Object.defineProperty(qie,"__esModule",{value:!0});qie.version=void 0;qie.version="bignumber/5.7.0"});var Wie=_(kd=>{"use strict";d();p();var LRt=kd&&kd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kd,"__esModule",{value:!0});kd._base16To36=kd._base36To16=kd.BigNumber=kd.isBigNumberish=void 0;var ORt=LRt(Cr()),YQ=ORt.default.BN,F5=wr(),W5=Zt(),qRt=i2e(),Km=new W5.Logger(qRt.version),s2e={},Fqe=9007199254740991;function FRt(r){return r!=null&&(Fie.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,F5.isHexString)(r)||typeof r=="bigint"||(0,F5.isBytes)(r))}kd.isBigNumberish=FRt;var Wqe=!1,Fie=function(){function r(e,t){e!==s2e&&Km.throwError("cannot call constructor directly; use BigNumber.from",W5.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return cl(Wr(this).fromTwos(e))},r.prototype.toTwos=function(e){return cl(Wr(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return cl(Wr(this).add(Wr(e)))},r.prototype.sub=function(e){return cl(Wr(this).sub(Wr(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&Cd("division-by-zero","div"),cl(Wr(this).div(Wr(e)))},r.prototype.mul=function(e){return cl(Wr(this).mul(Wr(e)))},r.prototype.mod=function(e){var t=Wr(e);return t.isNeg()&&Cd("division-by-zero","mod"),cl(Wr(this).umod(t))},r.prototype.pow=function(e){var t=Wr(e);return t.isNeg()&&Cd("negative-power","pow"),cl(Wr(this).pow(t))},r.prototype.and=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Cd("unbound-bitwise-result","and"),cl(Wr(this).and(t))},r.prototype.or=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Cd("unbound-bitwise-result","or"),cl(Wr(this).or(t))},r.prototype.xor=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Cd("unbound-bitwise-result","xor"),cl(Wr(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&Cd("negative-width","mask"),cl(Wr(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&Cd("negative-width","shl"),cl(Wr(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&Cd("negative-width","shr"),cl(Wr(this).shrn(e))},r.prototype.eq=function(e){return Wr(this).eq(Wr(e))},r.prototype.lt=function(e){return Wr(this).lt(Wr(e))},r.prototype.lte=function(e){return Wr(this).lte(Wr(e))},r.prototype.gt=function(e){return Wr(this).gt(Wr(e))},r.prototype.gte=function(e){return Wr(this).gte(Wr(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return Wr(this).isZero()},r.prototype.toNumber=function(){try{return Wr(this).toNumber()}catch{Cd("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return Km.throwError("this platform does not support BigInt",W5.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?Wqe||(Wqe=!0,Km.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Km.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W5.Logger.errors.UNEXPECTED_ARGUMENT,{}):Km.throwError("BigNumber.toString does not accept parameters",W5.Logger.errors.UNEXPECTED_ARGUMENT,{})),Wr(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(s2e,$Q(e)):e.match(/^-?[0-9]+$/)?new r(s2e,$Q(new YQ(e))):Km.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Cd("underflow","BigNumber.from",e),(e>=Fqe||e<=-Fqe)&&Cd("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,F5.isBytes)(t))return r.from((0,F5.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,F5.isHexString)(n)||n[0]==="-"&&(0,F5.isHexString)(n.substring(1))))return r.from(n)}return Km.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();kd.BigNumber=Fie;function $Q(r){if(typeof r!="string")return $Q(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&Km.throwArgumentError("invalid hex","value",r),r=$Q(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function cl(r){return Fie.from($Q(r))}function Wr(r){var e=Fie.from(r).toHexString();return e[0]==="-"?new YQ("-"+e.substring(3),16):new YQ(e.substring(2),16)}function Cd(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),Km.throwError(r,W5.Logger.errors.NUMERIC_FAULT,n)}function WRt(r){return new YQ(r,36).toString(16)}kd._base36To16=WRt;function URt(r){return new YQ(r,16).toString(36)}kd._base16To36=URt});var Kqe=_(yf=>{"use strict";d();p();Object.defineProperty(yf,"__esModule",{value:!0});yf.FixedNumber=yf.FixedFormat=yf.parseFixed=yf.formatFixed=void 0;var Uie=wr(),ZQ=Zt(),HRt=i2e(),Du=new ZQ.Logger(HRt.version),Gm=Wie(),QQ={},Hqe=Gm.BigNumber.from(0),jqe=Gm.BigNumber.from(-1);function zqe(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),Du.throwError(r,ZQ.Logger.errors.NUMERIC_FAULT,a)}var JQ="0";for(;JQ.length<256;)JQ+=JQ;function o2e(r){if(typeof r!="number")try{r=Gm.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+JQ.substring(0,r):Du.throwArgumentError("invalid decimal size","decimals",r)}function Hie(r,e){e==null&&(e=0);var t=o2e(e);r=Gm.BigNumber.from(r);var n=r.lt(Hqe);n&&(r=r.mul(jqe));for(var a=r.mod(t).toString();a.length2&&Du.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&zqe("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&Du.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(QQ,t,n,a)},r}();yf.FixedFormat=jie;var c2e=function(){function r(e,t,n,a){e!==QQ&&Du.throwError("cannot use FixedNumber constructor; use FixedNumber.from",ZQ.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Du.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(Uqe.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(Uqe.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&Du.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+JQ.substring(0,e),this.format),a=jRt.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Du.throwArgumentError("invalid byte width","width",e);var t=Gm.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,Uie.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,Gm.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(Hie(e,t),jie.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=jie.from(t),a=mf(e,n.decimals);!n.signed&&a.lt(Hqe)&&zqe("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,Uie.hexZeroPad)(i,n.width/8));var s=Hie(a,n.decimals);return new r(QQ,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=jie.from(t);if((0,Uie.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=Gm.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=Hie(a,n.decimals);return new r(QQ,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,Uie.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==ZQ.Logger.errors.INVALID_ARGUMENT)throw n}return Du.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();yf.FixedNumber=c2e;var Uqe=c2e.from(1),jRt=c2e.from("0.5")});var Ls=_(Gc=>{"use strict";d();p();Object.defineProperty(Gc,"__esModule",{value:!0});Gc._base36To16=Gc._base16To36=Gc.parseFixed=Gc.FixedNumber=Gc.FixedFormat=Gc.formatFixed=Gc.BigNumber=void 0;var zRt=Wie();Object.defineProperty(Gc,"BigNumber",{enumerable:!0,get:function(){return zRt.BigNumber}});var zie=Kqe();Object.defineProperty(Gc,"formatFixed",{enumerable:!0,get:function(){return zie.formatFixed}});Object.defineProperty(Gc,"FixedFormat",{enumerable:!0,get:function(){return zie.FixedFormat}});Object.defineProperty(Gc,"FixedNumber",{enumerable:!0,get:function(){return zie.FixedNumber}});Object.defineProperty(Gc,"parseFixed",{enumerable:!0,get:function(){return zie.parseFixed}});var Gqe=Wie();Object.defineProperty(Gc,"_base16To36",{enumerable:!0,get:function(){return Gqe._base16To36}});Object.defineProperty(Gc,"_base36To16",{enumerable:!0,get:function(){return Gqe._base36To16}})});var Vqe=_(Kie=>{"use strict";d();p();Object.defineProperty(Kie,"__esModule",{value:!0});Kie.version=void 0;Kie.version="properties/5.7.0"});var Aa=_(Os=>{"use strict";d();p();var KRt=Os&&Os.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},GRt=Os&&Os.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Yie,"__esModule",{value:!0});Yie.version=void 0;Yie.version="abi/5.7.0"});var tse=_(nr=>{"use strict";d();p();var Zie=nr&&nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nr,"__esModule",{value:!0});nr.ErrorFragment=nr.FunctionFragment=nr.ConstructorFragment=nr.EventFragment=nr.Fragment=nr.ParamType=nr.FormatTypes=void 0;var p2e=Ls(),r9t=Aa(),Xie=Zt(),n9t=U5(),zr=new Xie.Logger(n9t.version),tb={},Qqe={calldata:!0,memory:!0,storage:!0},a9t={calldata:!0,memory:!0};function $ie(r,e){if(r==="bytes"||r==="string"){if(Qqe[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&a9t[e])return!0;return(Qqe[e]||e==="payable")&&zr.throwArgumentError("invalid modifier","name",e),!1}function i9t(r,e){var t=r;function n(h){zr.throwArgumentError("unexpected character at position "+h,"param",r)}r=r.replace(/\s/g," ");function a(h){var f={type:"",name:"",parent:h,state:{allowType:!0}};return e&&(f.indexed=!1),f}for(var i={type:"",name:"",state:{allowType:!0}},s=i,o=0;o2&&zr.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||zr.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=p2e.BigNumber.from(t[1]),t[0]):r}function Xqe(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function eFe(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&zr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&zr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&zr.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e}var Jie=function(r){Zie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===nr.FormatTypes.sighash&&zr.throwError("cannot format a constructor for sighash",Xie.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&zr.throwArgumentError("invalid constructor object","value",t);var n=eFe(t);n.constant&&zr.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(rb.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?p2e.BigNumber.from(t.gas):null};return new e(tb,a)},e.fromString=function(t){var n={type:"constructor"};t=Zqe(t,n);var a=t.match(tJ);return(!a||a[1].trim()!=="constructor")&&zr.throwArgumentError("invalid constructor string","value",t),n.inputs=XQ(a[2].trim(),!1),Xqe(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(ese);nr.ConstructorFragment=Jie;var l2e=function(r){Zie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",t!==nr.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&zr.throwArgumentError("invalid function object","value",t);var n=eFe(t),a={type:t.type,name:eJ(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(rb.fromObject):[],outputs:t.outputs?t.outputs.map(rb.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?p2e.BigNumber.from(t.gas):null};return new e(tb,a)},e.fromString=function(t){var n={type:"function"};t=Zqe(t,n);var a=t.split(" returns ");a.length>2&&zr.throwArgumentError("invalid function string","value",t);var i=a[0].match(tJ);if(i||zr.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&eJ(n.name),n.inputs=XQ(i[2],!1),Xqe(i[3].trim(),n),a.length>1){var s=a[1].match(tJ);(s[1].trim()!=""||s[3].trim()!="")&&zr.throwArgumentError("unexpected tokens","value",t),n.outputs=XQ(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(Jie);nr.FunctionFragment=l2e;function Jqe(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&zr.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var d2e=function(r){Zie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&zr.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:eJ(t.name),inputs:t.inputs?t.inputs.map(rb.fromObject):[]};return Jqe(new e(tb,n))},e.fromString=function(t){var n={type:"error"},a=t.match(tJ);return a||zr.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&eJ(n.name),n.inputs=XQ(a[2],!1),Jqe(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(ese);nr.ErrorFragment=d2e;function H5(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var o9t=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function eJ(r){return(!r||!r.match(o9t))&&zr.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var tJ=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function c9t(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";d();p();Object.defineProperty(gf,"__esModule",{value:!0});gf.Reader=gf.Writer=gf.Coder=gf.checkResultErrors=void 0;var _y=wr(),tFe=Ls(),rJ=Aa(),h2e=Zt(),u9t=U5(),f2e=new h2e.Logger(u9t.version);function l9t(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(o){e.push({path:s,error:o})}}};return t([],r),e}gf.checkResultErrors=l9t;var d9t=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){f2e.throwArgumentError(e,this.localName,t)},r}();gf.Coder=d9t;var p9t=function(){function r(e){(0,rJ.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,_y.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,_y.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,_y.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,_y.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,_y.arrayify)(tFe.BigNumber.from(e));return t.length>this.wordSize&&f2e.throwError("value out-of-bounds",h2e.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,_y.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();gf.Writer=p9t;var h9t=function(){function r(e,t,n,a){(0,rJ.defineReadOnly)(this,"_data",(0,_y.arrayify)(e)),(0,rJ.defineReadOnly)(this,"wordSize",t||32),(0,rJ.defineReadOnly)(this,"_coerceFunc",n),(0,rJ.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,_y.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:f2e.throwError("data out-of-bounds",h2e.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return tFe.BigNumber.from(this.readBytes(this.wordSize))},r}();gf.Reader=h9t});var m2e=_((qTn,rse)=>{d();p();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof g=="object"&&g.versions&&g.versions.node;i?n=global:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof rse=="object"&&rse.exports,o=typeof define=="function"&&define.amd,c=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),l=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],f=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],I=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],C=[224,256,384,512],R=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],F={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(j){return Object.prototype.toString.call(j)==="[object Array]"}),c&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(j){return typeof j=="object"&&j.buffer&&j.buffer.constructor===ArrayBuffer});for(var W=function(j,X,ie){return function(ue){return new E(j,X,j).update(ue)[ie]()}},V=function(j,X,ie){return function(ue,he){return new E(j,X,he).update(ue)[ie]()}},K=function(j,X,ie){return function(ue,he,ke,ge){return v["cshake"+j].update(ue,he,ke,ge)[ie]()}},H=function(j,X,ie){return function(ue,he,ke,ge){return v["kmac"+j].update(ue,he,ke,ge)[ie]()}},G=function(j,X,ie,ue){for(var he=0;he>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ie>>5,this.extraBytes=(ie&31)>>3;for(var ue=0;ue<50;++ue)this.s[ue]=0}E.prototype.update=function(j){if(this.finalized)throw new Error(e);var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}for(var ue=this.blocks,he=this.byteCount,ke=j.length,ge=this.blockCount,me=0,Ke=this.s,ve,Ae;me>2]|=j[me]<>2]|=Ae<>2]|=(192|Ae>>6)<>2]|=(128|Ae&63)<=57344?(ue[ve>>2]|=(224|Ae>>12)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<>2]|=(240|Ae>>18)<>2]|=(128|Ae>>12&63)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<=he){for(this.start=ve-he,this.block=ue[ge],ve=0;ve>8,ie=j&255;ie>0;)he.unshift(ie),j=j>>8,ie=j&255,++ue;return X?he.push(ue):he.unshift(ue),this.update(he),he.length},E.prototype.encodeString=function(j){var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}var ue=0,he=j.length;if(X)ue=he;else for(var ke=0;ke=57344?ue+=3:(ge=65536+((ge&1023)<<10|j.charCodeAt(++ke)&1023),ue+=4)}return ue+=this.encode(ue*8),this.update(j),ue},E.prototype.bytepad=function(j,X){for(var ie=this.encode(X),ue=0;ue>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for(j[0]=j[ie],X=1;X>4&15]+u[me&15]+u[me>>12&15]+u[me>>8&15]+u[me>>20&15]+u[me>>16&15]+u[me>>28&15]+u[me>>24&15];ke%j===0&&(ee(X),he=0)}return ue&&(me=X[he],ge+=u[me>>4&15]+u[me&15],ue>1&&(ge+=u[me>>12&15]+u[me>>8&15]),ue>2&&(ge+=u[me>>20&15]+u[me>>16&15])),ge},E.prototype.arrayBuffer=function(){this.finalize();var j=this.blockCount,X=this.s,ie=this.outputBlocks,ue=this.extraBytes,he=0,ke=0,ge=this.outputBits>>3,me;ue?me=new ArrayBuffer(ie+1<<2):me=new ArrayBuffer(ge);for(var Ke=new Uint32Array(me);ke>8&255,ge[me+2]=Ke>>16&255,ge[me+3]=Ke>>24&255;ke%j===0&&ee(X)}return ue&&(me=ke<<2,Ke=X[he],ge[me]=Ke&255,ue>1&&(ge[me+1]=Ke>>8&255),ue>2&&(ge[me+2]=Ke>>16&255)),ge};function z(j,X,ie){E.call(this,j,X,ie)}z.prototype=new E,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),E.prototype.finalize.call(this)};var ee=function(j){var X,ie,ue,he,ke,ge,me,Ke,ve,Ae,so,It,bt,ai,xt,st,ii,Nt,dt,oo,jt,Bt,sc,ot,pt,Dc,Et,Ct,Lc,Dt,kt,Oc,At,Lt,oc,Ot,qt,qc,Pt,Ft,Fc,St,Wt,cc,Qe,it,uc,Ut,Kt,il,Gt,Vt,sl,Yt,$t,Bu,on,cn,Wc,Uc,Hc,jc,zc;for(ue=0;ue<48;ue+=2)he=j[0]^j[10]^j[20]^j[30]^j[40],ke=j[1]^j[11]^j[21]^j[31]^j[41],ge=j[2]^j[12]^j[22]^j[32]^j[42],me=j[3]^j[13]^j[23]^j[33]^j[43],Ke=j[4]^j[14]^j[24]^j[34]^j[44],ve=j[5]^j[15]^j[25]^j[35]^j[45],Ae=j[6]^j[16]^j[26]^j[36]^j[46],so=j[7]^j[17]^j[27]^j[37]^j[47],It=j[8]^j[18]^j[28]^j[38]^j[48],bt=j[9]^j[19]^j[29]^j[39]^j[49],X=It^(ge<<1|me>>>31),ie=bt^(me<<1|ge>>>31),j[0]^=X,j[1]^=ie,j[10]^=X,j[11]^=ie,j[20]^=X,j[21]^=ie,j[30]^=X,j[31]^=ie,j[40]^=X,j[41]^=ie,X=he^(Ke<<1|ve>>>31),ie=ke^(ve<<1|Ke>>>31),j[2]^=X,j[3]^=ie,j[12]^=X,j[13]^=ie,j[22]^=X,j[23]^=ie,j[32]^=X,j[33]^=ie,j[42]^=X,j[43]^=ie,X=ge^(Ae<<1|so>>>31),ie=me^(so<<1|Ae>>>31),j[4]^=X,j[5]^=ie,j[14]^=X,j[15]^=ie,j[24]^=X,j[25]^=ie,j[34]^=X,j[35]^=ie,j[44]^=X,j[45]^=ie,X=Ke^(It<<1|bt>>>31),ie=ve^(bt<<1|It>>>31),j[6]^=X,j[7]^=ie,j[16]^=X,j[17]^=ie,j[26]^=X,j[27]^=ie,j[36]^=X,j[37]^=ie,j[46]^=X,j[47]^=ie,X=Ae^(he<<1|ke>>>31),ie=so^(ke<<1|he>>>31),j[8]^=X,j[9]^=ie,j[18]^=X,j[19]^=ie,j[28]^=X,j[29]^=ie,j[38]^=X,j[39]^=ie,j[48]^=X,j[49]^=ie,ai=j[0],xt=j[1],it=j[11]<<4|j[10]>>>28,uc=j[10]<<4|j[11]>>>28,Ct=j[20]<<3|j[21]>>>29,Lc=j[21]<<3|j[20]>>>29,Uc=j[31]<<9|j[30]>>>23,Hc=j[30]<<9|j[31]>>>23,St=j[40]<<18|j[41]>>>14,Wt=j[41]<<18|j[40]>>>14,Lt=j[2]<<1|j[3]>>>31,oc=j[3]<<1|j[2]>>>31,st=j[13]<<12|j[12]>>>20,ii=j[12]<<12|j[13]>>>20,Ut=j[22]<<10|j[23]>>>22,Kt=j[23]<<10|j[22]>>>22,Dt=j[33]<<13|j[32]>>>19,kt=j[32]<<13|j[33]>>>19,jc=j[42]<<2|j[43]>>>30,zc=j[43]<<2|j[42]>>>30,Yt=j[5]<<30|j[4]>>>2,$t=j[4]<<30|j[5]>>>2,Ot=j[14]<<6|j[15]>>>26,qt=j[15]<<6|j[14]>>>26,Nt=j[25]<<11|j[24]>>>21,dt=j[24]<<11|j[25]>>>21,il=j[34]<<15|j[35]>>>17,Gt=j[35]<<15|j[34]>>>17,Oc=j[45]<<29|j[44]>>>3,At=j[44]<<29|j[45]>>>3,ot=j[6]<<28|j[7]>>>4,pt=j[7]<<28|j[6]>>>4,Bu=j[17]<<23|j[16]>>>9,on=j[16]<<23|j[17]>>>9,qc=j[26]<<25|j[27]>>>7,Pt=j[27]<<25|j[26]>>>7,oo=j[36]<<21|j[37]>>>11,jt=j[37]<<21|j[36]>>>11,Vt=j[47]<<24|j[46]>>>8,sl=j[46]<<24|j[47]>>>8,cc=j[8]<<27|j[9]>>>5,Qe=j[9]<<27|j[8]>>>5,Dc=j[18]<<20|j[19]>>>12,Et=j[19]<<20|j[18]>>>12,cn=j[29]<<7|j[28]>>>25,Wc=j[28]<<7|j[29]>>>25,Ft=j[38]<<8|j[39]>>>24,Fc=j[39]<<8|j[38]>>>24,Bt=j[48]<<14|j[49]>>>18,sc=j[49]<<14|j[48]>>>18,j[0]=ai^~st&Nt,j[1]=xt^~ii&dt,j[10]=ot^~Dc&Ct,j[11]=pt^~Et&Lc,j[20]=Lt^~Ot&qc,j[21]=oc^~qt&Pt,j[30]=cc^~it&Ut,j[31]=Qe^~uc&Kt,j[40]=Yt^~Bu&cn,j[41]=$t^~on&Wc,j[2]=st^~Nt&oo,j[3]=ii^~dt&jt,j[12]=Dc^~Ct&Dt,j[13]=Et^~Lc&kt,j[22]=Ot^~qc&Ft,j[23]=qt^~Pt&Fc,j[32]=it^~Ut&il,j[33]=uc^~Kt&Gt,j[42]=Bu^~cn&Uc,j[43]=on^~Wc&Hc,j[4]=Nt^~oo&Bt,j[5]=dt^~jt&sc,j[14]=Ct^~Dt&Oc,j[15]=Lc^~kt&At,j[24]=qc^~Ft&St,j[25]=Pt^~Fc&Wt,j[34]=Ut^~il&Vt,j[35]=Kt^~Gt&sl,j[44]=cn^~Uc&jc,j[45]=Wc^~Hc&zc,j[6]=oo^~Bt&ai,j[7]=jt^~sc&xt,j[16]=Dt^~Oc&ot,j[17]=kt^~At&pt,j[26]=Ft^~St&Lt,j[27]=Fc^~Wt&oc,j[36]=il^~Vt&cc,j[37]=Gt^~sl&Qe,j[46]=Uc^~jc&Yt,j[47]=Hc^~zc&$t,j[8]=Bt^~ai&st,j[9]=sc^~xt&ii,j[18]=Oc^~ot&Dc,j[19]=At^~pt&Et,j[28]=St^~Lt&Ot,j[29]=Wt^~oc&qt,j[38]=Vt^~cc&it,j[39]=sl^~Qe&uc,j[48]=jc^~Yt&Bu,j[49]=zc^~$t&on,j[0]^=I[ue],j[1]^=I[ue+1]};if(s)rse.exports=v;else{for(O=0;O{"use strict";d();p();var f9t=j5&&j5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(j5,"__esModule",{value:!0});j5.keccak256=void 0;var m9t=f9t(m2e()),y9t=wr();function g9t(r){return"0x"+m9t.default.keccak_256((0,y9t.arrayify)(r))}j5.keccak256=g9t});var rFe=_(nse=>{"use strict";d();p();Object.defineProperty(nse,"__esModule",{value:!0});nse.version=void 0;nse.version="rlp/5.7.0"});var ase=_(z5=>{"use strict";d();p();Object.defineProperty(z5,"__esModule",{value:!0});z5.decode=z5.encode=void 0;var nb=wr(),Vm=Zt(),b9t=rFe(),bf=new Vm.Logger(b9t.version);function nFe(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function aFe(r,e,t){for(var n=0,a=0;ae+1+n&&bf.throwError("child data too short",Vm.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function oFe(r,e){if(r.length===0&&bf.throwError("data too short",Vm.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&bf.throwError("data short segment too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var n=aFe(r,e+1,t);return e+1+t+n>r.length&&bf.throwError("data long segment too short",Vm.Logger.errors.BUFFER_OVERRUN,{}),iFe(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&bf.throwError("data array too short",Vm.Logger.errors.BUFFER_OVERRUN,{}),iFe(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&bf.throwError("data array too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var i=aFe(r,e+1,t);e+1+t+i>r.length&&bf.throwError("data array too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var s=(0,nb.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var o=r[e]-128;e+1+o>r.length&&bf.throwError("data too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var s=(0,nb.hexlify)(r.slice(e+1,e+1+o));return{consumed:1+o,result:s}}return{consumed:1,result:(0,nb.hexlify)(r[e])}}function w9t(r){var e=(0,nb.arrayify)(r),t=oFe(e,0);return t.consumed!==e.length&&bf.throwArgumentError("invalid rlp data","data",r),t.result}z5.decode=w9t});var cFe=_(ise=>{"use strict";d();p();Object.defineProperty(ise,"__esModule",{value:!0});ise.version=void 0;ise.version="address/5.7.0"});var Sd=_(Pd=>{"use strict";d();p();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getCreate2Address=Pd.getContractAddress=Pd.getIcapAddress=Pd.isAddress=Pd.getAddress=void 0;var Ym=wr(),y2e=Ls(),g2e=jl(),x9t=ase(),_9t=Zt(),T9t=cFe(),Ty=new _9t.Logger(T9t.version);function uFe(r){(0,Ym.isHexString)(r,20)||Ty.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,Ym.arrayify)((0,g2e.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var I9t=9007199254740991;function E9t(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var b2e={};for(eh=0;eh<10;eh++)b2e[String(eh)]=String(eh);var eh;for(eh=0;eh<26;eh++)b2e[String.fromCharCode(65+eh)]=String(10+eh);var eh,lFe=Math.floor(E9t(I9t));function dFe(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return b2e[a]}).join("");e.length>=lFe;){var t=e.substring(0,lFe);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function ab(r){var e=null;if(typeof r!="string"&&Ty.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=uFe(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&Ty.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==dFe(r)&&Ty.throwArgumentError("bad icap checksum","address",r),e=(0,y2e._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=uFe("0x"+e)}else Ty.throwArgumentError("invalid address","address",r);return e}Pd.getAddress=ab;function C9t(r){try{return ab(r),!0}catch{}return!1}Pd.isAddress=C9t;function k9t(r){for(var e=(0,y2e._base16To36)(ab(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+dFe("XE00"+e)+e}Pd.getIcapAddress=k9t;function A9t(r){var e=null;try{e=ab(r.from)}catch{Ty.throwArgumentError("missing from address","transaction",r)}var t=(0,Ym.stripZeros)((0,Ym.arrayify)(y2e.BigNumber.from(r.nonce).toHexString()));return ab((0,Ym.hexDataSlice)((0,g2e.keccak256)((0,x9t.encode)([e,t])),12))}Pd.getContractAddress=A9t;function P9t(r,e,t){return(0,Ym.hexDataLength)(e)!==32&&Ty.throwArgumentError("salt must be 32 bytes","salt",e),(0,Ym.hexDataLength)(t)!==32&&Ty.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),ab((0,Ym.hexDataSlice)((0,g2e.keccak256)((0,Ym.concat)(["0xff",ab(r),e,t])),12))}Pd.getCreate2Address=P9t});var hFe=_(K5=>{"use strict";d();p();var S9t=K5&&K5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K5,"__esModule",{value:!0});K5.AddressCoder=void 0;var pFe=Sd(),R9t=wr(),M9t=Ad(),N9t=function(r){S9t(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,pFe.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,pFe.getAddress)((0,R9t.hexZeroPad)(t.readValue().toHexString(),20))},e}(M9t.Coder);K5.AddressCoder=N9t});var fFe=_(G5=>{"use strict";d();p();var B9t=G5&&G5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G5,"__esModule",{value:!0});G5.AnonymousCoder=void 0;var D9t=Ad(),L9t=function(r){B9t(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(D9t.Coder);G5.AnonymousCoder=L9t});var w2e=_(vf=>{"use strict";d();p();var O9t=vf&&vf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vf,"__esModule",{value:!0});vf.ArrayCoder=vf.unpack=vf.pack=void 0;var Y5=Zt(),q9t=U5(),V5=new Y5.Logger(q9t.version),v2e=Ad(),F9t=fFe();function mFe(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(u){var l=u.localName;return l||V5.throwError("cannot encode object for signature with missing names",Y5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]&&V5.throwError("cannot encode object for signature with duplicate names",Y5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]=!0,t[l]})}else V5.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&V5.throwArgumentError("types/value length mismatch","tuple",t);var i=new v2e.Writer(r.wordSize),s=new v2e.Writer(r.wordSize),o=[];e.forEach(function(u,l){var h=n[l];if(u.dynamic){var f=s.length;u.encode(s,h);var m=i.writeUpdatableValue();o.push(function(y){m(y+f)})}else u.encode(i,h)}),o.forEach(function(u){u(i.length)});var c=r.appendWriter(i);return c+=r.appendWriter(s),c}vf.pack=mFe;function yFe(r,e){var t=[],n=r.subReader(0);e.forEach(function(o){var c=null;if(o.dynamic){var u=r.readValue(),l=n.subReader(u.toNumber());try{c=o.decode(l)}catch(h){if(h.code===Y5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}}else try{c=o.decode(r)}catch(h){if(h.code===Y5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}c!=null&&t.push(c)});var a=e.reduce(function(o,c){var u=c.localName;return u&&(o[u]||(o[u]=0),o[u]++),o},{});e.forEach(function(o,c){var u=o.localName;if(!(!u||a[u]!==1)&&(u==="length"&&(u="_length"),t[u]==null)){var l=t[c];l instanceof Error?Object.defineProperty(t,u,{enumerable:!0,get:function(){throw l}}):t[u]=l}});for(var i=function(o){var c=t[o];c instanceof Error&&Object.defineProperty(t,o,{enumerable:!0,get:function(){throw c}})},s=0;s=0?n:"")+"]",o=n===-1||t.dynamic;return i=r.call(this,"array",s,a,o)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&V5.throwError("insufficient data length",Y5.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";d();p();var U9t=$5&&$5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($5,"__esModule",{value:!0});$5.BooleanCoder=void 0;var H9t=Ad(),j9t=function(r){U9t(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(H9t.Coder);$5.BooleanCoder=j9t});var x2e=_(Iy=>{"use strict";d();p();var bFe=Iy&&Iy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Iy,"__esModule",{value:!0});Iy.BytesCoder=Iy.DynamicBytesCoder=void 0;var vFe=wr(),z9t=Ad(),wFe=function(r){bFe(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,vFe.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(z9t.Coder);Iy.DynamicBytesCoder=wFe;var K9t=function(r){bFe(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,vFe.hexlify)(r.prototype.decode.call(this,t)))},e}(wFe);Iy.BytesCoder=K9t});var _Fe=_(Q5=>{"use strict";d();p();var G9t=Q5&&Q5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q5,"__esModule",{value:!0});Q5.FixedBytesCoder=void 0;var xFe=wr(),V9t=Ad(),Y9t=function(r){G9t(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,xFe.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,xFe.hexlify)(t.readBytes(this.size)))},e}(V9t.Coder);Q5.FixedBytesCoder=Y9t});var TFe=_(J5=>{"use strict";d();p();var $9t=J5&&J5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J5,"__esModule",{value:!0});J5.NullCoder=void 0;var Q9t=Ad(),J9t=function(r){$9t(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(Q9t.Coder);J5.NullCoder=J9t});var IFe=_(sse=>{"use strict";d();p();Object.defineProperty(sse,"__esModule",{value:!0});sse.AddressZero=void 0;sse.AddressZero="0x0000000000000000000000000000000000000000"});var EFe=_(Po=>{"use strict";d();p();Object.defineProperty(Po,"__esModule",{value:!0});Po.MaxInt256=Po.MinInt256=Po.MaxUint256=Po.WeiPerEther=Po.Two=Po.One=Po.Zero=Po.NegativeOne=void 0;var Ey=Ls(),Z9t=Ey.BigNumber.from(-1);Po.NegativeOne=Z9t;var X9t=Ey.BigNumber.from(0);Po.Zero=X9t;var eMt=Ey.BigNumber.from(1);Po.One=eMt;var tMt=Ey.BigNumber.from(2);Po.Two=tMt;var rMt=Ey.BigNumber.from("1000000000000000000");Po.WeiPerEther=rMt;var nMt=Ey.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Po.MaxUint256=nMt;var aMt=Ey.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");Po.MinInt256=aMt;var iMt=Ey.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Po.MaxInt256=iMt});var CFe=_(ose=>{"use strict";d();p();Object.defineProperty(ose,"__esModule",{value:!0});ose.HashZero=void 0;ose.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var kFe=_(cse=>{"use strict";d();p();Object.defineProperty(cse,"__esModule",{value:!0});cse.EtherSymbol=void 0;cse.EtherSymbol="\u039E"});var ib=_(yi=>{"use strict";d();p();Object.defineProperty(yi,"__esModule",{value:!0});yi.EtherSymbol=yi.HashZero=yi.MaxInt256=yi.MinInt256=yi.MaxUint256=yi.WeiPerEther=yi.Two=yi.One=yi.Zero=yi.NegativeOne=yi.AddressZero=void 0;var sMt=IFe();Object.defineProperty(yi,"AddressZero",{enumerable:!0,get:function(){return sMt.AddressZero}});var Cy=EFe();Object.defineProperty(yi,"NegativeOne",{enumerable:!0,get:function(){return Cy.NegativeOne}});Object.defineProperty(yi,"Zero",{enumerable:!0,get:function(){return Cy.Zero}});Object.defineProperty(yi,"One",{enumerable:!0,get:function(){return Cy.One}});Object.defineProperty(yi,"Two",{enumerable:!0,get:function(){return Cy.Two}});Object.defineProperty(yi,"WeiPerEther",{enumerable:!0,get:function(){return Cy.WeiPerEther}});Object.defineProperty(yi,"MaxUint256",{enumerable:!0,get:function(){return Cy.MaxUint256}});Object.defineProperty(yi,"MinInt256",{enumerable:!0,get:function(){return Cy.MinInt256}});Object.defineProperty(yi,"MaxInt256",{enumerable:!0,get:function(){return Cy.MaxInt256}});var oMt=CFe();Object.defineProperty(yi,"HashZero",{enumerable:!0,get:function(){return oMt.HashZero}});var cMt=kFe();Object.defineProperty(yi,"EtherSymbol",{enumerable:!0,get:function(){return cMt.EtherSymbol}})});var AFe=_(Z5=>{"use strict";d();p();var uMt=Z5&&Z5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z5,"__esModule",{value:!0});Z5.NumberCoder=void 0;var lMt=Ls(),use=ib(),dMt=Ad(),pMt=function(r){uMt(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=lMt.BigNumber.from(n),i=use.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(use.One).mul(use.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(use.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(dMt.Coder);Z5.NumberCoder=pMt});var PFe=_(lse=>{"use strict";d();p();Object.defineProperty(lse,"__esModule",{value:!0});lse.version=void 0;lse.version="strings/5.7.0"});var pse=_(bs=>{"use strict";d();p();Object.defineProperty(bs,"__esModule",{value:!0});bs.toUtf8CodePoints=bs.toUtf8String=bs._toUtf8String=bs._toEscapedUtf8String=bs.toUtf8Bytes=bs.Utf8ErrorFuncs=bs.Utf8ErrorReason=bs.UnicodeNormalizationForm=void 0;var SFe=wr(),hMt=Zt(),fMt=PFe(),RFe=new hMt.Logger(fMt.version),dse;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(dse=bs.UnicodeNormalizationForm||(bs.UnicodeNormalizationForm={}));var Rd;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Rd=bs.Utf8ErrorReason||(bs.Utf8ErrorReason={}));function mMt(r,e,t,n,a){return RFe.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function MFe(r,e,t,n,a){if(r===Rd.BAD_PREFIX||r===Rd.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===Rd.OVERRUN?t.length-e-1:0}function yMt(r,e,t,n,a){return r===Rd.OVERLONG?(n.push(a),0):(n.push(65533),MFe(r,e,t,n,a))}bs.Utf8ErrorFuncs=Object.freeze({error:mMt,ignore:MFe,replace:yMt});function T2e(r,e){e==null&&(e=bs.Utf8ErrorFuncs.error),r=(0,SFe.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(Rd.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(Rd.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(Rd.OVERRUN,n-1,r,t);continue}for(var o=a&(1<<8-i-1)-1,c=0;c1114111){n+=e(Rd.OUT_OF_RANGE,n-1-i,r,t,o);continue}if(o>=55296&&o<=57343){n+=e(Rd.UTF16_SURROGATE,n-1-i,r,t,o);continue}if(o<=s){n+=e(Rd.OVERLONG,n-1-i,r,t,o);continue}t.push(o)}}return t}function NFe(r,e){e===void 0&&(e=dse.current),e!=dse.current&&(RFe.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,SFe.arrayify)(t)}bs.toUtf8Bytes=NFe;function _2e(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function gMt(r,e){return'"'+T2e(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?_2e(t):(t-=65536,_2e((t>>10&1023)+55296)+_2e((t&1023)+56320))}).join("")+'"'}bs._toEscapedUtf8String=gMt;function BFe(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}bs._toUtf8String=BFe;function bMt(r,e){return BFe(T2e(r,e))}bs.toUtf8String=bMt;function vMt(r,e){return e===void 0&&(e=dse.current),T2e(NFe(r,e))}bs.toUtf8CodePoints=vMt});var LFe=_(X5=>{"use strict";d();p();Object.defineProperty(X5,"__esModule",{value:!0});X5.parseBytes32String=X5.formatBytes32String=void 0;var wMt=ib(),I2e=wr(),DFe=pse();function xMt(r){var e=(0,DFe.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,I2e.hexlify)((0,I2e.concat)([e,wMt.HashZero]).slice(0,32))}X5.formatBytes32String=xMt;function _Mt(r){var e=(0,I2e.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,DFe.toUtf8String)(e.slice(0,t))}X5.parseBytes32String=_Mt});var UFe=_(wf=>{"use strict";d();p();Object.defineProperty(wf,"__esModule",{value:!0});wf.nameprep=wf._nameprepTableC=wf._nameprepTableB2=wf._nameprepTableA1=void 0;var nJ=pse();function TMt(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var IMt=OFe("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),EMt="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),CMt=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],kMt=E2e("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),AMt=E2e("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),PMt=E2e("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",TMt),SMt=OFe("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function RMt(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function qFe(r){return!!C2e(r,IMt)}wf._nameprepTableA1=qFe;function FFe(r){var e=C2e(r,CMt);if(e)return[r+e.s];var t=kMt[r];if(t)return t;var n=AMt[r];if(n)return[r+n[0]];var a=PMt[r];return a||null}wf._nameprepTableB2=FFe;function WFe(r){return!!C2e(r,SMt)}wf._nameprepTableC=WFe;function MMt(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,nJ.toUtf8CodePoints)(r);e=RMt(e.map(function(n){if(EMt.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=FFe(n);return a||[n]})),e=(0,nJ.toUtf8CodePoints)((0,nJ._toUtf8String)(e),nJ.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(WFe(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(qFe(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,nJ._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}wf.nameprep=MMt});var qs=_(rs=>{"use strict";d();p();Object.defineProperty(rs,"__esModule",{value:!0});rs.nameprep=rs.parseBytes32String=rs.formatBytes32String=rs.UnicodeNormalizationForm=rs.Utf8ErrorReason=rs.Utf8ErrorFuncs=rs.toUtf8String=rs.toUtf8CodePoints=rs.toUtf8Bytes=rs._toEscapedUtf8String=void 0;var HFe=LFe();Object.defineProperty(rs,"formatBytes32String",{enumerable:!0,get:function(){return HFe.formatBytes32String}});Object.defineProperty(rs,"parseBytes32String",{enumerable:!0,get:function(){return HFe.parseBytes32String}});var NMt=UFe();Object.defineProperty(rs,"nameprep",{enumerable:!0,get:function(){return NMt.nameprep}});var sb=pse();Object.defineProperty(rs,"_toEscapedUtf8String",{enumerable:!0,get:function(){return sb._toEscapedUtf8String}});Object.defineProperty(rs,"toUtf8Bytes",{enumerable:!0,get:function(){return sb.toUtf8Bytes}});Object.defineProperty(rs,"toUtf8CodePoints",{enumerable:!0,get:function(){return sb.toUtf8CodePoints}});Object.defineProperty(rs,"toUtf8String",{enumerable:!0,get:function(){return sb.toUtf8String}});Object.defineProperty(rs,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return sb.UnicodeNormalizationForm}});Object.defineProperty(rs,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return sb.Utf8ErrorFuncs}});Object.defineProperty(rs,"Utf8ErrorReason",{enumerable:!0,get:function(){return sb.Utf8ErrorReason}})});var zFe=_(e3=>{"use strict";d();p();var BMt=e3&&e3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(e3,"__esModule",{value:!0});e3.StringCoder=void 0;var jFe=qs(),DMt=x2e(),LMt=function(r){BMt(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,jFe.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,jFe.toUtf8String)(r.prototype.decode.call(this,t))},e}(DMt.DynamicBytesCoder);e3.StringCoder=LMt});var GFe=_(t3=>{"use strict";d();p();var OMt=t3&&t3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t3,"__esModule",{value:!0});t3.TupleCoder=void 0;var qMt=Ad(),KFe=w2e(),FMt=function(r){OMt(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(c){c.dynamic&&(i=!0),s.push(c.type)});var o="tuple("+s.join(",")+")";return a=r.call(this,"tuple",o,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,KFe.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,KFe.unpack)(t,this.coders))},e}(qMt.Coder);t3.TupleCoder=FMt});var A2e=_(r3=>{"use strict";d();p();Object.defineProperty(r3,"__esModule",{value:!0});r3.defaultAbiCoder=r3.AbiCoder=void 0;var WMt=wr(),UMt=Aa(),YFe=Zt(),HMt=U5(),hse=new YFe.Logger(HMt.version),VFe=Ad(),jMt=hFe(),zMt=w2e(),KMt=gFe(),GMt=x2e(),VMt=_Fe(),YMt=TFe(),$Mt=AFe(),QMt=zFe(),fse=GFe(),k2e=tse(),JMt=new RegExp(/^bytes([0-9]*)$/),ZMt=new RegExp(/^(u?int)([0-9]*)$/),$Fe=function(){function r(e){(0,UMt.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new jMt.AddressCoder(e.name);case"bool":return new KMt.BooleanCoder(e.name);case"string":return new QMt.StringCoder(e.name);case"bytes":return new GMt.BytesCoder(e.name);case"array":return new zMt.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new fse.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new YMt.NullCoder(e.name)}var n=e.type.match(ZMt);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&hse.throwArgumentError("invalid "+n[1]+" bit length","param",e),new $Mt.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(JMt),n){var a=parseInt(n[1]);return(a===0||a>32)&&hse.throwArgumentError("invalid bytes length","param",e),new VMt.FixedBytesCoder(a,e.name)}return hse.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new VFe.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new VFe.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(k2e.ParamType.from(i))}),a=new fse.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&hse.throwError("types/values length mismatch",YFe.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(o){return n._getCoder(k2e.ParamType.from(o))}),i=new fse.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(o){return a._getCoder(k2e.ParamType.from(o))}),s=new fse.TupleCoder(i,"_");return s.decode(this._getReader((0,WMt.arrayify)(t),n))},r}();r3.AbiCoder=$Fe;r3.defaultAbiCoder=new $Fe});var P2e=_(mse=>{"use strict";d();p();Object.defineProperty(mse,"__esModule",{value:!0});mse.id=void 0;var XMt=jl(),eNt=qs();function tNt(r){return(0,XMt.keccak256)((0,eNt.toUtf8Bytes)(r))}mse.id=tNt});var S2e=_(yse=>{"use strict";d();p();Object.defineProperty(yse,"__esModule",{value:!0});yse.version=void 0;yse.version="hash/5.7.0"});var JFe=_(n3=>{"use strict";d();p();Object.defineProperty(n3,"__esModule",{value:!0});n3.encode=n3.decode=void 0;var QFe=wr();function rNt(r){r=atob(r);for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(a3,"__esModule",{value:!0});a3.encode=a3.decode=void 0;var ZFe=JFe();Object.defineProperty(a3,"decode",{enumerable:!0,get:function(){return ZFe.decode}});Object.defineProperty(a3,"encode",{enumerable:!0,get:function(){return ZFe.encode}})});var M2e=_(So=>{"use strict";d();p();Object.defineProperty(So,"__esModule",{value:!0});So.read_emoji_trie=So.read_zero_terminated_array=So.read_mapped_map=So.read_member_array=So.signed=So.read_compressed_payload=So.read_payload=So.decode_arithmetic=void 0;function eWe(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(o){s>0&&Array.isArray(o)?a(o,s-1):t.push(o)})};return a(r,e),t}function aNt(r){for(var e={},t=0;t>--u&1}for(var f=31,m=Math.pow(2,f),y=m>>>1,I=y>>1,C=m-1,R=0,s=0;s1;){var G=K+H>>>1;V>>1|h(),Q=Q<<1^y,q=(q^y)<<1|y|1;F=Q,W=1+q-Q}var T=n-4;return L.map(function(M){switch(M-T){case 3:return T+65792+(r[c++]<<16|r[c++]<<8|r[c++]);case 2:return T+256+(r[c++]<<8|r[c++]);case 1:return T+r[c++];default:return M-1}})}So.decode_arithmetic=tWe;function rWe(r){var e=0;return function(){return r[e++]}}So.read_payload=rWe;function iNt(r){return rWe(tWe(r))}So.read_compressed_payload=iNt;function nWe(r){return r&1?~r>>1:r>>1}So.signed=nWe;function sNt(r,e){for(var t=Array(r),n=0;n>=1;var c=i==1,u=i==2;return{branches:n,valid:s,fe0f:o,save:c,check:u}}}So.read_emoji_trie=dNt});var sWe=_(gse=>{"use strict";d();p();Object.defineProperty(gse,"__esModule",{value:!0});gse.getData=void 0;var pNt=aJ(),hNt=M2e();function fNt(){return(0,hNt.read_compressed_payload)((0,pNt.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}gse.getData=fNt});var lWe=_(i3=>{"use strict";d();p();Object.defineProperty(i3,"__esModule",{value:!0});i3.ens_normalize=i3.ens_normalize_post_check=void 0;var mNt=qs(),yNt=sWe(),bse=(0,yNt.getData)(),vse=M2e(),gNt=new Set((0,vse.read_member_array)(bse)),bNt=new Set((0,vse.read_member_array)(bse)),vNt=(0,vse.read_mapped_map)(bse),wNt=(0,vse.read_emoji_trie)(bse),oWe=45,cWe=95;function uWe(r){return(0,mNt.toUtf8CodePoints)(r)}function xNt(r){return r.filter(function(e){return e!=65039})}function N2e(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==cWe)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===oWe&&a[3]===oWe)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}i3.ens_normalize_post_check=N2e;function _Nt(r){return N2e(TNt(r,xNt))}i3.ens_normalize=_Nt;function TNt(r,e){for(var t=uWe(r).reverse(),n=[];t.length;){var a=ENt(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if(gNt.has(i)){n.push(i);continue}if(!bNt.has(i)){var s=vNt[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return N2e(INt(String.fromCodePoint.apply(String,n)))}function INt(r){return r.normalize("NFC")}function ENt(r,e){var t,n=wNt,a,i,s=[],o=r.length;e&&(e.length=0);for(var c=function(){var l=r[--o];if(n=(t=n.branches.find(function(h){return h.set.has(l)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=l;else if(n.check&&l===i)return"break";s.push(l),n.fe0f&&(s.push(65039),o>0&&r[o-1]==65039&&o--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(o).reverse()),r.length=o)};o;){var u=c();if(u==="break")break}return a}});var B2e=_(xf=>{"use strict";d();p();Object.defineProperty(xf,"__esModule",{value:!0});xf.dnsEncode=xf.namehash=xf.isValidName=xf.ensNormalize=void 0;var wse=wr(),hWe=qs(),dWe=jl(),CNt=Zt(),kNt=S2e(),ANt=new CNt.Logger(kNt.version),PNt=lWe(),fWe=new Uint8Array(32);fWe.fill(0);function pWe(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function xse(r){var e=(0,hWe.toUtf8Bytes)((0,PNt.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(pWe(e.slice(n))),t}function SNt(r){return xse(r).map(function(e){return(0,hWe.toUtf8String)(e)}).join(".")}xf.ensNormalize=SNt;function RNt(r){try{return xse(r).length!==0}catch{}return!1}xf.isValidName=RNt;function MNt(r){typeof r!="string"&&ANt.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=fWe,t=xse(r);t.length;)e=(0,dWe.keccak256)((0,wse.concat)([e,(0,dWe.keccak256)(t.pop())]));return(0,wse.hexlify)(e)}xf.namehash=MNt;function NNt(r){return(0,wse.hexlify)((0,wse.concat)(xse(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}xf.dnsEncode=NNt});var mWe=_(ob=>{"use strict";d();p();Object.defineProperty(ob,"__esModule",{value:!0});ob.hashMessage=ob.messagePrefix=void 0;var BNt=wr(),DNt=jl(),D2e=qs();ob.messagePrefix=`Ethereum Signed Message: +`;function LNt(r){return typeof r=="string"&&(r=(0,D2e.toUtf8Bytes)(r)),(0,DNt.keccak256)((0,BNt.concat)([(0,D2e.toUtf8Bytes)(ob.messagePrefix),(0,D2e.toUtf8Bytes)(String(r.length)),r]))}ob.hashMessage=LNt});var IWe=_(ky=>{"use strict";d();p();var ONt=ky&&ky.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},qNt=ky&&ky.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]256||e[2]&&e[2]!==String(n))&&Ui.throwArgumentError("invalid numeric width","type",r);var a=HNt.mask(t?n-1:n),i=t?a.add(TWe).mul(UNt):_We;return function(o){var c=ub.BigNumber.from(o);return(c.lt(i)||c.gt(a))&&Ui.throwArgumentError("value out-of-bounds for "+r,"value",o),(0,dc.hexZeroPad)(c.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Ui.throwArgumentError("invalid bytes width","type",r),function(c){var u=(0,dc.arrayify)(c);return u.length!==s&&Ui.throwArgumentError("invalid length for "+r,"value",c),jNt(c)}}}switch(r){case"address":return function(o){return(0,dc.hexZeroPad)((0,vWe.getAddress)(o),32)};case"bool":return function(o){return o?zNt:KNt};case"bytes":return function(o){return(0,s3.keccak256)(o)};case"string":return function(o){return(0,wWe.id)(o)}}return null}function bWe(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var VNt=function(){function r(e){(0,cb.defineReadOnly)(this,"types",Object.freeze((0,cb.deepCopy)(e))),(0,cb.defineReadOnly)(this,"_encoderCache",{}),(0,cb.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(h){t[h]={},n[h]=[],a[h]={}});var i=function(h){var f={};e[h].forEach(function(m){f[m.name]&&Ui.throwArgumentError("duplicate variable name "+JSON.stringify(m.name)+" in "+JSON.stringify(h),"types",e),f[m.name]=!0;var y=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===h&&Ui.throwArgumentError("circular type reference to "+JSON.stringify(y),"types",e);var I=O2e(y);I||(n[y]||Ui.throwArgumentError("unknown type "+JSON.stringify(y),"types",e),n[y].push(h),t[h][y]=!0)})};for(var s in e)i(s);var o=Object.keys(n).filter(function(h){return n[h].length===0});o.length===0?Ui.throwArgumentError("missing primary type","types",e):o.length>1&&Ui.throwArgumentError("ambiguous primary types or unused types: "+o.map(function(h){return JSON.stringify(h)}).join(", "),"types",e),(0,cb.defineReadOnly)(this,"primaryType",o[0]);function c(h,f){f[h]&&Ui.throwArgumentError("circular type reference to "+JSON.stringify(h),"types",e),f[h]=!0,Object.keys(t[h]).forEach(function(m){!n[m]||(c(m,f),Object.keys(f).forEach(function(y){a[y][m]=!0}))}),delete f[h]}c(this.primaryType,{});for(var u in a){var l=Object.keys(a[u]);l.sort(),this._types[u]=bWe(u,e[u])+l.map(function(h){return bWe(h,e[h])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=O2e(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),o=parseInt(a[3]);return function(l){o>=0&&l.length!==o&&Ui.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);var h=l.map(s);return t._types[i]&&(h=h.map(s3.keccak256)),(0,s3.keccak256)((0,dc.hexConcat)(h))}}var c=this.types[e];if(c){var u=(0,wWe.id)(this._types[e]);return function(l){var h=c.map(function(f){var m=f.name,y=f.type,I=t.getEncoder(y)(l[m]);return t._types[y]?(0,s3.keccak256)(I):I});return h.unshift(u),(0,dc.hexConcat)(h)}}return Ui.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Ui.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,s3.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=O2e(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var o=s[1],c=parseInt(s[3]);return c>=0&&t.length!==c&&Ui.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(l){return a._visit(o,l,n)})}var u=this.types[e];return u?u.reduce(function(l,h){var f=h.name,m=h.type;return l[f]=a._visit(m,t[f],n),l},{}):Ui.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=yWe[n];a||Ui.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return L2e.indexOf(i.name)-L2e.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,dc.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,s3.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return ONt(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f;return qNt(this,function(m){switch(m.label){case 0:e=(0,cb.shallowCopy)(e),i={},e.verifyingContract&&!(0,dc.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(y,I){return y==="address"&&!(0,dc.isHexString)(I,20)&&(i[I]="0x"),I}),o=[];for(c in i)o.push(c);u=0,m.label=1;case 1:return u{"use strict";d();p();Object.defineProperty(Ro,"__esModule",{value:!0});Ro._TypedDataEncoder=Ro.hashMessage=Ro.messagePrefix=Ro.ensNormalize=Ro.isValidName=Ro.namehash=Ro.dnsEncode=Ro.id=void 0;var YNt=P2e();Object.defineProperty(Ro,"id",{enumerable:!0,get:function(){return YNt.id}});var q2e=B2e();Object.defineProperty(Ro,"dnsEncode",{enumerable:!0,get:function(){return q2e.dnsEncode}});Object.defineProperty(Ro,"isValidName",{enumerable:!0,get:function(){return q2e.isValidName}});Object.defineProperty(Ro,"namehash",{enumerable:!0,get:function(){return q2e.namehash}});var EWe=mWe();Object.defineProperty(Ro,"hashMessage",{enumerable:!0,get:function(){return EWe.hashMessage}});Object.defineProperty(Ro,"messagePrefix",{enumerable:!0,get:function(){return EWe.messagePrefix}});var $Nt=B2e();Object.defineProperty(Ro,"ensNormalize",{enumerable:!0,get:function(){return $Nt.ensNormalize}});var QNt=IWe();Object.defineProperty(Ro,"_TypedDataEncoder",{enumerable:!0,get:function(){return QNt.TypedDataEncoder}})});var MWe=_(Vc=>{"use strict";d();p();var Ise=Vc&&Vc.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Interface=Vc.Indexed=Vc.ErrorDescription=Vc.TransactionDescription=Vc.LogDescription=Vc.checkResultErrors=void 0;var JNt=Sd(),CWe=Ls(),gi=wr(),_se=lb(),kWe=jl(),pc=Aa(),ZNt=A2e(),XNt=Ad();Object.defineProperty(Vc,"checkResultErrors",{enumerable:!0,get:function(){return XNt.checkResultErrors}});var $m=tse(),Tse=Zt(),eBt=U5(),Hi=new Tse.Logger(eBt.version),PWe=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.LogDescription=PWe;var SWe=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.TransactionDescription=SWe;var RWe=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.ErrorDescription=RWe;var F2e=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(pc.Description);Vc.Indexed=F2e;var tBt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function AWe(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var rBt=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,pc.defineReadOnly)(this,"fragments",a.map(function(i){return $m.Fragment.from(i)}).filter(function(i){return i!=null})),(0,pc.defineReadOnly)(this,"_abiCoder",(0,pc.getStatic)(t,"getAbiCoder")()),(0,pc.defineReadOnly)(this,"functions",{}),(0,pc.defineReadOnly)(this,"errors",{}),(0,pc.defineReadOnly)(this,"events",{}),(0,pc.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){Hi.warn("duplicate definition - constructor");return}(0,pc.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var o=i.format();if(s[o]){Hi.warn("duplicate definition - "+o);return}s[o]=i}),this.deploy||(0,pc.defineReadOnly)(this,"deploy",$m.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,pc.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=$m.FormatTypes.full),e===$m.FormatTypes.sighash&&Hi.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===$m.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return ZNt.defaultAbiCoder},r.getAddress=function(e){return(0,JNt.getAddress)(e)},r.getSighash=function(e){return(0,gi.hexDataSlice)((0,_se.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,_se.id)(e.format())},r.prototype.getFunction=function(e){if((0,gi.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];Hi.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?Hi.throwArgumentError("no matching function","name",n):a.length>1&&Hi.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[$m.FunctionFragment.fromString(e).format()];return i||Hi.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,gi.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];Hi.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(o){return o.split("(")[0]===a});return i.length===0?Hi.throwArgumentError("no matching event","name",a):i.length>1&&Hi.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[$m.EventFragment.fromString(e).format()];return s||Hi.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,gi.isHexString)(e)){var t=(0,pc.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}Hi.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(c){return c.split("(")[0]===i});return s.length===0?Hi.throwArgumentError("no matching error","name",i):s.length>1&&Hi.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var o=this.errors[$m.FunctionFragment.fromString(e).format()];return o||Hi.throwArgumentError("no matching error","signature",e),o},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,pc.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,pc.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,gi.arrayify)(t);return(0,gi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Hi.throwArgumentError("data signature does not match error "+e.name+".","data",(0,gi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,gi.hexlify)((0,gi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,gi.arrayify)(t);return(0,gi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Hi.throwArgumentError("data signature does not match function "+e.name+".","data",(0,gi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,gi.hexlify)((0,gi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,gi.arrayify)(t),a=null,i="",s=null,o=null,c=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var u=(0,gi.hexlify)(n.slice(0,4)),l=tBt[u];if(l)s=this._abiCoder.decode(l.inputs,n.slice(4)),o=l.name,c=l.signature,l.reason&&(a=s[0]),o==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):o==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var h=this.getError(u);s=this._abiCoder.decode(h.inputs,n.slice(4)),o=h.name,c=h.format()}catch{}break}}return Hi.throwError("call revert exception"+i,Tse.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,gi.hexlify)(t),errorArgs:s,errorName:o,errorSignature:c,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,gi.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&Hi.throwError("too many arguments for "+e.format(),Tse.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,o){return s.type==="string"?(0,_se.id)(o):s.type==="bytes"?(0,kWe.keccak256)((0,gi.hexlify)(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=CWe.BigNumber.from(o).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[o]),(0,gi.hexZeroPad)((0,gi.hexlify)(o),32))};for(t.forEach(function(s,o){var c=e.inputs[o];if(!c.indexed){s!=null&&Hi.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,s);return}s==null?a.push(null):c.baseType==="array"||c.baseType==="tuple"?Hi.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,s):Array.isArray(s)?a.push(s.map(function(u){return i(c,u)})):a.push(i(c,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Hi.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(o,c){var u=t[c];if(o.indexed)if(o.type==="string")a.push((0,_se.id)(u));else if(o.type==="bytes")a.push((0,kWe.keccak256)(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([o.type],[u]))}else i.push(o),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,gi.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&Hi.throwError("fragment/topic mismatch",Tse.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],o=[];e.inputs.forEach(function(I,C){I.indexed?I.type==="string"||I.type==="bytes"||I.baseType==="tuple"||I.baseType==="array"?(i.push($m.ParamType.fromObject({type:"bytes32",name:I.name})),o.push(!0)):(i.push(I),o.push(!1)):(s.push(I),o.push(!1))});var c=n!=null?this._abiCoder.decode(i,(0,gi.concat)(n)):null,u=this._abiCoder.decode(s,t,!0),l=[],h=0,f=0;e.inputs.forEach(function(I,C){if(I.indexed)if(c==null)l[C]=new F2e({_isIndexed:!0,hash:null});else if(o[C])l[C]=new F2e({_isIndexed:!0,hash:c[f++]});else try{l[C]=c[f++]}catch(L){l[C]=L}else try{l[C]=u[h++]}catch(L){l[C]=L}if(I.name&&l[I.name]==null){var R=l[C];R instanceof Error?Object.defineProperty(l,I.name,{enumerable:!0,get:function(){throw AWe("property "+JSON.stringify(I.name),R)}}):l[I.name]=R}});for(var m=function(I){var C=l[I];C instanceof Error&&Object.defineProperty(l,I,{enumerable:!0,get:function(){throw AWe("index "+I,C)}})},y=0;y{"use strict";d();p();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.TransactionDescription=Pa.LogDescription=Pa.checkResultErrors=Pa.Indexed=Pa.Interface=Pa.defaultAbiCoder=Pa.AbiCoder=Pa.FormatTypes=Pa.ParamType=Pa.FunctionFragment=Pa.Fragment=Pa.EventFragment=Pa.ErrorFragment=Pa.ConstructorFragment=void 0;var db=tse();Object.defineProperty(Pa,"ConstructorFragment",{enumerable:!0,get:function(){return db.ConstructorFragment}});Object.defineProperty(Pa,"ErrorFragment",{enumerable:!0,get:function(){return db.ErrorFragment}});Object.defineProperty(Pa,"EventFragment",{enumerable:!0,get:function(){return db.EventFragment}});Object.defineProperty(Pa,"FormatTypes",{enumerable:!0,get:function(){return db.FormatTypes}});Object.defineProperty(Pa,"Fragment",{enumerable:!0,get:function(){return db.Fragment}});Object.defineProperty(Pa,"FunctionFragment",{enumerable:!0,get:function(){return db.FunctionFragment}});Object.defineProperty(Pa,"ParamType",{enumerable:!0,get:function(){return db.ParamType}});var NWe=A2e();Object.defineProperty(Pa,"AbiCoder",{enumerable:!0,get:function(){return NWe.AbiCoder}});Object.defineProperty(Pa,"defaultAbiCoder",{enumerable:!0,get:function(){return NWe.defaultAbiCoder}});var iJ=MWe();Object.defineProperty(Pa,"checkResultErrors",{enumerable:!0,get:function(){return iJ.checkResultErrors}});Object.defineProperty(Pa,"Indexed",{enumerable:!0,get:function(){return iJ.Indexed}});Object.defineProperty(Pa,"Interface",{enumerable:!0,get:function(){return iJ.Interface}});Object.defineProperty(Pa,"LogDescription",{enumerable:!0,get:function(){return iJ.LogDescription}});Object.defineProperty(Pa,"TransactionDescription",{enumerable:!0,get:function(){return iJ.TransactionDescription}})});var BWe=_(Ese=>{"use strict";d();p();Object.defineProperty(Ese,"__esModule",{value:!0});Ese.version=void 0;Ese.version="abstract-provider/5.7.0"});var o3=_(Mo=>{"use strict";d();p();var kse=Mo&&Mo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nBt=Mo&&Mo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},aBt=Mo&&Mo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Pse,"__esModule",{value:!0});Pse.version=void 0;Pse.version="abstract-signer/5.7.0"});var oJ=_(Nd=>{"use strict";d();p();var pBt=Nd&&Nd.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),th=Nd&&Nd.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},rh=Nd&&Nd.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0)throw c;return Md.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Qm.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:c,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(c){return c[1]!==0&&c[0]!==c[1]&&Md.throwArgumentError("chainId address mismatch","transaction",e),c[0]}),[4,(0,Ay.resolveProperties)(t)];case 6:return[2,o.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||Md.throwError("missing provider",Qm.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Nd.Signer=LWe;var yBt=function(r){pBt(e,r);function e(t,n){var a=r.call(this)||this;return(0,Ay.defineReadOnly)(a,"address",t),(0,Ay.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){Md.throwError(t,Qm.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(LWe);Nd.VoidSigner=yBt});var OWe=_((cEn,gBt)=>{gBt.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var co=_((qWe,H2e)=>{d();p();(function(r,e){"use strict";function t(q,T){if(!q)throw new Error(T||"Assertion failed")}function n(q,T){q.super_=T;var M=function(){};M.prototype=T.prototype,q.prototype=new M,q.prototype.constructor=q}function a(q,T,M){if(a.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((T==="le"||T==="be")&&(M=T,T=10),this._init(q||0,T||10,M||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=lc().Buffer}catch{}a.isBN=function(T){return T instanceof a?!0:T!==null&&typeof T=="object"&&T.constructor.wordSize===a.wordSize&&Array.isArray(T.words)},a.max=function(T,M){return T.cmp(M)>0?T:M},a.min=function(T,M){return T.cmp(M)<0?T:M},a.prototype._init=function(T,M,A){if(typeof T=="number")return this._initNumber(T,M,A);if(typeof T=="object")return this._initArray(T,M,A);M==="hex"&&(M=16),t(M===(M|0)&&M>=2&&M<=36),T=T.toString().replace(/\s+/g,"");var v=0;T[0]==="-"&&(v++,this.negative=1),v=0;v-=3)O=T[v]|T[v-1]<<8|T[v-2]<<16,this.words[k]|=O<>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);else if(A==="le")for(v=0,k=0;v>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);return this.strip()};function s(q,T){var M=q.charCodeAt(T);return M>=65&&M<=70?M-55:M>=97&&M<=102?M-87:M-48&15}function o(q,T,M){var A=s(q,M);return M-1>=T&&(A|=s(q,M-1)<<4),A}a.prototype._parseHex=function(T,M,A){this.length=Math.ceil((T.length-M)/6),this.words=new Array(this.length);for(var v=0;v=M;v-=2)D=o(T,M,v)<=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8;else{var B=T.length-M;for(v=B%2===0?M+1:M;v=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8}this.strip()};function c(q,T,M,A){for(var v=0,k=Math.min(q.length,M),O=T;O=49?v+=D-49+10:D>=17?v+=D-17+10:v+=D}return v}a.prototype._parseBase=function(T,M,A){this.words=[0],this.length=1;for(var v=0,k=1;k<=67108863;k*=M)v++;v--,k=k/M|0;for(var O=T.length-A,D=O%v,B=Math.min(O,O-D)+A,x=0,N=A;N1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(T,M){T=T||10,M=M|0||1;var A;if(T===16||T==="hex"){A="";for(var v=0,k=0,O=0;O>>24-v&16777215,k!==0||O!==this.length-1?A=u[6-B.length]+B+A:A=B+A,v+=2,v>=26&&(v-=26,O--)}for(k!==0&&(A=k.toString(16)+A);A.length%M!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(T===(T|0)&&T>=2&&T<=36){var x=l[T],N=h[T];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var E=U.modn(N).toString(T);U=U.idivn(N),U.isZero()?A=E+A:A=u[x-E.length]+E+A}for(this.isZero()&&(A="0"+A);A.length%M!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(T,M){return t(typeof i<"u"),this.toArrayLike(i,T,M)},a.prototype.toArray=function(T,M){return this.toArrayLike(Array,T,M)},a.prototype.toArrayLike=function(T,M,A){var v=this.byteLength(),k=A||Math.max(1,v);t(v<=k,"byte array longer than desired length"),t(k>0,"Requested array length <= 0"),this.strip();var O=M==="le",D=new T(k),B,x,N=this.clone();if(O){for(x=0;!N.isZero();x++)B=N.andln(255),N.iushrn(8),D[x]=B;for(;x=4096&&(A+=13,M>>>=13),M>=64&&(A+=7,M>>>=7),M>=8&&(A+=4,M>>>=4),M>=2&&(A+=2,M>>>=2),A+M},a.prototype._zeroBits=function(T){if(T===0)return 26;var M=T,A=0;return(M&8191)===0&&(A+=13,M>>>=13),(M&127)===0&&(A+=7,M>>>=7),(M&15)===0&&(A+=4,M>>>=4),(M&3)===0&&(A+=2,M>>>=2),(M&1)===0&&A++,A},a.prototype.bitLength=function(){var T=this.words[this.length-1],M=this._countBits(T);return(this.length-1)*26+M};function f(q){for(var T=new Array(q.bitLength()),M=0;M>>v}return T}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,M=0;MT.length?this.clone().ior(T):T.clone().ior(this)},a.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},a.prototype.iuand=function(T){var M;this.length>T.length?M=T:M=this;for(var A=0;AT.length?this.clone().iand(T):T.clone().iand(this)},a.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},a.prototype.iuxor=function(T){var M,A;this.length>T.length?(M=this,A=T):(M=T,A=this);for(var v=0;vT.length?this.clone().ixor(T):T.clone().ixor(this)},a.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},a.prototype.inotn=function(T){t(typeof T=="number"&&T>=0);var M=Math.ceil(T/26)|0,A=T%26;this._expand(M),A>0&&M--;for(var v=0;v0&&(this.words[v]=~this.words[v]&67108863>>26-A),this.strip()},a.prototype.notn=function(T){return this.clone().inotn(T)},a.prototype.setn=function(T,M){t(typeof T=="number"&&T>=0);var A=T/26|0,v=T%26;return this._expand(A+1),M?this.words[A]=this.words[A]|1<T.length?(A=this,v=T):(A=T,v=this);for(var k=0,O=0;O>>26;for(;k!==0&&O>>26;if(this.length=A.length,k!==0)this.words[this.length]=k,this.length++;else if(A!==this)for(;OT.length?this.clone().iadd(T):T.clone().iadd(this)},a.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var M=this.iadd(T);return T.negative=1,M._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var A=this.cmp(T);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,k;A>0?(v=this,k=T):(v=T,k=this);for(var O=0,D=0;D>26,this.words[D]=M&67108863;for(;O!==0&&D>26,this.words[D]=M&67108863;if(O===0&&D>>26,U=B&67108863,E=Math.min(x,T.length-1),z=Math.max(0,x-q.length+1);z<=E;z++){var ee=x-z|0;v=q.words[ee]|0,k=T.words[z]|0,O=v*k+U,N+=O/67108864|0,U=O&67108863}M.words[x]=U|0,B=N|0}return B!==0?M.words[x]=B|0:M.length--,M.strip()}var y=function(T,M,A){var v=T.words,k=M.words,O=A.words,D=0,B,x,N,U=v[0]|0,E=U&8191,z=U>>>13,ee=v[1]|0,j=ee&8191,X=ee>>>13,ie=v[2]|0,ue=ie&8191,he=ie>>>13,ke=v[3]|0,ge=ke&8191,me=ke>>>13,Ke=v[4]|0,ve=Ke&8191,Ae=Ke>>>13,so=v[5]|0,It=so&8191,bt=so>>>13,ai=v[6]|0,xt=ai&8191,st=ai>>>13,ii=v[7]|0,Nt=ii&8191,dt=ii>>>13,oo=v[8]|0,jt=oo&8191,Bt=oo>>>13,sc=v[9]|0,ot=sc&8191,pt=sc>>>13,Dc=k[0]|0,Et=Dc&8191,Ct=Dc>>>13,Lc=k[1]|0,Dt=Lc&8191,kt=Lc>>>13,Oc=k[2]|0,At=Oc&8191,Lt=Oc>>>13,oc=k[3]|0,Ot=oc&8191,qt=oc>>>13,qc=k[4]|0,Pt=qc&8191,Ft=qc>>>13,Fc=k[5]|0,St=Fc&8191,Wt=Fc>>>13,cc=k[6]|0,Qe=cc&8191,it=cc>>>13,uc=k[7]|0,Ut=uc&8191,Kt=uc>>>13,il=k[8]|0,Gt=il&8191,Vt=il>>>13,sl=k[9]|0,Yt=sl&8191,$t=sl>>>13;A.negative=T.negative^M.negative,A.length=19,B=Math.imul(E,Et),x=Math.imul(E,Ct),x=x+Math.imul(z,Et)|0,N=Math.imul(z,Ct);var Bu=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,B=Math.imul(j,Et),x=Math.imul(j,Ct),x=x+Math.imul(X,Et)|0,N=Math.imul(X,Ct),B=B+Math.imul(E,Dt)|0,x=x+Math.imul(E,kt)|0,x=x+Math.imul(z,Dt)|0,N=N+Math.imul(z,kt)|0;var on=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(on>>>26)|0,on&=67108863,B=Math.imul(ue,Et),x=Math.imul(ue,Ct),x=x+Math.imul(he,Et)|0,N=Math.imul(he,Ct),B=B+Math.imul(j,Dt)|0,x=x+Math.imul(j,kt)|0,x=x+Math.imul(X,Dt)|0,N=N+Math.imul(X,kt)|0,B=B+Math.imul(E,At)|0,x=x+Math.imul(E,Lt)|0,x=x+Math.imul(z,At)|0,N=N+Math.imul(z,Lt)|0;var cn=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(cn>>>26)|0,cn&=67108863,B=Math.imul(ge,Et),x=Math.imul(ge,Ct),x=x+Math.imul(me,Et)|0,N=Math.imul(me,Ct),B=B+Math.imul(ue,Dt)|0,x=x+Math.imul(ue,kt)|0,x=x+Math.imul(he,Dt)|0,N=N+Math.imul(he,kt)|0,B=B+Math.imul(j,At)|0,x=x+Math.imul(j,Lt)|0,x=x+Math.imul(X,At)|0,N=N+Math.imul(X,Lt)|0,B=B+Math.imul(E,Ot)|0,x=x+Math.imul(E,qt)|0,x=x+Math.imul(z,Ot)|0,N=N+Math.imul(z,qt)|0;var Wc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,B=Math.imul(ve,Et),x=Math.imul(ve,Ct),x=x+Math.imul(Ae,Et)|0,N=Math.imul(Ae,Ct),B=B+Math.imul(ge,Dt)|0,x=x+Math.imul(ge,kt)|0,x=x+Math.imul(me,Dt)|0,N=N+Math.imul(me,kt)|0,B=B+Math.imul(ue,At)|0,x=x+Math.imul(ue,Lt)|0,x=x+Math.imul(he,At)|0,N=N+Math.imul(he,Lt)|0,B=B+Math.imul(j,Ot)|0,x=x+Math.imul(j,qt)|0,x=x+Math.imul(X,Ot)|0,N=N+Math.imul(X,qt)|0,B=B+Math.imul(E,Pt)|0,x=x+Math.imul(E,Ft)|0,x=x+Math.imul(z,Pt)|0,N=N+Math.imul(z,Ft)|0;var Uc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,B=Math.imul(It,Et),x=Math.imul(It,Ct),x=x+Math.imul(bt,Et)|0,N=Math.imul(bt,Ct),B=B+Math.imul(ve,Dt)|0,x=x+Math.imul(ve,kt)|0,x=x+Math.imul(Ae,Dt)|0,N=N+Math.imul(Ae,kt)|0,B=B+Math.imul(ge,At)|0,x=x+Math.imul(ge,Lt)|0,x=x+Math.imul(me,At)|0,N=N+Math.imul(me,Lt)|0,B=B+Math.imul(ue,Ot)|0,x=x+Math.imul(ue,qt)|0,x=x+Math.imul(he,Ot)|0,N=N+Math.imul(he,qt)|0,B=B+Math.imul(j,Pt)|0,x=x+Math.imul(j,Ft)|0,x=x+Math.imul(X,Pt)|0,N=N+Math.imul(X,Ft)|0,B=B+Math.imul(E,St)|0,x=x+Math.imul(E,Wt)|0,x=x+Math.imul(z,St)|0,N=N+Math.imul(z,Wt)|0;var Hc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,B=Math.imul(xt,Et),x=Math.imul(xt,Ct),x=x+Math.imul(st,Et)|0,N=Math.imul(st,Ct),B=B+Math.imul(It,Dt)|0,x=x+Math.imul(It,kt)|0,x=x+Math.imul(bt,Dt)|0,N=N+Math.imul(bt,kt)|0,B=B+Math.imul(ve,At)|0,x=x+Math.imul(ve,Lt)|0,x=x+Math.imul(Ae,At)|0,N=N+Math.imul(Ae,Lt)|0,B=B+Math.imul(ge,Ot)|0,x=x+Math.imul(ge,qt)|0,x=x+Math.imul(me,Ot)|0,N=N+Math.imul(me,qt)|0,B=B+Math.imul(ue,Pt)|0,x=x+Math.imul(ue,Ft)|0,x=x+Math.imul(he,Pt)|0,N=N+Math.imul(he,Ft)|0,B=B+Math.imul(j,St)|0,x=x+Math.imul(j,Wt)|0,x=x+Math.imul(X,St)|0,N=N+Math.imul(X,Wt)|0,B=B+Math.imul(E,Qe)|0,x=x+Math.imul(E,it)|0,x=x+Math.imul(z,Qe)|0,N=N+Math.imul(z,it)|0;var jc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(jc>>>26)|0,jc&=67108863,B=Math.imul(Nt,Et),x=Math.imul(Nt,Ct),x=x+Math.imul(dt,Et)|0,N=Math.imul(dt,Ct),B=B+Math.imul(xt,Dt)|0,x=x+Math.imul(xt,kt)|0,x=x+Math.imul(st,Dt)|0,N=N+Math.imul(st,kt)|0,B=B+Math.imul(It,At)|0,x=x+Math.imul(It,Lt)|0,x=x+Math.imul(bt,At)|0,N=N+Math.imul(bt,Lt)|0,B=B+Math.imul(ve,Ot)|0,x=x+Math.imul(ve,qt)|0,x=x+Math.imul(Ae,Ot)|0,N=N+Math.imul(Ae,qt)|0,B=B+Math.imul(ge,Pt)|0,x=x+Math.imul(ge,Ft)|0,x=x+Math.imul(me,Pt)|0,N=N+Math.imul(me,Ft)|0,B=B+Math.imul(ue,St)|0,x=x+Math.imul(ue,Wt)|0,x=x+Math.imul(he,St)|0,N=N+Math.imul(he,Wt)|0,B=B+Math.imul(j,Qe)|0,x=x+Math.imul(j,it)|0,x=x+Math.imul(X,Qe)|0,N=N+Math.imul(X,it)|0,B=B+Math.imul(E,Ut)|0,x=x+Math.imul(E,Kt)|0,x=x+Math.imul(z,Ut)|0,N=N+Math.imul(z,Kt)|0;var zc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(zc>>>26)|0,zc&=67108863,B=Math.imul(jt,Et),x=Math.imul(jt,Ct),x=x+Math.imul(Bt,Et)|0,N=Math.imul(Bt,Ct),B=B+Math.imul(Nt,Dt)|0,x=x+Math.imul(Nt,kt)|0,x=x+Math.imul(dt,Dt)|0,N=N+Math.imul(dt,kt)|0,B=B+Math.imul(xt,At)|0,x=x+Math.imul(xt,Lt)|0,x=x+Math.imul(st,At)|0,N=N+Math.imul(st,Lt)|0,B=B+Math.imul(It,Ot)|0,x=x+Math.imul(It,qt)|0,x=x+Math.imul(bt,Ot)|0,N=N+Math.imul(bt,qt)|0,B=B+Math.imul(ve,Pt)|0,x=x+Math.imul(ve,Ft)|0,x=x+Math.imul(Ae,Pt)|0,N=N+Math.imul(Ae,Ft)|0,B=B+Math.imul(ge,St)|0,x=x+Math.imul(ge,Wt)|0,x=x+Math.imul(me,St)|0,N=N+Math.imul(me,Wt)|0,B=B+Math.imul(ue,Qe)|0,x=x+Math.imul(ue,it)|0,x=x+Math.imul(he,Qe)|0,N=N+Math.imul(he,it)|0,B=B+Math.imul(j,Ut)|0,x=x+Math.imul(j,Kt)|0,x=x+Math.imul(X,Ut)|0,N=N+Math.imul(X,Kt)|0,B=B+Math.imul(E,Gt)|0,x=x+Math.imul(E,Vt)|0,x=x+Math.imul(z,Gt)|0,N=N+Math.imul(z,Vt)|0;var zp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(zp>>>26)|0,zp&=67108863,B=Math.imul(ot,Et),x=Math.imul(ot,Ct),x=x+Math.imul(pt,Et)|0,N=Math.imul(pt,Ct),B=B+Math.imul(jt,Dt)|0,x=x+Math.imul(jt,kt)|0,x=x+Math.imul(Bt,Dt)|0,N=N+Math.imul(Bt,kt)|0,B=B+Math.imul(Nt,At)|0,x=x+Math.imul(Nt,Lt)|0,x=x+Math.imul(dt,At)|0,N=N+Math.imul(dt,Lt)|0,B=B+Math.imul(xt,Ot)|0,x=x+Math.imul(xt,qt)|0,x=x+Math.imul(st,Ot)|0,N=N+Math.imul(st,qt)|0,B=B+Math.imul(It,Pt)|0,x=x+Math.imul(It,Ft)|0,x=x+Math.imul(bt,Pt)|0,N=N+Math.imul(bt,Ft)|0,B=B+Math.imul(ve,St)|0,x=x+Math.imul(ve,Wt)|0,x=x+Math.imul(Ae,St)|0,N=N+Math.imul(Ae,Wt)|0,B=B+Math.imul(ge,Qe)|0,x=x+Math.imul(ge,it)|0,x=x+Math.imul(me,Qe)|0,N=N+Math.imul(me,it)|0,B=B+Math.imul(ue,Ut)|0,x=x+Math.imul(ue,Kt)|0,x=x+Math.imul(he,Ut)|0,N=N+Math.imul(he,Kt)|0,B=B+Math.imul(j,Gt)|0,x=x+Math.imul(j,Vt)|0,x=x+Math.imul(X,Gt)|0,N=N+Math.imul(X,Vt)|0,B=B+Math.imul(E,Yt)|0,x=x+Math.imul(E,$t)|0,x=x+Math.imul(z,Yt)|0,N=N+Math.imul(z,$t)|0;var Kp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,B=Math.imul(ot,Dt),x=Math.imul(ot,kt),x=x+Math.imul(pt,Dt)|0,N=Math.imul(pt,kt),B=B+Math.imul(jt,At)|0,x=x+Math.imul(jt,Lt)|0,x=x+Math.imul(Bt,At)|0,N=N+Math.imul(Bt,Lt)|0,B=B+Math.imul(Nt,Ot)|0,x=x+Math.imul(Nt,qt)|0,x=x+Math.imul(dt,Ot)|0,N=N+Math.imul(dt,qt)|0,B=B+Math.imul(xt,Pt)|0,x=x+Math.imul(xt,Ft)|0,x=x+Math.imul(st,Pt)|0,N=N+Math.imul(st,Ft)|0,B=B+Math.imul(It,St)|0,x=x+Math.imul(It,Wt)|0,x=x+Math.imul(bt,St)|0,N=N+Math.imul(bt,Wt)|0,B=B+Math.imul(ve,Qe)|0,x=x+Math.imul(ve,it)|0,x=x+Math.imul(Ae,Qe)|0,N=N+Math.imul(Ae,it)|0,B=B+Math.imul(ge,Ut)|0,x=x+Math.imul(ge,Kt)|0,x=x+Math.imul(me,Ut)|0,N=N+Math.imul(me,Kt)|0,B=B+Math.imul(ue,Gt)|0,x=x+Math.imul(ue,Vt)|0,x=x+Math.imul(he,Gt)|0,N=N+Math.imul(he,Vt)|0,B=B+Math.imul(j,Yt)|0,x=x+Math.imul(j,$t)|0,x=x+Math.imul(X,Yt)|0,N=N+Math.imul(X,$t)|0;var Gp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,B=Math.imul(ot,At),x=Math.imul(ot,Lt),x=x+Math.imul(pt,At)|0,N=Math.imul(pt,Lt),B=B+Math.imul(jt,Ot)|0,x=x+Math.imul(jt,qt)|0,x=x+Math.imul(Bt,Ot)|0,N=N+Math.imul(Bt,qt)|0,B=B+Math.imul(Nt,Pt)|0,x=x+Math.imul(Nt,Ft)|0,x=x+Math.imul(dt,Pt)|0,N=N+Math.imul(dt,Ft)|0,B=B+Math.imul(xt,St)|0,x=x+Math.imul(xt,Wt)|0,x=x+Math.imul(st,St)|0,N=N+Math.imul(st,Wt)|0,B=B+Math.imul(It,Qe)|0,x=x+Math.imul(It,it)|0,x=x+Math.imul(bt,Qe)|0,N=N+Math.imul(bt,it)|0,B=B+Math.imul(ve,Ut)|0,x=x+Math.imul(ve,Kt)|0,x=x+Math.imul(Ae,Ut)|0,N=N+Math.imul(Ae,Kt)|0,B=B+Math.imul(ge,Gt)|0,x=x+Math.imul(ge,Vt)|0,x=x+Math.imul(me,Gt)|0,N=N+Math.imul(me,Vt)|0,B=B+Math.imul(ue,Yt)|0,x=x+Math.imul(ue,$t)|0,x=x+Math.imul(he,Yt)|0,N=N+Math.imul(he,$t)|0;var Vp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,B=Math.imul(ot,Ot),x=Math.imul(ot,qt),x=x+Math.imul(pt,Ot)|0,N=Math.imul(pt,qt),B=B+Math.imul(jt,Pt)|0,x=x+Math.imul(jt,Ft)|0,x=x+Math.imul(Bt,Pt)|0,N=N+Math.imul(Bt,Ft)|0,B=B+Math.imul(Nt,St)|0,x=x+Math.imul(Nt,Wt)|0,x=x+Math.imul(dt,St)|0,N=N+Math.imul(dt,Wt)|0,B=B+Math.imul(xt,Qe)|0,x=x+Math.imul(xt,it)|0,x=x+Math.imul(st,Qe)|0,N=N+Math.imul(st,it)|0,B=B+Math.imul(It,Ut)|0,x=x+Math.imul(It,Kt)|0,x=x+Math.imul(bt,Ut)|0,N=N+Math.imul(bt,Kt)|0,B=B+Math.imul(ve,Gt)|0,x=x+Math.imul(ve,Vt)|0,x=x+Math.imul(Ae,Gt)|0,N=N+Math.imul(Ae,Vt)|0,B=B+Math.imul(ge,Yt)|0,x=x+Math.imul(ge,$t)|0,x=x+Math.imul(me,Yt)|0,N=N+Math.imul(me,$t)|0;var Yp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,B=Math.imul(ot,Pt),x=Math.imul(ot,Ft),x=x+Math.imul(pt,Pt)|0,N=Math.imul(pt,Ft),B=B+Math.imul(jt,St)|0,x=x+Math.imul(jt,Wt)|0,x=x+Math.imul(Bt,St)|0,N=N+Math.imul(Bt,Wt)|0,B=B+Math.imul(Nt,Qe)|0,x=x+Math.imul(Nt,it)|0,x=x+Math.imul(dt,Qe)|0,N=N+Math.imul(dt,it)|0,B=B+Math.imul(xt,Ut)|0,x=x+Math.imul(xt,Kt)|0,x=x+Math.imul(st,Ut)|0,N=N+Math.imul(st,Kt)|0,B=B+Math.imul(It,Gt)|0,x=x+Math.imul(It,Vt)|0,x=x+Math.imul(bt,Gt)|0,N=N+Math.imul(bt,Vt)|0,B=B+Math.imul(ve,Yt)|0,x=x+Math.imul(ve,$t)|0,x=x+Math.imul(Ae,Yt)|0,N=N+Math.imul(Ae,$t)|0;var $p=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+($p>>>26)|0,$p&=67108863,B=Math.imul(ot,St),x=Math.imul(ot,Wt),x=x+Math.imul(pt,St)|0,N=Math.imul(pt,Wt),B=B+Math.imul(jt,Qe)|0,x=x+Math.imul(jt,it)|0,x=x+Math.imul(Bt,Qe)|0,N=N+Math.imul(Bt,it)|0,B=B+Math.imul(Nt,Ut)|0,x=x+Math.imul(Nt,Kt)|0,x=x+Math.imul(dt,Ut)|0,N=N+Math.imul(dt,Kt)|0,B=B+Math.imul(xt,Gt)|0,x=x+Math.imul(xt,Vt)|0,x=x+Math.imul(st,Gt)|0,N=N+Math.imul(st,Vt)|0,B=B+Math.imul(It,Yt)|0,x=x+Math.imul(It,$t)|0,x=x+Math.imul(bt,Yt)|0,N=N+Math.imul(bt,$t)|0;var Qp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,B=Math.imul(ot,Qe),x=Math.imul(ot,it),x=x+Math.imul(pt,Qe)|0,N=Math.imul(pt,it),B=B+Math.imul(jt,Ut)|0,x=x+Math.imul(jt,Kt)|0,x=x+Math.imul(Bt,Ut)|0,N=N+Math.imul(Bt,Kt)|0,B=B+Math.imul(Nt,Gt)|0,x=x+Math.imul(Nt,Vt)|0,x=x+Math.imul(dt,Gt)|0,N=N+Math.imul(dt,Vt)|0,B=B+Math.imul(xt,Yt)|0,x=x+Math.imul(xt,$t)|0,x=x+Math.imul(st,Yt)|0,N=N+Math.imul(st,$t)|0;var Jp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,B=Math.imul(ot,Ut),x=Math.imul(ot,Kt),x=x+Math.imul(pt,Ut)|0,N=Math.imul(pt,Kt),B=B+Math.imul(jt,Gt)|0,x=x+Math.imul(jt,Vt)|0,x=x+Math.imul(Bt,Gt)|0,N=N+Math.imul(Bt,Vt)|0,B=B+Math.imul(Nt,Yt)|0,x=x+Math.imul(Nt,$t)|0,x=x+Math.imul(dt,Yt)|0,N=N+Math.imul(dt,$t)|0;var Zp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,B=Math.imul(ot,Gt),x=Math.imul(ot,Vt),x=x+Math.imul(pt,Gt)|0,N=Math.imul(pt,Vt),B=B+Math.imul(jt,Yt)|0,x=x+Math.imul(jt,$t)|0,x=x+Math.imul(Bt,Yt)|0,N=N+Math.imul(Bt,$t)|0;var $1=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+($1>>>26)|0,$1&=67108863,B=Math.imul(ot,Yt),x=Math.imul(ot,$t),x=x+Math.imul(pt,Yt)|0,N=Math.imul(pt,$t);var Q1=(D+B|0)+((x&8191)<<13)|0;return D=(N+(x>>>13)|0)+(Q1>>>26)|0,Q1&=67108863,O[0]=Bu,O[1]=on,O[2]=cn,O[3]=Wc,O[4]=Uc,O[5]=Hc,O[6]=jc,O[7]=zc,O[8]=zp,O[9]=Kp,O[10]=Gp,O[11]=Vp,O[12]=Yp,O[13]=$p,O[14]=Qp,O[15]=Jp,O[16]=Zp,O[17]=$1,O[18]=Q1,D!==0&&(O[19]=D,A.length++),A};Math.imul||(y=m);function I(q,T,M){M.negative=T.negative^q.negative,M.length=q.length+T.length;for(var A=0,v=0,k=0;k>>26)|0,v+=O>>>26,O&=67108863}M.words[k]=D,A=O,O=v}return A!==0?M.words[k]=A:M.length--,M.strip()}function C(q,T,M){var A=new R;return A.mulp(q,T,M)}a.prototype.mulTo=function(T,M){var A,v=this.length+T.length;return this.length===10&&T.length===10?A=y(this,T,M):v<63?A=m(this,T,M):v<1024?A=I(this,T,M):A=C(this,T,M),A};function R(q,T){this.x=q,this.y=T}R.prototype.makeRBT=function(T){for(var M=new Array(T),A=a.prototype._countBits(T)-1,v=0;v>=1;return v},R.prototype.permute=function(T,M,A,v,k,O){for(var D=0;D>>1)k++;return 1<>>13,A[2*O+1]=k&8191,k=k>>>13;for(O=2*M;O>=26,M+=v/67108864|0,M+=k>>>26,this.words[A]=k&67108863}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.muln=function(T){return this.clone().imuln(T)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(T){var M=f(T);if(M.length===0)return new a(1);for(var A=this,v=0;v=0);var M=T%26,A=(T-M)/26,v=67108863>>>26-M<<26-M,k;if(M!==0){var O=0;for(k=0;k>>26-M}O&&(this.words[k]=O,this.length++)}if(A!==0){for(k=this.length-1;k>=0;k--)this.words[k+A]=this.words[k];for(k=0;k=0);var v;M?v=(M-M%26)/26:v=0;var k=T%26,O=Math.min((T-k)/26,this.length),D=67108863^67108863>>>k<O)for(this.length-=O,x=0;x=0&&(N!==0||x>=v);x--){var U=this.words[x]|0;this.words[x]=N<<26-k|U>>>k,N=U&D}return B&&N!==0&&(B.words[B.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(T,M,A){return t(this.negative===0),this.iushrn(T,M,A)},a.prototype.shln=function(T){return this.clone().ishln(T)},a.prototype.ushln=function(T){return this.clone().iushln(T)},a.prototype.shrn=function(T){return this.clone().ishrn(T)},a.prototype.ushrn=function(T){return this.clone().iushrn(T)},a.prototype.testn=function(T){t(typeof T=="number"&&T>=0);var M=T%26,A=(T-M)/26,v=1<=0);var M=T%26,A=(T-M)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(M!==0&&A++,this.length=Math.min(A,this.length),M!==0){var v=67108863^67108863>>>M<=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},a.prototype.isubn=function(T){if(t(typeof T=="number"),t(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M>26)-(B/67108864|0),this.words[k+A]=O&67108863}for(;k>26,this.words[k+A]=O&67108863;if(D===0)return this.strip();for(t(D===-1),D=0,k=0;k>26,this.words[k]=O&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(T,M){var A=this.length-T.length,v=this.clone(),k=T,O=k.words[k.length-1]|0,D=this._countBits(O);A=26-D,A!==0&&(k=k.ushln(A),v.iushln(A),O=k.words[k.length-1]|0);var B=v.length-k.length,x;if(M!=="mod"){x=new a(null),x.length=B+1,x.words=new Array(x.length);for(var N=0;N=0;E--){var z=(v.words[k.length+E]|0)*67108864+(v.words[k.length+E-1]|0);for(z=Math.min(z/O|0,67108863),v._ishlnsubmul(k,z,E);v.negative!==0;)z--,v.negative=0,v._ishlnsubmul(k,1,E),v.isZero()||(v.negative^=1);x&&(x.words[E]=z)}return x&&x.strip(),v.strip(),M!=="div"&&A!==0&&v.iushrn(A),{div:x||null,mod:v}},a.prototype.divmod=function(T,M,A){if(t(!T.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var v,k,O;return this.negative!==0&&T.negative===0?(O=this.neg().divmod(T,M),M!=="mod"&&(v=O.div.neg()),M!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.iadd(T)),{div:v,mod:k}):this.negative===0&&T.negative!==0?(O=this.divmod(T.neg(),M),M!=="mod"&&(v=O.div.neg()),{div:v,mod:O.mod}):(this.negative&T.negative)!==0?(O=this.neg().divmod(T.neg(),M),M!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.isub(T)),{div:O.div,mod:k}):T.length>this.length||this.cmp(T)<0?{div:new a(0),mod:this}:T.length===1?M==="div"?{div:this.divn(T.words[0]),mod:null}:M==="mod"?{div:null,mod:new a(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new a(this.modn(T.words[0]))}:this._wordDiv(T,M)},a.prototype.div=function(T){return this.divmod(T,"div",!1).div},a.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},a.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},a.prototype.divRound=function(T){var M=this.divmod(T);if(M.mod.isZero())return M.div;var A=M.div.negative!==0?M.mod.isub(T):M.mod,v=T.ushrn(1),k=T.andln(1),O=A.cmp(v);return O<0||k===1&&O===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},a.prototype.modn=function(T){t(T<=67108863);for(var M=(1<<26)%T,A=0,v=this.length-1;v>=0;v--)A=(M*A+(this.words[v]|0))%T;return A},a.prototype.idivn=function(T){t(T<=67108863);for(var M=0,A=this.length-1;A>=0;A--){var v=(this.words[A]|0)+M*67108864;this.words[A]=v/T|0,M=v%T}return this.strip()},a.prototype.divn=function(T){return this.clone().idivn(T)},a.prototype.egcd=function(T){t(T.negative===0),t(!T.isZero());var M=this,A=T.clone();M.negative!==0?M=M.umod(T):M=M.clone();for(var v=new a(1),k=new a(0),O=new a(0),D=new a(1),B=0;M.isEven()&&A.isEven();)M.iushrn(1),A.iushrn(1),++B;for(var x=A.clone(),N=M.clone();!M.isZero();){for(var U=0,E=1;(M.words[0]&E)===0&&U<26;++U,E<<=1);if(U>0)for(M.iushrn(U);U-- >0;)(v.isOdd()||k.isOdd())&&(v.iadd(x),k.isub(N)),v.iushrn(1),k.iushrn(1);for(var z=0,ee=1;(A.words[0]&ee)===0&&z<26;++z,ee<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(O.isOdd()||D.isOdd())&&(O.iadd(x),D.isub(N)),O.iushrn(1),D.iushrn(1);M.cmp(A)>=0?(M.isub(A),v.isub(O),k.isub(D)):(A.isub(M),O.isub(v),D.isub(k))}return{a:O,b:D,gcd:A.iushln(B)}},a.prototype._invmp=function(T){t(T.negative===0),t(!T.isZero());var M=this,A=T.clone();M.negative!==0?M=M.umod(T):M=M.clone();for(var v=new a(1),k=new a(0),O=A.clone();M.cmpn(1)>0&&A.cmpn(1)>0;){for(var D=0,B=1;(M.words[0]&B)===0&&D<26;++D,B<<=1);if(D>0)for(M.iushrn(D);D-- >0;)v.isOdd()&&v.iadd(O),v.iushrn(1);for(var x=0,N=1;(A.words[0]&N)===0&&x<26;++x,N<<=1);if(x>0)for(A.iushrn(x);x-- >0;)k.isOdd()&&k.iadd(O),k.iushrn(1);M.cmp(A)>=0?(M.isub(A),v.isub(k)):(A.isub(M),k.isub(v))}var U;return M.cmpn(1)===0?U=v:U=k,U.cmpn(0)<0&&U.iadd(T),U},a.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var M=this.clone(),A=T.clone();M.negative=0,A.negative=0;for(var v=0;M.isEven()&&A.isEven();v++)M.iushrn(1),A.iushrn(1);do{for(;M.isEven();)M.iushrn(1);for(;A.isEven();)A.iushrn(1);var k=M.cmp(A);if(k<0){var O=M;M=A,A=O}else if(k===0||A.cmpn(1)===0)break;M.isub(A)}while(!0);return A.iushln(v)},a.prototype.invm=function(T){return this.egcd(T).a.umod(T)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(T){return this.words[0]&T},a.prototype.bincn=function(T){t(typeof T=="number");var M=T%26,A=(T-M)/26,v=1<>>26,D&=67108863,this.words[O]=D}return k!==0&&(this.words[O]=k,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(T){var M=T<0;if(this.negative!==0&&!M)return-1;if(this.negative===0&&M)return 1;this.strip();var A;if(this.length>1)A=1;else{M&&(T=-T),t(T<=67108863,"Number is too big");var v=this.words[0]|0;A=v===T?0:vT.length)return 1;if(this.length=0;A--){var v=this.words[A]|0,k=T.words[A]|0;if(v!==k){vk&&(M=1);break}}return M},a.prototype.gtn=function(T){return this.cmpn(T)===1},a.prototype.gt=function(T){return this.cmp(T)===1},a.prototype.gten=function(T){return this.cmpn(T)>=0},a.prototype.gte=function(T){return this.cmp(T)>=0},a.prototype.ltn=function(T){return this.cmpn(T)===-1},a.prototype.lt=function(T){return this.cmp(T)===-1},a.prototype.lten=function(T){return this.cmpn(T)<=0},a.prototype.lte=function(T){return this.cmp(T)<=0},a.prototype.eqn=function(T){return this.cmpn(T)===0},a.prototype.eq=function(T){return this.cmp(T)===0},a.red=function(T){return new G(T)},a.prototype.toRed=function(T){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(T){return this.red=T,this},a.prototype.forceRed=function(T){return t(!this.red,"Already a number in reduction context"),this._forceRed(T)},a.prototype.redAdd=function(T){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},a.prototype.redIAdd=function(T){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},a.prototype.redSub=function(T){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},a.prototype.redISub=function(T){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},a.prototype.redShl=function(T){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},a.prototype.redMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},a.prototype.redIMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(T){return t(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var L={k256:null,p224:null,p192:null,p25519:null};function F(q,T){this.name=q,this.p=new a(T,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var T=new a(null);return T.words=new Array(Math.ceil(this.n/13)),T},F.prototype.ireduce=function(T){var M=T,A;do this.split(M,this.tmp),M=this.imulK(M),M=M.iadd(this.tmp),A=M.bitLength();while(A>this.n);var v=A0?M.isub(this.p):M.strip!==void 0?M.strip():M._strip(),M},F.prototype.split=function(T,M){T.iushrn(this.n,0,M)},F.prototype.imulK=function(T){return T.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(W,F),W.prototype.split=function(T,M){for(var A=4194303,v=Math.min(T.length,9),k=0;k>>22,O=D}O>>>=22,T.words[k-10]=O,O===0&&T.length>10?T.length-=10:T.length-=9},W.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var M=0,A=0;A>>=26,T.words[A]=k,M=v}return M!==0&&(T.words[T.length++]=M),T},a._prime=function(T){if(L[T])return L[T];var M;if(T==="k256")M=new W;else if(T==="p224")M=new V;else if(T==="p192")M=new K;else if(T==="p25519")M=new H;else throw new Error("Unknown prime "+T);return L[T]=M,M};function G(q){if(typeof q=="string"){var T=a._prime(q);this.m=T.p,this.prime=T}else t(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}G.prototype._verify1=function(T){t(T.negative===0,"red works only with positives"),t(T.red,"red works only with red numbers")},G.prototype._verify2=function(T,M){t((T.negative|M.negative)===0,"red works only with positives"),t(T.red&&T.red===M.red,"red works only with red numbers")},G.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},G.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},G.prototype.add=function(T,M){this._verify2(T,M);var A=T.add(M);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},G.prototype.iadd=function(T,M){this._verify2(T,M);var A=T.iadd(M);return A.cmp(this.m)>=0&&A.isub(this.m),A},G.prototype.sub=function(T,M){this._verify2(T,M);var A=T.sub(M);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},G.prototype.isub=function(T,M){this._verify2(T,M);var A=T.isub(M);return A.cmpn(0)<0&&A.iadd(this.m),A},G.prototype.shl=function(T,M){return this._verify1(T),this.imod(T.ushln(M))},G.prototype.imul=function(T,M){return this._verify2(T,M),this.imod(T.imul(M))},G.prototype.mul=function(T,M){return this._verify2(T,M),this.imod(T.mul(M))},G.prototype.isqr=function(T){return this.imul(T,T.clone())},G.prototype.sqr=function(T){return this.mul(T,T)},G.prototype.sqrt=function(T){if(T.isZero())return T.clone();var M=this.m.andln(3);if(t(M%2===1),M===3){var A=this.m.add(new a(1)).iushrn(2);return this.pow(T,A)}for(var v=this.m.subn(1),k=0;!v.isZero()&&v.andln(1)===0;)k++,v.iushrn(1);t(!v.isZero());var O=new a(1).toRed(this),D=O.redNeg(),B=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new a(2*x*x).toRed(this);this.pow(x,B).cmp(D)!==0;)x.redIAdd(D);for(var N=this.pow(x,v),U=this.pow(T,v.addn(1).iushrn(1)),E=this.pow(T,v),z=k;E.cmp(O)!==0;){for(var ee=E,j=0;ee.cmp(O)!==0;j++)ee=ee.redSqr();t(j=0;k--){for(var N=M.words[k],U=x-1;U>=0;U--){var E=N>>U&1;if(O!==v[0]&&(O=this.sqr(O)),E===0&&D===0){B=0;continue}D<<=1,D|=E,B++,!(B!==A&&(k!==0||U!==0))&&(O=this.mul(O,v[D]),B=0,D=0)}x=26}return O},G.prototype.convertTo=function(T){var M=T.umod(this.m);return M===T?M.clone():M},G.prototype.convertFrom=function(T){var M=T.clone();return M.red=null,M},a.mont=function(T){return new Q(T)};function Q(q){G.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(Q,G),Q.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},Q.prototype.convertFrom=function(T){var M=this.imod(T.mul(this.rinv));return M.red=null,M},Q.prototype.imul=function(T,M){if(T.isZero()||M.isZero())return T.words[0]=0,T.length=1,T;var A=T.imul(M),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},Q.prototype.mul=function(T,M){if(T.isZero()||M.isZero())return new a(0)._forceRed(this);var A=T.mul(M),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},Q.prototype.invm=function(T){var M=this.imod(T._invmp(this.m).mul(this.r2));return M._forceRed(this)}})(typeof H2e>"u"||H2e,qWe)});var zl=_((dEn,WWe)=>{d();p();WWe.exports=FWe;function FWe(r,e){if(!r)throw new Error(e||"Assertion failed")}FWe.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var j2e=_(jWe=>{"use strict";d();p();var Sse=jWe;function bBt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}Sse.toArray=bBt;function UWe(r){return r.length===1?"0"+r:r}Sse.zero2=UWe;function HWe(r){for(var e="",t=0;t{"use strict";d();p();var nh=zWe,vBt=co(),wBt=zl(),Rse=j2e();nh.assert=wBt;nh.toArray=Rse.toArray;nh.zero2=Rse.zero2;nh.toHex=Rse.toHex;nh.encode=Rse.encode;function xBt(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?o=(a>>1)-c:o=c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n}nh.getNAF=xBt;function _Bt(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,o=e.andln(3)+a&3;s===3&&(s=-1),o===3&&(o=-1);var c;(s&1)===0?c=0:(i=r.andln(7)+n&7,(i===3||i===5)&&o===2?c=-s:c=s),t[0].push(c);var u;(o&1)===0?u=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?u=-o:u=o),t[1].push(u),2*n===c+1&&(n=1-n),2*a===u+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}nh.getJSF=_Bt;function TBt(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}nh.cachedProperty=TBt;function IBt(r){return typeof r=="string"?nh.toArray(r,"hex"):r}nh.parseBytes=IBt;function EBt(r){return new vBt(r,"hex","le")}nh.intFromLE=EBt});var Ir=_((z2e,GWe)=>{d();p();var Mse=lc(),_f=Mse.Buffer;function KWe(r,e){for(var t in r)e[t]=r[t]}_f.from&&_f.alloc&&_f.allocUnsafe&&_f.allocUnsafeSlow?GWe.exports=Mse:(KWe(Mse,z2e),z2e.Buffer=pb);function pb(r,e,t){return _f(r,e,t)}pb.prototype=Object.create(_f.prototype);KWe(_f,pb);pb.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return _f(r,e,t)};pb.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=_f(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};pb.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return _f(r)};pb.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Mse.SlowBuffer(r)}});var hb=_((_En,G2e)=>{"use strict";d();p();var K2e=65536,CBt=4294967295;function kBt(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var ABt=Ir().Buffer,Nse=global.crypto||global.msCrypto;Nse&&Nse.getRandomValues?G2e.exports=PBt:G2e.exports=kBt;function PBt(r,e){if(r>CBt)throw new RangeError("requested too many random bytes");var t=ABt.allocUnsafe(r);if(r>0)if(r>K2e)for(var n=0;n{d();p();typeof Object.create=="function"?V2e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:V2e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Lu=_((AEn,Y2e)=>{"use strict";d();p();var c3=typeof Reflect=="object"?Reflect:null,VWe=c3&&typeof c3.apply=="function"?c3.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Bse;c3&&typeof c3.ownKeys=="function"?Bse=c3.ownKeys:Object.getOwnPropertySymbols?Bse=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Bse=function(e){return Object.getOwnPropertyNames(e)};function SBt(r){console&&console.warn&&console.warn(r)}var $We=Number.isNaN||function(e){return e!==e};function qa(){qa.init.call(this)}Y2e.exports=qa;Y2e.exports.once=BBt;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var YWe=10;function Dse(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return YWe},set:function(r){if(typeof r!="number"||r<0||$We(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");YWe=r}});qa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qa.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||$We(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function QWe(r){return r._maxListeners===void 0?qa.defaultMaxListeners:r._maxListeners}qa.prototype.getMaxListeners=function(){return QWe(this)};qa.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(c===void 0)return!1;if(typeof c=="function")VWe(c,this,t);else for(var u=c.length,l=tUe(c,u),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=r,o.type=e,o.count=s.length,SBt(o)}return r}qa.prototype.addListener=function(e,t){return JWe(this,e,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(e,t){return JWe(this,e,t,!0)};function RBt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ZWe(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=RBt.bind(n);return a.listener=t,n.wrapFn=a,a}qa.prototype.once=function(e,t){return Dse(t),this.on(e,ZWe(this,e,t)),this};qa.prototype.prependOnceListener=function(e,t){return Dse(t),this.prependListener(e,ZWe(this,e,t)),this};qa.prototype.removeListener=function(e,t){var n,a,i,s,o;if(Dse(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():MBt(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function XWe(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?NBt(a):tUe(a,a.length)}qa.prototype.listeners=function(e){return XWe(this,e,!0)};qa.prototype.rawListeners=function(e){return XWe(this,e,!1)};qa.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):eUe.call(r,e)};qa.prototype.listenerCount=eUe;function eUe(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?Bse(this._events):[]};function tUe(r,e){for(var t=new Array(e),n=0;n{d();p();nUe.exports=Lu().EventEmitter});var Q2e=_((BEn,aUe)=>{"use strict";d();p();aUe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var cJ=_((OEn,iUe)=>{"use strict";d();p();var LBt=Q2e();iUe.exports=function(){return LBt()&&!!Symbol.toStringTag}});var cUe=_((WEn,oUe)=>{"use strict";d();p();var sUe=typeof Symbol<"u"&&Symbol,OBt=Q2e();oUe.exports=function(){return typeof sUe!="function"||typeof Symbol!="function"||typeof sUe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:OBt()}});var lUe=_((jEn,uUe)=>{"use strict";d();p();var qBt="Function.prototype.bind called on incompatible ",J2e=Array.prototype.slice,FBt=Object.prototype.toString,WBt="[object Function]";uUe.exports=function(e){var t=this;if(typeof t!="function"||FBt.call(t)!==WBt)throw new TypeError(qBt+t);for(var n=J2e.call(arguments,1),a,i=function(){if(this instanceof a){var l=t.apply(this,n.concat(J2e.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(J2e.call(arguments)))},s=Math.max(0,t.length-n.length),o=[],c=0;c{"use strict";d();p();var UBt=lUe();dUe.exports=Function.prototype.bind||UBt});var hUe=_(($En,pUe)=>{"use strict";d();p();var HBt=Lse();pUe.exports=HBt.call(Function.call,Object.prototype.hasOwnProperty)});var lJ=_((ZEn,bUe)=>{"use strict";d();p();var Ur,p3=SyntaxError,gUe=Function,d3=TypeError,Z2e=function(r){try{return gUe('"use strict"; return ('+r+").constructor;")()}catch{}},fb=Object.getOwnPropertyDescriptor;if(fb)try{fb({},"")}catch{fb=null}var X2e=function(){throw new d3},jBt=fb?function(){try{return arguments.callee,X2e}catch{try{return fb(arguments,"callee").get}catch{return X2e}}}():X2e,u3=cUe()(),Tf=Object.getPrototypeOf||function(r){return r.__proto__},l3={},zBt=typeof Uint8Array>"u"?Ur:Tf(Uint8Array),mb={"%AggregateError%":typeof AggregateError>"u"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":u3?Tf([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":l3,"%AsyncGenerator%":l3,"%AsyncGeneratorFunction%":l3,"%AsyncIteratorPrototype%":l3,"%Atomics%":typeof Atomics>"u"?Ur:Atomics,"%BigInt%":typeof BigInt>"u"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ur:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ur:FinalizationRegistry,"%Function%":gUe,"%GeneratorFunction%":l3,"%Int8Array%":typeof Int8Array>"u"?Ur:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ur:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u3?Tf(Tf([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map>"u"?Ur:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u3?Ur:Tf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ur:Promise,"%Proxy%":typeof Proxy>"u"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ur:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u3?Ur:Tf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u3?Tf(""[Symbol.iterator]()):Ur,"%Symbol%":u3?Symbol:Ur,"%SyntaxError%":p3,"%ThrowTypeError%":jBt,"%TypedArray%":zBt,"%TypeError%":d3,"%Uint8Array%":typeof Uint8Array>"u"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ur:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ur:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ur:WeakSet};try{null.error}catch(r){fUe=Tf(Tf(r)),mb["%Error.prototype%"]=fUe}var fUe,KBt=function r(e){var t;if(e==="%AsyncFunction%")t=Z2e("async function () {}");else if(e==="%GeneratorFunction%")t=Z2e("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Z2e("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Tf(a.prototype))}return mb[e]=t,t},mUe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},uJ=Lse(),Ose=hUe(),GBt=uJ.call(Function.call,Array.prototype.concat),VBt=uJ.call(Function.apply,Array.prototype.splice),yUe=uJ.call(Function.call,String.prototype.replace),qse=uJ.call(Function.call,String.prototype.slice),YBt=uJ.call(Function.call,RegExp.prototype.exec),$Bt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QBt=/\\(\\)?/g,JBt=function(e){var t=qse(e,0,1),n=qse(e,-1);if(t==="%"&&n!=="%")throw new p3("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new p3("invalid intrinsic syntax, expected opening `%`");var a=[];return yUe(e,$Bt,function(i,s,o,c){a[a.length]=o?yUe(c,QBt,"$1"):s||i}),a},ZBt=function(e,t){var n=e,a;if(Ose(mUe,n)&&(a=mUe[n],n="%"+a[0]+"%"),Ose(mb,n)){var i=mb[n];if(i===l3&&(i=KBt(n)),typeof i>"u"&&!t)throw new d3("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new p3("intrinsic "+e+" does not exist!")};bUe.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new d3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new d3('"allowMissing" argument must be a boolean');if(YBt(/^%?[^%]*%?$/,e)===null)throw new p3("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=JBt(e),a=n.length>0?n[0]:"",i=ZBt("%"+a+"%",t),s=i.name,o=i.value,c=!1,u=i.alias;u&&(a=u[0],VBt(n,GBt([0,1],u)));for(var l=1,h=!0;l=n.length){var I=fb(o,f);h=!!I,h&&"get"in I&&!("originalValue"in I.get)?o=I.get:o=o[f]}else h=Ose(o,f),o=o[f];h&&!c&&(mb[s]=o)}}return o}});var IUe=_((tCn,Fse)=>{"use strict";d();p();var ewe=Lse(),h3=lJ(),xUe=h3("%Function.prototype.apply%"),_Ue=h3("%Function.prototype.call%"),TUe=h3("%Reflect.apply%",!0)||ewe.call(_Ue,xUe),vUe=h3("%Object.getOwnPropertyDescriptor%",!0),yb=h3("%Object.defineProperty%",!0),XBt=h3("%Math.max%");if(yb)try{yb({},"a",{value:1})}catch{yb=null}Fse.exports=function(e){var t=TUe(ewe,_Ue,arguments);if(vUe&&yb){var n=vUe(t,"length");n.configurable&&yb(t,"length",{value:1+XBt(0,e.length-(arguments.length-1))})}return t};var wUe=function(){return TUe(ewe,xUe,arguments)};yb?yb(Fse.exports,"apply",{value:wUe}):Fse.exports.apply=wUe});var dJ=_((aCn,kUe)=>{"use strict";d();p();var EUe=lJ(),CUe=IUe(),eDt=CUe(EUe("String.prototype.indexOf"));kUe.exports=function(e,t){var n=EUe(e,!!t);return typeof n=="function"&&eDt(e,".prototype.")>-1?CUe(n):n}});var SUe=_((oCn,PUe)=>{"use strict";d();p();var tDt=cJ()(),rDt=dJ(),twe=rDt("Object.prototype.toString"),Wse=function(e){return tDt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:twe(e)==="[object Arguments]"},AUe=function(e){return Wse(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&twe(e)!=="[object Array]"&&twe(e.callee)==="[object Function]"},nDt=function(){return Wse(arguments)}();Wse.isLegacyArguments=AUe;PUe.exports=nDt?Wse:AUe});var NUe=_((lCn,MUe)=>{"use strict";d();p();var aDt=Object.prototype.toString,iDt=Function.prototype.toString,sDt=/^\s*(?:function)?\*/,RUe=cJ()(),rwe=Object.getPrototypeOf,oDt=function(){if(!RUe)return!1;try{return Function("return function*() {}")()}catch{}},nwe;MUe.exports=function(e){if(typeof e!="function")return!1;if(sDt.test(iDt.call(e)))return!0;if(!RUe){var t=aDt.call(e);return t==="[object GeneratorFunction]"}if(!rwe)return!1;if(typeof nwe>"u"){var n=oDt();nwe=n?rwe(n):!1}return rwe(e)===nwe}});var OUe=_((hCn,LUe)=>{"use strict";d();p();var DUe=Function.prototype.toString,f3=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,iwe,Use;if(typeof f3=="function"&&typeof Object.defineProperty=="function")try{iwe=Object.defineProperty({},"length",{get:function(){throw Use}}),Use={},f3(function(){throw 42},null,iwe)}catch(r){r!==Use&&(f3=null)}else f3=null;var cDt=/^\s*class\b/,swe=function(e){try{var t=DUe.call(e);return cDt.test(t)}catch{return!1}},awe=function(e){try{return swe(e)?!1:(DUe.call(e),!0)}catch{return!1}},Hse=Object.prototype.toString,uDt="[object Object]",lDt="[object Function]",dDt="[object GeneratorFunction]",pDt="[object HTMLAllCollection]",hDt="[object HTML document.all class]",fDt="[object HTMLCollection]",mDt=typeof Symbol=="function"&&!!Symbol.toStringTag,yDt=!(0 in[,]),owe=function(){return!1};typeof document=="object"&&(BUe=document.all,Hse.call(BUe)===Hse.call(document.all)&&(owe=function(e){if((yDt||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=Hse.call(e);return(t===pDt||t===hDt||t===fDt||t===uDt)&&e("")==null}catch{}return!1}));var BUe;LUe.exports=f3?function(e){if(owe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{f3(e,null,iwe)}catch(t){if(t!==Use)return!1}return!swe(e)&&awe(e)}:function(e){if(owe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(mDt)return awe(e);if(swe(e))return!1;var t=Hse.call(e);return t!==lDt&&t!==dDt&&!/^\[object HTML/.test(t)?!1:awe(e)}});var cwe=_((yCn,FUe)=>{"use strict";d();p();var gDt=OUe(),bDt=Object.prototype.toString,qUe=Object.prototype.hasOwnProperty,vDt=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),bDt.call(e)==="[object Array]"?vDt(e,t,a):typeof e=="string"?wDt(e,t,a):xDt(e,t,a)};FUe.exports=_Dt});var lwe=_((vCn,WUe)=>{"use strict";d();p();var uwe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],TDt=typeof globalThis>"u"?global:globalThis;WUe.exports=function(){for(var e=[],t=0;t{"use strict";d();p();var IDt=lJ(),jse=IDt("%Object.getOwnPropertyDescriptor%",!0);if(jse)try{jse([],"length")}catch{jse=null}UUe.exports=jse});var fwe=_((ECn,GUe)=>{"use strict";d();p();var HUe=cwe(),EDt=lwe(),hwe=dJ(),CDt=hwe("Object.prototype.toString"),jUe=cJ()(),zse=dwe(),kDt=typeof globalThis>"u"?global:globalThis,zUe=EDt(),ADt=hwe("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return zse?SDt(e):!1}});var XUe=_((ACn,ZUe)=>{"use strict";d();p();var YUe=cwe(),RDt=lwe(),$Ue=dJ(),mwe=dwe(),MDt=$Ue("Object.prototype.toString"),QUe=cJ()(),VUe=typeof globalThis>"u"?global:globalThis,NDt=RDt(),BDt=$Ue("String.prototype.slice"),JUe={},ywe=Object.getPrototypeOf;QUe&&mwe&&ywe&&YUe(NDt,function(r){if(typeof VUe[r]=="function"){var e=new VUe[r];if(Symbol.toStringTag in e){var t=ywe(e),n=mwe(t,Symbol.toStringTag);if(!n){var a=ywe(t);n=mwe(a,Symbol.toStringTag)}JUe[r]=n.get}}});var DDt=function(e){var t=!1;return YUe(JUe,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},LDt=fwe();ZUe.exports=function(e){return LDt(e)?!QUe||!(Symbol.toStringTag in e)?BDt(MDt(e),8,-1):DDt(e):!1}});var hHe=_(Lr=>{"use strict";d();p();var ODt=SUe(),qDt=NUe(),ah=XUe(),eHe=fwe();function m3(r){return r.call.bind(r)}var tHe=typeof BigInt<"u",rHe=typeof Symbol<"u",Bd=m3(Object.prototype.toString),FDt=m3(Number.prototype.valueOf),WDt=m3(String.prototype.valueOf),UDt=m3(Boolean.prototype.valueOf);tHe&&(nHe=m3(BigInt.prototype.valueOf));var nHe;rHe&&(aHe=m3(Symbol.prototype.valueOf));var aHe;function hJ(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}Lr.isArgumentsObject=ODt;Lr.isGeneratorFunction=qDt;Lr.isTypedArray=eHe;function HDt(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}Lr.isPromise=HDt;function jDt(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):eHe(r)||sHe(r)}Lr.isArrayBufferView=jDt;function zDt(r){return ah(r)==="Uint8Array"}Lr.isUint8Array=zDt;function KDt(r){return ah(r)==="Uint8ClampedArray"}Lr.isUint8ClampedArray=KDt;function GDt(r){return ah(r)==="Uint16Array"}Lr.isUint16Array=GDt;function VDt(r){return ah(r)==="Uint32Array"}Lr.isUint32Array=VDt;function YDt(r){return ah(r)==="Int8Array"}Lr.isInt8Array=YDt;function $Dt(r){return ah(r)==="Int16Array"}Lr.isInt16Array=$Dt;function QDt(r){return ah(r)==="Int32Array"}Lr.isInt32Array=QDt;function JDt(r){return ah(r)==="Float32Array"}Lr.isFloat32Array=JDt;function ZDt(r){return ah(r)==="Float64Array"}Lr.isFloat64Array=ZDt;function XDt(r){return ah(r)==="BigInt64Array"}Lr.isBigInt64Array=XDt;function eLt(r){return ah(r)==="BigUint64Array"}Lr.isBigUint64Array=eLt;function Kse(r){return Bd(r)==="[object Map]"}Kse.working=typeof Map<"u"&&Kse(new Map);function tLt(r){return typeof Map>"u"?!1:Kse.working?Kse(r):r instanceof Map}Lr.isMap=tLt;function Gse(r){return Bd(r)==="[object Set]"}Gse.working=typeof Set<"u"&&Gse(new Set);function rLt(r){return typeof Set>"u"?!1:Gse.working?Gse(r):r instanceof Set}Lr.isSet=rLt;function Vse(r){return Bd(r)==="[object WeakMap]"}Vse.working=typeof WeakMap<"u"&&Vse(new WeakMap);function nLt(r){return typeof WeakMap>"u"?!1:Vse.working?Vse(r):r instanceof WeakMap}Lr.isWeakMap=nLt;function bwe(r){return Bd(r)==="[object WeakSet]"}bwe.working=typeof WeakSet<"u"&&bwe(new WeakSet);function aLt(r){return bwe(r)}Lr.isWeakSet=aLt;function Yse(r){return Bd(r)==="[object ArrayBuffer]"}Yse.working=typeof ArrayBuffer<"u"&&Yse(new ArrayBuffer);function iHe(r){return typeof ArrayBuffer>"u"?!1:Yse.working?Yse(r):r instanceof ArrayBuffer}Lr.isArrayBuffer=iHe;function $se(r){return Bd(r)==="[object DataView]"}$se.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$se(new DataView(new ArrayBuffer(1),0,1));function sHe(r){return typeof DataView>"u"?!1:$se.working?$se(r):r instanceof DataView}Lr.isDataView=sHe;var gwe=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pJ(r){return Bd(r)==="[object SharedArrayBuffer]"}function oHe(r){return typeof gwe>"u"?!1:(typeof pJ.working>"u"&&(pJ.working=pJ(new gwe)),pJ.working?pJ(r):r instanceof gwe)}Lr.isSharedArrayBuffer=oHe;function iLt(r){return Bd(r)==="[object AsyncFunction]"}Lr.isAsyncFunction=iLt;function sLt(r){return Bd(r)==="[object Map Iterator]"}Lr.isMapIterator=sLt;function oLt(r){return Bd(r)==="[object Set Iterator]"}Lr.isSetIterator=oLt;function cLt(r){return Bd(r)==="[object Generator]"}Lr.isGeneratorObject=cLt;function uLt(r){return Bd(r)==="[object WebAssembly.Module]"}Lr.isWebAssemblyCompiledModule=uLt;function cHe(r){return hJ(r,FDt)}Lr.isNumberObject=cHe;function uHe(r){return hJ(r,WDt)}Lr.isStringObject=uHe;function lHe(r){return hJ(r,UDt)}Lr.isBooleanObject=lHe;function dHe(r){return tHe&&hJ(r,nHe)}Lr.isBigIntObject=dHe;function pHe(r){return rHe&&hJ(r,aHe)}Lr.isSymbolObject=pHe;function lLt(r){return cHe(r)||uHe(r)||lHe(r)||dHe(r)||pHe(r)}Lr.isBoxedPrimitive=lLt;function dLt(r){return typeof Uint8Array<"u"&&(iHe(r)||oHe(r))}Lr.isAnyArrayBuffer=dLt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(Lr,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var mHe=_((BCn,fHe)=>{d();p();fHe.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var noe=_(Or=>{d();p();var yHe=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return o}}),s=n[t];t"u")return function(){return Or.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(g.throwDeprecation)throw new Error(e);g.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var Qse={},gHe=/^$/;g.env.NODE_DEBUG&&(Jse=g.env.NODE_DEBUG,Jse=Jse.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),gHe=new RegExp("^"+Jse+"$","i"));var Jse;Or.debuglog=function(r){if(r=r.toUpperCase(),!Qse[r])if(gHe.test(r)){var e=g.pid;Qse[r]=function(){var t=Or.format.apply(Or,arguments);console.error("%s %d: %s",r,e,t)}}else Qse[r]=function(){};return Qse[r]};function Py(r,e){var t={seen:[],stylize:fLt};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),_we(e)?t.showHidden=e:e&&Or._extend(t,e),bb(t.showHidden)&&(t.showHidden=!1),bb(t.depth)&&(t.depth=2),bb(t.colors)&&(t.colors=!1),bb(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=hLt),Xse(t,r,t.depth)}Or.inspect=Py;Py.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Py.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function hLt(r,e){var t=Py.styles[e];return t?"\x1B["+Py.colors[t][0]+"m"+r+"\x1B["+Py.colors[t][1]+"m":r}function fLt(r,e){return r}function mLt(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function Xse(r,e,t){if(r.customInspect&&e&&Zse(e.inspect)&&e.inspect!==Or.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return roe(n)||(n=Xse(r,n,t)),n}var a=yLt(r,e);if(a)return a;var i=Object.keys(e),s=mLt(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),mJ(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return vwe(e);if(i.length===0){if(Zse(e)){var o=e.name?": "+e.name:"";return r.stylize("[Function"+o+"]","special")}if(fJ(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(eoe(e))return r.stylize(Date.prototype.toString.call(e),"date");if(mJ(e))return vwe(e)}var c="",u=!1,l=["{","}"];if(bHe(e)&&(u=!0,l=["[","]"]),Zse(e)){var h=e.name?": "+e.name:"";c=" [Function"+h+"]"}if(fJ(e)&&(c=" "+RegExp.prototype.toString.call(e)),eoe(e)&&(c=" "+Date.prototype.toUTCString.call(e)),mJ(e)&&(c=" "+vwe(e)),i.length===0&&(!u||e.length==0))return l[0]+c+l[1];if(t<0)return fJ(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var f;return u?f=gLt(r,e,t,s,i):f=i.map(function(m){return xwe(r,e,t,s,m,u)}),r.seen.pop(),bLt(f,c,l)}function yLt(r,e){if(bb(e))return r.stylize("undefined","undefined");if(roe(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(vHe(e))return r.stylize(""+e,"number");if(_we(e))return r.stylize(""+e,"boolean");if(toe(e))return r.stylize("null","null")}function vwe(r){return"["+Error.prototype.toString.call(r)+"]"}function gLt(r,e,t,n,a){for(var i=[],s=0,o=e.length;s-1&&(i?o=o.split(` `).map(function(u){return" "+u}).join(` `).slice(2):o=` `+o.split(` `).map(function(u){return" "+u}).join(` -`))):o=r.stylize("[Circular]","special")),yb(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+o}function FBt(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` +`))):o=r.stylize("[Circular]","special")),bb(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+o}function bLt(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` `)>=0&&n++,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?t[0]+(e===""?"":e+` `)+" "+r.join(`, - `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Lr.types=v2e();function E2e(r){return Array.isArray(r)}Lr.isArray=E2e;function zG(r){return typeof r=="boolean"}Lr.isBoolean=zG;function kR(r){return r===null}Lr.isNull=kR;function qBt(r){return r==null}Lr.isNullOrUndefined=qBt;function C2e(r){return typeof r=="number"}Lr.isNumber=C2e;function AR(r){return typeof r=="string"}Lr.isString=AR;function WBt(r){return typeof r=="symbol"}Lr.isSymbol=WBt;function yb(r){return r===void 0}Lr.isUndefined=yb;function GE(r){return W5(r)&&KG(r)==="[object RegExp]"}Lr.isRegExp=GE;Lr.types.isRegExp=GE;function W5(r){return typeof r=="object"&&r!==null}Lr.isObject=W5;function IR(r){return W5(r)&&KG(r)==="[object Date]"}Lr.isDate=IR;Lr.types.isDate=IR;function VE(r){return W5(r)&&(KG(r)==="[object Error]"||r instanceof Error)}Lr.isError=VE;Lr.types.isNativeError=VE;function ER(r){return typeof r=="function"}Lr.isFunction=ER;function UBt(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Lr.isPrimitive=UBt;Lr.isBuffer=_2e();function KG(r){return Object.prototype.toString.call(r)}function HG(r){return r<10?"0"+r.toString(10):r.toString(10)}var HBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jBt(){var r=new Date,e=[HG(r.getHours()),HG(r.getMinutes()),HG(r.getSeconds())].join(":");return[r.getDate(),HBt[r.getMonth()],e].join(" ")}Lr.log=function(){console.log("%s - %s",jBt(),Lr.format.apply(Lr,arguments))};Lr.inherits=_r();Lr._extend=function(r,e){if(!e||!W5(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function I2e(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var mb=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Lr.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(mb&&e[mb]){var t=e[mb];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,mb,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(c,u){n=c,a=u}),s=[],o=0;o{"use strict";d();p();function k2e(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function A2e(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return PR.alloc(0);for(var n=PR.allocUnsafe(t>>>0),a=this.head,i=0;a;)XBt(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=PR.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++i}return this.length-=i,n}},{key:ZBt,value:function(t,n){return GG(this,A2e(A2e({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var $G=x((R6n,B2e)=>{"use strict";d();p();function eDt(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(VG,this,r)):g.nextTick(VG,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?g.nextTick(RR,t):(t._writableState.errorEmitted=!0,g.nextTick(N2e,t,i)):g.nextTick(N2e,t,i):e?(g.nextTick(RR,t),e(i)):g.nextTick(RR,t)}),this)}function N2e(r,e){VG(r,e),RR(r)}function RR(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function tDt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function VG(r,e){r.emit("error",e)}function rDt(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}B2e.exports={destroy:eDt,undestroy:tDt,errorOrDestroy:rDt}});var gb=x((B6n,L2e)=>{"use strict";d();p();function nDt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var O2e={};function Ld(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){nDt(s,i);function s(o,c,u){return i.call(this,n(o,c,u))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,O2e[r]=a}function D2e(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function aDt(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function iDt(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function sDt(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Ld("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Ld("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&aDt(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(iDt(r," argument"))a="The ".concat(r," ").concat(n," ").concat(D2e(e,"type"));else{var i=sDt(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(D2e(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Ld("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ld("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Ld("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ld("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Ld("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ld("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ld("ERR_STREAM_WRITE_AFTER_END","write after end");Ld("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ld("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Ld("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");L2e.exports.codes=O2e});var YG=x((L6n,F2e)=>{"use strict";d();p();var oDt=gb().codes.ERR_INVALID_OPT_VALUE;function cDt(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function uDt(r,e,t,n){var a=cDt(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new oDt(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}F2e.exports={getHighWaterMark:uDt}});var W2e=x((W6n,q2e)=>{d();p();q2e.exports=lDt;function lDt(r,e){if(JG("noDeprecation"))return r;var t=!1;function n(){if(!t){if(JG("throwDeprecation"))throw new Error(e);JG("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function JG(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var BR=x((j6n,G2e)=>{"use strict";d();p();G2e.exports=os;function H2e(r){var e=this;this.next=null,this.entry=null,this.finish=function(){LDt(e,r)}}var U5;os.WritableState=YE;var dDt={deprecate:W2e()},j2e=gG(),NR=lc().Buffer,pDt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hDt(r){return NR.from(r)}function fDt(r){return NR.isBuffer(r)||r instanceof pDt}var ZG=$G(),mDt=YG(),yDt=mDt.getHighWaterMark,My=gb().codes,gDt=My.ERR_INVALID_ARG_TYPE,bDt=My.ERR_METHOD_NOT_IMPLEMENTED,vDt=My.ERR_MULTIPLE_CALLBACK,wDt=My.ERR_STREAM_CANNOT_PIPE,_Dt=My.ERR_STREAM_DESTROYED,xDt=My.ERR_STREAM_NULL_VALUES,TDt=My.ERR_STREAM_WRITE_AFTER_END,EDt=My.ERR_UNKNOWN_ENCODING,H5=ZG.errorOrDestroy;_r()(os,j2e);function CDt(){}function YE(r,e,t){U5=U5||Ny(),r=r||{},typeof t!="boolean"&&(t=e instanceof U5),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=yDt(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){MDt(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new H2e(this)}YE.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(YE.prototype,"buffer",{get:dDt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var MR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(MR=Function.prototype[Symbol.hasInstance],Object.defineProperty(os,Symbol.hasInstance,{value:function(e){return MR.call(this,e)?!0:this!==os?!1:e&&e._writableState instanceof YE}})):MR=function(e){return e instanceof this};function os(r){U5=U5||Ny();var e=this instanceof U5;if(!e&&!MR.call(os,this))return new os(r);this._writableState=new YE(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),j2e.call(this)}os.prototype.pipe=function(){H5(this,new wDt)};function IDt(r,e){var t=new TDt;H5(r,t),g.nextTick(e,t)}function kDt(r,e,t,n){var a;return t===null?a=new xDt:typeof t!="string"&&!e.objectMode&&(a=new gDt("chunk",["string","Buffer"],t)),a?(H5(r,a),g.nextTick(n,a),!1):!0}os.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&fDt(r);return i&&!NR.isBuffer(r)&&(r=hDt(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=CDt),n.ending?IDt(this,t):(i||kDt(this,n,r,t))&&(n.pendingcb++,a=SDt(this,n,i,r,e,t)),a};os.prototype.cork=function(){this._writableState.corked++};os.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&z2e(this,r))};os.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new EDt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(os.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ADt(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=NR.from(e,t)),e}Object.defineProperty(os.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function SDt(r,e,t,n,a,i){if(!t){var s=ADt(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var c=e.length{"use strict";d();p();var FDt=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};$2e.exports=If;var V2e=LR(),eV=BR();_r()(If,V2e);for(XG=FDt(eV.prototype),DR=0;DR{"use strict";d();p();var rV=Er().Buffer,Y2e=rV.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function UDt(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function HDt(r){var e=UDt(r);if(typeof e!="string"&&(rV.isEncoding===Y2e||!Y2e(r)))throw new Error("Unknown encoding: "+r);return e||r}J2e.StringDecoder=JE;function JE(r){this.encoding=HDt(r);var e;switch(this.encoding){case"utf16le":this.text=$Dt,this.end=YDt,e=4;break;case"utf8":this.fillLast=KDt,e=4;break;case"base64":this.text=JDt,this.end=QDt,e=3;break;default:this.write=ZDt,this.end=XDt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rV.allocUnsafe(e)}JE.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function jDt(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function zDt(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function KDt(r){var e=this.lastTotal-this.lastNeed,t=zDt(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function GDt(r,e){var t=jDt(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function VDt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function $Dt(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function YDt(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function JDt(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function QDt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ZDt(r){return r.toString(this.encoding)}function XDt(r){return r&&r.length?this.write(r):""}});var QE=x((Z6n,X2e)=>{"use strict";d();p();var Q2e=gb().codes.ERR_STREAM_PREMATURE_CLOSE;function eOt(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";d();p();var qR;function By(r,e,t){return e=nOt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function nOt(r){var e=aOt(r,"string");return typeof e=="symbol"?e:String(e)}function aOt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var iOt=QE(),Dy=Symbol("lastResolve"),bb=Symbol("lastReject"),ZE=Symbol("error"),WR=Symbol("ended"),vb=Symbol("lastPromise"),nV=Symbol("handlePromise"),wb=Symbol("stream");function Oy(r,e){return{value:r,done:e}}function sOt(r){var e=r[Dy];if(e!==null){var t=r[wb].read();t!==null&&(r[vb]=null,r[Dy]=null,r[bb]=null,e(Oy(t,!1)))}}function oOt(r){g.nextTick(sOt,r)}function cOt(r,e){return function(t,n){r.then(function(){if(e[WR]){t(Oy(void 0,!0));return}e[nV](t,n)},n)}}var uOt=Object.getPrototypeOf(function(){}),lOt=Object.setPrototypeOf((qR={get stream(){return this[wb]},next:function(){var e=this,t=this[ZE];if(t!==null)return Promise.reject(t);if(this[WR])return Promise.resolve(Oy(void 0,!0));if(this[wb].destroyed)return new Promise(function(s,o){g.nextTick(function(){e[ZE]?o(e[ZE]):s(Oy(void 0,!0))})});var n=this[vb],a;if(n)a=new Promise(cOt(n,this));else{var i=this[wb].read();if(i!==null)return Promise.resolve(Oy(i,!1));a=new Promise(this[nV])}return this[vb]=a,a}},By(qR,Symbol.asyncIterator,function(){return this}),By(qR,"return",function(){var e=this;return new Promise(function(t,n){e[wb].destroy(null,function(a){if(a){n(a);return}t(Oy(void 0,!0))})})}),qR),uOt),dOt=function(e){var t,n=Object.create(lOt,(t={},By(t,wb,{value:e,writable:!0}),By(t,Dy,{value:null,writable:!0}),By(t,bb,{value:null,writable:!0}),By(t,ZE,{value:null,writable:!0}),By(t,WR,{value:e._readableState.endEmitted,writable:!0}),By(t,nV,{value:function(i,s){var o=n[wb].read();o?(n[vb]=null,n[Dy]=null,n[bb]=null,i(Oy(o,!1))):(n[Dy]=i,n[bb]=s)},writable:!0}),t));return n[vb]=null,iOt(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[bb];i!==null&&(n[vb]=null,n[Dy]=null,n[bb]=null,i(a)),n[ZE]=a;return}var s=n[Dy];s!==null&&(n[vb]=null,n[Dy]=null,n[bb]=null,s(Oy(void 0,!0))),n[WR]=!0}),e.on("readable",oOt.bind(null,n)),n};ewe.exports=dOt});var nwe=x((aEn,rwe)=>{d();p();rwe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var LR=x((cEn,hwe)=>{"use strict";d();p();hwe.exports=ln;var j5;ln.ReadableState=owe;var oEn=Ou().EventEmitter,swe=function(e,t){return e.listeners(t).length},eC=gG(),UR=lc().Buffer,pOt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hOt(r){return UR.from(r)}function fOt(r){return UR.isBuffer(r)||r instanceof pOt}var aV=SR(),Pr;aV&&aV.debuglog?Pr=aV.debuglog("stream"):Pr=function(){};var mOt=M2e(),dV=$G(),yOt=YG(),gOt=yOt.getHighWaterMark,HR=gb().codes,bOt=HR.ERR_INVALID_ARG_TYPE,vOt=HR.ERR_STREAM_PUSH_AFTER_EOF,wOt=HR.ERR_METHOD_NOT_IMPLEMENTED,_Ot=HR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,z5,iV,sV;_r()(ln,eC);var XE=dV.errorOrDestroy,oV=["error","close","destroy","pause","resume"];function xOt(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function owe(r,e,t){j5=j5||Ny(),r=r||{},typeof t!="boolean"&&(t=e instanceof j5),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=gOt(this,r,"readableHighWaterMark",t),this.buffer=new mOt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(z5||(z5=FR().StringDecoder),this.decoder=new z5(r.encoding),this.encoding=r.encoding)}function ln(r){if(j5=j5||Ny(),!(this instanceof ln))return new ln(r);var e=this instanceof j5;this._readableState=new owe(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),eC.call(this)}Object.defineProperty(ln.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ln.prototype.destroy=dV.destroy;ln.prototype._undestroy=dV.undestroy;ln.prototype._destroy=function(r,e){e(r)};ln.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=UR.from(r,e),e=""),n=!0),cwe(this,r,e,!1,n)};ln.prototype.unshift=function(r){return cwe(this,r,null,!0,!1)};function cwe(r,e,t,n,a){Pr("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,COt(r,i);else{var s;if(a||(s=TOt(i,e)),s)XE(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==UR.prototype&&(e=hOt(e)),n)i.endEmitted?XE(r,new _Ot):cV(r,i,e,!0);else if(i.ended)XE(r,new vOt);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?cV(r,i,e,!1):lV(r,i)):cV(r,i,e,!1)}else n||(i.reading=!1,lV(r,i))}return!i.ended&&(i.length=awe?r=awe:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function iwe(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=EOt(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}ln.prototype.read=function(r){Pr("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Pr("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?uV(this):jR(this),null;if(r=iwe(r,e),r===0&&e.ended)return e.length===0&&uV(this),null;var n=e.needReadable;Pr("need readable",n),(e.length===0||e.length-r0?a=dwe(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&uV(this)),a!==null&&this.emit("data",a),a};function COt(r,e){if(Pr("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?jR(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,uwe(r)))}}function jR(r){var e=r._readableState;Pr("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Pr("emitReadable",e.flowing),e.emittedReadable=!0,g.nextTick(uwe,r))}function uwe(r){var e=r._readableState;Pr("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,pV(r)}function lV(r,e){e.readingMore||(e.readingMore=!0,g.nextTick(IOt,r,e))}function IOt(r,e){for(;!e.reading&&!e.ended&&(e.length1&&pwe(n.pipes,r)!==-1)&&!u&&(Pr("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function f(I){Pr("onerror",I),E(),r.removeListener("error",f),swe(r,"error")===0&&XE(r,I)}xOt(r,"error",f);function m(){r.removeListener("finish",y),E()}r.once("close",m);function y(){Pr("onfinish"),r.removeListener("close",m),E()}r.once("finish",y);function E(){Pr("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Pr("pipe resume"),t.resume()),r};function kOt(r){return function(){var t=r._readableState;Pr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&swe(r,"data")&&(t.flowing=!0,pV(r))}}ln.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Pr("on readable",n.length,n.reading),n.length?jR(this):n.reading||g.nextTick(AOt,this)),t};ln.prototype.addListener=ln.prototype.on;ln.prototype.removeListener=function(r,e){var t=eC.prototype.removeListener.call(this,r,e);return r==="readable"&&g.nextTick(lwe,this),t};ln.prototype.removeAllListeners=function(r){var e=eC.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&g.nextTick(lwe,this),e};function lwe(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function AOt(r){Pr("readable nexttick read 0"),r.read(0)}ln.prototype.resume=function(){var r=this._readableState;return r.flowing||(Pr("resume"),r.flowing=!r.readableListening,SOt(this,r)),r.paused=!1,this};function SOt(r,e){e.resumeScheduled||(e.resumeScheduled=!0,g.nextTick(POt,r,e))}function POt(r,e){Pr("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),pV(r),e.flowing&&!e.reading&&r.read(0)}ln.prototype.pause=function(){return Pr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pr("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pV(r){var e=r._readableState;for(Pr("flow",e.flowing);e.flowing&&r.read()!==null;);}ln.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Pr("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(Pr("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(o){return function(){return r[o].apply(r,arguments)}}(a));for(var i=0;i=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function uV(r){var e=r._readableState;Pr("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,g.nextTick(ROt,e,r))}function ROt(r,e){if(Pr("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(ln.from=function(r,e){return sV===void 0&&(sV=nwe()),sV(ln,r,e)});function pwe(r,e){for(var t=0,n=r.length;t{"use strict";d();p();mwe.exports=Xm;var zR=gb().codes,MOt=zR.ERR_METHOD_NOT_IMPLEMENTED,NOt=zR.ERR_MULTIPLE_CALLBACK,BOt=zR.ERR_TRANSFORM_ALREADY_TRANSFORMING,DOt=zR.ERR_TRANSFORM_WITH_LENGTH_0,KR=Ny();_r()(Xm,KR);function OOt(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new NOt);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";d();p();gwe.exports=tC;var ywe=GR();_r()(tC,ywe);function tC(r){if(!(this instanceof tC))return new tC(r);ywe.call(this,r)}tC.prototype._transform=function(r,e,t){t(null,r)}});var mV=x((gEn,_we)=>{"use strict";d();p();var fV;function FOt(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var wwe=gb().codes,qOt=wwe.ERR_MISSING_ARGS,WOt=wwe.ERR_STREAM_DESTROYED;function bwe(r){if(r)throw r}function UOt(r){return r.setHeader&&typeof r.abort=="function"}function HOt(r,e,t,n){n=FOt(n);var a=!1;r.on("close",function(){a=!0}),fV===void 0&&(fV=QE()),fV(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,UOt(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new WOt("pipe"))}}}function vwe(r){r()}function jOt(r,e){return r.pipe(e)}function zOt(r){return!r.length||typeof r[r.length-1]!="function"?bwe:r.pop()}function KOt(){for(var r=arguments.length,e=new Array(r),t=0;t0;return HOt(s,c,u,function(l){a||(a=l),l&&i.forEach(vwe),!c&&(i.forEach(vwe),n(a))})});return e.reduce(jOt)}_we.exports=KOt});var rC=x((Fd,xwe)=>{d();p();Fd=xwe.exports=LR();Fd.Stream=Fd;Fd.Readable=Fd;Fd.Writable=BR();Fd.Duplex=Ny();Fd.Transform=GR();Fd.PassThrough=hV();Fd.finished=QE();Fd.pipeline=mV()});var yV=x((xEn,Ewe)=>{"use strict";d();p();var VR=Er().Buffer,Twe=rC().Transform,GOt=_r();function VOt(r,e){if(!VR.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function Ly(r){Twe.call(this),this._block=VR.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}GOt(Ly,Twe);Ly.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};Ly.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Ly.prototype.update=function(r,e){if(VOt(r,"Data"),this._finalized)throw new Error("Digest already called");VR.isBuffer(r)||(r=VR.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};Ly.prototype._update=function(){throw new Error("_update is not implemented")};Ly.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Ly.prototype._digest=function(){throw new Error("_digest is not implemented")};Ewe.exports=Ly});var JR=x((CEn,Iwe)=>{"use strict";d();p();var $Ot=_r(),Cwe=yV(),YOt=Er().Buffer,JOt=new Array(16);function $R(){Cwe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}$Ot($R,Cwe);$R.prototype._update=function(){for(var r=JOt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=$c(t,n,a,i,r[0],3614090360,7),i=$c(i,t,n,a,r[1],3905402710,12),a=$c(a,i,t,n,r[2],606105819,17),n=$c(n,a,i,t,r[3],3250441966,22),t=$c(t,n,a,i,r[4],4118548399,7),i=$c(i,t,n,a,r[5],1200080426,12),a=$c(a,i,t,n,r[6],2821735955,17),n=$c(n,a,i,t,r[7],4249261313,22),t=$c(t,n,a,i,r[8],1770035416,7),i=$c(i,t,n,a,r[9],2336552879,12),a=$c(a,i,t,n,r[10],4294925233,17),n=$c(n,a,i,t,r[11],2304563134,22),t=$c(t,n,a,i,r[12],1804603682,7),i=$c(i,t,n,a,r[13],4254626195,12),a=$c(a,i,t,n,r[14],2792965006,17),n=$c(n,a,i,t,r[15],1236535329,22),t=Yc(t,n,a,i,r[1],4129170786,5),i=Yc(i,t,n,a,r[6],3225465664,9),a=Yc(a,i,t,n,r[11],643717713,14),n=Yc(n,a,i,t,r[0],3921069994,20),t=Yc(t,n,a,i,r[5],3593408605,5),i=Yc(i,t,n,a,r[10],38016083,9),a=Yc(a,i,t,n,r[15],3634488961,14),n=Yc(n,a,i,t,r[4],3889429448,20),t=Yc(t,n,a,i,r[9],568446438,5),i=Yc(i,t,n,a,r[14],3275163606,9),a=Yc(a,i,t,n,r[3],4107603335,14),n=Yc(n,a,i,t,r[8],1163531501,20),t=Yc(t,n,a,i,r[13],2850285829,5),i=Yc(i,t,n,a,r[2],4243563512,9),a=Yc(a,i,t,n,r[7],1735328473,14),n=Yc(n,a,i,t,r[12],2368359562,20),t=Jc(t,n,a,i,r[5],4294588738,4),i=Jc(i,t,n,a,r[8],2272392833,11),a=Jc(a,i,t,n,r[11],1839030562,16),n=Jc(n,a,i,t,r[14],4259657740,23),t=Jc(t,n,a,i,r[1],2763975236,4),i=Jc(i,t,n,a,r[4],1272893353,11),a=Jc(a,i,t,n,r[7],4139469664,16),n=Jc(n,a,i,t,r[10],3200236656,23),t=Jc(t,n,a,i,r[13],681279174,4),i=Jc(i,t,n,a,r[0],3936430074,11),a=Jc(a,i,t,n,r[3],3572445317,16),n=Jc(n,a,i,t,r[6],76029189,23),t=Jc(t,n,a,i,r[9],3654602809,4),i=Jc(i,t,n,a,r[12],3873151461,11),a=Jc(a,i,t,n,r[15],530742520,16),n=Jc(n,a,i,t,r[2],3299628645,23),t=Qc(t,n,a,i,r[0],4096336452,6),i=Qc(i,t,n,a,r[7],1126891415,10),a=Qc(a,i,t,n,r[14],2878612391,15),n=Qc(n,a,i,t,r[5],4237533241,21),t=Qc(t,n,a,i,r[12],1700485571,6),i=Qc(i,t,n,a,r[3],2399980690,10),a=Qc(a,i,t,n,r[10],4293915773,15),n=Qc(n,a,i,t,r[1],2240044497,21),t=Qc(t,n,a,i,r[8],1873313359,6),i=Qc(i,t,n,a,r[15],4264355552,10),a=Qc(a,i,t,n,r[6],2734768916,15),n=Qc(n,a,i,t,r[13],1309151649,21),t=Qc(t,n,a,i,r[4],4149444226,6),i=Qc(i,t,n,a,r[11],3174756917,10),a=Qc(a,i,t,n,r[2],718787259,15),n=Qc(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};$R.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=YOt.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function YR(r,e){return r<>>32-e}function $c(r,e,t,n,a,i,s){return YR(r+(e&t|~e&n)+a+i|0,s)+e|0}function Yc(r,e,t,n,a,i,s){return YR(r+(e&n|t&~n)+a+i|0,s)+e|0}function Jc(r,e,t,n,a,i,s){return YR(r+(e^t^n)+a+i|0,s)+e|0}function Qc(r,e,t,n,a,i,s){return YR(r+(t^(e|~n))+a+i|0,s)+e|0}Iwe.exports=$R});var ZR=x((AEn,Nwe)=>{"use strict";d();p();var gV=lc().Buffer,QOt=_r(),Mwe=yV(),ZOt=new Array(16),nC=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],aC=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],iC=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sC=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],oC=[0,1518500249,1859775393,2400959708,2840853838],cC=[1352829926,1548603684,1836072691,2053994217,0];function QR(){Mwe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}QOt(QR,Mwe);QR.prototype._update=function(){for(var r=ZOt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,u=this._c|0,l=this._d|0,h=this._e|0,f=0;f<80;f+=1){var m,y;f<16?(m=kwe(t,n,a,i,s,r[nC[f]],oC[0],iC[f]),y=Rwe(o,c,u,l,h,r[aC[f]],cC[0],sC[f])):f<32?(m=Awe(t,n,a,i,s,r[nC[f]],oC[1],iC[f]),y=Pwe(o,c,u,l,h,r[aC[f]],cC[1],sC[f])):f<48?(m=Swe(t,n,a,i,s,r[nC[f]],oC[2],iC[f]),y=Swe(o,c,u,l,h,r[aC[f]],cC[2],sC[f])):f<64?(m=Pwe(t,n,a,i,s,r[nC[f]],oC[3],iC[f]),y=Awe(o,c,u,l,h,r[aC[f]],cC[3],sC[f])):(m=Rwe(t,n,a,i,s,r[nC[f]],oC[4],iC[f]),y=kwe(o,c,u,l,h,r[aC[f]],cC[4],sC[f])),t=s,s=i,i=_b(a,10),a=n,n=m,o=h,h=l,l=_b(u,10),u=c,c=y}var E=this._b+a+l|0;this._b=this._c+i+h|0,this._c=this._d+s+o|0,this._d=this._e+t+c|0,this._e=this._a+n+u|0,this._a=E};QR.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=gV.alloc?gV.alloc(20):new gV(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function _b(r,e){return r<>>32-e}function kwe(r,e,t,n,a,i,s,o){return _b(r+(e^t^n)+i+s|0,o)+a|0}function Awe(r,e,t,n,a,i,s,o){return _b(r+(e&t|~e&n)+i+s|0,o)+a|0}function Swe(r,e,t,n,a,i,s,o){return _b(r+((e|~t)^n)+i+s|0,o)+a|0}function Pwe(r,e,t,n,a,i,s,o){return _b(r+(e&n|t&~n)+i+s|0,o)+a|0}function Rwe(r,e,t,n,a,i,s,o){return _b(r+(e^(t|~n))+i+s|0,o)+a|0}Nwe.exports=QR});var xb=x((REn,Dwe)=>{d();p();var Bwe=Er().Buffer;function XR(r,e){this._block=Bwe.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}XR.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=Bwe.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};XR.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Dwe.exports=XR});var Fwe=x((BEn,Lwe)=>{d();p();var XOt=_r(),Owe=xb(),eLt=Er().Buffer,tLt=[1518500249,1859775393,-1894007588,-899497514],rLt=new Array(80);function uC(){this.init(),this._w=rLt,Owe.call(this,64,56)}XOt(uC,Owe);uC.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function nLt(r){return r<<5|r>>>27}function aLt(r){return r<<30|r>>>2}function iLt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}uC.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=e[o-3]^e[o-8]^e[o-14]^e[o-16];for(var c=0;c<80;++c){var u=~~(c/20),l=nLt(t)+iLt(u,n,a,i)+s+e[c]+tLt[u]|0;s=i,i=a,a=aLt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};uC.prototype._hash=function(){var r=eLt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Lwe.exports=uC});var Uwe=x((LEn,Wwe)=>{d();p();var sLt=_r(),qwe=xb(),oLt=Er().Buffer,cLt=[1518500249,1859775393,-1894007588,-899497514],uLt=new Array(80);function lC(){this.init(),this._w=uLt,qwe.call(this,64,56)}sLt(lC,qwe);lC.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function lLt(r){return r<<1|r>>>31}function dLt(r){return r<<5|r>>>27}function pLt(r){return r<<30|r>>>2}function hLt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}lC.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=lLt(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var u=~~(c/20),l=dLt(t)+hLt(u,n,a,i)+s+e[c]+cLt[u]|0;s=i,i=a,a=pLt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};lC.prototype._hash=function(){var r=oLt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Wwe.exports=lC});var bV=x((WEn,jwe)=>{d();p();var fLt=_r(),Hwe=xb(),mLt=Er().Buffer,yLt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],gLt=new Array(64);function dC(){this.init(),this._w=gLt,Hwe.call(this,64,56)}fLt(dC,Hwe);dC.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function bLt(r,e,t){return t^r&(e^t)}function vLt(r,e,t){return r&e|t&(r|e)}function wLt(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function _Lt(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function xLt(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function TLt(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}dC.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,u=this._h|0,l=0;l<16;++l)e[l]=r.readInt32BE(l*4);for(;l<64;++l)e[l]=TLt(e[l-2])+e[l-7]+xLt(e[l-15])+e[l-16]|0;for(var h=0;h<64;++h){var f=u+_Lt(s)+bLt(s,o,c)+yLt[h]+e[h]|0,m=wLt(t)+vLt(t,n,a)|0;u=c,c=o,o=s,s=i+f|0,i=a,a=n,n=t,t=f+m|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=o+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};dC.prototype._hash=function(){var r=mLt.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};jwe.exports=dC});var Kwe=x((jEn,zwe)=>{d();p();var ELt=_r(),CLt=bV(),ILt=xb(),kLt=Er().Buffer,ALt=new Array(64);function e9(){this.init(),this._w=ALt,ILt.call(this,64,56)}ELt(e9,CLt);e9.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};e9.prototype._hash=function(){var r=kLt.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};zwe.exports=e9});var vV=x((GEn,Zwe)=>{d();p();var SLt=_r(),Qwe=xb(),PLt=Er().Buffer,Gwe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],RLt=new Array(160);function pC(){this.init(),this._w=RLt,Qwe.call(this,128,112)}SLt(pC,Qwe);pC.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Vwe(r,e,t){return t^r&(e^t)}function $we(r,e,t){return r&e|t&(r|e)}function Ywe(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function Jwe(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function MLt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function NLt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function BLt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function DLt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function Do(r,e){return r>>>0>>0?1:0}pC.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,u=this._hh|0,l=this._al|0,h=this._bl|0,f=this._cl|0,m=this._dl|0,y=this._el|0,E=this._fl|0,I=this._gl|0,S=this._hl|0,L=0;L<32;L+=2)e[L]=r.readInt32BE(L*4),e[L+1]=r.readInt32BE(L*4+4);for(;L<160;L+=2){var q=e[L-30],W=e[L-15*2+1],V=MLt(q,W),K=NLt(W,q);q=e[L-2*2],W=e[L-2*2+1];var H=BLt(q,W),G=DLt(W,q),J=e[L-7*2],F=e[L-7*2+1],T=e[L-16*2],P=e[L-16*2+1],A=K+F|0,v=V+J+Do(A,K)|0;A=A+G|0,v=v+H+Do(A,G)|0,A=A+P|0,v=v+T+Do(A,P)|0,e[L]=v,e[L+1]=A}for(var k=0;k<160;k+=2){v=e[k],A=e[k+1];var O=$we(t,n,a),D=$we(l,h,f),B=Ywe(t,l),_=Ywe(l,t),N=Jwe(s,y),U=Jwe(y,s),C=Gwe[k],z=Gwe[k+1],ee=Vwe(s,o,c),j=Vwe(y,E,I),X=S+U|0,ie=u+N+Do(X,S)|0;X=X+j|0,ie=ie+ee+Do(X,j)|0,X=X+z|0,ie=ie+C+Do(X,z)|0,X=X+A|0,ie=ie+v+Do(X,A)|0;var ue=_+D|0,he=B+O+Do(ue,_)|0;u=c,S=I,c=o,I=E,o=s,E=y,y=m+X|0,s=i+ie+Do(y,m)|0,i=a,m=f,a=n,f=h,n=t,h=l,l=X+ue|0,t=ie+he+Do(l,X)|0}this._al=this._al+l|0,this._bl=this._bl+h|0,this._cl=this._cl+f|0,this._dl=this._dl+m|0,this._el=this._el+y|0,this._fl=this._fl+E|0,this._gl=this._gl+I|0,this._hl=this._hl+S|0,this._ah=this._ah+t+Do(this._al,l)|0,this._bh=this._bh+n+Do(this._bl,h)|0,this._ch=this._ch+a+Do(this._cl,f)|0,this._dh=this._dh+i+Do(this._dl,m)|0,this._eh=this._eh+s+Do(this._el,y)|0,this._fh=this._fh+o+Do(this._fl,E)|0,this._gh=this._gh+c+Do(this._gl,I)|0,this._hh=this._hh+u+Do(this._hl,S)|0};pC.prototype._hash=function(){var r=PLt.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};Zwe.exports=pC});var e5e=x((YEn,Xwe)=>{d();p();var OLt=_r(),LLt=vV(),FLt=xb(),qLt=Er().Buffer,WLt=new Array(160);function t9(){this.init(),this._w=WLt,FLt.call(this,128,112)}OLt(t9,LLt);t9.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};t9.prototype._hash=function(){var r=qLt.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Xwe.exports=t9});var hC=x((e0,t5e)=>{d();p();var e0=t5e.exports=function(e){e=e.toLowerCase();var t=e0[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};e0.sha=Fwe();e0.sha1=Uwe();e0.sha224=Kwe();e0.sha256=bV();e0.sha384=e5e();e0.sha512=vV()});var n5e=x((eCn,r5e)=>{d();p();r5e.exports=qd;var wV=Ou().EventEmitter,ULt=_r();ULt(qd,wV);qd.Readable=LR();qd.Writable=BR();qd.Duplex=Ny();qd.Transform=GR();qd.PassThrough=hV();qd.finished=QE();qd.pipeline=mV();qd.Stream=qd;function qd(){wV.call(this)}qd.prototype.pipe=function(r,e){var t=this;function n(l){r.writable&&r.write(l)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",o));var i=!1;function s(){i||(i=!0,r.end())}function o(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function c(l){if(u(),wV.listenerCount(this,"error")===0)throw l}t.on("error",c),r.on("error",c);function u(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",o),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",u),t.removeListener("close",u),r.removeListener("close",u)}return t.on("end",u),t.on("close",u),r.on("close",u),r.emit("pipe",t),r}});var t0=x((nCn,s5e)=>{d();p();var a5e=Er().Buffer,i5e=n5e().Transform,HLt=FR().StringDecoder,jLt=_r();function oh(r){i5e.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}jLt(oh,i5e);oh.prototype.update=function(r,e,t){typeof r=="string"&&(r=a5e.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};oh.prototype.setAutoPadding=function(){};oh.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};oh.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};oh.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};oh.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};oh.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};oh.prototype._finalOrDigest=function(r){var e=this.__final()||a5e.alloc(0);return r&&(e=this._toString(e,r,!0)),e};oh.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new HLt(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};s5e.exports=oh});var K5=x((sCn,c5e)=>{"use strict";d();p();var zLt=_r(),KLt=JR(),GLt=ZR(),VLt=hC(),o5e=t0();function r9(r){o5e.call(this,"digest"),this._hash=r}zLt(r9,o5e);r9.prototype._update=function(r){this._hash.update(r)};r9.prototype._final=function(){return this._hash.digest()};c5e.exports=function(e){return e=e.toLowerCase(),e==="md5"?new KLt:e==="rmd160"||e==="ripemd160"?new GLt:new r9(VLt(e))}});var d5e=x((uCn,l5e)=>{"use strict";d();p();var $Lt=_r(),Tb=Er().Buffer,u5e=t0(),YLt=Tb.alloc(128),G5=64;function n9(r,e){u5e.call(this,"digest"),typeof e=="string"&&(e=Tb.from(e)),this._alg=r,this._key=e,e.length>G5?e=r(e):e.length{d();p();var JLt=JR();p5e.exports=function(r){return new JLt().update(r).digest()}});var EV=x((mCn,f5e)=>{"use strict";d();p();var QLt=_r(),ZLt=d5e(),h5e=t0(),fC=Er().Buffer,XLt=_V(),xV=ZR(),TV=hC(),eFt=fC.alloc(128);function mC(r,e){h5e.call(this,"digest"),typeof e=="string"&&(e=fC.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new xV:TV(r);e=n.update(e).digest()}else e.length{tFt.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var y5e=x((vCn,m5e)=>{d();p();m5e.exports=CV()});var IV=x((xCn,g5e)=>{d();p();var rFt=Math.pow(2,30)-1;g5e.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>rFt||e!==e)throw new TypeError("Bad key length")}});var kV=x((CCn,v5e)=>{d();p();var a9;global.process&&global.process.browser?a9="utf-8":global.process&&global.process.version?(b5e=parseInt(g.version.split(".")[0].slice(1),10),a9=b5e>=6?"utf-8":"binary"):a9="utf-8";var b5e;v5e.exports=a9});var SV=x((ACn,w5e)=>{d();p();var AV=Er().Buffer;w5e.exports=function(r,e,t){if(AV.isBuffer(r))return r;if(typeof r=="string")return AV.from(r,e);if(ArrayBuffer.isView(r))return AV.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var PV=x((RCn,E5e)=>{d();p();var nFt=_V(),aFt=ZR(),iFt=hC(),Eb=Er().Buffer,sFt=IV(),_5e=kV(),x5e=SV(),oFt=Eb.alloc(128),i9={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function T5e(r,e,t){var n=cFt(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{d();p();var A5e=Er().Buffer,lFt=IV(),C5e=kV(),I5e=PV(),k5e=SV(),s9,yC=global.crypto&&global.crypto.subtle,dFt={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},RV=[];function pFt(r){if(global.process&&!global.process.browser||!yC||!yC.importKey||!yC.deriveBits)return Promise.resolve(!1);if(RV[r]!==void 0)return RV[r];s9=s9||A5e.alloc(8);var e=S5e(s9,s9,10,128,r).then(function(){return!0}).catch(function(){return!1});return RV[r]=e,e}var Cb;function MV(){return Cb||(global.process&&global.process.nextTick?Cb=global.process.nextTick:global.queueMicrotask?Cb=global.queueMicrotask:global.setImmediate?Cb=global.setImmediate:Cb=global.setTimeout,Cb)}function S5e(r,e,t,n,a){return yC.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return yC.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return A5e.from(i)})}function hFt(r,e){r.then(function(t){MV()(function(){e(null,t)})},function(t){MV()(function(){e(t)})})}P5e.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=dFt[a.toLowerCase()];if(!s||typeof global.Promise!="function"){MV()(function(){var o;try{o=I5e(r,e,t,n,a)}catch(c){return i(c)}i(null,o)});return}if(lFt(t,n),r=k5e(r,C5e,"Password"),e=k5e(e,C5e,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");hFt(pFt(s).then(function(o){return o?S5e(r,e,t,n,s):I5e(r,e,t,n,a)}),i)}});var BV=x(NV=>{d();p();NV.pbkdf2=R5e();NV.pbkdf2Sync=PV()});var DV=x(Wd=>{"use strict";d();p();Wd.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};Wd.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};Wd.ip=function(e,t,n,a){for(var i=0,s=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>>c+o&1}for(var o=6;o>=0;o-=2){for(var c=1;c<=25;c+=8)s<<=1,s|=t>>>c+o&1;for(var c=1;c<=25;c+=8)s<<=1,s|=e>>>c+o&1}n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.rip=function(e,t,n,a){for(var i=0,s=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;for(var o=4;o<8;o++)for(var c=24;c>=0;c-=8)s<<=1,s|=t>>>c+o&1,s<<=1,s|=e>>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.pc1=function(e,t,n,a){for(var i=0,s=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var o=1;o<=3;o++){for(var c=0;c<=24;c+=8)s<<=1,s|=t>>c+o&1;for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1}for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.r28shl=function(e,t){return e<>>28-t};var o9=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Wd.pc2=function(e,t,n,a){for(var i=0,s=0,o=o9.length>>>1,c=0;c>>o9[c]&1;for(var c=o;c>>o9[c]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var M5e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Wd.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=M5e[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=M5e[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var N5e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Wd.permute=function(e){for(var t=0,n=0;n>>N5e[n]&1;return t>>>0};Wd.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";d();p();var fFt=Gl();function Ud(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}B5e.exports=Ud;Ud.prototype._init=function(){};Ud.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Ud.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Ud.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Ud.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";d();p();var D5e=Gl(),mFt=_r(),fo=DV(),O5e=c9();function yFt(){this.tmp=new Array(2),this.keys=null}function kf(r){O5e.call(this,r);var e=new yFt;this._desState=e,this.deriveKeys(e,r.key)}mFt(kf,O5e);L5e.exports=kf;kf.create=function(e){return new kf(e)};var gFt=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];kf.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),D5e.equal(t.length,this.blockSize,"Invalid key length");var n=fo.readUInt32BE(t,0),a=fo.readUInt32BE(t,4);fo.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=fo.r28shl(n,s),a=fo.r28shl(a,s),fo.pc2(n,a,e.keys,i)}};kf.prototype._update=function(e,t,n,a){var i=this._desState,s=fo.readUInt32BE(e,t),o=fo.readUInt32BE(e,t+4);fo.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],fo.writeUInt32BE(n,s,a),fo.writeUInt32BE(n,o,a+4)};kf.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=m}fo.rip(o,s,a,i)};kf.prototype._decrypt=function(e,t,n,a,i){for(var s=n,o=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];fo.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=fo.substitute(u,l),f=fo.permute(h),m=s;s=(o^f)>>>0,o=m}fo.rip(s,o,a,i)}});var q5e=x(F5e=>{"use strict";d();p();var bFt=Gl(),vFt=_r(),u9={};function wFt(r){bFt.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";d();p();var xFt=Gl(),TFt=_r(),W5e=c9(),Fy=OV();function EFt(r,e){xFt.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[Fy.create({type:"encrypt",key:t}),Fy.create({type:"decrypt",key:n}),Fy.create({type:"encrypt",key:a})]:this.ciphers=[Fy.create({type:"decrypt",key:a}),Fy.create({type:"encrypt",key:n}),Fy.create({type:"decrypt",key:t})]}function Ib(r){W5e.call(this,r);var e=new EFt(this.type,this.options.key);this._edeState=e}TFt(Ib,W5e);U5e.exports=Ib;Ib.create=function(e){return new Ib(e)};Ib.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};Ib.prototype._pad=Fy.prototype._pad;Ib.prototype._unpad=Fy.prototype._unpad});var j5e=x(V5=>{"use strict";d();p();V5.utils=DV();V5.Cipher=c9();V5.DES=OV();V5.CBC=q5e();V5.EDE=H5e()});var G5e=x((a4n,K5e)=>{d();p();var z5e=t0(),r0=j5e(),CFt=_r(),kb=Er().Buffer,gC={"des-ede3-cbc":r0.CBC.instantiate(r0.EDE),"des-ede3":r0.EDE,"des-ede-cbc":r0.CBC.instantiate(r0.EDE),"des-ede":r0.EDE,"des-cbc":r0.CBC.instantiate(r0.DES),"des-ecb":r0.DES};gC.des=gC["des-cbc"];gC.des3=gC["des-ede3-cbc"];K5e.exports=l9;CFt(l9,z5e);function l9(r){z5e.call(this);var e=r.mode.toLowerCase(),t=gC[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;kb.isBuffer(a)||(a=kb.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=kb.concat([a,a.slice(0,8)]));var i=r.iv;kb.isBuffer(i)||(i=kb.from(i)),this._des=t.create({key:a,iv:i,type:n})}l9.prototype._update=function(r){return kb.from(this._des.update(r))};l9.prototype._final=function(){return kb.from(this._des.final())}});var V5e=x(LV=>{d();p();LV.encrypt=function(r,e){return r._cipher.encryptBlock(e)};LV.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var $5=x((l4n,$5e)=>{d();p();$5e.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new b.Buffer(n),i=0;i{d();p();var Y5e=$5();FV.encrypt=function(r,e){var t=Y5e(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};FV.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return Y5e(n,t)}});var X5e=x(Z5e=>{d();p();var bC=Er().Buffer,IFt=$5();function Q5e(r,e,t){var n=e.length,a=IFt(e,r._cache);return r._cache=r._cache.slice(n),r._prev=bC.concat([r._prev,t?e:a]),a}Z5e.encrypt=function(r,e,t){for(var n=bC.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=bC.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=bC.concat([n,Q5e(r,e.slice(0,a),t)]),e=e.slice(a);else{n=bC.concat([n,Q5e(r,e,t)]);break}return n}});var t3e=x(e3e=>{d();p();var qV=Er().Buffer;function kFt(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=qV.concat([r._prev.slice(1),qV.from([t?e:a])]),a}e3e.encrypt=function(r,e,t){for(var n=e.length,a=qV.allocUnsafe(n),i=-1;++i{d();p();var d9=Er().Buffer;function AFt(r,e,t){for(var n,a=-1,i=8,s=0,o,c;++a>a%8,r._prev=SFt(r._prev,t?o:c);return s}function SFt(r,e){var t=r.length,n=-1,a=d9.allocUnsafe(r.length);for(r=d9.concat([r,d9.from([e])]);++n>7;return a}r3e.encrypt=function(r,e,t){for(var n=e.length,a=d9.allocUnsafe(n),i=-1;++i{d();p();var PFt=$5();function RFt(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}a3e.encrypt=function(r,e){for(;r._cache.length{d();p();function MFt(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}s3e.exports=MFt});var HV=x(c3e=>{d();p();var NFt=$5(),o3e=Er().Buffer,BFt=WV();function DFt(r){var e=r._cipher.encryptBlockRaw(r._prev);return BFt(r._prev),e}var UV=16;c3e.encrypt=function(r,e){var t=Math.ceil(e.length/UV),n=r._cache.length;r._cache=o3e.concat([r._cache,o3e.allocUnsafe(t*UV)]);for(var a=0;a{OFt.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var h9=x((D4n,u3e)=>{d();p();var LFt={ECB:V5e(),CBC:J5e(),CFB:X5e(),CFB8:t3e(),CFB1:n3e(),OFB:i3e(),CTR:HV(),GCM:HV()},p9=jV();for(zV in p9)p9[zV].module=LFt[p9[zV].mode];var zV;u3e.exports=p9});var vC=x((F4n,d3e)=>{d();p();var f9=Er().Buffer;function GV(r){f9.isBuffer(r)||(r=f9.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[l>>>16&255]^o[h>>>8&255]^c[f&255]^e[S++],y=i[l>>>24]^s[h>>>16&255]^o[f>>>8&255]^c[u&255]^e[S++],E=i[h>>>24]^s[f>>>16&255]^o[u>>>8&255]^c[l&255]^e[S++],I=i[f>>>24]^s[u>>>16&255]^o[l>>>8&255]^c[h&255]^e[S++],u=m,l=y,h=E,f=I;return m=(n[u>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[f&255])^e[S++],y=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[f>>>8&255]<<8|n[u&255])^e[S++],E=(n[h>>>24]<<24|n[f>>>16&255]<<16|n[u>>>8&255]<<8|n[l&255])^e[S++],I=(n[f>>>24]<<24|n[u>>>16&255]<<16|n[l>>>8&255]<<8|n[h&255])^e[S++],m=m>>>0,y=y>>>0,E=E>>>0,I=I>>>0,[m,y,E,I]}var FFt=[0,1,2,4,8,16,32,64,128,27,54],js=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^u&255^99,t[s]=u,n[u]=s;var l=r[s],h=r[l],f=r[h],m=r[u]*257^u*16843008;a[0][s]=m<<24|m>>>8,a[1][s]=m<<16|m>>>16,a[2][s]=m<<8|m>>>24,a[3][s]=m,m=f*16843009^h*65537^l*257^s*16843008,i[0][u]=m<<24|m>>>8,i[1][u]=m<<16|m>>>16,i[2][u]=m<<8|m>>>24,i[3][u]=m,s===0?s=o=1:(s=l^r[r[r[f^l]]],o^=r[r[o]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function Hd(r){this._key=GV(r),this._reset()}Hd.blockSize=4*4;Hd.keySize=256/8;Hd.prototype.blockSize=Hd.blockSize;Hd.prototype.keySize=Hd.keySize;Hd.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=js.SBOX[s>>>24]<<24|js.SBOX[s>>>16&255]<<16|js.SBOX[s>>>8&255]<<8|js.SBOX[s&255],s^=FFt[i/e|0]<<24):e>6&&i%e===4&&(s=js.SBOX[s>>>24]<<24|js.SBOX[s>>>16&255]<<16|js.SBOX[s>>>8&255]<<8|js.SBOX[s&255]),a[i]=a[i-e]^s}for(var o=[],c=0;c>>24]]^js.INV_SUB_MIX[1][js.SBOX[l>>>16&255]]^js.INV_SUB_MIX[2][js.SBOX[l>>>8&255]]^js.INV_SUB_MIX[3][js.SBOX[l&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=o};Hd.prototype.encryptBlockRaw=function(r){return r=GV(r),l3e(r,this._keySchedule,js.SUB_MIX,js.SBOX,this._nRounds)};Hd.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=f9.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Hd.prototype.decryptBlock=function(r){r=GV(r);var e=r[1];r[1]=r[3],r[3]=e;var t=l3e(r,this._invKeySchedule,js.INV_SUB_MIX,js.INV_SBOX,this._nRounds),n=f9.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Hd.prototype.scrub=function(){KV(this._keySchedule),KV(this._invKeySchedule),KV(this._key)};d3e.exports.AES=Hd});var f3e=x((U4n,h3e)=>{d();p();var Y5=Er().Buffer,qFt=Y5.alloc(16,0);function WFt(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function p3e(r){var e=Y5.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function wC(r){this.h=r,this.state=Y5.alloc(16,0),this.cache=Y5.allocUnsafe(0)}wC.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=p3e(e)};wC.prototype.update=function(r){this.cache=Y5.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};wC.prototype.final=function(r,e){return this.cache.length&&this.ghash(Y5.concat([this.cache,qFt],16)),this.ghash(p3e([0,r,0,e])),this.state};h3e.exports=wC});var VV=x((z4n,g3e)=>{d();p();var UFt=vC(),dl=Er().Buffer,m3e=t0(),HFt=_r(),y3e=f3e(),jFt=$5(),zFt=WV();function KFt(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{d();p();var VFt=vC(),$V=Er().Buffer,b3e=t0(),$Ft=_r();function m9(r,e,t,n){b3e.call(this),this._cipher=new VFt.AES(e),this._prev=$V.from(t),this._cache=$V.allocUnsafe(0),this._secCache=$V.allocUnsafe(0),this._decrypt=n,this._mode=r}$Ft(m9,b3e);m9.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};m9.prototype._final=function(){this._cipher.scrub()};v3e.exports=m9});var _C=x((J4n,w3e)=>{d();p();var Sb=Er().Buffer,YFt=JR();function JFt(r,e,t,n){if(Sb.isBuffer(r)||(r=Sb.from(r,"binary")),e&&(Sb.isBuffer(e)||(e=Sb.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=Sb.alloc(a),s=Sb.alloc(n||0),o=Sb.alloc(0);a>0||n>0;){var c=new YFt;c.update(o),c.update(r),e&&c.update(e),o=c.digest();var u=0;if(a>0){var l=i.length-a;u=Math.min(a,o.length),o.copy(i,l,0,u),a-=u}if(u0){var h=s.length-n,f=Math.min(n,o.length-u);o.copy(s,h,u,u+f),n-=f}}return o.fill(0),{key:i,iv:s}}w3e.exports=JFt});var E3e=x(JV=>{d();p();var _3e=h9(),QFt=VV(),n0=Er().Buffer,ZFt=YV(),x3e=t0(),XFt=vC(),eqt=_C(),tqt=_r();function xC(r,e,t){x3e.call(this),this._cache=new y9,this._cipher=new XFt.AES(e),this._prev=n0.from(t),this._mode=r,this._autopadding=!0}tqt(xC,x3e);xC.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return n0.concat(n)};var rqt=n0.alloc(16,16);xC.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(rqt))throw this._cipher.scrub(),new Error("data not multiple of block length")};xC.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function y9(){this.cache=n0.allocUnsafe(0)}y9.prototype.add=function(r){this.cache=n0.concat([this.cache,r])};y9.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};y9.prototype.flush=function(){for(var r=16-this.cache.length,e=n0.allocUnsafe(r),t=-1;++t{d();p();var aqt=VV(),J5=Er().Buffer,C3e=h9(),iqt=YV(),I3e=t0(),sqt=vC(),oqt=_C(),cqt=_r();function TC(r,e,t){I3e.call(this),this._cache=new g9,this._last=void 0,this._cipher=new sqt.AES(e),this._prev=J5.from(t),this._mode=r,this._autopadding=!0}cqt(TC,I3e);TC.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return J5.concat(n)};TC.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return uqt(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};TC.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function g9(){this.cache=J5.allocUnsafe(0)}g9.prototype.add=function(r){this.cache=J5.concat([this.cache,r])};g9.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};g9.prototype.flush=function(){if(this.cache.length)return this.cache};function uqt(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{d();p();var S3e=E3e(),P3e=A3e(),dqt=jV();function pqt(){return Object.keys(dqt)}ch.createCipher=ch.Cipher=S3e.createCipher;ch.createCipheriv=ch.Cipheriv=S3e.createCipheriv;ch.createDecipher=ch.Decipher=P3e.createDecipher;ch.createDecipheriv=ch.Decipheriv=P3e.createDecipheriv;ch.listCiphers=ch.getCiphers=pqt});var R3e=x(a0=>{d();p();a0["des-ecb"]={key:8,iv:0};a0["des-cbc"]=a0.des={key:8,iv:8};a0["des-ede3-cbc"]=a0.des3={key:24,iv:8};a0["des-ede3"]={key:24,iv:0};a0["des-ede-cbc"]={key:16,iv:8};a0["des-ede"]={key:16,iv:0}});var O3e=x(uh=>{d();p();var M3e=G5e(),ZV=b9(),qy=h9(),i0=R3e(),N3e=_C();function hqt(r,e){r=r.toLowerCase();var t,n;if(qy[r])t=qy[r].key,n=qy[r].iv;else if(i0[r])t=i0[r].key*8,n=i0[r].iv;else throw new TypeError("invalid suite type");var a=N3e(e,!1,t,n);return B3e(r,a.key,a.iv)}function fqt(r,e){r=r.toLowerCase();var t,n;if(qy[r])t=qy[r].key,n=qy[r].iv;else if(i0[r])t=i0[r].key*8,n=i0[r].iv;else throw new TypeError("invalid suite type");var a=N3e(e,!1,t,n);return D3e(r,a.key,a.iv)}function B3e(r,e,t){if(r=r.toLowerCase(),qy[r])return ZV.createCipheriv(r,e,t);if(i0[r])return new M3e({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function D3e(r,e,t){if(r=r.toLowerCase(),qy[r])return ZV.createDecipheriv(r,e,t);if(i0[r])return new M3e({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function mqt(){return Object.keys(i0).concat(ZV.getCiphers())}uh.createCipher=uh.Cipher=hqt;uh.createCipheriv=uh.Cipheriv=B3e;uh.createDecipher=uh.Decipher=fqt;uh.createDecipheriv=uh.Decipheriv=D3e;uh.listCiphers=uh.getCiphers=mqt});var XV=x((f8n,L3e)=>{d();p();var Pb=ho(),yqt=v9();function Rb(r){this.rand=r||new yqt.Rand}L3e.exports=Rb;Rb.create=function(e){return new Rb(e)};Rb.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new Pb(this.rand.generate(n));while(a.cmp(e)>=0);return a};Rb.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Rb.prototype.test=function(e,t,n){var a=e.bitLength(),i=Pb.mont(e),s=new Pb(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var u=e.shrn(c),l=o.toRed(i),h=!0;t>0;t--){var f=this._randrange(new Pb(2),o);n&&n(f);var m=f.toRed(i).redPow(u);if(!(m.cmp(s)===0||m.cmp(l)===0)){for(var y=1;y0;t--){var l=this._randrange(new Pb(2),s),h=e.gcd(l);if(h.cmpn(1)!==0)return h;var f=l.toRed(a).redPow(c);if(!(f.cmp(i)===0||f.cmp(u)===0)){for(var m=1;m{d();p();var gqt=db();W3e.exports=a$;a$.simpleSieve=r$;a$.fermatTest=n$;var hc=ho(),bqt=new hc(24),vqt=XV(),F3e=new vqt,wqt=new hc(1),t$=new hc(2),_qt=new hc(5),g8n=new hc(16),b8n=new hc(8),xqt=new hc(10),Tqt=new hc(3),v8n=new hc(7),Eqt=new hc(11),q3e=new hc(4),w8n=new hc(12),e$=null;function Cqt(){if(e$!==null)return e$;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(wqt),t.testn(1)||t.iadd(t$),e.cmp(t$)){if(!e.cmp(_qt))for(;t.mod(xqt).cmp(Tqt);)t.iadd(q3e)}else for(;t.mod(bqt).cmp(Eqt);)t.iadd(q3e);if(n=t.shrn(1),r$(n)&&r$(t)&&n$(n)&&n$(t)&&F3e.test(n)&&F3e.test(t))return t}}});var U3e=x((E8n,Iqt)=>{Iqt.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var K3e=x((C8n,z3e)=>{d();p();var jd=ho(),kqt=XV(),H3e=new kqt,Aqt=new jd(24),Sqt=new jd(11),Pqt=new jd(10),Rqt=new jd(3),Mqt=new jd(7),j3e=i$(),Nqt=db();z3e.exports=s0;function Bqt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._pub=new jd(r),this}function Dqt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._priv=new jd(r),this}var w9={};function Oqt(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in w9)return w9[n];var a=0;if(r.isEven()||!j3e.simpleSieve||!j3e.fermatTest(r)||!H3e.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,w9[n]=a,a;H3e.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(Aqt).cmp(Sqt)&&(a+=8);break;case"05":i=r.mod(Pqt),i.cmp(Rqt)&&i.cmp(Mqt)&&(a+=8);break;default:a+=4}return w9[n]=a,a}function s0(r,e,t){this.setGenerator(e),this.__prime=new jd(r),this._prime=jd.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=Bqt,this.setPrivateKey=Dqt):this._primeCode=8}Object.defineProperty(s0.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Oqt(this.__prime,this.__gen)),this._primeCode}});s0.prototype.generateKeys=function(){return this._priv||(this._priv=new jd(Nqt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};s0.prototype.computeSecret=function(r){r=new jd(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new b.Buffer(e.toArray()),n=this.getPrime();if(t.length{d();p();var Lqt=i$(),G3e=U3e(),s$=K3e();function Fqt(r){var e=new b.Buffer(G3e[r].prime,"hex"),t=new b.Buffer(G3e[r].gen,"hex");return new s$(e,t)}var qqt={binary:!0,hex:!0,base64:!0};function V3e(r,e,t,n){return b.Buffer.isBuffer(e)||qqt[e]===void 0?V3e(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new b.Buffer([2]),b.Buffer.isBuffer(t)||(t=new b.Buffer(t,n)),typeof r=="number"?new s$(Lqt(r,t),t,!0):(b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),new s$(r,t,!0)))}Q5.DiffieHellmanGroup=Q5.createDiffieHellmanGroup=Q5.getDiffieHellman=Fqt;Q5.createDiffieHellman=Q5.DiffieHellman=V3e});var x9=x((R8n,Q3e)=>{d();p();var Z5=Ir(),Wqt=db();function Uqt(r){var e=Y3e(r),t=e.toRed(Z5.mont(r.modulus)).redPow(new Z5(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function Y3e(r){var e=r.modulus.byteLength(),t;do t=new Z5(Wqt(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function J3e(r,e){var t=Uqt(e),n=e.modulus.byteLength(),a=new Z5(r).mul(t.blinder).umod(e.modulus),i=a.toRed(Z5.mont(e.prime1)),s=a.toRed(Z5.mont(e.prime2)),o=e.coefficient,c=e.prime1,u=e.prime2,l=i.redPow(e.exponent1).fromRed(),h=s.redPow(e.exponent2).fromRed(),f=l.isub(h).imul(o).umod(c).imul(u);return h.iadd(f).imul(t.unblinder).umod(e.modulus).toArrayLike(b.Buffer,"be",n)}J3e.getr=Y3e;Q3e.exports=J3e});var E9=x((B8n,Z3e)=>{"use strict";d();p();var T9=lc(),X5=T9.Buffer,zd={},Kd;for(Kd in T9)!T9.hasOwnProperty(Kd)||Kd==="SlowBuffer"||Kd==="Buffer"||(zd[Kd]=T9[Kd]);var e3=zd.Buffer={};for(Kd in X5)!X5.hasOwnProperty(Kd)||Kd==="allocUnsafe"||Kd==="allocUnsafeSlow"||(e3[Kd]=X5[Kd]);zd.Buffer.prototype=X5.prototype;(!e3.from||e3.from===Uint8Array.from)&&(e3.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return X5(r,e,t)});e3.alloc||(e3.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=X5(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!zd.kStringMaxLength)try{zd.kStringMaxLength=g.binding("buffer").kStringMaxLength}catch{}zd.constants||(zd.constants={MAX_LENGTH:zd.kMaxLength},zd.kStringMaxLength&&(zd.constants.MAX_STRING_LENGTH=zd.kStringMaxLength));Z3e.exports=zd});var C9=x(X3e=>{"use strict";d();p();var Hqt=_r();function Gd(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}X3e.Reporter=Gd;Gd.prototype.isError=function(e){return e instanceof t3};Gd.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Gd.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};Gd.prototype.enterKey=function(e){return this._reporterState.path.push(e)};Gd.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};Gd.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};Gd.prototype.path=function(){return this._reporterState.path.join("/")};Gd.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};Gd.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};Gd.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof t3;if(a?t=e:t=new t3(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};Gd.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function t3(r,e){this.path=r,this.rethrow(e)}Hqt(t3,Error);t3.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,t3),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var a3=x(o$=>{"use strict";d();p();var jqt=_r(),I9=C9().Reporter,r3=E9().Buffer;function Vd(r,e){if(I9.call(this,e),!r3.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}jqt(Vd,I9);o$.DecoderBuffer=Vd;Vd.isDecoderBuffer=function(e){return e instanceof Vd?!0:typeof e=="object"&&r3.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Vd.prototype.save=function(){return{offset:this.offset,reporter:I9.prototype.save.call(this)}};Vd.prototype.restore=function(e){let t=new Vd(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,I9.prototype.restore.call(this,e.reporter),t};Vd.prototype.isEmpty=function(){return this.offset===this.length};Vd.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Vd.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new Vd(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Vd.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function n3(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return n3.isEncoderBuffer(t)||(t=new n3(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=r3.byteLength(r);else if(r3.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}o$.EncoderBuffer=n3;n3.isEncoderBuffer=function(e){return e instanceof n3?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};n3.prototype.join=function(e,t){return e||(e=r3.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):r3.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var k9=x((j8n,t_e)=>{"use strict";d();p();var zqt=C9().Reporter,Kqt=a3().EncoderBuffer,Gqt=a3().DecoderBuffer,Lu=Gl(),e_e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Vqt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e_e),$qt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function qa(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t_e.exports=qa;var Yqt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];qa.prototype.clone=function(){let e=this._baseState,t={};Yqt.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};qa.prototype._wrap=function(){let e=this._baseState;Vqt.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};qa.prototype._init=function(e){let t=this._baseState;Lu(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),Lu.equal(t.children.length,1,"Root node can have only one child")};qa.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(Lu(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(Lu(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let o=a[s];i[o]=s}),i}))};$qt.forEach(function(r){qa.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});e_e.forEach(function(r){qa.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return Lu(t.tag===null),t.tag=r,this._useArgs(n),this}});qa.prototype.use=function(e){Lu(e);let t=this._baseState;return Lu(t.use===null),t.use=e,this};qa.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};qa.prototype.def=function(e){let t=this._baseState;return Lu(t.default===null),t.default=e,t.optional=!0,this};qa.prototype.explicit=function(e){let t=this._baseState;return Lu(t.explicit===null&&t.implicit===null),t.explicit=e,this};qa.prototype.implicit=function(e){let t=this._baseState;return Lu(t.explicit===null&&t.implicit===null),t.implicit=e,this};qa.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};qa.prototype.key=function(e){let t=this._baseState;return Lu(t.key===null),t.key=e,this};qa.prototype.any=function(){let e=this._baseState;return e.any=!0,this};qa.prototype.choice=function(e){let t=this._baseState;return Lu(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};qa.prototype.contains=function(e){let t=this._baseState;return Lu(t.use===null),t.contains=e,this};qa.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){let u=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(u)}else if(i=this._peekTag(e,c,n.any),e.isError(i))return i}let o;if(n.obj&&i&&(o=e.enterObject()),i){if(n.explicit!==null){let u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}let c=e.offset;if(n.use===null&&n.choice===null){let u;n.any&&(u=e.save());let l=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(l))return l;n.any?a=e.raw(u):e=l}if(t&&t.track&&n.tag!==null&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(l){l._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let u=new Gqt(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(u,t)}}return n.obj&&i&&(a=e.leaveObject(o)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};qa.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};qa.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),Lu(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};qa.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let o=e.save(),c=n.choice[s];try{let u=c._decode(e,t);if(e.isError(u))return!1;a={type:s,value:u},i=!0}catch{return e.restore(o),!1}return!0},this),i?a:e.error("Choice not matched")};qa.prototype._createEncoderBuffer=function(e){return new Kqt(e,this.reporter)};qa.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};qa.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new zqt);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,o=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),o=!0;else if(a.children)s=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,t,e);if(c._baseState.key===null)return t.error("Child should have a key");let u=t.enterKey(c._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let l=c._encode(e[c._baseState.key],t,e);return t.leaveKey(u),l},this).filter(function(c){return c}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(u){let l=this._baseState;return this._getUse(l.args[0],e)._encode(u,t)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),o=!0);if(!a.any&&a.choice===null){let c=a.implicit!==null?a.implicit:a.tag,u=a.implicit===null?"universal":"context";c===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,o,u,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};qa.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||Lu(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};qa.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};qa.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};qa.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var A9=x(Mb=>{"use strict";d();p();function r_e(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}Mb.tagClass={0:"universal",1:"application",2:"context",3:"private"};Mb.tagClassByName=r_e(Mb.tagClass);Mb.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Mb.tagByName=r_e(Mb.tag)});var u$=x((Y8n,i_e)=>{"use strict";d();p();var Jqt=_r(),o0=E9().Buffer,n_e=k9(),c$=A9();function a_e(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new lh,this.tree._init(r.body)}i_e.exports=a_e;a_e.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function lh(r){n_e.call(this,"der",r)}Jqt(lh,n_e);lh.prototype._encodeComposite=function(e,t,n,a){let i=Qqt(e,t,n,this.reporter);if(a.length<128){let c=o0.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let s=1;for(let c=a.length;c>=256;c>>=8)s++;let o=o0.alloc(1+1+s);o[0]=i,o[1]=128|s;for(let c=1+s,u=a.length;u>0;c--,u>>=8)o[c]=u&255;return this._createEncoderBuffer([o,a])};lh.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=o0.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let o=0;o=128;c>>=7)a++}let i=o0.alloc(a),s=i.length-1;for(let o=e.length-1;o>=0;o--){let c=e[o];for(i[s--]=c&127;(c>>=7)>0;)i[s--]=128|c&127}return this._createEncoderBuffer(i)};function $d(r){return r<10?"0"+r:r}lh.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[$d(a.getUTCFullYear()),$d(a.getUTCMonth()+1),$d(a.getUTCDate()),$d(a.getUTCHours()),$d(a.getUTCMinutes()),$d(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[$d(a.getUTCFullYear()%100),$d(a.getUTCMonth()+1),$d(a.getUTCDate()),$d(a.getUTCHours()),$d(a.getUTCMinutes()),$d(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};lh.prototype._encodeNull=function(){return this._createEncoderBuffer("")};lh.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!o0.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=o0.from(i)}if(o0.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=o0.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(o0.from(a))};lh.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};lh.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};lh.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=c$.tagClassByName[t||"universal"]<<6,a)}});var o_e=x((Z8n,s_e)=>{"use strict";d();p();var Zqt=_r(),l$=u$();function d$(r){l$.call(this,r),this.enc="pem"}Zqt(d$,l$);s_e.exports=d$;d$.prototype.encode=function(e,t){let a=l$.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";d();p();var c_e=u_e;c_e.der=u$();c_e.pem=o_e()});var f$=x((aIn,m_e)=>{"use strict";d();p();var Xqt=_r(),eWt=ho(),l_e=a3().DecoderBuffer,p_e=k9(),d_e=A9();function h_e(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new $l,this.tree._init(r.body)}m_e.exports=h_e;h_e.prototype.decode=function(e,t){return l_e.isDecoderBuffer(e)||(e=new l_e(e,t)),this.tree._decode(e,t)};function $l(r){p_e.call(this,"der",r)}Xqt($l,p_e);$l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=h$(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};$l.prototype._decodeTag=function(e,t,n){let a=h$(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=f_e(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};$l.prototype._skipUntilEnd=function(e,t){for(;;){let n=h$(e,t);if(e.isError(n))return n;let a=f_e(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};$l.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let o=n.decode(e,"der",a);if(e.isError(o)&&s)break;i.push(o)}return i};$l.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=d_e.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function f_e(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";d();p();var tWt=_r(),rWt=E9().Buffer,m$=f$();function y$(r){m$.call(this,r),this.enc="pem"}tWt(y$,m$);y_e.exports=y$;y$.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,o=-1;for(let l=0;l{"use strict";d();p();var b_e=v_e;b_e.der=f$();b_e.pem=g_e()});var __e=x(w_e=>{"use strict";d();p();var nWt=p$(),aWt=g$(),iWt=_r(),sWt=w_e;sWt.define=function(e,t){return new i3(e,t)};function i3(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}i3.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return iWt(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};i3.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(aWt[e])),this.decoders[e]};i3.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};i3.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(nWt[e])),this.encoders[e]};i3.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var T_e=x(x_e=>{"use strict";d();p();var S9=x_e;S9.Reporter=C9().Reporter;S9.DecoderBuffer=a3().DecoderBuffer;S9.EncoderBuffer=a3().EncoderBuffer;S9.Node=k9()});var I_e=x(C_e=>{"use strict";d();p();var E_e=C_e;E_e._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};E_e.der=A9()});var b$=x(k_e=>{"use strict";d();p();var s3=k_e;s3.bignum=ho();s3.define=__e().define;s3.base=T_e();s3.constants=I_e();s3.decoders=g$();s3.encoders=p$()});var R_e=x((CIn,P_e)=>{"use strict";d();p();var dh=b$(),A_e=dh.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),oWt=dh.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),v$=dh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),cWt=dh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(v$),this.key("subjectPublicKey").bitstr())}),uWt=dh.define("RelativeDistinguishedName",function(){this.setof(oWt)}),lWt=dh.define("RDNSequence",function(){this.seqof(uWt)}),S_e=dh.define("Name",function(){this.choice({rdnSequence:this.use(lWt)})}),dWt=dh.define("Validity",function(){this.seq().obj(this.key("notBefore").use(A_e),this.key("notAfter").use(A_e))}),pWt=dh.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),hWt=dh.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(v$),this.key("issuer").use(S_e),this.key("validity").use(dWt),this.key("subject").use(S_e),this.key("subjectPublicKeyInfo").use(cWt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(pWt).optional())}),fWt=dh.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(hWt),this.key("signatureAlgorithm").use(v$),this.key("signatureValue").bitstr())});P_e.exports=fWt});var N_e=x(hh=>{"use strict";d();p();var ph=b$();hh.certificate=R_e();var mWt=ph.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});hh.RSAPrivateKey=mWt;var yWt=ph.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});hh.RSAPublicKey=yWt;var gWt=ph.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M_e),this.key("subjectPublicKey").bitstr())});hh.PublicKey=gWt;var M_e=ph.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),bWt=ph.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(M_e),this.key("subjectPrivateKey").octstr())});hh.PrivateKey=bWt;var vWt=ph.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});hh.EncryptedPrivateKey=vWt;var wWt=ph.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});hh.DSAPrivateKey=wWt;hh.DSAparam=ph.define("DSAparam",function(){this.int()});var _Wt=ph.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(xWt),this.key("publicKey").optional().explicit(1).bitstr())});hh.ECPrivateKey=_Wt;var xWt=ph.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});hh.signature=ph.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var B_e=x((RIn,TWt)=>{TWt.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var O_e=x((MIn,D_e)=>{d();p();var EWt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,CWt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,IWt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,kWt=_C(),AWt=b9(),P9=Er().Buffer;D_e.exports=function(r,e){var t=r.toString(),n=t.match(EWt),a;if(n){var s="aes"+n[1],o=P9.from(n[2],"hex"),c=P9.from(n[3].replace(/[\r\n]/g,""),"base64"),u=kWt(e,o.slice(0,8),parseInt(n[1],10)).key,l=[],h=AWt.createDecipheriv(s,u,o);l.push(h.update(c)),l.push(h.final()),a=P9.concat(l)}else{var i=t.match(IWt);a=P9.from(i[2].replace(/[\r\n]/g,""),"base64")}var f=t.match(CWt)[1];return{tag:f,data:a}}});var EC=x((DIn,F_e)=>{d();p();var pl=N_e(),SWt=B_e(),PWt=O_e(),RWt=b9(),MWt=BV(),w$=Er().Buffer;F_e.exports=L_e;function L_e(r){var e;typeof r=="object"&&!w$.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=w$.from(r));var t=PWt(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=pl.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=pl.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return pl.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=pl.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=pl.EncryptedPrivateKey.decode(a,"der"),a=NWt(a,e);case"PRIVATE KEY":switch(s=pl.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return pl.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:pl.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=pl.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return pl.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return pl.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:pl.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=pl.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}L_e.signature=pl.signature;function NWt(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=SWt[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,o=parseInt(a.split("-")[1],10)/8,c=MWt.pbkdf2Sync(e,t,n,o,"sha1"),u=RWt.createDecipheriv(a,c,i),l=[];return l.push(u.update(s)),l.push(u.final()),w$.concat(l)}});var _$=x((FIn,BWt)=>{BWt.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var U_e=x((qIn,M9)=>{d();p();var Zc=Er().Buffer,Nb=EV(),DWt=x9(),OWt=CC().ec,R9=Ir(),LWt=EC(),FWt=_$();function qWt(r,e,t,n,a){var i=LWt(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return WWt(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return UWt(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=Zc.concat([a,r]);for(var s=i.modulus.byteLength(),o=[0,1];r.length+o.length+10&&t.ishrn(n),t}function jWt(r,e){r=x$(r,e),r=r.mod(e);var t=Zc.from(r.toArray());if(t.length{d();p();var T$=Er().Buffer,IC=Ir(),KWt=CC().ec,j_e=EC(),GWt=_$();function VWt(r,e,t,n,a){var i=j_e(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return $Wt(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return YWt(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=T$.concat([a,e]);for(var s=i.modulus.byteLength(),o=[1],c=0;e.length+o.length+2=e)throw new Error("invalid sig")}z_e.exports=VWt});var Q_e=x((KIn,J_e)=>{d();p();var N9=Er().Buffer,$_e=K5(),B9=rC(),Y_e=_r(),JWt=U_e(),QWt=K_e(),Bb=CV();Object.keys(Bb).forEach(function(r){Bb[r].id=N9.from(Bb[r].id,"hex"),Bb[r.toLowerCase()]=Bb[r]});function kC(r){B9.Writable.call(this);var e=Bb[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=$_e(e.hash),this._tag=e.id,this._signType=e.sign}Y_e(kC,B9.Writable);kC.prototype._write=function(e,t,n){this._hash.update(e),n()};kC.prototype.update=function(e,t){return typeof e=="string"&&(e=N9.from(e,t)),this._hash.update(e),this};kC.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=JWt(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function AC(r){B9.Writable.call(this);var e=Bb[r];if(!e)throw new Error("Unknown message digest");this._hash=$_e(e.hash),this._tag=e.id,this._signType=e.sign}Y_e(AC,B9.Writable);AC.prototype._write=function(e,t,n){this._hash.update(e),n()};AC.prototype.update=function(e,t){return typeof e=="string"&&(e=N9.from(e,t)),this._hash.update(e),this};AC.prototype.verify=function(e,t,n){typeof t=="string"&&(t=N9.from(t,n)),this.end();var a=this._hash.digest();return QWt(t,a,e,this._signType,this._tag)};function G_e(r){return new kC(r)}function V_e(r){return new AC(r)}J_e.exports={Sign:G_e,Verify:V_e,createSign:G_e,createVerify:V_e}});var X_e=x(($In,Z_e)=>{d();p();var ZWt=CC(),XWt=ho();Z_e.exports=function(e){return new Db(e)};var Yl={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Yl.p224=Yl.secp224r1;Yl.p256=Yl.secp256r1=Yl.prime256v1;Yl.p192=Yl.secp192r1=Yl.prime192v1;Yl.p384=Yl.secp384r1;Yl.p521=Yl.secp521r1;function Db(r){this.curveType=Yl[r],this.curveType||(this.curveType={name:r}),this.curve=new ZWt.ec(this.curveType.name),this.keys=void 0}Db.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Db.prototype.computeSecret=function(r,e,t){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return E$(a,t,this.curveType.byteLength)};Db.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),E$(t,r)};Db.prototype.getPrivateKey=function(r){return E$(this.keys.getPrivate(),r)};Db.prototype.setPublicKey=function(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this.keys._importPublic(r),this};Db.prototype.setPrivateKey=function(r,e){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var t=new XWt(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function E$(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new b.Buffer(r);if(t&&n.length{d();p();var eUt=K5(),C$=Er().Buffer;exe.exports=function(r,e){for(var t=C$.alloc(0),n=0,a;t.length{d();p();txe.exports=function(e,t){for(var n=e.length,a=-1;++a{d();p();var rxe=ho(),rUt=Er().Buffer;function nUt(r,e){return rUt.from(r.toRed(rxe.mont(e.modulus)).redPow(new rxe(e.publicExponent)).fromRed().toArray())}nxe.exports=nUt});var oxe=x((skn,sxe)=>{d();p();var aUt=EC(),S$=db(),iUt=K5(),axe=I$(),ixe=k$(),P$=ho(),sUt=A$(),oUt=x9(),fh=Er().Buffer;sxe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=aUt(e),s;if(a===4)s=cUt(i,t);else if(a===1)s=uUt(i,t,n);else if(a===3){if(s=new P$(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?oUt(s,i):sUt(s,i)};function cUt(r,e){var t=r.modulus.byteLength(),n=e.length,a=iUt("sha1").update(fh.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var o=fh.alloc(t-n-s-2),c=t-i-1,u=S$(i),l=ixe(fh.concat([a,o,fh.alloc(1,1),e],c),axe(u,c)),h=ixe(u,axe(l,i));return new P$(fh.concat([fh.alloc(1),h,l],t))}function uUt(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=fh.alloc(a-n-3,255):i=lUt(a-n-3),new P$(fh.concat([fh.from([0,t?1:2]),i,fh.alloc(1),e],a))}function lUt(r){for(var e=fh.allocUnsafe(r),t=0,n=S$(r*2),a=0,i;t{d();p();var dUt=EC(),cxe=I$(),uxe=k$(),lxe=ho(),pUt=x9(),hUt=K5(),fUt=A$(),SC=Er().Buffer;dxe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=dUt(e),s=i.modulus.byteLength();if(t.length>s||new lxe(t).cmp(i.modulus)>=0)throw new Error("decryption error");var o;n?o=fUt(new lxe(t),i):o=pUt(t,i);var c=SC.alloc(s-o.length);if(o=SC.concat([c,o],s),a===4)return mUt(i,o);if(a===1)return yUt(i,o,n);if(a===3)return o;throw new Error("unknown padding")};function mUt(r,e){var t=r.modulus.byteLength(),n=hUt("sha1").update(SC.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),o=uxe(i,cxe(s,a)),c=uxe(s,cxe(o,t-a-1));if(gUt(n,c.slice(0,a)))throw new Error("decryption error");for(var u=a;c[u]===0;)u++;if(c[u++]!==1)throw new Error("decryption error");return c.slice(u)}function yUt(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function gUt(r,e){r=SC.from(r),e=SC.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{d();p();Ob.publicEncrypt=oxe();Ob.privateDecrypt=pxe();Ob.privateEncrypt=function(e,t){return Ob.publicEncrypt(e,t,!0)};Ob.publicDecrypt=function(e,t){return Ob.privateDecrypt(e,t,!0)}});var Txe=x(PC=>{"use strict";d();p();function fxe(){throw new Error(`secure random number generation not supported by this browser -use chrome, FireFox or Internet Explorer 11`)}var yxe=Er(),mxe=db(),gxe=yxe.Buffer,bxe=yxe.kMaxLength,R$=global.crypto||global.msCrypto,vxe=Math.pow(2,32)-1;function wxe(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>vxe||r<0)throw new TypeError("offset must be a uint32");if(r>bxe||r>e)throw new RangeError("offset out of range")}function _xe(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>vxe||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>bxe)throw new RangeError("buffer too small")}R$&&R$.getRandomValues||!g.browser?(PC.randomFill=bUt,PC.randomFillSync=vUt):(PC.randomFill=fxe,PC.randomFillSync=fxe);function bUt(r,e,t,n){if(!gxe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return wxe(e,r.length),_xe(t,e,r.length),xxe(r,e,t,n)}function xxe(r,e,t,n){if(g.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(R$.getRandomValues(i),n){g.nextTick(function(){n(null,r)});return}return r}if(n){mxe(t,function(o,c){if(o)return n(o);c.copy(r,e),n(null,r)});return}var s=mxe(t);return s.copy(r,e),r}function vUt(r,e,t){if(typeof e>"u"&&(e=0),!gxe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return wxe(e,r.length),t===void 0&&(t=r.length-e),_xe(t,e,r.length),xxe(r,e,t)}});var M$=x(Cr=>{"use strict";d();p();Cr.randomBytes=Cr.rng=Cr.pseudoRandomBytes=Cr.prng=db();Cr.createHash=Cr.Hash=K5();Cr.createHmac=Cr.Hmac=EV();var wUt=y5e(),_Ut=Object.keys(wUt),xUt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(_Ut);Cr.getHashes=function(){return xUt};var Exe=BV();Cr.pbkdf2=Exe.pbkdf2;Cr.pbkdf2Sync=Exe.pbkdf2Sync;var Af=O3e();Cr.Cipher=Af.Cipher;Cr.createCipher=Af.createCipher;Cr.Cipheriv=Af.Cipheriv;Cr.createCipheriv=Af.createCipheriv;Cr.Decipher=Af.Decipher;Cr.createDecipher=Af.createDecipher;Cr.Decipheriv=Af.Decipheriv;Cr.createDecipheriv=Af.createDecipheriv;Cr.getCiphers=Af.getCiphers;Cr.listCiphers=Af.listCiphers;var RC=$3e();Cr.DiffieHellmanGroup=RC.DiffieHellmanGroup;Cr.createDiffieHellmanGroup=RC.createDiffieHellmanGroup;Cr.getDiffieHellman=RC.getDiffieHellman;Cr.createDiffieHellman=RC.createDiffieHellman;Cr.DiffieHellman=RC.DiffieHellman;var D9=Q_e();Cr.createSign=D9.createSign;Cr.Sign=D9.Sign;Cr.createVerify=D9.createVerify;Cr.Verify=D9.Verify;Cr.createECDH=X_e();var O9=hxe();Cr.publicEncrypt=O9.publicEncrypt;Cr.privateEncrypt=O9.privateEncrypt;Cr.publicDecrypt=O9.publicDecrypt;Cr.privateDecrypt=O9.privateDecrypt;var Cxe=Txe();Cr.randomFill=Cxe.randomFill;Cr.randomFillSync=Cxe.randomFillSync;Cr.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))};Cr.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var v9=x((_kn,D$)=>{d();p();var N$;D$.exports=function(e){return N$||(N$=new Wy(null)),N$.generate(e)};function Wy(r){this.rand=r}D$.exports.Rand=Wy;Wy.prototype.generate=function(e){return this._rand(e)};Wy.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();var Lb=ho(),MC=Vl(),L9=MC.getNAF,TUt=MC.getJSF,F9=MC.assert;function Uy(r,e){this.type=r,this.p=new Lb(e.p,16),this.red=e.prime?Lb.red(e.prime):Lb.mont(this.p),this.zero=new Lb(0).toRed(this.red),this.one=new Lb(1).toRed(this.red),this.two=new Lb(2).toRed(this.red),this.n=e.n&&new Lb(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Ixe.exports=Uy;Uy.prototype.point=function(){throw new Error("Not implemented")};Uy.prototype.validate=function(){throw new Error("Not implemented")};Uy.prototype._fixedNafMul=function(e,t){F9(e.precomputed);var n=e._getDoubles(),a=L9(t,1,this._bitLength),i=(1<=o;u--)c=(c<<1)+a[u];s.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,o=o.dblp(u),c<0)break;var l=s[c];F9(l!==0),e.type==="affine"?l>0?o=o.mixedAdd(i[l-1>>1]):o=o.mixedAdd(i[-l-1>>1].neg()):l>0?o=o.add(i[l-1>>1]):o=o.add(i[-l-1>>1].neg())}return e.type==="affine"?o.toP():o};Uy.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,u=0,l,h,f;for(l=0;l=1;l-=2){var y=l-1,E=l;if(s[y]!==1||s[E]!==1){c[y]=L9(n[y],s[y],this._bitLength),c[E]=L9(n[E],s[E],this._bitLength),u=Math.max(c[y].length,u),u=Math.max(c[E].length,u);continue}var I=[t[y],null,null,t[E]];t[y].y.cmp(t[E].y)===0?(I[1]=t[y].add(t[E]),I[2]=t[y].toJ().mixedAdd(t[E].neg())):t[y].y.cmp(t[E].y.redNeg())===0?(I[1]=t[y].toJ().mixedAdd(t[E]),I[2]=t[y].add(t[E].neg())):(I[1]=t[y].toJ().mixedAdd(t[E]),I[2]=t[y].toJ().mixedAdd(t[E].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],L=TUt(n[y],n[E]);for(u=Math.max(L[0].length,u),c[y]=new Array(u),c[E]=new Array(u),h=0;h=0;l--){for(var H=0;l>=0;){var G=!0;for(h=0;h=0&&H++,V=V.dblp(H),l<0)break;for(h=0;h0?f=o[h][J-1>>1]:J<0&&(f=o[h][-J-1>>1].neg()),f.type==="affine"?V=V.mixedAdd(f):V=V.add(f))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step):!1};Yd.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";d();p();var EUt=Vl(),cs=ho(),O$=_r(),o3=NC(),CUt=EUt.assert;function Jd(r){o3.call(this,"short",r),this.a=new cs(r.a,16).toRed(this.red),this.b=new cs(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}O$(Jd,o3);kxe.exports=Jd;Jd.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new cs(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new cs(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],CUt(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(o){return{a:new cs(o.a,16),b:new cs(o.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};Jd.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:cs.mont(e),n=new cs(2).toRed(t).redInvm(),a=n.redNeg(),i=new cs(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),o=a.redSub(i).fromRed();return[s,o]};Jd.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new cs(1),s=new cs(0),o=new cs(0),c=new cs(1),u,l,h,f,m,y,E,I=0,S,L;n.cmpn(0)!==0;){var q=a.div(n);S=a.sub(q.mul(n)),L=o.sub(q.mul(i));var W=c.sub(q.mul(s));if(!h&&S.cmp(t)<0)u=E.neg(),l=i,h=S.neg(),f=L;else if(h&&++I===2)break;E=S,a=n,n=S,o=i,i=L,c=s,s=W}m=S.neg(),y=L;var V=h.sqr().add(f.sqr()),K=m.sqr().add(y.sqr());return K.cmp(V)>=0&&(m=u,y=l),h.negative&&(h=h.neg(),f=f.neg()),m.negative&&(m=m.neg(),y=y.neg()),[{a:h,b:f},{a:m,b:y}]};Jd.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),c=s.mul(a.a),u=i.mul(n.b),l=s.mul(a.b),h=e.sub(o).sub(c),f=u.add(l).neg();return{k1:h,k2:f}};Jd.prototype.pointFromX=function(e,t){e=new cs(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};Jd.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};Jd.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Oo.prototype.isInfinity=function(){return this.inf};Oo.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Oo.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Oo.prototype.getX=function(){return this.x.fromRed()};Oo.prototype.getY=function(){return this.y.fromRed()};Oo.prototype.mul=function(e){return e=new cs(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Oo.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Oo.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Oo.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Oo.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};Oo.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function fc(r,e,t,n){o3.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new cs(0)):(this.x=new cs(e,16),this.y=new cs(t,16),this.z=new cs(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}O$(fc,o3.BasePoint);Jd.prototype.jpoint=function(e,t,n){return new fc(this,e,t,n)};fc.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};fc.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};fc.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),c=a.redSub(i),u=s.redSub(o);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),h=l.redMul(c),f=a.redMul(l),m=u.redSqr().redIAdd(h).redISub(f).redISub(f),y=u.redMul(f.redISub(m)).redISub(s.redMul(h)),E=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(m,y,E)};fc.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(a),c=i.redSub(s);if(o.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),h=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(h).redISub(h),m=c.redMul(h.redISub(f)).redISub(i.redMul(l)),y=this.z.redMul(o);return this.curve.jpoint(f,m,y)};fc.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};fc.prototype.inspect=function(){return this.isInfinity()?"":""};fc.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var Rxe=x((Pkn,Pxe)=>{"use strict";d();p();var c3=ho(),Sxe=_r(),q9=NC(),IUt=Vl();function u3(r){q9.call(this,"mont",r),this.a=new c3(r.a,16).toRed(this.red),this.b=new c3(r.b,16).toRed(this.red),this.i4=new c3(4).toRed(this.red).redInvm(),this.two=new c3(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Sxe(u3,q9);Pxe.exports=u3;u3.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Lo(r,e,t){q9.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new c3(e,16),this.z=new c3(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Sxe(Lo,q9.BasePoint);u3.prototype.decodePoint=function(e,t){return this.point(IUt.toArray(e,t),1)};u3.prototype.point=function(e,t){return new Lo(this,e,t)};u3.prototype.pointFromJSON=function(e){return Lo.fromJSON(this,e)};Lo.prototype.precompute=function(){};Lo.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Lo.fromJSON=function(e,t){return new Lo(e,t[0],t[1]||e.one)};Lo.prototype.inspect=function(){return this.isInfinity()?"":""};Lo.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Lo.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};Lo.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Lo.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),c=i.redMul(a),u=t.z.redMul(o.redAdd(c).redSqr()),l=t.x.redMul(o.redISub(c).redSqr());return this.curve.point(u,l)};Lo.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Lo.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Lo.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Lo.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Lo.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Lo.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var Bxe=x((Nkn,Nxe)=>{"use strict";d();p();var kUt=Vl(),c0=ho(),Mxe=_r(),W9=NC(),AUt=kUt.assert;function Sf(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,W9.call(this,"edwards",r),this.a=new c0(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new c0(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new c0(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),AUt(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}Mxe(Sf,W9);Nxe.exports=Sf;Sf.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Sf.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Sf.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};Sf.prototype.pointFromX=function(e,t){e=new c0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)};Sf.prototype.pointFromY=function(e,t){e=new c0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)};Sf.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function ti(r,e,t,n,a){W9.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new c0(e,16),this.y=new c0(t,16),this.z=n?new c0(n,16):this.curve.one,this.t=a&&new c0(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Mxe(ti,W9.BasePoint);Sf.prototype.pointFromJSON=function(e){return ti.fromJSON(this,e)};Sf.prototype.point=function(e,t,n,a){return new ti(this,e,t,n,a)};ti.fromJSON=function(e,t){return new ti(e,t[0],t[1],t[2])};ti.prototype.inspect=function(){return this.isInfinity()?"":""};ti.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ti.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),o=s.redSub(n),c=a.redSub(t),u=i.redMul(o),l=s.redMul(c),h=i.redMul(c),f=o.redMul(s);return this.curve.point(u,l,f,h)};ti.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,o,c,u;if(this.curve.twisted){o=this.curve._mulA(t);var l=o.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(l.redSub(this.curve.two)),i=l.redMul(o.redSub(n)),s=l.redSqr().redSub(l).redSub(l)):(c=this.z.redSqr(),u=l.redSub(c).redISub(c),a=e.redSub(t).redISub(n).redMul(u),i=l.redMul(o.redSub(n)),s=l.redMul(u))}else o=t.redAdd(n),c=this.curve._mulC(this.z).redSqr(),u=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(u),i=this.curve._mulC(o).redMul(t.redISub(n)),s=o.redMul(u);return this.curve.point(a,i,s)};ti.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ti.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(a),c=i.redAdd(a),u=n.redAdd(t),l=s.redMul(o),h=c.redMul(u),f=s.redMul(u),m=o.redMul(c);return this.curve.point(l,h,m,f)};ti.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=n.redSub(s),c=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),l=t.redMul(o).redMul(u),h,f;return this.curve.twisted?(h=t.redMul(c).redMul(i.redSub(this.curve._mulA(a))),f=o.redMul(c)):(h=t.redMul(c).redMul(i.redSub(a)),f=this.curve._mulC(o).redMul(c)),this.curve.point(l,h,f)};ti.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ti.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ti.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};ti.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};ti.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};ti.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ti.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ti.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ti.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ti.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};ti.prototype.toP=ti.prototype.normalize;ti.prototype.mixedAdd=ti.prototype.add});var L$=x(Dxe=>{"use strict";d();p();var U9=Dxe;U9.base=NC();U9.short=Axe();U9.mont=Rxe();U9.edwards=Bxe()});var mh=x(Ya=>{"use strict";d();p();var SUt=Gl(),PUt=_r();Ya.inherits=PUt;function RUt(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function MUt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):RUt(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}Ya.htonl=Oxe;function BUt(r,e){for(var t="",n=0;n>>0}return i}Ya.join32=DUt;function OUt(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}Ya.split32=OUt;function LUt(r,e){return r>>>e|r<<32-e}Ya.rotr32=LUt;function FUt(r,e){return r<>>32-e}Ya.rotl32=FUt;function qUt(r,e){return r+e>>>0}Ya.sum32=qUt;function WUt(r,e,t){return r+e+t>>>0}Ya.sum32_3=WUt;function UUt(r,e,t,n){return r+e+t+n>>>0}Ya.sum32_4=UUt;function HUt(r,e,t,n,a){return r+e+t+n+a>>>0}Ya.sum32_5=HUt;function jUt(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,o=(s>>0,r[e+1]=s}Ya.sum64=jUt;function zUt(r,e,t,n){var a=e+n>>>0,i=(a>>0}Ya.sum64_hi=zUt;function KUt(r,e,t,n){var a=e+n;return a>>>0}Ya.sum64_lo=KUt;function GUt(r,e,t,n,a,i,s,o){var c=0,u=e;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}Ya.sum64_4_hi=GUt;function VUt(r,e,t,n,a,i,s,o){var c=e+n+i+o;return c>>>0}Ya.sum64_4_lo=VUt;function $Ut(r,e,t,n,a,i,s,o,c,u){var l=0,h=e;h=h+n>>>0,l+=h>>0,l+=h>>0,l+=h>>0,l+=h>>0}Ya.sum64_5_hi=$Ut;function YUt(r,e,t,n,a,i,s,o,c,u){var l=e+n+i+o+u;return l>>>0}Ya.sum64_5_lo=YUt;function JUt(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}Ya.rotr64_hi=JUt;function QUt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ya.rotr64_lo=QUt;function ZUt(r,e,t){return r>>>t}Ya.shr64_hi=ZUt;function XUt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ya.shr64_lo=XUt});var l3=x(Wxe=>{"use strict";d();p();var qxe=mh(),eHt=Gl();function H9(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Wxe.BlockHash=H9;H9.prototype.update=function(e,t){if(e=qxe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=qxe.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";d();p();var tHt=mh(),Pf=tHt.rotr32;function rHt(r,e,t,n){if(r===0)return Uxe(e,t,n);if(r===1||r===3)return jxe(e,t,n);if(r===2)return Hxe(e,t,n)}u0.ft_1=rHt;function Uxe(r,e,t){return r&e^~r&t}u0.ch32=Uxe;function Hxe(r,e,t){return r&e^r&t^e&t}u0.maj32=Hxe;function jxe(r,e,t){return r^e^t}u0.p32=jxe;function nHt(r){return Pf(r,2)^Pf(r,13)^Pf(r,22)}u0.s0_256=nHt;function aHt(r){return Pf(r,6)^Pf(r,11)^Pf(r,25)}u0.s1_256=aHt;function iHt(r){return Pf(r,7)^Pf(r,18)^r>>>3}u0.g0_256=iHt;function sHt(r){return Pf(r,17)^Pf(r,19)^r>>>10}u0.g1_256=sHt});var Gxe=x(($kn,Kxe)=>{"use strict";d();p();var d3=mh(),oHt=l3(),cHt=F$(),q$=d3.rotl32,BC=d3.sum32,uHt=d3.sum32_5,lHt=cHt.ft_1,zxe=oHt.BlockHash,dHt=[1518500249,1859775393,2400959708,3395469782];function Rf(){if(!(this instanceof Rf))return new Rf;zxe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}d3.inherits(Rf,zxe);Kxe.exports=Rf;Rf.blockSize=512;Rf.outSize=160;Rf.hmacStrength=80;Rf.padLength=64;Rf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var p3=mh(),pHt=l3(),h3=F$(),hHt=Gl(),yh=p3.sum32,fHt=p3.sum32_4,mHt=p3.sum32_5,yHt=h3.ch32,gHt=h3.maj32,bHt=h3.s0_256,vHt=h3.s1_256,wHt=h3.g0_256,_Ht=h3.g1_256,Vxe=pHt.BlockHash,xHt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Mf(){if(!(this instanceof Mf))return new Mf;Vxe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=xHt,this.W=new Array(64)}p3.inherits(Mf,Vxe);$xe.exports=Mf;Mf.blockSize=512;Mf.outSize=256;Mf.hmacStrength=192;Mf.padLength=64;Mf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var U$=mh(),Yxe=W$();function l0(){if(!(this instanceof l0))return new l0;Yxe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}U$.inherits(l0,Yxe);Jxe.exports=l0;l0.blockSize=512;l0.outSize=224;l0.hmacStrength=192;l0.padLength=64;l0.prototype._digest=function(e){return e==="hex"?U$.toHex32(this.h.slice(0,7),"big"):U$.split32(this.h.slice(0,7),"big")}});var z$=x((nAn,tTe)=>{"use strict";d();p();var hl=mh(),THt=l3(),EHt=Gl(),Nf=hl.rotr64_hi,Bf=hl.rotr64_lo,Zxe=hl.shr64_hi,Xxe=hl.shr64_lo,Hy=hl.sum64,H$=hl.sum64_hi,j$=hl.sum64_lo,CHt=hl.sum64_4_hi,IHt=hl.sum64_4_lo,kHt=hl.sum64_5_hi,AHt=hl.sum64_5_lo,eTe=THt.BlockHash,SHt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function gh(){if(!(this instanceof gh))return new gh;eTe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=SHt,this.W=new Array(160)}hl.inherits(gh,eTe);tTe.exports=gh;gh.blockSize=1024;gh.outSize=512;gh.hmacStrength=192;gh.padLength=128;gh.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var K$=mh(),rTe=z$();function d0(){if(!(this instanceof d0))return new d0;rTe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}K$.inherits(d0,rTe);nTe.exports=d0;d0.blockSize=1024;d0.outSize=384;d0.hmacStrength=192;d0.padLength=128;d0.prototype._digest=function(e){return e==="hex"?K$.toHex32(this.h.slice(0,12),"big"):K$.split32(this.h.slice(0,12),"big")}});var iTe=x(f3=>{"use strict";d();p();f3.sha1=Gxe();f3.sha224=Qxe();f3.sha256=W$();f3.sha384=aTe();f3.sha512=z$()});var dTe=x(lTe=>{"use strict";d();p();var Fb=mh(),HHt=l3(),j9=Fb.rotl32,sTe=Fb.sum32,DC=Fb.sum32_3,oTe=Fb.sum32_4,uTe=HHt.BlockHash;function Df(){if(!(this instanceof Df))return new Df;uTe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Fb.inherits(Df,uTe);lTe.ripemd160=Df;Df.blockSize=512;Df.outSize=160;Df.hmacStrength=192;Df.padLength=64;Df.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],o=this.h[4],c=n,u=a,l=i,h=s,f=o,m=0;m<80;m++){var y=sTe(j9(oTe(n,cTe(m,a,i,s),e[KHt[m]+t],jHt(m)),VHt[m]),o);n=o,o=s,s=j9(i,10),i=a,a=y,y=sTe(j9(oTe(c,cTe(79-m,u,l,h),e[GHt[m]+t],zHt(m)),$Ht[m]),f),c=f,f=h,h=j9(l,10),l=u,u=y}y=DC(this.h[1],i,h),this.h[1]=DC(this.h[2],s,f),this.h[2]=DC(this.h[3],o,c),this.h[3]=DC(this.h[4],n,u),this.h[4]=DC(this.h[0],a,l),this.h[0]=y};Df.prototype._digest=function(e){return e==="hex"?Fb.toHex32(this.h,"little"):Fb.split32(this.h,"little")};function cTe(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function jHt(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function zHt(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var KHt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],GHt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],VHt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],$Ht=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var hTe=x((mAn,pTe)=>{"use strict";d();p();var YHt=mh(),JHt=Gl();function m3(r,e,t){if(!(this instanceof m3))return new m3(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(YHt.toArray(e,t))}pTe.exports=m3;m3.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),JHt(e.length<=this.blockSize);for(var t=e.length;t{d();p();var mc=fTe;mc.utils=mh();mc.common=l3();mc.sha=iTe();mc.ripemd=dTe();mc.hmac=hTe();mc.sha1=mc.sha.sha1;mc.sha256=mc.sha.sha256;mc.sha224=mc.sha.sha224;mc.sha384=mc.sha.sha384;mc.sha512=mc.sha.sha512;mc.ripemd160=mc.ripemd.ripemd160});var yTe=x((_An,mTe)=>{d();p();mTe.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var z9=x(vTe=>{"use strict";d();p();var V$=vTe,jy=OC(),G$=L$(),QHt=Vl(),gTe=QHt.assert;function bTe(r){r.type==="short"?this.curve=new G$.short(r):r.type==="edwards"?this.curve=new G$.edwards(r):this.curve=new G$.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,gTe(this.g.validate(),"Invalid curve"),gTe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}V$.PresetCurve=bTe;function zy(r,e){Object.defineProperty(V$,r,{configurable:!0,enumerable:!0,get:function(){var t=new bTe(e);return Object.defineProperty(V$,r,{configurable:!0,enumerable:!0,value:t}),t}})}zy("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:jy.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});zy("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:jy.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});zy("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:jy.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});zy("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:jy.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});zy("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:jy.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});zy("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:jy.sha256,gRed:!1,g:["9"]});zy("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:jy.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var $$;try{$$=yTe()}catch{$$=void 0}zy("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:jy.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",$$]})});var xTe=x((kAn,_Te)=>{"use strict";d();p();var ZHt=OC(),qb=dG(),wTe=Gl();function Ky(r){if(!(this instanceof Ky))return new Ky(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=qb.toArray(r.entropy,r.entropyEnc||"hex"),t=qb.toArray(r.nonce,r.nonceEnc||"hex"),n=qb.toArray(r.pers,r.persEnc||"hex");wTe(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}_Te.exports=Ky;Ky.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Ky.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=qb.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";d();p();var XHt=ho(),ejt=Vl(),Y$=ejt.assert;function Xc(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}TTe.exports=Xc;Xc.fromPublic=function(e,t,n){return t instanceof Xc?t:new Xc(e,{pub:t,pubEnc:n})};Xc.fromPrivate=function(e,t,n){return t instanceof Xc?t:new Xc(e,{priv:t,privEnc:n})};Xc.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Xc.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Xc.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Xc.prototype._importPrivate=function(e,t){this.priv=new XHt(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Xc.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?Y$(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Y$(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};Xc.prototype.derive=function(e){return e.validate()||Y$(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Xc.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Xc.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Xc.prototype.inspect=function(){return""}});var kTe=x((NAn,ITe)=>{"use strict";d();p();var K9=ho(),Z$=Vl(),tjt=Z$.assert;function G9(r,e){if(r instanceof G9)return r;this._importDER(r,e)||(tjt(r.r&&r.s,"Signature without r or s"),this.r=new K9(r.r,16),this.s=new K9(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}ITe.exports=G9;function rjt(){this.place=0}function J$(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function CTe(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}G9.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=CTe(t),n=CTe(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];Q$(a,t.length),a=a.concat(t),a.push(2),Q$(a,n.length);var i=a.concat(n),s=[48];return Q$(s,i.length),s=s.concat(i),Z$.encode(s,e)}});var RTe=x((OAn,PTe)=>{"use strict";d();p();var Wb=ho(),ATe=xTe(),njt=Vl(),X$=z9(),ajt=v9(),STe=njt.assert,eY=ETe(),V9=kTe();function Qd(r){if(!(this instanceof Qd))return new Qd(r);typeof r=="string"&&(STe(Object.prototype.hasOwnProperty.call(X$,r),"Unknown curve "+r),r=X$[r]),r instanceof X$.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}PTe.exports=Qd;Qd.prototype.keyPair=function(e){return new eY(this,e)};Qd.prototype.keyFromPrivate=function(e,t){return eY.fromPrivate(this,e,t)};Qd.prototype.keyFromPublic=function(e,t){return eY.fromPublic(this,e,t)};Qd.prototype.genKeyPair=function(e){e||(e={});for(var t=new ATe({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ajt(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new Wb(2));;){var i=new Wb(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Qd.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Qd.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Wb(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new ATe({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new Wb(1)),l=0;;l++){var h=a.k?a.k(l):new Wb(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),y=m.umod(this.n);if(y.cmpn(0)!==0){var E=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(E=E.umod(this.n),E.cmpn(0)!==0){var I=(f.getY().isOdd()?1:0)|(m.cmp(y)!==0?2:0);return a.canonical&&E.cmp(this.nh)>0&&(E=this.n.sub(E),I^=1),new V9({r:y,s:E,recoveryParam:I})}}}}}};Qd.prototype.verify=function(e,t,n,a){e=this._truncateToN(new Wb(e,16)),n=this.keyFromPublic(n,a),t=new V9(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(i).umod(this.n),l;return this.curve._maxwellTrick?(l=this.g.jmulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.eqXToP(i)):(l=this.g.mulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.getX().umod(this.n).cmp(i)===0)};Qd.prototype.recoverPubKey=function(r,e,t,n){STe((3&t)===t,"The recovery param is more than two bits"),e=new V9(e,n);var a=this.n,i=new Wb(r),s=e.r,o=e.s,c=t&1,u=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var l=e.r.invm(a),h=a.sub(i).mul(l).umod(a),f=o.mul(l).umod(a);return this.g.mulAdd(h,s,f)};Qd.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new V9(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var DTe=x((qAn,BTe)=>{"use strict";d();p();var LC=Vl(),NTe=LC.assert,MTe=LC.parseBytes,y3=LC.cachedProperty;function Fo(r,e){this.eddsa=r,this._secret=MTe(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=MTe(e.pub)}Fo.fromPublic=function(e,t){return t instanceof Fo?t:new Fo(e,{pub:t})};Fo.fromSecret=function(e,t){return t instanceof Fo?t:new Fo(e,{secret:t})};Fo.prototype.secret=function(){return this._secret};y3(Fo,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});y3(Fo,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});y3(Fo,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});y3(Fo,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});y3(Fo,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});y3(Fo,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Fo.prototype.sign=function(e){return NTe(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Fo.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};Fo.prototype.getSecret=function(e){return NTe(this._secret,"KeyPair is public only"),LC.encode(this.secret(),e)};Fo.prototype.getPublic=function(e){return LC.encode(this.pubBytes(),e)};BTe.exports=Fo});var LTe=x((HAn,OTe)=>{"use strict";d();p();var ijt=ho(),$9=Vl(),sjt=$9.assert,Y9=$9.cachedProperty,ojt=$9.parseBytes;function Ub(r,e){this.eddsa=r,typeof e!="object"&&(e=ojt(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),sjt(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof ijt&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Y9(Ub,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Y9(Ub,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Y9(Ub,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Y9(Ub,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Ub.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Ub.prototype.toHex=function(){return $9.encode(this.toBytes(),"hex").toUpperCase()};OTe.exports=Ub});var HTe=x((KAn,UTe)=>{"use strict";d();p();var cjt=OC(),ujt=z9(),g3=Vl(),ljt=g3.assert,qTe=g3.parseBytes,WTe=DTe(),FTe=LTe();function fl(r){if(ljt(r==="ed25519","only tested with ed25519 so far"),!(this instanceof fl))return new fl(r);r=ujt[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=cjt.sha512}UTe.exports=fl;fl.prototype.sign=function(e,t){e=qTe(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};fl.prototype.verify=function(e,t,n){e=qTe(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),o=t.R().add(a.pub().mul(i));return o.eq(s)};fl.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";d();p();var Hb=jTe;Hb.version=jbe().version;Hb.utils=Vl();Hb.rand=v9();Hb.curve=L$();Hb.curves=z9();Hb.ec=RTe();Hb.eddsa=HTe()});var zTe=x(b3=>{"use strict";d();p();var djt=b3&&b3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(b3,"__esModule",{value:!0});b3.EC=void 0;var pjt=djt(CC()),hjt=pjt.default.ec;b3.EC=hjt});var KTe=x(J9=>{"use strict";d();p();Object.defineProperty(J9,"__esModule",{value:!0});J9.version=void 0;J9.version="signing-key/5.7.0"});var qC=x(Gy=>{"use strict";d();p();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.computePublicKey=Gy.recoverPublicKey=Gy.SigningKey=void 0;var fjt=zTe(),zs=wr(),FC=Aa(),mjt=Zt(),yjt=KTe(),rY=new mjt.Logger(yjt.version),tY=null;function Of(){return tY||(tY=new fjt.EC("secp256k1")),tY}var GTe=function(){function r(e){(0,FC.defineReadOnly)(this,"curve","secp256k1"),(0,FC.defineReadOnly)(this,"privateKey",(0,zs.hexlify)(e)),(0,zs.hexDataLength)(this.privateKey)!==32&&rY.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=Of().keyFromPrivate((0,zs.arrayify)(this.privateKey));(0,FC.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,FC.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,FC.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=Of().keyFromPublic((0,zs.arrayify)(this.publicKey)),n=Of().keyFromPublic((0,zs.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=Of().keyFromPrivate((0,zs.arrayify)(this.privateKey)),n=(0,zs.arrayify)(e);n.length!==32&&rY.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,zs.splitSignature)({recoveryParam:a.recoveryParam,r:(0,zs.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,zs.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=Of().keyFromPrivate((0,zs.arrayify)(this.privateKey)),n=Of().keyFromPublic((0,zs.arrayify)(VTe(e)));return(0,zs.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();Gy.SigningKey=GTe;function gjt(r,e){var t=(0,zs.splitSignature)(e),n={r:(0,zs.arrayify)(t.r),s:(0,zs.arrayify)(t.s)};return"0x"+Of().recoverPubKey((0,zs.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}Gy.recoverPublicKey=gjt;function VTe(r,e){var t=(0,zs.arrayify)(r);if(t.length===32){var n=new GTe(t);return e?"0x"+Of().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,zs.hexlify)(t):"0x"+Of().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+Of().keyFromPublic(t).getPublic(!0,"hex"):(0,zs.hexlify)(t)}return rY.throwArgumentError("invalid public or private key","key","[REDACTED]")}Gy.computePublicKey=VTe});var $Te=x(Q9=>{"use strict";d();p();Object.defineProperty(Q9,"__esModule",{value:!0});Q9.version=void 0;Q9.version="transactions/5.7.0"});var p0=x(Cs=>{"use strict";d();p();var bjt=Cs&&Cs.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),vjt=Cs&&Cs.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),wjt=Cs&&Cs.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&bjt(e,r,t);return vjt(e,r),e};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.parse=Cs.serialize=Cs.accessListify=Cs.recoverAddress=Cs.computeAddress=Cs.TransactionTypes=void 0;var WC=Md(),jb=Ws(),Kr=wr(),_jt=nb(),v3=Kl(),xjt=Aa(),Vy=wjt(P7()),YTe=qC(),aY=Zt(),Tjt=$Te(),tu=new aY.Logger(Tjt.version),Ejt;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(Ejt=Cs.TransactionTypes||(Cs.TransactionTypes={}));function iY(r){return r==="0x"?null:(0,WC.getAddress)(r)}function eu(r){return r==="0x"?_jt.Zero:jb.BigNumber.from(r)}var Cjt=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],Ijt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function JTe(r){var e=(0,YTe.computePublicKey)(r);return(0,WC.getAddress)((0,Kr.hexDataSlice)((0,v3.keccak256)((0,Kr.hexDataSlice)(e,1)),12))}Cs.computeAddress=JTe;function sY(r,e){return JTe((0,YTe.recoverPublicKey)((0,Kr.arrayify)(r),e))}Cs.recoverAddress=sY;function Jl(r,e){var t=(0,Kr.stripZeros)(jb.BigNumber.from(r).toHexString());return t.length>32&&tu.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function nY(r,e){return{address:(0,WC.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Kr.hexDataLength)(t)!==32&&tu.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function Z9(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&tu.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),nY(t[0],t[1])):nY(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return nY(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}Cs.accessListify=Z9;function QTe(r){return Z9(r).map(function(e){return[e.address,e.storageKeys]})}function ZTe(r,e){if(r.gasPrice!=null){var t=jb.BigNumber.from(r.gasPrice),n=jb.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||tu.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[Jl(r.chainId||0,"chainId"),Jl(r.nonce||0,"nonce"),Jl(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Jl(r.maxFeePerGas||0,"maxFeePerGas"),Jl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,WC.getAddress)(r.to):"0x",Jl(r.value||0,"value"),r.data||"0x",QTe(r.accessList||[])];if(e){var i=(0,Kr.splitSignature)(e);a.push(Jl(i.recoveryParam,"recoveryParam")),a.push((0,Kr.stripZeros)(i.r)),a.push((0,Kr.stripZeros)(i.s))}return(0,Kr.hexConcat)(["0x02",Vy.encode(a)])}function XTe(r,e){var t=[Jl(r.chainId||0,"chainId"),Jl(r.nonce||0,"nonce"),Jl(r.gasPrice||0,"gasPrice"),Jl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,WC.getAddress)(r.to):"0x",Jl(r.value||0,"value"),r.data||"0x",QTe(r.accessList||[])];if(e){var n=(0,Kr.splitSignature)(e);t.push(Jl(n.recoveryParam,"recoveryParam")),t.push((0,Kr.stripZeros)(n.r)),t.push((0,Kr.stripZeros)(n.s))}return(0,Kr.hexConcat)(["0x01",Vy.encode(t)])}function kjt(r,e){(0,xjt.checkProperties)(r,Ijt);var t=[];Cjt.forEach(function(s){var o=r[s.name]||[],c={};s.numeric&&(c.hexPad="left"),o=(0,Kr.arrayify)((0,Kr.hexlify)(o,c)),s.length&&o.length!==s.length&&o.length>0&&tu.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o),s.maxLength&&(o=(0,Kr.stripZeros)(o),o.length>s.maxLength&&tu.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o)),t.push((0,Kr.hexlify)(o))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&tu.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Kr.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Kr.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return Vy.encode(t);var a=(0,Kr.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&tu.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&tu.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Kr.hexlify)(i)),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.r))),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.s))),Vy.encode(t)}function Ajt(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&tu.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),kjt(r,e);switch(r.type){case 1:return XTe(r,e);case 2:return ZTe(r,e);default:break}return tu.throwError("unsupported transaction type: "+r.type,aY.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}Cs.serialize=Ajt;function e6e(r,e,t){try{var n=eu(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{tu.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Kr.hexZeroPad)(e[1],32),r.s=(0,Kr.hexZeroPad)(e[2],32);try{var a=(0,v3.keccak256)(t(r));r.from=sY(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function Sjt(r){var e=Vy.decode(r.slice(1));e.length!==9&&e.length!==12&&tu.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Kr.hexlify)(r));var t=eu(e[2]),n=eu(e[3]),a={type:2,chainId:eu(e[0]).toNumber(),nonce:eu(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:eu(e[4]),to:iY(e[5]),value:eu(e[6]),data:e[7],accessList:Z9(e[8])};return e.length===9||(a.hash=(0,v3.keccak256)(r),e6e(a,e.slice(9),ZTe)),a}function Pjt(r){var e=Vy.decode(r.slice(1));e.length!==8&&e.length!==11&&tu.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Kr.hexlify)(r));var t={type:1,chainId:eu(e[0]).toNumber(),nonce:eu(e[1]).toNumber(),gasPrice:eu(e[2]),gasLimit:eu(e[3]),to:iY(e[4]),value:eu(e[5]),data:e[6],accessList:Z9(e[7])};return e.length===8||(t.hash=(0,v3.keccak256)(r),e6e(t,e.slice(8),XTe)),t}function Rjt(r){var e=Vy.decode(r);e.length!==9&&e.length!==6&&tu.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:eu(e[0]).toNumber(),gasPrice:eu(e[1]),gasLimit:eu(e[2]),to:iY(e[3]),value:eu(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=jb.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Kr.hexZeroPad)(e[7],32),t.s=(0,Kr.hexZeroPad)(e[8],32),jb.BigNumber.from(t.r).isZero()&&jb.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,Kr.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,v3.keccak256)(Vy.encode(a));try{t.from=sY(i,{r:(0,Kr.hexlify)(t.r),s:(0,Kr.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,v3.keccak256)(r)}return t.type=null,t}function Mjt(r){var e=(0,Kr.arrayify)(r);if(e[0]>127)return Rjt(e);switch(e[0]){case 1:return Pjt(e);case 2:return Sjt(e);default:break}return tu.throwError("unsupported transaction type: "+e[0],aY.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}Cs.parse=Mjt});var t6e=x(X9=>{"use strict";d();p();Object.defineProperty(X9,"__esModule",{value:!0});X9.version=void 0;X9.version="contracts/5.7.0"});var u6e=x(ru=>{"use strict";d();p();var rM=ru&&ru.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yy=ru&&ru.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Jy=ru&&ru.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]1)){u=u.substring(1);var h=l[0];try{i[u]==null&&(0,ht.defineReadOnly)(i,u,i[h])}catch{}i.functions[u]==null&&(0,ht.defineReadOnly)(i.functions,u,i.functions[h]),i.callStatic[u]==null&&(0,ht.defineReadOnly)(i.callStatic,u,i.callStatic[h]),i.populateTransaction[u]==null&&(0,ht.defineReadOnly)(i.populateTransaction,u,i.populateTransaction[h]),i.estimateGas[u]==null&&(0,ht.defineReadOnly)(i.estimateGas,u,i.estimateGas[h])}})}return r.getContractAddress=function(e){return(0,HC.getContractAddress)(e)},r.getInterface=function(e){return eM.Interface.isInterface(e)?e:new eM.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&Wa.throwError("contract not deployed",yc.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||Wa.throwError("sending a transactions require a signer",yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,ht.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&Wa.throwError("cannot override "+a,yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new oY.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,ht.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return eM.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new Ujt);if(e==="event")return this._normalizeRunningEvent(new jC("event",null));if(e==="*")return this._normalizeRunningEvent(new a6e(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new n6e(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new n6e(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new jC(o6e(a),a))}return this._normalizeRunningEvent(new a6e(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,ht.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||Wa.throwError("events require a provider or a signer with a provider",yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var o=a._wrapEvent(e,s,t);if(o.decodeError==null)try{var c=e.getEmit(o);a.emit.apply(a,Njt([e.filter],c,!1))}catch(u){o.decodeError=u.error}e.filter!=null&&a.emit("event",o),o.decodeError!=null&&a.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,ht.shallowCopy)(i.filter);return typeof t=="string"&&(0,zb.isHexString)(t,32)?(n!=null&&Wa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(o){return o.map(function(c){return a._wrapEvent(i,c,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();ru.BaseContract=c6e;var cY=function(r){rM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(c6e);ru.Contract=cY;var Hjt=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,zb.isBytes)(t)?i=(0,zb.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,zb.isHexString)(i)||i.length%2)&&Wa.throwArgumentError("invalid bytecode","bytecode",t),n&&!oY.Signer.isSigner(n)&&Wa.throwArgumentError("invalid signer","signer",n),(0,ht.defineReadOnly)(this,"bytecode",i),(0,ht.defineReadOnly)(this,"interface",(0,ht.getStatic)(a,"getInterface")(e)),(0,ht.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.Base58=Qy.Base32=Qy.BaseX=void 0;var l6e=wr(),aM=Aa(),uY=function(){function r(e){(0,aM.defineReadOnly)(this,"alphabet",e),(0,aM.defineReadOnly)(this,"base",e.length),(0,aM.defineReadOnly)(this,"_alphabetMap",{}),(0,aM.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var o="",c=0;t[c]===0&&c=0;--u)o+=this.alphabet[n[u]];return o},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var o=0;e[o]===this._leader&&o{"use strict";d();p();Object.defineProperty(zC,"__esModule",{value:!0});zC.SupportedAlgorithm=void 0;var Kjt;(function(r){r.sha256="sha256",r.sha512="sha512"})(Kjt=zC.SupportedAlgorithm||(zC.SupportedAlgorithm={}))});var d6e=x(sM=>{"use strict";d();p();Object.defineProperty(sM,"__esModule",{value:!0});sM.version=void 0;sM.version="sha2/5.7.0"});var h6e=x(Zd=>{"use strict";d();p();var Gjt=Zd&&Zd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.computeHmac=Zd.sha512=Zd.sha256=Zd.ripemd160=void 0;var KC=Gjt(OC()),GC=wr(),Vjt=lY(),p6e=Zt(),$jt=d6e(),Yjt=new p6e.Logger($jt.version);function Jjt(r){return"0x"+KC.default.ripemd160().update((0,GC.arrayify)(r)).digest("hex")}Zd.ripemd160=Jjt;function Qjt(r){return"0x"+KC.default.sha256().update((0,GC.arrayify)(r)).digest("hex")}Zd.sha256=Qjt;function Zjt(r){return"0x"+KC.default.sha512().update((0,GC.arrayify)(r)).digest("hex")}Zd.sha512=Zjt;function Xjt(r,e,t){return Vjt.SupportedAlgorithm[r]||Yjt.throwError("unsupported algorithm "+r,p6e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+KC.default.hmac(KC.default[r],(0,GC.arrayify)(e)).update((0,GC.arrayify)(t)).digest("hex")}Zd.computeHmac=Xjt});var Kb=x(Xd=>{"use strict";d();p();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.SupportedAlgorithm=Xd.sha512=Xd.sha256=Xd.ripemd160=Xd.computeHmac=void 0;var oM=h6e();Object.defineProperty(Xd,"computeHmac",{enumerable:!0,get:function(){return oM.computeHmac}});Object.defineProperty(Xd,"ripemd160",{enumerable:!0,get:function(){return oM.ripemd160}});Object.defineProperty(Xd,"sha256",{enumerable:!0,get:function(){return oM.sha256}});Object.defineProperty(Xd,"sha512",{enumerable:!0,get:function(){return oM.sha512}});var ezt=lY();Object.defineProperty(Xd,"SupportedAlgorithm",{enumerable:!0,get:function(){return ezt.SupportedAlgorithm}})});var m6e=x(cM=>{"use strict";d();p();Object.defineProperty(cM,"__esModule",{value:!0});cM.pbkdf2=void 0;var w3=wr(),f6e=Kb();function tzt(r,e,t,n,a){r=(0,w3.arrayify)(r),e=(0,w3.arrayify)(e);var i,s=1,o=new Uint8Array(n),c=new Uint8Array(e.length+4);c.set(e);for(var u,l,h=1;h<=s;h++){c[e.length]=h>>24&255,c[e.length+1]=h>>16&255,c[e.length+2]=h>>8&255,c[e.length+3]=h&255;var f=(0,w3.arrayify)((0,f6e.computeHmac)(a,r,c));i||(i=f.length,l=new Uint8Array(i),s=Math.ceil(n/i),u=n-(s-1)*i),l.set(f);for(var m=1;m{"use strict";d();p();Object.defineProperty(uM,"__esModule",{value:!0});uM.pbkdf2=void 0;var rzt=m6e();Object.defineProperty(uM,"pbkdf2",{enumerable:!0,get:function(){return rzt.pbkdf2}})});var y6e=x(dM=>{"use strict";d();p();Object.defineProperty(dM,"__esModule",{value:!0});dM.version=void 0;dM.version="wordlists/5.7.0"});var Lf=x(Gb=>{"use strict";d();p();Object.defineProperty(Gb,"__esModule",{value:!0});Gb.Wordlist=Gb.logger=void 0;var nzt=!1,azt=cb(),g6e=Aa(),izt=Zt(),szt=y6e();Gb.logger=new izt.Logger(szt.version);var ozt=function(){function r(e){var t=this.constructor;Gb.logger.checkAbstract(t,r),(0,g6e.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,azt.id)(t.join(` + `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Or.types=hHe();function bHe(r){return Array.isArray(r)}Or.isArray=bHe;function _we(r){return typeof r=="boolean"}Or.isBoolean=_we;function toe(r){return r===null}Or.isNull=toe;function vLt(r){return r==null}Or.isNullOrUndefined=vLt;function vHe(r){return typeof r=="number"}Or.isNumber=vHe;function roe(r){return typeof r=="string"}Or.isString=roe;function wLt(r){return typeof r=="symbol"}Or.isSymbol=wLt;function bb(r){return r===void 0}Or.isUndefined=bb;function fJ(r){return y3(r)&&Twe(r)==="[object RegExp]"}Or.isRegExp=fJ;Or.types.isRegExp=fJ;function y3(r){return typeof r=="object"&&r!==null}Or.isObject=y3;function eoe(r){return y3(r)&&Twe(r)==="[object Date]"}Or.isDate=eoe;Or.types.isDate=eoe;function mJ(r){return y3(r)&&(Twe(r)==="[object Error]"||r instanceof Error)}Or.isError=mJ;Or.types.isNativeError=mJ;function Zse(r){return typeof r=="function"}Or.isFunction=Zse;function xLt(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Or.isPrimitive=xLt;Or.isBuffer=mHe();function Twe(r){return Object.prototype.toString.call(r)}function wwe(r){return r<10?"0"+r.toString(10):r.toString(10)}var _Lt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function TLt(){var r=new Date,e=[wwe(r.getHours()),wwe(r.getMinutes()),wwe(r.getSeconds())].join(":");return[r.getDate(),_Lt[r.getMonth()],e].join(" ")}Or.log=function(){console.log("%s - %s",TLt(),Or.format.apply(Or,arguments))};Or.inherits=xr();Or._extend=function(r,e){if(!e||!y3(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function wHe(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var gb=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Or.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(gb&&e[gb]){var t=e[gb];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,gb,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(c,u){n=c,a=u}),s=[],o=0;o{"use strict";d();p();function xHe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function _He(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return aoe.alloc(0);for(var n=aoe.allocUnsafe(t>>>0),a=this.head,i=0;a;)NLt(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=aoe.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++i}return this.length-=i,n}},{key:MLt,value:function(t,n){return Iwe(this,_He(_He({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var Cwe=_((jCn,AHe)=>{"use strict";d();p();function BLt(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(Ewe,this,r)):g.nextTick(Ewe,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?g.nextTick(ioe,t):(t._writableState.errorEmitted=!0,g.nextTick(kHe,t,i)):g.nextTick(kHe,t,i):e?(g.nextTick(ioe,t),e(i)):g.nextTick(ioe,t)}),this)}function kHe(r,e){Ewe(r,e),ioe(r)}function ioe(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function DLt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ewe(r,e){r.emit("error",e)}function LLt(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}AHe.exports={destroy:BLt,undestroy:DLt,errorOrDestroy:LLt}});var vb=_((GCn,RHe)=>{"use strict";d();p();function OLt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var SHe={};function Dd(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){OLt(s,i);function s(o,c,u){return i.call(this,n(o,c,u))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,SHe[r]=a}function PHe(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function qLt(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function FLt(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function WLt(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Dd("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Dd("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&qLt(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(FLt(r," argument"))a="The ".concat(r," ").concat(n," ").concat(PHe(e,"type"));else{var i=WLt(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(PHe(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Dd("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Dd("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Dd("ERR_STREAM_PREMATURE_CLOSE","Premature close");Dd("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Dd("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Dd("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Dd("ERR_STREAM_WRITE_AFTER_END","write after end");Dd("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Dd("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Dd("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");RHe.exports.codes=SHe});var kwe=_(($Cn,MHe)=>{"use strict";d();p();var ULt=vb().codes.ERR_INVALID_OPT_VALUE;function HLt(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function jLt(r,e,t,n){var a=HLt(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new ULt(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}MHe.exports={getHighWaterMark:jLt}});var BHe=_((ZCn,NHe)=>{d();p();NHe.exports=zLt;function zLt(r,e){if(Awe("noDeprecation"))return r;var t=!1;function n(){if(!t){if(Awe("throwDeprecation"))throw new Error(e);Awe("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function Awe(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var coe=_((t8n,WHe)=>{"use strict";d();p();WHe.exports=ns;function LHe(r){var e=this;this.next=null,this.entry=null,this.finish=function(){gOt(e,r)}}var g3;ns.WritableState=gJ;var KLt={deprecate:BHe()},OHe=$2e(),ooe=lc().Buffer,GLt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function VLt(r){return ooe.from(r)}function YLt(r){return ooe.isBuffer(r)||r instanceof GLt}var Swe=Cwe(),$Lt=kwe(),QLt=$Lt.getHighWaterMark,Sy=vb().codes,JLt=Sy.ERR_INVALID_ARG_TYPE,ZLt=Sy.ERR_METHOD_NOT_IMPLEMENTED,XLt=Sy.ERR_MULTIPLE_CALLBACK,eOt=Sy.ERR_STREAM_CANNOT_PIPE,tOt=Sy.ERR_STREAM_DESTROYED,rOt=Sy.ERR_STREAM_NULL_VALUES,nOt=Sy.ERR_STREAM_WRITE_AFTER_END,aOt=Sy.ERR_UNKNOWN_ENCODING,b3=Swe.errorOrDestroy;xr()(ns,OHe);function iOt(){}function gJ(r,e,t){g3=g3||Ry(),r=r||{},typeof t!="boolean"&&(t=e instanceof g3),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=QLt(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){pOt(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new LHe(this)}gJ.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(gJ.prototype,"buffer",{get:KLt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var soe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(soe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ns,Symbol.hasInstance,{value:function(e){return soe.call(this,e)?!0:this!==ns?!1:e&&e._writableState instanceof gJ}})):soe=function(e){return e instanceof this};function ns(r){g3=g3||Ry();var e=this instanceof g3;if(!e&&!soe.call(ns,this))return new ns(r);this._writableState=new gJ(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),OHe.call(this)}ns.prototype.pipe=function(){b3(this,new eOt)};function sOt(r,e){var t=new nOt;b3(r,t),g.nextTick(e,t)}function oOt(r,e,t,n){var a;return t===null?a=new rOt:typeof t!="string"&&!e.objectMode&&(a=new JLt("chunk",["string","Buffer"],t)),a?(b3(r,a),g.nextTick(n,a),!1):!0}ns.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&YLt(r);return i&&!ooe.isBuffer(r)&&(r=VLt(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=iOt),n.ending?sOt(this,t):(i||oOt(this,n,r,t))&&(n.pendingcb++,a=uOt(this,n,i,r,e,t)),a};ns.prototype.cork=function(){this._writableState.corked++};ns.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&qHe(this,r))};ns.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new aOt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ns.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function cOt(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=ooe.from(e,t)),e}Object.defineProperty(ns.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uOt(r,e,t,n,a,i){if(!t){var s=cOt(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var c=e.length{"use strict";d();p();var bOt=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};HHe.exports=If;var UHe=doe(),Mwe=coe();xr()(If,UHe);for(Rwe=bOt(Mwe.prototype),uoe=0;uoe{"use strict";d();p();var Bwe=Ir().Buffer,jHe=Bwe.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function xOt(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function _Ot(r){var e=xOt(r);if(typeof e!="string"&&(Bwe.isEncoding===jHe||!jHe(r)))throw new Error("Unknown encoding: "+r);return e||r}zHe.StringDecoder=bJ;function bJ(r){this.encoding=_Ot(r);var e;switch(this.encoding){case"utf16le":this.text=AOt,this.end=POt,e=4;break;case"utf8":this.fillLast=EOt,e=4;break;case"base64":this.text=SOt,this.end=ROt,e=3;break;default:this.write=MOt,this.end=NOt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Bwe.allocUnsafe(e)}bJ.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function TOt(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function IOt(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function EOt(r){var e=this.lastTotal-this.lastNeed,t=IOt(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function COt(r,e){var t=TOt(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function kOt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function AOt(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function POt(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function SOt(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function ROt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function MOt(r){return r.toString(this.encoding)}function NOt(r){return r&&r.length?this.write(r):""}});var vJ=_((l8n,VHe)=>{"use strict";d();p();var KHe=vb().codes.ERR_STREAM_PREMATURE_CLOSE;function BOt(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";d();p();var hoe;function My(r,e,t){return e=OOt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function OOt(r){var e=qOt(r,"string");return typeof e=="symbol"?e:String(e)}function qOt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var FOt=vJ(),Ny=Symbol("lastResolve"),wb=Symbol("lastReject"),wJ=Symbol("error"),foe=Symbol("ended"),xb=Symbol("lastPromise"),Dwe=Symbol("handlePromise"),_b=Symbol("stream");function By(r,e){return{value:r,done:e}}function WOt(r){var e=r[Ny];if(e!==null){var t=r[_b].read();t!==null&&(r[xb]=null,r[Ny]=null,r[wb]=null,e(By(t,!1)))}}function UOt(r){g.nextTick(WOt,r)}function HOt(r,e){return function(t,n){r.then(function(){if(e[foe]){t(By(void 0,!0));return}e[Dwe](t,n)},n)}}var jOt=Object.getPrototypeOf(function(){}),zOt=Object.setPrototypeOf((hoe={get stream(){return this[_b]},next:function(){var e=this,t=this[wJ];if(t!==null)return Promise.reject(t);if(this[foe])return Promise.resolve(By(void 0,!0));if(this[_b].destroyed)return new Promise(function(s,o){g.nextTick(function(){e[wJ]?o(e[wJ]):s(By(void 0,!0))})});var n=this[xb],a;if(n)a=new Promise(HOt(n,this));else{var i=this[_b].read();if(i!==null)return Promise.resolve(By(i,!1));a=new Promise(this[Dwe])}return this[xb]=a,a}},My(hoe,Symbol.asyncIterator,function(){return this}),My(hoe,"return",function(){var e=this;return new Promise(function(t,n){e[_b].destroy(null,function(a){if(a){n(a);return}t(By(void 0,!0))})})}),hoe),jOt),KOt=function(e){var t,n=Object.create(zOt,(t={},My(t,_b,{value:e,writable:!0}),My(t,Ny,{value:null,writable:!0}),My(t,wb,{value:null,writable:!0}),My(t,wJ,{value:null,writable:!0}),My(t,foe,{value:e._readableState.endEmitted,writable:!0}),My(t,Dwe,{value:function(i,s){var o=n[_b].read();o?(n[xb]=null,n[Ny]=null,n[wb]=null,i(By(o,!1))):(n[Ny]=i,n[wb]=s)},writable:!0}),t));return n[xb]=null,FOt(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[wb];i!==null&&(n[xb]=null,n[Ny]=null,n[wb]=null,i(a)),n[wJ]=a;return}var s=n[Ny];s!==null&&(n[xb]=null,n[Ny]=null,n[wb]=null,s(By(void 0,!0))),n[foe]=!0}),e.on("readable",UOt.bind(null,n)),n};YHe.exports=KOt});var JHe=_((y8n,QHe)=>{d();p();QHe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var doe=_((w8n,oje)=>{"use strict";d();p();oje.exports=ln;var v3;ln.ReadableState=tje;var v8n=Lu().EventEmitter,eje=function(e,t){return e.listeners(t).length},_J=$2e(),moe=lc().Buffer,GOt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function VOt(r){return moe.from(r)}function YOt(r){return moe.isBuffer(r)||r instanceof GOt}var Lwe=noe(),Sr;Lwe&&Lwe.debuglog?Sr=Lwe.debuglog("stream"):Sr=function(){};var $Ot=CHe(),jwe=Cwe(),QOt=kwe(),JOt=QOt.getHighWaterMark,yoe=vb().codes,ZOt=yoe.ERR_INVALID_ARG_TYPE,XOt=yoe.ERR_STREAM_PUSH_AFTER_EOF,eqt=yoe.ERR_METHOD_NOT_IMPLEMENTED,tqt=yoe.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w3,Owe,qwe;xr()(ln,_J);var xJ=jwe.errorOrDestroy,Fwe=["error","close","destroy","pause","resume"];function rqt(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function tje(r,e,t){v3=v3||Ry(),r=r||{},typeof t!="boolean"&&(t=e instanceof v3),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=JOt(this,r,"readableHighWaterMark",t),this.buffer=new $Ot,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(w3||(w3=poe().StringDecoder),this.decoder=new w3(r.encoding),this.encoding=r.encoding)}function ln(r){if(v3=v3||Ry(),!(this instanceof ln))return new ln(r);var e=this instanceof v3;this._readableState=new tje(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),_J.call(this)}Object.defineProperty(ln.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ln.prototype.destroy=jwe.destroy;ln.prototype._undestroy=jwe.undestroy;ln.prototype._destroy=function(r,e){e(r)};ln.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=moe.from(r,e),e=""),n=!0),rje(this,r,e,!1,n)};ln.prototype.unshift=function(r){return rje(this,r,null,!0,!1)};function rje(r,e,t,n,a){Sr("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,iqt(r,i);else{var s;if(a||(s=nqt(i,e)),s)xJ(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==moe.prototype&&(e=VOt(e)),n)i.endEmitted?xJ(r,new tqt):Wwe(r,i,e,!0);else if(i.ended)xJ(r,new XOt);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?Wwe(r,i,e,!1):Hwe(r,i)):Wwe(r,i,e,!1)}else n||(i.reading=!1,Hwe(r,i))}return!i.ended&&(i.length=ZHe?r=ZHe:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function XHe(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=aqt(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}ln.prototype.read=function(r){Sr("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Sr("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Uwe(this):goe(this),null;if(r=XHe(r,e),r===0&&e.ended)return e.length===0&&Uwe(this),null;var n=e.needReadable;Sr("need readable",n),(e.length===0||e.length-r0?a=ije(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Uwe(this)),a!==null&&this.emit("data",a),a};function iqt(r,e){if(Sr("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?goe(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,nje(r)))}}function goe(r){var e=r._readableState;Sr("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Sr("emitReadable",e.flowing),e.emittedReadable=!0,g.nextTick(nje,r))}function nje(r){var e=r._readableState;Sr("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,zwe(r)}function Hwe(r,e){e.readingMore||(e.readingMore=!0,g.nextTick(sqt,r,e))}function sqt(r,e){for(;!e.reading&&!e.ended&&(e.length1&&sje(n.pipes,r)!==-1)&&!u&&(Sr("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function f(C){Sr("onerror",C),I(),r.removeListener("error",f),eje(r,"error")===0&&xJ(r,C)}rqt(r,"error",f);function m(){r.removeListener("finish",y),I()}r.once("close",m);function y(){Sr("onfinish"),r.removeListener("close",m),I()}r.once("finish",y);function I(){Sr("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Sr("pipe resume"),t.resume()),r};function oqt(r){return function(){var t=r._readableState;Sr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&eje(r,"data")&&(t.flowing=!0,zwe(r))}}ln.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Sr("on readable",n.length,n.reading),n.length?goe(this):n.reading||g.nextTick(cqt,this)),t};ln.prototype.addListener=ln.prototype.on;ln.prototype.removeListener=function(r,e){var t=_J.prototype.removeListener.call(this,r,e);return r==="readable"&&g.nextTick(aje,this),t};ln.prototype.removeAllListeners=function(r){var e=_J.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&g.nextTick(aje,this),e};function aje(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function cqt(r){Sr("readable nexttick read 0"),r.read(0)}ln.prototype.resume=function(){var r=this._readableState;return r.flowing||(Sr("resume"),r.flowing=!r.readableListening,uqt(this,r)),r.paused=!1,this};function uqt(r,e){e.resumeScheduled||(e.resumeScheduled=!0,g.nextTick(lqt,r,e))}function lqt(r,e){Sr("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),zwe(r),e.flowing&&!e.reading&&r.read(0)}ln.prototype.pause=function(){return Sr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Sr("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function zwe(r){var e=r._readableState;for(Sr("flow",e.flowing);e.flowing&&r.read()!==null;);}ln.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Sr("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(Sr("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(o){return function(){return r[o].apply(r,arguments)}}(a));for(var i=0;i=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Uwe(r){var e=r._readableState;Sr("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,g.nextTick(dqt,e,r))}function dqt(r,e){if(Sr("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(ln.from=function(r,e){return qwe===void 0&&(qwe=JHe()),qwe(ln,r,e)});function sje(r,e){for(var t=0,n=r.length;t{"use strict";d();p();uje.exports=Jm;var boe=vb().codes,pqt=boe.ERR_METHOD_NOT_IMPLEMENTED,hqt=boe.ERR_MULTIPLE_CALLBACK,fqt=boe.ERR_TRANSFORM_ALREADY_TRANSFORMING,mqt=boe.ERR_TRANSFORM_WITH_LENGTH_0,voe=Ry();xr()(Jm,voe);function yqt(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new hqt);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";d();p();dje.exports=TJ;var lje=woe();xr()(TJ,lje);function TJ(r){if(!(this instanceof TJ))return new TJ(r);lje.call(this,r)}TJ.prototype._transform=function(r,e,t){t(null,r)}});var Vwe=_((P8n,mje)=>{"use strict";d();p();var Gwe;function bqt(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var fje=vb().codes,vqt=fje.ERR_MISSING_ARGS,wqt=fje.ERR_STREAM_DESTROYED;function pje(r){if(r)throw r}function xqt(r){return r.setHeader&&typeof r.abort=="function"}function _qt(r,e,t,n){n=bqt(n);var a=!1;r.on("close",function(){a=!0}),Gwe===void 0&&(Gwe=vJ()),Gwe(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,xqt(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new wqt("pipe"))}}}function hje(r){r()}function Tqt(r,e){return r.pipe(e)}function Iqt(r){return!r.length||typeof r[r.length-1]!="function"?pje:r.pop()}function Eqt(){for(var r=arguments.length,e=new Array(r),t=0;t0;return _qt(s,c,u,function(l){a||(a=l),l&&i.forEach(hje),!c&&(i.forEach(hje),n(a))})});return e.reduce(Tqt)}mje.exports=Eqt});var IJ=_((Ld,yje)=>{d();p();Ld=yje.exports=doe();Ld.Stream=Ld;Ld.Readable=Ld;Ld.Writable=coe();Ld.Duplex=Ry();Ld.Transform=woe();Ld.PassThrough=Kwe();Ld.finished=vJ();Ld.pipeline=Vwe()});var Ywe=_((B8n,bje)=>{"use strict";d();p();var xoe=Ir().Buffer,gje=IJ().Transform,Cqt=xr();function kqt(r,e){if(!xoe.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function Dy(r){gje.call(this),this._block=xoe.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Cqt(Dy,gje);Dy.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};Dy.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Dy.prototype.update=function(r,e){if(kqt(r,"Data"),this._finalized)throw new Error("Digest already called");xoe.isBuffer(r)||(r=xoe.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};Dy.prototype._update=function(){throw new Error("_update is not implemented")};Dy.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Dy.prototype._digest=function(){throw new Error("_digest is not implemented")};bje.exports=Dy});var Ioe=_((O8n,wje)=>{"use strict";d();p();var Aqt=xr(),vje=Ywe(),Pqt=Ir().Buffer,Sqt=new Array(16);function _oe(){vje.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Aqt(_oe,vje);_oe.prototype._update=function(){for(var r=Sqt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=Yc(t,n,a,i,r[0],3614090360,7),i=Yc(i,t,n,a,r[1],3905402710,12),a=Yc(a,i,t,n,r[2],606105819,17),n=Yc(n,a,i,t,r[3],3250441966,22),t=Yc(t,n,a,i,r[4],4118548399,7),i=Yc(i,t,n,a,r[5],1200080426,12),a=Yc(a,i,t,n,r[6],2821735955,17),n=Yc(n,a,i,t,r[7],4249261313,22),t=Yc(t,n,a,i,r[8],1770035416,7),i=Yc(i,t,n,a,r[9],2336552879,12),a=Yc(a,i,t,n,r[10],4294925233,17),n=Yc(n,a,i,t,r[11],2304563134,22),t=Yc(t,n,a,i,r[12],1804603682,7),i=Yc(i,t,n,a,r[13],4254626195,12),a=Yc(a,i,t,n,r[14],2792965006,17),n=Yc(n,a,i,t,r[15],1236535329,22),t=$c(t,n,a,i,r[1],4129170786,5),i=$c(i,t,n,a,r[6],3225465664,9),a=$c(a,i,t,n,r[11],643717713,14),n=$c(n,a,i,t,r[0],3921069994,20),t=$c(t,n,a,i,r[5],3593408605,5),i=$c(i,t,n,a,r[10],38016083,9),a=$c(a,i,t,n,r[15],3634488961,14),n=$c(n,a,i,t,r[4],3889429448,20),t=$c(t,n,a,i,r[9],568446438,5),i=$c(i,t,n,a,r[14],3275163606,9),a=$c(a,i,t,n,r[3],4107603335,14),n=$c(n,a,i,t,r[8],1163531501,20),t=$c(t,n,a,i,r[13],2850285829,5),i=$c(i,t,n,a,r[2],4243563512,9),a=$c(a,i,t,n,r[7],1735328473,14),n=$c(n,a,i,t,r[12],2368359562,20),t=Qc(t,n,a,i,r[5],4294588738,4),i=Qc(i,t,n,a,r[8],2272392833,11),a=Qc(a,i,t,n,r[11],1839030562,16),n=Qc(n,a,i,t,r[14],4259657740,23),t=Qc(t,n,a,i,r[1],2763975236,4),i=Qc(i,t,n,a,r[4],1272893353,11),a=Qc(a,i,t,n,r[7],4139469664,16),n=Qc(n,a,i,t,r[10],3200236656,23),t=Qc(t,n,a,i,r[13],681279174,4),i=Qc(i,t,n,a,r[0],3936430074,11),a=Qc(a,i,t,n,r[3],3572445317,16),n=Qc(n,a,i,t,r[6],76029189,23),t=Qc(t,n,a,i,r[9],3654602809,4),i=Qc(i,t,n,a,r[12],3873151461,11),a=Qc(a,i,t,n,r[15],530742520,16),n=Qc(n,a,i,t,r[2],3299628645,23),t=Jc(t,n,a,i,r[0],4096336452,6),i=Jc(i,t,n,a,r[7],1126891415,10),a=Jc(a,i,t,n,r[14],2878612391,15),n=Jc(n,a,i,t,r[5],4237533241,21),t=Jc(t,n,a,i,r[12],1700485571,6),i=Jc(i,t,n,a,r[3],2399980690,10),a=Jc(a,i,t,n,r[10],4293915773,15),n=Jc(n,a,i,t,r[1],2240044497,21),t=Jc(t,n,a,i,r[8],1873313359,6),i=Jc(i,t,n,a,r[15],4264355552,10),a=Jc(a,i,t,n,r[6],2734768916,15),n=Jc(n,a,i,t,r[13],1309151649,21),t=Jc(t,n,a,i,r[4],4149444226,6),i=Jc(i,t,n,a,r[11],3174756917,10),a=Jc(a,i,t,n,r[2],718787259,15),n=Jc(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};_oe.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=Pqt.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function Toe(r,e){return r<>>32-e}function Yc(r,e,t,n,a,i,s){return Toe(r+(e&t|~e&n)+a+i|0,s)+e|0}function $c(r,e,t,n,a,i,s){return Toe(r+(e&n|t&~n)+a+i|0,s)+e|0}function Qc(r,e,t,n,a,i,s){return Toe(r+(e^t^n)+a+i|0,s)+e|0}function Jc(r,e,t,n,a,i,s){return Toe(r+(t^(e|~n))+a+i|0,s)+e|0}wje.exports=_oe});var Coe=_((W8n,kje)=>{"use strict";d();p();var $we=lc().Buffer,Rqt=xr(),Cje=Ywe(),Mqt=new Array(16),EJ=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],CJ=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],kJ=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],AJ=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],PJ=[0,1518500249,1859775393,2400959708,2840853838],SJ=[1352829926,1548603684,1836072691,2053994217,0];function Eoe(){Cje.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Rqt(Eoe,Cje);Eoe.prototype._update=function(){for(var r=Mqt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,u=this._c|0,l=this._d|0,h=this._e|0,f=0;f<80;f+=1){var m,y;f<16?(m=xje(t,n,a,i,s,r[EJ[f]],PJ[0],kJ[f]),y=Eje(o,c,u,l,h,r[CJ[f]],SJ[0],AJ[f])):f<32?(m=_je(t,n,a,i,s,r[EJ[f]],PJ[1],kJ[f]),y=Ije(o,c,u,l,h,r[CJ[f]],SJ[1],AJ[f])):f<48?(m=Tje(t,n,a,i,s,r[EJ[f]],PJ[2],kJ[f]),y=Tje(o,c,u,l,h,r[CJ[f]],SJ[2],AJ[f])):f<64?(m=Ije(t,n,a,i,s,r[EJ[f]],PJ[3],kJ[f]),y=_je(o,c,u,l,h,r[CJ[f]],SJ[3],AJ[f])):(m=Eje(t,n,a,i,s,r[EJ[f]],PJ[4],kJ[f]),y=xje(o,c,u,l,h,r[CJ[f]],SJ[4],AJ[f])),t=s,s=i,i=Tb(a,10),a=n,n=m,o=h,h=l,l=Tb(u,10),u=c,c=y}var I=this._b+a+l|0;this._b=this._c+i+h|0,this._c=this._d+s+o|0,this._d=this._e+t+c|0,this._e=this._a+n+u|0,this._a=I};Eoe.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=$we.alloc?$we.alloc(20):new $we(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function Tb(r,e){return r<>>32-e}function xje(r,e,t,n,a,i,s,o){return Tb(r+(e^t^n)+i+s|0,o)+a|0}function _je(r,e,t,n,a,i,s,o){return Tb(r+(e&t|~e&n)+i+s|0,o)+a|0}function Tje(r,e,t,n,a,i,s,o){return Tb(r+((e|~t)^n)+i+s|0,o)+a|0}function Ije(r,e,t,n,a,i,s,o){return Tb(r+(e&n|t&~n)+i+s|0,o)+a|0}function Eje(r,e,t,n,a,i,s,o){return Tb(r+(e^(t|~n))+i+s|0,o)+a|0}kje.exports=Eoe});var Ib=_((j8n,Pje)=>{d();p();var Aje=Ir().Buffer;function koe(r,e){this._block=Aje.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}koe.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=Aje.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};koe.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Pje.exports=koe});var Mje=_((G8n,Rje)=>{d();p();var Nqt=xr(),Sje=Ib(),Bqt=Ir().Buffer,Dqt=[1518500249,1859775393,-1894007588,-899497514],Lqt=new Array(80);function RJ(){this.init(),this._w=Lqt,Sje.call(this,64,56)}Nqt(RJ,Sje);RJ.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Oqt(r){return r<<5|r>>>27}function qqt(r){return r<<30|r>>>2}function Fqt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}RJ.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=e[o-3]^e[o-8]^e[o-14]^e[o-16];for(var c=0;c<80;++c){var u=~~(c/20),l=Oqt(t)+Fqt(u,n,a,i)+s+e[c]+Dqt[u]|0;s=i,i=a,a=qqt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};RJ.prototype._hash=function(){var r=Bqt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Rje.exports=RJ});var Dje=_(($8n,Bje)=>{d();p();var Wqt=xr(),Nje=Ib(),Uqt=Ir().Buffer,Hqt=[1518500249,1859775393,-1894007588,-899497514],jqt=new Array(80);function MJ(){this.init(),this._w=jqt,Nje.call(this,64,56)}Wqt(MJ,Nje);MJ.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function zqt(r){return r<<1|r>>>31}function Kqt(r){return r<<5|r>>>27}function Gqt(r){return r<<30|r>>>2}function Vqt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}MJ.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=zqt(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var u=~~(c/20),l=Kqt(t)+Vqt(u,n,a,i)+s+e[c]+Hqt[u]|0;s=i,i=a,a=Gqt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};MJ.prototype._hash=function(){var r=Uqt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Bje.exports=MJ});var Qwe=_((Z8n,Oje)=>{d();p();var Yqt=xr(),Lje=Ib(),$qt=Ir().Buffer,Qqt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Jqt=new Array(64);function NJ(){this.init(),this._w=Jqt,Lje.call(this,64,56)}Yqt(NJ,Lje);NJ.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Zqt(r,e,t){return t^r&(e^t)}function Xqt(r,e,t){return r&e|t&(r|e)}function eFt(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function tFt(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function rFt(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function nFt(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}NJ.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,u=this._h|0,l=0;l<16;++l)e[l]=r.readInt32BE(l*4);for(;l<64;++l)e[l]=nFt(e[l-2])+e[l-7]+rFt(e[l-15])+e[l-16]|0;for(var h=0;h<64;++h){var f=u+tFt(s)+Zqt(s,o,c)+Qqt[h]+e[h]|0,m=eFt(t)+Xqt(t,n,a)|0;u=c,c=o,o=s,s=i+f|0,i=a,a=n,n=t,t=f+m|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=o+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};NJ.prototype._hash=function(){var r=$qt.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};Oje.exports=NJ});var Fje=_((t4n,qje)=>{d();p();var aFt=xr(),iFt=Qwe(),sFt=Ib(),oFt=Ir().Buffer,cFt=new Array(64);function Aoe(){this.init(),this._w=cFt,sFt.call(this,64,56)}aFt(Aoe,iFt);Aoe.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Aoe.prototype._hash=function(){var r=oFt.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};qje.exports=Aoe});var Jwe=_((a4n,Gje)=>{d();p();var uFt=xr(),Kje=Ib(),lFt=Ir().Buffer,Wje=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],dFt=new Array(160);function BJ(){this.init(),this._w=dFt,Kje.call(this,128,112)}uFt(BJ,Kje);BJ.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Uje(r,e,t){return t^r&(e^t)}function Hje(r,e,t){return r&e|t&(r|e)}function jje(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function zje(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function pFt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function hFt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function fFt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function mFt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function No(r,e){return r>>>0>>0?1:0}BJ.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,u=this._hh|0,l=this._al|0,h=this._bl|0,f=this._cl|0,m=this._dl|0,y=this._el|0,I=this._fl|0,C=this._gl|0,R=this._hl|0,L=0;L<32;L+=2)e[L]=r.readInt32BE(L*4),e[L+1]=r.readInt32BE(L*4+4);for(;L<160;L+=2){var F=e[L-30],W=e[L-15*2+1],V=pFt(F,W),K=hFt(W,F);F=e[L-2*2],W=e[L-2*2+1];var H=fFt(F,W),G=mFt(W,F),Q=e[L-7*2],q=e[L-7*2+1],T=e[L-16*2],M=e[L-16*2+1],A=K+q|0,v=V+Q+No(A,K)|0;A=A+G|0,v=v+H+No(A,G)|0,A=A+M|0,v=v+T+No(A,M)|0,e[L]=v,e[L+1]=A}for(var k=0;k<160;k+=2){v=e[k],A=e[k+1];var O=Hje(t,n,a),D=Hje(l,h,f),B=jje(t,l),x=jje(l,t),N=zje(s,y),U=zje(y,s),E=Wje[k],z=Wje[k+1],ee=Uje(s,o,c),j=Uje(y,I,C),X=R+U|0,ie=u+N+No(X,R)|0;X=X+j|0,ie=ie+ee+No(X,j)|0,X=X+z|0,ie=ie+E+No(X,z)|0,X=X+A|0,ie=ie+v+No(X,A)|0;var ue=x+D|0,he=B+O+No(ue,x)|0;u=c,R=C,c=o,C=I,o=s,I=y,y=m+X|0,s=i+ie+No(y,m)|0,i=a,m=f,a=n,f=h,n=t,h=l,l=X+ue|0,t=ie+he+No(l,X)|0}this._al=this._al+l|0,this._bl=this._bl+h|0,this._cl=this._cl+f|0,this._dl=this._dl+m|0,this._el=this._el+y|0,this._fl=this._fl+I|0,this._gl=this._gl+C|0,this._hl=this._hl+R|0,this._ah=this._ah+t+No(this._al,l)|0,this._bh=this._bh+n+No(this._bl,h)|0,this._ch=this._ch+a+No(this._cl,f)|0,this._dh=this._dh+i+No(this._dl,m)|0,this._eh=this._eh+s+No(this._el,y)|0,this._fh=this._fh+o+No(this._fl,I)|0,this._gh=this._gh+c+No(this._gl,C)|0,this._hh=this._hh+u+No(this._hl,R)|0};BJ.prototype._hash=function(){var r=lFt.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};Gje.exports=BJ});var Yje=_((o4n,Vje)=>{d();p();var yFt=xr(),gFt=Jwe(),bFt=Ib(),vFt=Ir().Buffer,wFt=new Array(160);function Poe(){this.init(),this._w=wFt,bFt.call(this,128,112)}yFt(Poe,gFt);Poe.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Poe.prototype._hash=function(){var r=vFt.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Vje.exports=Poe});var DJ=_((Zm,$je)=>{d();p();var Zm=$je.exports=function(e){e=e.toLowerCase();var t=Zm[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};Zm.sha=Mje();Zm.sha1=Dje();Zm.sha224=Fje();Zm.sha256=Qwe();Zm.sha384=Yje();Zm.sha512=Jwe()});var Jje=_((p4n,Qje)=>{d();p();Qje.exports=Od;var Zwe=Lu().EventEmitter,xFt=xr();xFt(Od,Zwe);Od.Readable=doe();Od.Writable=coe();Od.Duplex=Ry();Od.Transform=woe();Od.PassThrough=Kwe();Od.finished=vJ();Od.pipeline=Vwe();Od.Stream=Od;function Od(){Zwe.call(this)}Od.prototype.pipe=function(r,e){var t=this;function n(l){r.writable&&r.write(l)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",o));var i=!1;function s(){i||(i=!0,r.end())}function o(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function c(l){if(u(),Zwe.listenerCount(this,"error")===0)throw l}t.on("error",c),r.on("error",c);function u(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",o),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",u),t.removeListener("close",u),r.removeListener("close",u)}return t.on("end",u),t.on("close",u),r.on("close",u),r.emit("pipe",t),r}});var Xm=_((m4n,eze)=>{d();p();var Zje=Ir().Buffer,Xje=Jje().Transform,_Ft=poe().StringDecoder,TFt=xr();function ih(r){Xje.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}TFt(ih,Xje);ih.prototype.update=function(r,e,t){typeof r=="string"&&(r=Zje.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};ih.prototype.setAutoPadding=function(){};ih.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};ih.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};ih.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};ih.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};ih.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};ih.prototype._finalOrDigest=function(r){var e=this.__final()||Zje.alloc(0);return r&&(e=this._toString(e,r,!0)),e};ih.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new _Ft(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};eze.exports=ih});var x3=_((b4n,rze)=>{"use strict";d();p();var IFt=xr(),EFt=Ioe(),CFt=Coe(),kFt=DJ(),tze=Xm();function Soe(r){tze.call(this,"digest"),this._hash=r}IFt(Soe,tze);Soe.prototype._update=function(r){this._hash.update(r)};Soe.prototype._final=function(){return this._hash.digest()};rze.exports=function(e){return e=e.toLowerCase(),e==="md5"?new EFt:e==="rmd160"||e==="ripemd160"?new CFt:new Soe(kFt(e))}});var ize=_((x4n,aze)=>{"use strict";d();p();var AFt=xr(),Eb=Ir().Buffer,nze=Xm(),PFt=Eb.alloc(128),_3=64;function Roe(r,e){nze.call(this,"digest"),typeof e=="string"&&(e=Eb.from(e)),this._alg=r,this._key=e,e.length>_3?e=r(e):e.length<_3&&(e=Eb.concat([e,PFt],_3));for(var t=this._ipad=Eb.allocUnsafe(_3),n=this._opad=Eb.allocUnsafe(_3),a=0;a<_3;a++)t[a]=e[a]^54,n[a]=e[a]^92;this._hash=[t]}AFt(Roe,nze);Roe.prototype._update=function(r){this._hash.push(r)};Roe.prototype._final=function(){var r=this._alg(Eb.concat(this._hash));return this._alg(Eb.concat([this._opad,r]))};aze.exports=Roe});var Xwe=_((I4n,sze)=>{d();p();var SFt=Ioe();sze.exports=function(r){return new SFt().update(r).digest()}});var r5e=_((k4n,cze)=>{"use strict";d();p();var RFt=xr(),MFt=ize(),oze=Xm(),LJ=Ir().Buffer,NFt=Xwe(),e5e=Coe(),t5e=DJ(),BFt=LJ.alloc(128);function OJ(r,e){oze.call(this,"digest"),typeof e=="string"&&(e=LJ.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new e5e:t5e(r);e=n.update(e).digest()}else e.length{DFt.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var lze=_((R4n,uze)=>{d();p();uze.exports=n5e()});var a5e=_((B4n,dze)=>{d();p();var LFt=Math.pow(2,30)-1;dze.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>LFt||e!==e)throw new TypeError("Bad key length")}});var i5e=_((O4n,hze)=>{d();p();var Moe;global.process&&global.process.browser?Moe="utf-8":global.process&&global.process.version?(pze=parseInt(g.version.split(".")[0].slice(1),10),Moe=pze>=6?"utf-8":"binary"):Moe="utf-8";var pze;hze.exports=Moe});var o5e=_((W4n,fze)=>{d();p();var s5e=Ir().Buffer;fze.exports=function(r,e,t){if(s5e.isBuffer(r))return r;if(typeof r=="string")return s5e.from(r,e);if(ArrayBuffer.isView(r))return s5e.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var c5e=_((j4n,bze)=>{d();p();var OFt=Xwe(),qFt=Coe(),FFt=DJ(),Cb=Ir().Buffer,WFt=a5e(),mze=i5e(),yze=o5e(),UFt=Cb.alloc(128),Noe={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function gze(r,e,t){var n=HFt(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{d();p();var _ze=Ir().Buffer,zFt=a5e(),vze=i5e(),wze=c5e(),xze=o5e(),Boe,qJ=global.crypto&&global.crypto.subtle,KFt={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u5e=[];function GFt(r){if(global.process&&!global.process.browser||!qJ||!qJ.importKey||!qJ.deriveBits)return Promise.resolve(!1);if(u5e[r]!==void 0)return u5e[r];Boe=Boe||_ze.alloc(8);var e=Tze(Boe,Boe,10,128,r).then(function(){return!0}).catch(function(){return!1});return u5e[r]=e,e}var kb;function l5e(){return kb||(global.process&&global.process.nextTick?kb=global.process.nextTick:global.queueMicrotask?kb=global.queueMicrotask:global.setImmediate?kb=global.setImmediate:kb=global.setTimeout,kb)}function Tze(r,e,t,n,a){return qJ.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return qJ.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return _ze.from(i)})}function VFt(r,e){r.then(function(t){l5e()(function(){e(null,t)})},function(t){l5e()(function(){e(t)})})}Ize.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=KFt[a.toLowerCase()];if(!s||typeof global.Promise!="function"){l5e()(function(){var o;try{o=wze(r,e,t,n,a)}catch(c){return i(c)}i(null,o)});return}if(zFt(t,n),r=xze(r,vze,"Password"),e=xze(e,vze,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");VFt(GFt(s).then(function(o){return o?Tze(r,e,t,n,s):wze(r,e,t,n,a)}),i)}});var p5e=_(d5e=>{d();p();d5e.pbkdf2=Eze();d5e.pbkdf2Sync=c5e()});var h5e=_(qd=>{"use strict";d();p();qd.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};qd.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};qd.ip=function(e,t,n,a){for(var i=0,s=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>>c+o&1}for(var o=6;o>=0;o-=2){for(var c=1;c<=25;c+=8)s<<=1,s|=t>>>c+o&1;for(var c=1;c<=25;c+=8)s<<=1,s|=e>>>c+o&1}n[a+0]=i>>>0,n[a+1]=s>>>0};qd.rip=function(e,t,n,a){for(var i=0,s=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;for(var o=4;o<8;o++)for(var c=24;c>=0;c-=8)s<<=1,s|=t>>>c+o&1,s<<=1,s|=e>>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.pc1=function(e,t,n,a){for(var i=0,s=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var o=1;o<=3;o++){for(var c=0;c<=24;c+=8)s<<=1,s|=t>>c+o&1;for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1}for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.r28shl=function(e,t){return e<>>28-t};var Doe=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];qd.pc2=function(e,t,n,a){for(var i=0,s=0,o=Doe.length>>>1,c=0;c>>Doe[c]&1;for(var c=o;c>>Doe[c]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var Cze=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];qd.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=Cze[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=Cze[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var kze=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];qd.permute=function(e){for(var t=0,n=0;n>>kze[n]&1;return t>>>0};qd.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";d();p();var YFt=zl();function Fd(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Aze.exports=Fd;Fd.prototype._init=function(){};Fd.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Fd.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Fd.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Fd.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";d();p();var Pze=zl(),$Ft=xr(),uo=h5e(),Sze=Loe();function QFt(){this.tmp=new Array(2),this.keys=null}function Ef(r){Sze.call(this,r);var e=new QFt;this._desState=e,this.deriveKeys(e,r.key)}$Ft(Ef,Sze);Rze.exports=Ef;Ef.create=function(e){return new Ef(e)};var JFt=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Ef.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),Pze.equal(t.length,this.blockSize,"Invalid key length");var n=uo.readUInt32BE(t,0),a=uo.readUInt32BE(t,4);uo.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=uo.r28shl(n,s),a=uo.r28shl(a,s),uo.pc2(n,a,e.keys,i)}};Ef.prototype._update=function(e,t,n,a){var i=this._desState,s=uo.readUInt32BE(e,t),o=uo.readUInt32BE(e,t+4);uo.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],uo.writeUInt32BE(n,s,a),uo.writeUInt32BE(n,o,a+4)};Ef.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=m}uo.rip(o,s,a,i)};Ef.prototype._decrypt=function(e,t,n,a,i){for(var s=n,o=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];uo.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=uo.substitute(u,l),f=uo.permute(h),m=s;s=(o^f)>>>0,o=m}uo.rip(s,o,a,i)}});var Nze=_(Mze=>{"use strict";d();p();var ZFt=zl(),XFt=xr(),Ooe={};function eWt(r){ZFt.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";d();p();var rWt=zl(),nWt=xr(),Bze=Loe(),Ly=f5e();function aWt(r,e){rWt.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[Ly.create({type:"encrypt",key:t}),Ly.create({type:"decrypt",key:n}),Ly.create({type:"encrypt",key:a})]:this.ciphers=[Ly.create({type:"decrypt",key:a}),Ly.create({type:"encrypt",key:n}),Ly.create({type:"decrypt",key:t})]}function Ab(r){Bze.call(this,r);var e=new aWt(this.type,this.options.key);this._edeState=e}nWt(Ab,Bze);Dze.exports=Ab;Ab.create=function(e){return new Ab(e)};Ab.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};Ab.prototype._pad=Ly.prototype._pad;Ab.prototype._unpad=Ly.prototype._unpad});var Oze=_(T3=>{"use strict";d();p();T3.utils=h5e();T3.Cipher=Loe();T3.DES=f5e();T3.CBC=Nze();T3.EDE=Lze()});var Wze=_((ykn,Fze)=>{d();p();var qze=Xm(),e0=Oze(),iWt=xr(),Pb=Ir().Buffer,FJ={"des-ede3-cbc":e0.CBC.instantiate(e0.EDE),"des-ede3":e0.EDE,"des-ede-cbc":e0.CBC.instantiate(e0.EDE),"des-ede":e0.EDE,"des-cbc":e0.CBC.instantiate(e0.DES),"des-ecb":e0.DES};FJ.des=FJ["des-cbc"];FJ.des3=FJ["des-ede3-cbc"];Fze.exports=qoe;iWt(qoe,qze);function qoe(r){qze.call(this);var e=r.mode.toLowerCase(),t=FJ[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;Pb.isBuffer(a)||(a=Pb.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=Pb.concat([a,a.slice(0,8)]));var i=r.iv;Pb.isBuffer(i)||(i=Pb.from(i)),this._des=t.create({key:a,iv:i,type:n})}qoe.prototype._update=function(r){return Pb.from(this._des.update(r))};qoe.prototype._final=function(){return Pb.from(this._des.final())}});var Uze=_(m5e=>{d();p();m5e.encrypt=function(r,e){return r._cipher.encryptBlock(e)};m5e.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var I3=_((_kn,Hze)=>{d();p();Hze.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new b.Buffer(n),i=0;i{d();p();var jze=I3();y5e.encrypt=function(r,e){var t=jze(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};y5e.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return jze(n,t)}});var Vze=_(Gze=>{d();p();var WJ=Ir().Buffer,sWt=I3();function Kze(r,e,t){var n=e.length,a=sWt(e,r._cache);return r._cache=r._cache.slice(n),r._prev=WJ.concat([r._prev,t?e:a]),a}Gze.encrypt=function(r,e,t){for(var n=WJ.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=WJ.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=WJ.concat([n,Kze(r,e.slice(0,a),t)]),e=e.slice(a);else{n=WJ.concat([n,Kze(r,e,t)]);break}return n}});var $ze=_(Yze=>{d();p();var g5e=Ir().Buffer;function oWt(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=g5e.concat([r._prev.slice(1),g5e.from([t?e:a])]),a}Yze.encrypt=function(r,e,t){for(var n=e.length,a=g5e.allocUnsafe(n),i=-1;++i{d();p();var Foe=Ir().Buffer;function cWt(r,e,t){for(var n,a=-1,i=8,s=0,o,c;++a>a%8,r._prev=uWt(r._prev,t?o:c);return s}function uWt(r,e){var t=r.length,n=-1,a=Foe.allocUnsafe(r.length);for(r=Foe.concat([r,Foe.from([e])]);++n>7;return a}Qze.encrypt=function(r,e,t){for(var n=e.length,a=Foe.allocUnsafe(n),i=-1;++i{d();p();var lWt=I3();function dWt(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}Zze.encrypt=function(r,e){for(;r._cache.length{d();p();function pWt(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}eKe.exports=pWt});var w5e=_(rKe=>{d();p();var hWt=I3(),tKe=Ir().Buffer,fWt=b5e();function mWt(r){var e=r._cipher.encryptBlockRaw(r._prev);return fWt(r._prev),e}var v5e=16;rKe.encrypt=function(r,e){var t=Math.ceil(e.length/v5e),n=r._cache.length;r._cache=tKe.concat([r._cache,tKe.allocUnsafe(t*v5e)]);for(var a=0;a{yWt.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Uoe=_((Vkn,nKe)=>{d();p();var gWt={ECB:Uze(),CBC:zze(),CFB:Vze(),CFB8:$ze(),CFB1:Jze(),OFB:Xze(),CTR:w5e(),GCM:w5e()},Woe=x5e();for(_5e in Woe)Woe[_5e].module=gWt[Woe[_5e].mode];var _5e;nKe.exports=Woe});var UJ=_((Qkn,iKe)=>{d();p();var Hoe=Ir().Buffer;function I5e(r){Hoe.isBuffer(r)||(r=Hoe.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[l>>>16&255]^o[h>>>8&255]^c[f&255]^e[R++],y=i[l>>>24]^s[h>>>16&255]^o[f>>>8&255]^c[u&255]^e[R++],I=i[h>>>24]^s[f>>>16&255]^o[u>>>8&255]^c[l&255]^e[R++],C=i[f>>>24]^s[u>>>16&255]^o[l>>>8&255]^c[h&255]^e[R++],u=m,l=y,h=I,f=C;return m=(n[u>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[f&255])^e[R++],y=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[f>>>8&255]<<8|n[u&255])^e[R++],I=(n[h>>>24]<<24|n[f>>>16&255]<<16|n[u>>>8&255]<<8|n[l&255])^e[R++],C=(n[f>>>24]<<24|n[u>>>16&255]<<16|n[l>>>8&255]<<8|n[h&255])^e[R++],m=m>>>0,y=y>>>0,I=I>>>0,C=C>>>0,[m,y,I,C]}var bWt=[0,1,2,4,8,16,32,64,128,27,54],Fs=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^u&255^99,t[s]=u,n[u]=s;var l=r[s],h=r[l],f=r[h],m=r[u]*257^u*16843008;a[0][s]=m<<24|m>>>8,a[1][s]=m<<16|m>>>16,a[2][s]=m<<8|m>>>24,a[3][s]=m,m=f*16843009^h*65537^l*257^s*16843008,i[0][u]=m<<24|m>>>8,i[1][u]=m<<16|m>>>16,i[2][u]=m<<8|m>>>24,i[3][u]=m,s===0?s=o=1:(s=l^r[r[r[f^l]]],o^=r[r[o]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function Wd(r){this._key=I5e(r),this._reset()}Wd.blockSize=4*4;Wd.keySize=256/8;Wd.prototype.blockSize=Wd.blockSize;Wd.prototype.keySize=Wd.keySize;Wd.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=Fs.SBOX[s>>>24]<<24|Fs.SBOX[s>>>16&255]<<16|Fs.SBOX[s>>>8&255]<<8|Fs.SBOX[s&255],s^=bWt[i/e|0]<<24):e>6&&i%e===4&&(s=Fs.SBOX[s>>>24]<<24|Fs.SBOX[s>>>16&255]<<16|Fs.SBOX[s>>>8&255]<<8|Fs.SBOX[s&255]),a[i]=a[i-e]^s}for(var o=[],c=0;c>>24]]^Fs.INV_SUB_MIX[1][Fs.SBOX[l>>>16&255]]^Fs.INV_SUB_MIX[2][Fs.SBOX[l>>>8&255]]^Fs.INV_SUB_MIX[3][Fs.SBOX[l&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=o};Wd.prototype.encryptBlockRaw=function(r){return r=I5e(r),aKe(r,this._keySchedule,Fs.SUB_MIX,Fs.SBOX,this._nRounds)};Wd.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=Hoe.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Wd.prototype.decryptBlock=function(r){r=I5e(r);var e=r[1];r[1]=r[3],r[3]=e;var t=aKe(r,this._invKeySchedule,Fs.INV_SUB_MIX,Fs.INV_SBOX,this._nRounds),n=Hoe.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Wd.prototype.scrub=function(){T5e(this._keySchedule),T5e(this._invKeySchedule),T5e(this._key)};iKe.exports.AES=Wd});var cKe=_((Xkn,oKe)=>{d();p();var E3=Ir().Buffer,vWt=E3.alloc(16,0);function wWt(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function sKe(r){var e=E3.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function HJ(r){this.h=r,this.state=E3.alloc(16,0),this.cache=E3.allocUnsafe(0)}HJ.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=sKe(e)};HJ.prototype.update=function(r){this.cache=E3.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};HJ.prototype.final=function(r,e){return this.cache.length&&this.ghash(E3.concat([this.cache,vWt],16)),this.ghash(sKe([0,r,0,e])),this.state};oKe.exports=HJ});var E5e=_((rAn,dKe)=>{d();p();var xWt=UJ(),ul=Ir().Buffer,uKe=Xm(),_Wt=xr(),lKe=cKe(),TWt=I3(),IWt=b5e();function EWt(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{d();p();var kWt=UJ(),C5e=Ir().Buffer,pKe=Xm(),AWt=xr();function joe(r,e,t,n){pKe.call(this),this._cipher=new kWt.AES(e),this._prev=C5e.from(t),this._cache=C5e.allocUnsafe(0),this._secCache=C5e.allocUnsafe(0),this._decrypt=n,this._mode=r}AWt(joe,pKe);joe.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};joe.prototype._final=function(){this._cipher.scrub()};hKe.exports=joe});var jJ=_((cAn,fKe)=>{d();p();var Rb=Ir().Buffer,PWt=Ioe();function SWt(r,e,t,n){if(Rb.isBuffer(r)||(r=Rb.from(r,"binary")),e&&(Rb.isBuffer(e)||(e=Rb.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=Rb.alloc(a),s=Rb.alloc(n||0),o=Rb.alloc(0);a>0||n>0;){var c=new PWt;c.update(o),c.update(r),e&&c.update(e),o=c.digest();var u=0;if(a>0){var l=i.length-a;u=Math.min(a,o.length),o.copy(i,l,0,u),a-=u}if(u0){var h=s.length-n,f=Math.min(n,o.length-u);o.copy(s,h,u,u+f),n-=f}}return o.fill(0),{key:i,iv:s}}fKe.exports=SWt});var bKe=_(A5e=>{d();p();var mKe=Uoe(),RWt=E5e(),t0=Ir().Buffer,MWt=k5e(),yKe=Xm(),NWt=UJ(),BWt=jJ(),DWt=xr();function zJ(r,e,t){yKe.call(this),this._cache=new zoe,this._cipher=new NWt.AES(e),this._prev=t0.from(t),this._mode=r,this._autopadding=!0}DWt(zJ,yKe);zJ.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return t0.concat(n)};var LWt=t0.alloc(16,16);zJ.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(LWt))throw this._cipher.scrub(),new Error("data not multiple of block length")};zJ.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function zoe(){this.cache=t0.allocUnsafe(0)}zoe.prototype.add=function(r){this.cache=t0.concat([this.cache,r])};zoe.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};zoe.prototype.flush=function(){for(var r=16-this.cache.length,e=t0.allocUnsafe(r),t=-1;++t{d();p();var qWt=E5e(),C3=Ir().Buffer,vKe=Uoe(),FWt=k5e(),wKe=Xm(),WWt=UJ(),UWt=jJ(),HWt=xr();function KJ(r,e,t){wKe.call(this),this._cache=new Koe,this._last=void 0,this._cipher=new WWt.AES(e),this._prev=C3.from(t),this._mode=r,this._autopadding=!0}HWt(KJ,wKe);KJ.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return C3.concat(n)};KJ.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return jWt(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};KJ.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function Koe(){this.cache=C3.allocUnsafe(0)}Koe.prototype.add=function(r){this.cache=C3.concat([this.cache,r])};Koe.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};Koe.prototype.flush=function(){if(this.cache.length)return this.cache};function jWt(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{d();p();var TKe=bKe(),IKe=_Ke(),KWt=x5e();function GWt(){return Object.keys(KWt)}sh.createCipher=sh.Cipher=TKe.createCipher;sh.createCipheriv=sh.Cipheriv=TKe.createCipheriv;sh.createDecipher=sh.Decipher=IKe.createDecipher;sh.createDecipheriv=sh.Decipheriv=IKe.createDecipheriv;sh.listCiphers=sh.getCiphers=GWt});var EKe=_(r0=>{d();p();r0["des-ecb"]={key:8,iv:0};r0["des-cbc"]=r0.des={key:8,iv:8};r0["des-ede3-cbc"]=r0.des3={key:24,iv:8};r0["des-ede3"]={key:24,iv:0};r0["des-ede-cbc"]={key:16,iv:8};r0["des-ede"]={key:16,iv:0}});var SKe=_(oh=>{d();p();var CKe=Wze(),S5e=Goe(),Oy=Uoe(),n0=EKe(),kKe=jJ();function VWt(r,e){r=r.toLowerCase();var t,n;if(Oy[r])t=Oy[r].key,n=Oy[r].iv;else if(n0[r])t=n0[r].key*8,n=n0[r].iv;else throw new TypeError("invalid suite type");var a=kKe(e,!1,t,n);return AKe(r,a.key,a.iv)}function YWt(r,e){r=r.toLowerCase();var t,n;if(Oy[r])t=Oy[r].key,n=Oy[r].iv;else if(n0[r])t=n0[r].key*8,n=n0[r].iv;else throw new TypeError("invalid suite type");var a=kKe(e,!1,t,n);return PKe(r,a.key,a.iv)}function AKe(r,e,t){if(r=r.toLowerCase(),Oy[r])return S5e.createCipheriv(r,e,t);if(n0[r])return new CKe({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function PKe(r,e,t){if(r=r.toLowerCase(),Oy[r])return S5e.createDecipheriv(r,e,t);if(n0[r])return new CKe({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function $Wt(){return Object.keys(n0).concat(S5e.getCiphers())}oh.createCipher=oh.Cipher=VWt;oh.createCipheriv=oh.Cipheriv=AKe;oh.createDecipher=oh.Decipher=YWt;oh.createDecipheriv=oh.Decipheriv=PKe;oh.listCiphers=oh.getCiphers=$Wt});var R5e=_((CAn,RKe)=>{d();p();var Mb=co(),QWt=Voe();function Nb(r){this.rand=r||new QWt.Rand}RKe.exports=Nb;Nb.create=function(e){return new Nb(e)};Nb.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new Mb(this.rand.generate(n));while(a.cmp(e)>=0);return a};Nb.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Nb.prototype.test=function(e,t,n){var a=e.bitLength(),i=Mb.mont(e),s=new Mb(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var u=e.shrn(c),l=o.toRed(i),h=!0;t>0;t--){var f=this._randrange(new Mb(2),o);n&&n(f);var m=f.toRed(i).redPow(u);if(!(m.cmp(s)===0||m.cmp(l)===0)){for(var y=1;y0;t--){var l=this._randrange(new Mb(2),s),h=e.gcd(l);if(h.cmpn(1)!==0)return h;var f=l.toRed(a).redPow(c);if(!(f.cmp(i)===0||f.cmp(u)===0)){for(var m=1;m{d();p();var JWt=hb();BKe.exports=L5e;L5e.simpleSieve=B5e;L5e.fermatTest=D5e;var hc=co(),ZWt=new hc(24),XWt=R5e(),MKe=new XWt,eUt=new hc(1),N5e=new hc(2),tUt=new hc(5),PAn=new hc(16),SAn=new hc(8),rUt=new hc(10),nUt=new hc(3),RAn=new hc(7),aUt=new hc(11),NKe=new hc(4),MAn=new hc(12),M5e=null;function iUt(){if(M5e!==null)return M5e;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(eUt),t.testn(1)||t.iadd(N5e),e.cmp(N5e)){if(!e.cmp(tUt))for(;t.mod(rUt).cmp(nUt);)t.iadd(NKe)}else for(;t.mod(ZWt).cmp(aUt);)t.iadd(NKe);if(n=t.shrn(1),B5e(n)&&B5e(t)&&D5e(n)&&D5e(t)&&MKe.test(n)&&MKe.test(t))return t}}});var DKe=_((LAn,sUt)=>{sUt.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var FKe=_((OAn,qKe)=>{d();p();var Ud=co(),oUt=R5e(),LKe=new oUt,cUt=new Ud(24),uUt=new Ud(11),lUt=new Ud(10),dUt=new Ud(3),pUt=new Ud(7),OKe=O5e(),hUt=hb();qKe.exports=a0;function fUt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._pub=new Ud(r),this}function mUt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._priv=new Ud(r),this}var Yoe={};function yUt(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in Yoe)return Yoe[n];var a=0;if(r.isEven()||!OKe.simpleSieve||!OKe.fermatTest(r)||!LKe.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,Yoe[n]=a,a;LKe.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(cUt).cmp(uUt)&&(a+=8);break;case"05":i=r.mod(lUt),i.cmp(dUt)&&i.cmp(pUt)&&(a+=8);break;default:a+=4}return Yoe[n]=a,a}function a0(r,e,t){this.setGenerator(e),this.__prime=new Ud(r),this._prime=Ud.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=fUt,this.setPrivateKey=mUt):this._primeCode=8}Object.defineProperty(a0.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=yUt(this.__prime,this.__gen)),this._primeCode}});a0.prototype.generateKeys=function(){return this._priv||(this._priv=new Ud(hUt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};a0.prototype.computeSecret=function(r){r=new Ud(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new b.Buffer(e.toArray()),n=this.getPrime();if(t.length{d();p();var gUt=O5e(),WKe=DKe(),q5e=FKe();function bUt(r){var e=new b.Buffer(WKe[r].prime,"hex"),t=new b.Buffer(WKe[r].gen,"hex");return new q5e(e,t)}var vUt={binary:!0,hex:!0,base64:!0};function UKe(r,e,t,n){return b.Buffer.isBuffer(e)||vUt[e]===void 0?UKe(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new b.Buffer([2]),b.Buffer.isBuffer(t)||(t=new b.Buffer(t,n)),typeof r=="number"?new q5e(gUt(r,t),t,!0):(b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),new q5e(r,t,!0)))}k3.DiffieHellmanGroup=k3.createDiffieHellmanGroup=k3.getDiffieHellman=bUt;k3.createDiffieHellman=k3.DiffieHellman=UKe});var Qoe=_((jAn,KKe)=>{d();p();var A3=Cr(),wUt=hb();function xUt(r){var e=jKe(r),t=e.toRed(A3.mont(r.modulus)).redPow(new A3(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function jKe(r){var e=r.modulus.byteLength(),t;do t=new A3(wUt(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function zKe(r,e){var t=xUt(e),n=e.modulus.byteLength(),a=new A3(r).mul(t.blinder).umod(e.modulus),i=a.toRed(A3.mont(e.prime1)),s=a.toRed(A3.mont(e.prime2)),o=e.coefficient,c=e.prime1,u=e.prime2,l=i.redPow(e.exponent1).fromRed(),h=s.redPow(e.exponent2).fromRed(),f=l.isub(h).imul(o).umod(c).imul(u);return h.iadd(f).imul(t.unblinder).umod(e.modulus).toArrayLike(b.Buffer,"be",n)}zKe.getr=jKe;KKe.exports=zKe});var Zoe=_((GAn,GKe)=>{"use strict";d();p();var Joe=lc(),P3=Joe.Buffer,Hd={},jd;for(jd in Joe)!Joe.hasOwnProperty(jd)||jd==="SlowBuffer"||jd==="Buffer"||(Hd[jd]=Joe[jd]);var S3=Hd.Buffer={};for(jd in P3)!P3.hasOwnProperty(jd)||jd==="allocUnsafe"||jd==="allocUnsafeSlow"||(S3[jd]=P3[jd]);Hd.Buffer.prototype=P3.prototype;(!S3.from||S3.from===Uint8Array.from)&&(S3.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return P3(r,e,t)});S3.alloc||(S3.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=P3(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!Hd.kStringMaxLength)try{Hd.kStringMaxLength=g.binding("buffer").kStringMaxLength}catch{}Hd.constants||(Hd.constants={MAX_LENGTH:Hd.kMaxLength},Hd.kStringMaxLength&&(Hd.constants.MAX_STRING_LENGTH=Hd.kStringMaxLength));GKe.exports=Hd});var Xoe=_(VKe=>{"use strict";d();p();var _Ut=xr();function zd(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}VKe.Reporter=zd;zd.prototype.isError=function(e){return e instanceof R3};zd.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};zd.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};zd.prototype.enterKey=function(e){return this._reporterState.path.push(e)};zd.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};zd.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};zd.prototype.path=function(){return this._reporterState.path.join("/")};zd.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};zd.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};zd.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof R3;if(a?t=e:t=new R3(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};zd.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function R3(r,e){this.path=r,this.rethrow(e)}_Ut(R3,Error);R3.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,R3),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var B3=_(F5e=>{"use strict";d();p();var TUt=xr(),ece=Xoe().Reporter,M3=Zoe().Buffer;function Kd(r,e){if(ece.call(this,e),!M3.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}TUt(Kd,ece);F5e.DecoderBuffer=Kd;Kd.isDecoderBuffer=function(e){return e instanceof Kd?!0:typeof e=="object"&&M3.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Kd.prototype.save=function(){return{offset:this.offset,reporter:ece.prototype.save.call(this)}};Kd.prototype.restore=function(e){let t=new Kd(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,ece.prototype.restore.call(this,e.reporter),t};Kd.prototype.isEmpty=function(){return this.offset===this.length};Kd.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Kd.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new Kd(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Kd.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function N3(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return N3.isEncoderBuffer(t)||(t=new N3(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=M3.byteLength(r);else if(M3.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}F5e.EncoderBuffer=N3;N3.isEncoderBuffer=function(e){return e instanceof N3?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};N3.prototype.join=function(e,t){return e||(e=M3.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):M3.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var tce=_((tPn,$Ke)=>{"use strict";d();p();var IUt=Xoe().Reporter,EUt=B3().EncoderBuffer,CUt=B3().DecoderBuffer,Ou=zl(),YKe=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],kUt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(YKe),AUt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Fa(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}$Ke.exports=Fa;var PUt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Fa.prototype.clone=function(){let e=this._baseState,t={};PUt.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};Fa.prototype._wrap=function(){let e=this._baseState;kUt.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};Fa.prototype._init=function(e){let t=this._baseState;Ou(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),Ou.equal(t.children.length,1,"Root node can have only one child")};Fa.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(Ou(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(Ou(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let o=a[s];i[o]=s}),i}))};AUt.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});YKe.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return Ou(t.tag===null),t.tag=r,this._useArgs(n),this}});Fa.prototype.use=function(e){Ou(e);let t=this._baseState;return Ou(t.use===null),t.use=e,this};Fa.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};Fa.prototype.def=function(e){let t=this._baseState;return Ou(t.default===null),t.default=e,t.optional=!0,this};Fa.prototype.explicit=function(e){let t=this._baseState;return Ou(t.explicit===null&&t.implicit===null),t.explicit=e,this};Fa.prototype.implicit=function(e){let t=this._baseState;return Ou(t.explicit===null&&t.implicit===null),t.implicit=e,this};Fa.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};Fa.prototype.key=function(e){let t=this._baseState;return Ou(t.key===null),t.key=e,this};Fa.prototype.any=function(){let e=this._baseState;return e.any=!0,this};Fa.prototype.choice=function(e){let t=this._baseState;return Ou(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};Fa.prototype.contains=function(e){let t=this._baseState;return Ou(t.use===null),t.contains=e,this};Fa.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){let u=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(u)}else if(i=this._peekTag(e,c,n.any),e.isError(i))return i}let o;if(n.obj&&i&&(o=e.enterObject()),i){if(n.explicit!==null){let u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}let c=e.offset;if(n.use===null&&n.choice===null){let u;n.any&&(u=e.save());let l=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(l))return l;n.any?a=e.raw(u):e=l}if(t&&t.track&&n.tag!==null&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(l){l._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let u=new CUt(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(u,t)}}return n.obj&&i&&(a=e.leaveObject(o)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};Fa.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};Fa.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),Ou(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Fa.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let o=e.save(),c=n.choice[s];try{let u=c._decode(e,t);if(e.isError(u))return!1;a={type:s,value:u},i=!0}catch{return e.restore(o),!1}return!0},this),i?a:e.error("Choice not matched")};Fa.prototype._createEncoderBuffer=function(e){return new EUt(e,this.reporter)};Fa.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};Fa.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new IUt);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,o=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),o=!0;else if(a.children)s=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,t,e);if(c._baseState.key===null)return t.error("Child should have a key");let u=t.enterKey(c._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let l=c._encode(e[c._baseState.key],t,e);return t.leaveKey(u),l},this).filter(function(c){return c}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(u){let l=this._baseState;return this._getUse(l.args[0],e)._encode(u,t)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),o=!0);if(!a.any&&a.choice===null){let c=a.implicit!==null?a.implicit:a.tag,u=a.implicit===null?"universal":"context";c===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,o,u,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Fa.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||Ou(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};Fa.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};Fa.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Fa.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var rce=_(Bb=>{"use strict";d();p();function QKe(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}Bb.tagClass={0:"universal",1:"application",2:"context",3:"private"};Bb.tagClassByName=QKe(Bb.tagClass);Bb.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Bb.tagByName=QKe(Bb.tag)});var U5e=_((oPn,XKe)=>{"use strict";d();p();var SUt=xr(),i0=Zoe().Buffer,JKe=tce(),W5e=rce();function ZKe(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new ch,this.tree._init(r.body)}XKe.exports=ZKe;ZKe.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function ch(r){JKe.call(this,"der",r)}SUt(ch,JKe);ch.prototype._encodeComposite=function(e,t,n,a){let i=RUt(e,t,n,this.reporter);if(a.length<128){let c=i0.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let s=1;for(let c=a.length;c>=256;c>>=8)s++;let o=i0.alloc(1+1+s);o[0]=i,o[1]=128|s;for(let c=1+s,u=a.length;u>0;c--,u>>=8)o[c]=u&255;return this._createEncoderBuffer([o,a])};ch.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=i0.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let o=0;o=128;c>>=7)a++}let i=i0.alloc(a),s=i.length-1;for(let o=e.length-1;o>=0;o--){let c=e[o];for(i[s--]=c&127;(c>>=7)>0;)i[s--]=128|c&127}return this._createEncoderBuffer(i)};function Gd(r){return r<10?"0"+r:r}ch.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[Gd(a.getUTCFullYear()),Gd(a.getUTCMonth()+1),Gd(a.getUTCDate()),Gd(a.getUTCHours()),Gd(a.getUTCMinutes()),Gd(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[Gd(a.getUTCFullYear()%100),Gd(a.getUTCMonth()+1),Gd(a.getUTCDate()),Gd(a.getUTCHours()),Gd(a.getUTCMinutes()),Gd(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};ch.prototype._encodeNull=function(){return this._createEncoderBuffer("")};ch.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!i0.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=i0.from(i)}if(i0.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=i0.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(i0.from(a))};ch.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};ch.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};ch.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=W5e.tagClassByName[t||"universal"]<<6,a)}});var tGe=_((lPn,eGe)=>{"use strict";d();p();var MUt=xr(),H5e=U5e();function j5e(r){H5e.call(this,r),this.enc="pem"}MUt(j5e,H5e);eGe.exports=j5e;j5e.prototype.encode=function(e,t){let a=H5e.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";d();p();var rGe=nGe;rGe.der=U5e();rGe.pem=tGe()});var G5e=_((yPn,uGe)=>{"use strict";d();p();var NUt=xr(),BUt=co(),aGe=B3().DecoderBuffer,sGe=tce(),iGe=rce();function oGe(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Gl,this.tree._init(r.body)}uGe.exports=oGe;oGe.prototype.decode=function(e,t){return aGe.isDecoderBuffer(e)||(e=new aGe(e,t)),this.tree._decode(e,t)};function Gl(r){sGe.call(this,"der",r)}NUt(Gl,sGe);Gl.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=K5e(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};Gl.prototype._decodeTag=function(e,t,n){let a=K5e(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=cGe(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};Gl.prototype._skipUntilEnd=function(e,t){for(;;){let n=K5e(e,t);if(e.isError(n))return n;let a=cGe(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};Gl.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let o=n.decode(e,"der",a);if(e.isError(o)&&s)break;i.push(o)}return i};Gl.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=iGe.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function cGe(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";d();p();var DUt=xr(),LUt=Zoe().Buffer,V5e=G5e();function Y5e(r){V5e.call(this,r),this.enc="pem"}DUt(Y5e,V5e);lGe.exports=Y5e;Y5e.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,o=-1;for(let l=0;l{"use strict";d();p();var pGe=hGe;pGe.der=G5e();pGe.pem=dGe()});var mGe=_(fGe=>{"use strict";d();p();var OUt=z5e(),qUt=$5e(),FUt=xr(),WUt=fGe;WUt.define=function(e,t){return new D3(e,t)};function D3(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}D3.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return FUt(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};D3.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(qUt[e])),this.decoders[e]};D3.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};D3.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(OUt[e])),this.encoders[e]};D3.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var gGe=_(yGe=>{"use strict";d();p();var nce=yGe;nce.Reporter=Xoe().Reporter;nce.DecoderBuffer=B3().DecoderBuffer;nce.EncoderBuffer=B3().EncoderBuffer;nce.Node=tce()});var wGe=_(vGe=>{"use strict";d();p();var bGe=vGe;bGe._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};bGe.der=rce()});var Q5e=_(xGe=>{"use strict";d();p();var L3=xGe;L3.bignum=co();L3.define=mGe().define;L3.base=gGe();L3.constants=wGe();L3.decoders=$5e();L3.encoders=z5e()});var EGe=_((OPn,IGe)=>{"use strict";d();p();var uh=Q5e(),_Ge=uh.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),UUt=uh.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),J5e=uh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),HUt=uh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(J5e),this.key("subjectPublicKey").bitstr())}),jUt=uh.define("RelativeDistinguishedName",function(){this.setof(UUt)}),zUt=uh.define("RDNSequence",function(){this.seqof(jUt)}),TGe=uh.define("Name",function(){this.choice({rdnSequence:this.use(zUt)})}),KUt=uh.define("Validity",function(){this.seq().obj(this.key("notBefore").use(_Ge),this.key("notAfter").use(_Ge))}),GUt=uh.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),VUt=uh.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(J5e),this.key("issuer").use(TGe),this.key("validity").use(KUt),this.key("subject").use(TGe),this.key("subjectPublicKeyInfo").use(HUt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(GUt).optional())}),YUt=uh.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(VUt),this.key("signatureAlgorithm").use(J5e),this.key("signatureValue").bitstr())});IGe.exports=YUt});var kGe=_(dh=>{"use strict";d();p();var lh=Q5e();dh.certificate=EGe();var $Ut=lh.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});dh.RSAPrivateKey=$Ut;var QUt=lh.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});dh.RSAPublicKey=QUt;var JUt=lh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(CGe),this.key("subjectPublicKey").bitstr())});dh.PublicKey=JUt;var CGe=lh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),ZUt=lh.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(CGe),this.key("subjectPrivateKey").octstr())});dh.PrivateKey=ZUt;var XUt=lh.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});dh.EncryptedPrivateKey=XUt;var eHt=lh.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});dh.DSAPrivateKey=eHt;dh.DSAparam=lh.define("DSAparam",function(){this.int()});var tHt=lh.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(rHt),this.key("publicKey").optional().explicit(1).bitstr())});dh.ECPrivateKey=tHt;var rHt=lh.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});dh.signature=lh.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var AGe=_((jPn,nHt)=>{nHt.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var SGe=_((zPn,PGe)=>{d();p();var aHt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,iHt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,sHt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,oHt=jJ(),cHt=Goe(),ace=Ir().Buffer;PGe.exports=function(r,e){var t=r.toString(),n=t.match(aHt),a;if(n){var s="aes"+n[1],o=ace.from(n[2],"hex"),c=ace.from(n[3].replace(/[\r\n]/g,""),"base64"),u=oHt(e,o.slice(0,8),parseInt(n[1],10)).key,l=[],h=cHt.createDecipheriv(s,u,o);l.push(h.update(c)),l.push(h.final()),a=ace.concat(l)}else{var i=t.match(sHt);a=ace.from(i[2].replace(/[\r\n]/g,""),"base64")}var f=t.match(iHt)[1];return{tag:f,data:a}}});var GJ=_((VPn,MGe)=>{d();p();var ll=kGe(),uHt=AGe(),lHt=SGe(),dHt=Goe(),pHt=p5e(),Z5e=Ir().Buffer;MGe.exports=RGe;function RGe(r){var e;typeof r=="object"&&!Z5e.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=Z5e.from(r));var t=lHt(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=ll.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=ll.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return ll.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=ll.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=ll.EncryptedPrivateKey.decode(a,"der"),a=hHt(a,e);case"PRIVATE KEY":switch(s=ll.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return ll.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:ll.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=ll.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return ll.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return ll.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ll.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=ll.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}RGe.signature=ll.signature;function hHt(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=uHt[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,o=parseInt(a.split("-")[1],10)/8,c=pHt.pbkdf2Sync(e,t,n,o,"sha1"),u=dHt.createDecipheriv(a,c,i),l=[];return l.push(u.update(s)),l.push(u.final()),Z5e.concat(l)}});var X5e=_((QPn,fHt)=>{fHt.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var DGe=_((JPn,sce)=>{d();p();var Zc=Ir().Buffer,Db=r5e(),mHt=Qoe(),yHt=VJ().ec,ice=Cr(),gHt=GJ(),bHt=X5e();function vHt(r,e,t,n,a){var i=gHt(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return wHt(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return xHt(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=Zc.concat([a,r]);for(var s=i.modulus.byteLength(),o=[0,1];r.length+o.length+10&&t.ishrn(n),t}function THt(r,e){r=e3e(r,e),r=r.mod(e);var t=Zc.from(r.toArray());if(t.length{d();p();var t3e=Ir().Buffer,YJ=Cr(),EHt=VJ().ec,OGe=GJ(),CHt=X5e();function kHt(r,e,t,n,a){var i=OGe(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return AHt(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return PHt(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=t3e.concat([a,e]);for(var s=i.modulus.byteLength(),o=[1],c=0;e.length+o.length+2=e)throw new Error("invalid sig")}qGe.exports=kHt});var KGe=_((nSn,zGe)=>{d();p();var oce=Ir().Buffer,HGe=x3(),cce=IJ(),jGe=xr(),SHt=DGe(),RHt=FGe(),Lb=n5e();Object.keys(Lb).forEach(function(r){Lb[r].id=oce.from(Lb[r].id,"hex"),Lb[r.toLowerCase()]=Lb[r]});function $J(r){cce.Writable.call(this);var e=Lb[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=HGe(e.hash),this._tag=e.id,this._signType=e.sign}jGe($J,cce.Writable);$J.prototype._write=function(e,t,n){this._hash.update(e),n()};$J.prototype.update=function(e,t){return typeof e=="string"&&(e=oce.from(e,t)),this._hash.update(e),this};$J.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=SHt(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function QJ(r){cce.Writable.call(this);var e=Lb[r];if(!e)throw new Error("Unknown message digest");this._hash=HGe(e.hash),this._tag=e.id,this._signType=e.sign}jGe(QJ,cce.Writable);QJ.prototype._write=function(e,t,n){this._hash.update(e),n()};QJ.prototype.update=function(e,t){return typeof e=="string"&&(e=oce.from(e,t)),this._hash.update(e),this};QJ.prototype.verify=function(e,t,n){typeof t=="string"&&(t=oce.from(t,n)),this.end();var a=this._hash.digest();return RHt(t,a,e,this._signType,this._tag)};function WGe(r){return new $J(r)}function UGe(r){return new QJ(r)}zGe.exports={Sign:WGe,Verify:UGe,createSign:WGe,createVerify:UGe}});var VGe=_((sSn,GGe)=>{d();p();var MHt=VJ(),NHt=co();GGe.exports=function(e){return new Ob(e)};var Vl={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Vl.p224=Vl.secp224r1;Vl.p256=Vl.secp256r1=Vl.prime256v1;Vl.p192=Vl.secp192r1=Vl.prime192v1;Vl.p384=Vl.secp384r1;Vl.p521=Vl.secp521r1;function Ob(r){this.curveType=Vl[r],this.curveType||(this.curveType={name:r}),this.curve=new MHt.ec(this.curveType.name),this.keys=void 0}Ob.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Ob.prototype.computeSecret=function(r,e,t){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return r3e(a,t,this.curveType.byteLength)};Ob.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),r3e(t,r)};Ob.prototype.getPrivateKey=function(r){return r3e(this.keys.getPrivate(),r)};Ob.prototype.setPublicKey=function(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this.keys._importPublic(r),this};Ob.prototype.setPrivateKey=function(r,e){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var t=new NHt(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function r3e(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new b.Buffer(r);if(t&&n.length{d();p();var BHt=x3(),n3e=Ir().Buffer;YGe.exports=function(r,e){for(var t=n3e.alloc(0),n=0,a;t.length{d();p();$Ge.exports=function(e,t){for(var n=e.length,a=-1;++a{d();p();var QGe=co(),LHt=Ir().Buffer;function OHt(r,e){return LHt.from(r.toRed(QGe.mont(e.modulus)).redPow(new QGe(e.publicExponent)).fromRed().toArray())}JGe.exports=OHt});var tVe=_((bSn,eVe)=>{d();p();var qHt=GJ(),o3e=hb(),FHt=x3(),ZGe=a3e(),XGe=i3e(),c3e=co(),WHt=s3e(),UHt=Qoe(),ph=Ir().Buffer;eVe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=qHt(e),s;if(a===4)s=HHt(i,t);else if(a===1)s=jHt(i,t,n);else if(a===3){if(s=new c3e(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?UHt(s,i):WHt(s,i)};function HHt(r,e){var t=r.modulus.byteLength(),n=e.length,a=FHt("sha1").update(ph.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var o=ph.alloc(t-n-s-2),c=t-i-1,u=o3e(i),l=XGe(ph.concat([a,o,ph.alloc(1,1),e],c),ZGe(u,c)),h=XGe(u,ZGe(l,i));return new c3e(ph.concat([ph.alloc(1),h,l],t))}function jHt(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=ph.alloc(a-n-3,255):i=zHt(a-n-3),new c3e(ph.concat([ph.from([0,t?1:2]),i,ph.alloc(1),e],a))}function zHt(r){for(var e=ph.allocUnsafe(r),t=0,n=o3e(r*2),a=0,i;t{d();p();var KHt=GJ(),rVe=a3e(),nVe=i3e(),aVe=co(),GHt=Qoe(),VHt=x3(),YHt=s3e(),JJ=Ir().Buffer;iVe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=KHt(e),s=i.modulus.byteLength();if(t.length>s||new aVe(t).cmp(i.modulus)>=0)throw new Error("decryption error");var o;n?o=YHt(new aVe(t),i):o=GHt(t,i);var c=JJ.alloc(s-o.length);if(o=JJ.concat([c,o],s),a===4)return $Ht(i,o);if(a===1)return QHt(i,o,n);if(a===3)return o;throw new Error("unknown padding")};function $Ht(r,e){var t=r.modulus.byteLength(),n=VHt("sha1").update(JJ.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),o=nVe(i,rVe(s,a)),c=nVe(s,rVe(o,t-a-1));if(JHt(n,c.slice(0,a)))throw new Error("decryption error");for(var u=a;c[u]===0;)u++;if(c[u++]!==1)throw new Error("decryption error");return c.slice(u)}function QHt(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function JHt(r,e){r=JJ.from(r),e=JJ.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{d();p();qb.publicEncrypt=tVe();qb.privateDecrypt=sVe();qb.privateEncrypt=function(e,t){return qb.publicEncrypt(e,t,!0)};qb.publicDecrypt=function(e,t){return qb.privateDecrypt(e,t,!0)}});var gVe=_(ZJ=>{"use strict";d();p();function cVe(){throw new Error(`secure random number generation not supported by this browser +use chrome, FireFox or Internet Explorer 11`)}var lVe=Ir(),uVe=hb(),dVe=lVe.Buffer,pVe=lVe.kMaxLength,u3e=global.crypto||global.msCrypto,hVe=Math.pow(2,32)-1;function fVe(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>hVe||r<0)throw new TypeError("offset must be a uint32");if(r>pVe||r>e)throw new RangeError("offset out of range")}function mVe(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>hVe||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>pVe)throw new RangeError("buffer too small")}u3e&&u3e.getRandomValues||!g.browser?(ZJ.randomFill=ZHt,ZJ.randomFillSync=XHt):(ZJ.randomFill=cVe,ZJ.randomFillSync=cVe);function ZHt(r,e,t,n){if(!dVe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return fVe(e,r.length),mVe(t,e,r.length),yVe(r,e,t,n)}function yVe(r,e,t,n){if(g.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(u3e.getRandomValues(i),n){g.nextTick(function(){n(null,r)});return}return r}if(n){uVe(t,function(o,c){if(o)return n(o);c.copy(r,e),n(null,r)});return}var s=uVe(t);return s.copy(r,e),r}function XHt(r,e,t){if(typeof e>"u"&&(e=0),!dVe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return fVe(e,r.length),t===void 0&&(t=r.length-e),mVe(t,e,r.length),yVe(r,e,t)}});var l3e=_(Er=>{"use strict";d();p();Er.randomBytes=Er.rng=Er.pseudoRandomBytes=Er.prng=hb();Er.createHash=Er.Hash=x3();Er.createHmac=Er.Hmac=r5e();var ejt=lze(),tjt=Object.keys(ejt),rjt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(tjt);Er.getHashes=function(){return rjt};var bVe=p5e();Er.pbkdf2=bVe.pbkdf2;Er.pbkdf2Sync=bVe.pbkdf2Sync;var Cf=SKe();Er.Cipher=Cf.Cipher;Er.createCipher=Cf.createCipher;Er.Cipheriv=Cf.Cipheriv;Er.createCipheriv=Cf.createCipheriv;Er.Decipher=Cf.Decipher;Er.createDecipher=Cf.createDecipher;Er.Decipheriv=Cf.Decipheriv;Er.createDecipheriv=Cf.createDecipheriv;Er.getCiphers=Cf.getCiphers;Er.listCiphers=Cf.listCiphers;var XJ=HKe();Er.DiffieHellmanGroup=XJ.DiffieHellmanGroup;Er.createDiffieHellmanGroup=XJ.createDiffieHellmanGroup;Er.getDiffieHellman=XJ.getDiffieHellman;Er.createDiffieHellman=XJ.createDiffieHellman;Er.DiffieHellman=XJ.DiffieHellman;var uce=KGe();Er.createSign=uce.createSign;Er.Sign=uce.Sign;Er.createVerify=uce.createVerify;Er.Verify=uce.Verify;Er.createECDH=VGe();var lce=oVe();Er.publicEncrypt=lce.publicEncrypt;Er.privateEncrypt=lce.privateEncrypt;Er.publicDecrypt=lce.publicDecrypt;Er.privateDecrypt=lce.privateDecrypt;var vVe=gVe();Er.randomFill=vVe.randomFill;Er.randomFillSync=vVe.randomFillSync;Er.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))};Er.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var Voe=_((NSn,h3e)=>{d();p();var d3e;h3e.exports=function(e){return d3e||(d3e=new qy(null)),d3e.generate(e)};function qy(r){this.rand=r}h3e.exports.Rand=qy;qy.prototype.generate=function(e){return this._rand(e)};qy.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();var Fb=co(),eZ=Kl(),dce=eZ.getNAF,njt=eZ.getJSF,pce=eZ.assert;function Fy(r,e){this.type=r,this.p=new Fb(e.p,16),this.red=e.prime?Fb.red(e.prime):Fb.mont(this.p),this.zero=new Fb(0).toRed(this.red),this.one=new Fb(1).toRed(this.red),this.two=new Fb(2).toRed(this.red),this.n=e.n&&new Fb(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}wVe.exports=Fy;Fy.prototype.point=function(){throw new Error("Not implemented")};Fy.prototype.validate=function(){throw new Error("Not implemented")};Fy.prototype._fixedNafMul=function(e,t){pce(e.precomputed);var n=e._getDoubles(),a=dce(t,1,this._bitLength),i=(1<=o;u--)c=(c<<1)+a[u];s.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,o=o.dblp(u),c<0)break;var l=s[c];pce(l!==0),e.type==="affine"?l>0?o=o.mixedAdd(i[l-1>>1]):o=o.mixedAdd(i[-l-1>>1].neg()):l>0?o=o.add(i[l-1>>1]):o=o.add(i[-l-1>>1].neg())}return e.type==="affine"?o.toP():o};Fy.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,u=0,l,h,f;for(l=0;l=1;l-=2){var y=l-1,I=l;if(s[y]!==1||s[I]!==1){c[y]=dce(n[y],s[y],this._bitLength),c[I]=dce(n[I],s[I],this._bitLength),u=Math.max(c[y].length,u),u=Math.max(c[I].length,u);continue}var C=[t[y],null,null,t[I]];t[y].y.cmp(t[I].y)===0?(C[1]=t[y].add(t[I]),C[2]=t[y].toJ().mixedAdd(t[I].neg())):t[y].y.cmp(t[I].y.redNeg())===0?(C[1]=t[y].toJ().mixedAdd(t[I]),C[2]=t[y].add(t[I].neg())):(C[1]=t[y].toJ().mixedAdd(t[I]),C[2]=t[y].toJ().mixedAdd(t[I].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],L=njt(n[y],n[I]);for(u=Math.max(L[0].length,u),c[y]=new Array(u),c[I]=new Array(u),h=0;h=0;l--){for(var H=0;l>=0;){var G=!0;for(h=0;h=0&&H++,V=V.dblp(H),l<0)break;for(h=0;h0?f=o[h][Q-1>>1]:Q<0&&(f=o[h][-Q-1>>1].neg()),f.type==="affine"?V=V.mixedAdd(f):V=V.add(f))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step):!1};Vd.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";d();p();var ajt=Kl(),as=co(),f3e=xr(),O3=tZ(),ijt=ajt.assert;function Yd(r){O3.call(this,"short",r),this.a=new as(r.a,16).toRed(this.red),this.b=new as(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}f3e(Yd,O3);xVe.exports=Yd;Yd.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new as(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new as(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],ijt(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(o){return{a:new as(o.a,16),b:new as(o.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};Yd.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:as.mont(e),n=new as(2).toRed(t).redInvm(),a=n.redNeg(),i=new as(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),o=a.redSub(i).fromRed();return[s,o]};Yd.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new as(1),s=new as(0),o=new as(0),c=new as(1),u,l,h,f,m,y,I,C=0,R,L;n.cmpn(0)!==0;){var F=a.div(n);R=a.sub(F.mul(n)),L=o.sub(F.mul(i));var W=c.sub(F.mul(s));if(!h&&R.cmp(t)<0)u=I.neg(),l=i,h=R.neg(),f=L;else if(h&&++C===2)break;I=R,a=n,n=R,o=i,i=L,c=s,s=W}m=R.neg(),y=L;var V=h.sqr().add(f.sqr()),K=m.sqr().add(y.sqr());return K.cmp(V)>=0&&(m=u,y=l),h.negative&&(h=h.neg(),f=f.neg()),m.negative&&(m=m.neg(),y=y.neg()),[{a:h,b:f},{a:m,b:y}]};Yd.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),c=s.mul(a.a),u=i.mul(n.b),l=s.mul(a.b),h=e.sub(o).sub(c),f=u.add(l).neg();return{k1:h,k2:f}};Yd.prototype.pointFromX=function(e,t){e=new as(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};Yd.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};Yd.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Bo.prototype.isInfinity=function(){return this.inf};Bo.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Bo.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Bo.prototype.getX=function(){return this.x.fromRed()};Bo.prototype.getY=function(){return this.y.fromRed()};Bo.prototype.mul=function(e){return e=new as(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Bo.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Bo.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Bo.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Bo.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};Bo.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function fc(r,e,t,n){O3.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new as(0)):(this.x=new as(e,16),this.y=new as(t,16),this.z=new as(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}f3e(fc,O3.BasePoint);Yd.prototype.jpoint=function(e,t,n){return new fc(this,e,t,n)};fc.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};fc.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};fc.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),c=a.redSub(i),u=s.redSub(o);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),h=l.redMul(c),f=a.redMul(l),m=u.redSqr().redIAdd(h).redISub(f).redISub(f),y=u.redMul(f.redISub(m)).redISub(s.redMul(h)),I=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(m,y,I)};fc.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(a),c=i.redSub(s);if(o.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),h=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(h).redISub(h),m=c.redMul(h.redISub(f)).redISub(i.redMul(l)),y=this.z.redMul(o);return this.curve.jpoint(f,m,y)};fc.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};fc.prototype.inspect=function(){return this.isInfinity()?"":""};fc.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var EVe=_((HSn,IVe)=>{"use strict";d();p();var q3=co(),TVe=xr(),hce=tZ(),sjt=Kl();function F3(r){hce.call(this,"mont",r),this.a=new q3(r.a,16).toRed(this.red),this.b=new q3(r.b,16).toRed(this.red),this.i4=new q3(4).toRed(this.red).redInvm(),this.two=new q3(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}TVe(F3,hce);IVe.exports=F3;F3.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Do(r,e,t){hce.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new q3(e,16),this.z=new q3(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}TVe(Do,hce.BasePoint);F3.prototype.decodePoint=function(e,t){return this.point(sjt.toArray(e,t),1)};F3.prototype.point=function(e,t){return new Do(this,e,t)};F3.prototype.pointFromJSON=function(e){return Do.fromJSON(this,e)};Do.prototype.precompute=function(){};Do.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Do.fromJSON=function(e,t){return new Do(e,t[0],t[1]||e.one)};Do.prototype.inspect=function(){return this.isInfinity()?"":""};Do.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Do.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};Do.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),c=i.redMul(a),u=t.z.redMul(o.redAdd(c).redSqr()),l=t.x.redMul(o.redISub(c).redSqr());return this.curve.point(u,l)};Do.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Do.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Do.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Do.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var AVe=_((KSn,kVe)=>{"use strict";d();p();var ojt=Kl(),s0=co(),CVe=xr(),fce=tZ(),cjt=ojt.assert;function kf(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,fce.call(this,"edwards",r),this.a=new s0(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s0(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s0(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),cjt(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}CVe(kf,fce);kVe.exports=kf;kf.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};kf.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};kf.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};kf.prototype.pointFromX=function(e,t){e=new s0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)};kf.prototype.pointFromY=function(e,t){e=new s0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)};kf.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function Ja(r,e,t,n,a){fce.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s0(e,16),this.y=new s0(t,16),this.z=n?new s0(n,16):this.curve.one,this.t=a&&new s0(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}CVe(Ja,fce.BasePoint);kf.prototype.pointFromJSON=function(e){return Ja.fromJSON(this,e)};kf.prototype.point=function(e,t,n,a){return new Ja(this,e,t,n,a)};Ja.fromJSON=function(e,t){return new Ja(e,t[0],t[1],t[2])};Ja.prototype.inspect=function(){return this.isInfinity()?"":""};Ja.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Ja.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),o=s.redSub(n),c=a.redSub(t),u=i.redMul(o),l=s.redMul(c),h=i.redMul(c),f=o.redMul(s);return this.curve.point(u,l,f,h)};Ja.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,o,c,u;if(this.curve.twisted){o=this.curve._mulA(t);var l=o.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(l.redSub(this.curve.two)),i=l.redMul(o.redSub(n)),s=l.redSqr().redSub(l).redSub(l)):(c=this.z.redSqr(),u=l.redSub(c).redISub(c),a=e.redSub(t).redISub(n).redMul(u),i=l.redMul(o.redSub(n)),s=l.redMul(u))}else o=t.redAdd(n),c=this.curve._mulC(this.z).redSqr(),u=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(u),i=this.curve._mulC(o).redMul(t.redISub(n)),s=o.redMul(u);return this.curve.point(a,i,s)};Ja.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Ja.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(a),c=i.redAdd(a),u=n.redAdd(t),l=s.redMul(o),h=c.redMul(u),f=s.redMul(u),m=o.redMul(c);return this.curve.point(l,h,m,f)};Ja.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=n.redSub(s),c=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),l=t.redMul(o).redMul(u),h,f;return this.curve.twisted?(h=t.redMul(c).redMul(i.redSub(this.curve._mulA(a))),f=o.redMul(c)):(h=t.redMul(c).redMul(i.redSub(a)),f=this.curve._mulC(o).redMul(c)),this.curve.point(l,h,f)};Ja.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};Ja.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};Ja.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};Ja.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};Ja.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};Ja.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Ja.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Ja.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Ja.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Ja.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};Ja.prototype.toP=Ja.prototype.normalize;Ja.prototype.mixedAdd=Ja.prototype.add});var m3e=_(PVe=>{"use strict";d();p();var mce=PVe;mce.base=tZ();mce.short=_Ve();mce.mont=EVe();mce.edwards=AVe()});var hh=_(Ka=>{"use strict";d();p();var ujt=zl(),ljt=xr();Ka.inherits=ljt;function djt(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function pjt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):djt(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}Ka.htonl=SVe;function fjt(r,e){for(var t="",n=0;n>>0}return i}Ka.join32=mjt;function yjt(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}Ka.split32=yjt;function gjt(r,e){return r>>>e|r<<32-e}Ka.rotr32=gjt;function bjt(r,e){return r<>>32-e}Ka.rotl32=bjt;function vjt(r,e){return r+e>>>0}Ka.sum32=vjt;function wjt(r,e,t){return r+e+t>>>0}Ka.sum32_3=wjt;function xjt(r,e,t,n){return r+e+t+n>>>0}Ka.sum32_4=xjt;function _jt(r,e,t,n,a){return r+e+t+n+a>>>0}Ka.sum32_5=_jt;function Tjt(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,o=(s>>0,r[e+1]=s}Ka.sum64=Tjt;function Ijt(r,e,t,n){var a=e+n>>>0,i=(a>>0}Ka.sum64_hi=Ijt;function Ejt(r,e,t,n){var a=e+n;return a>>>0}Ka.sum64_lo=Ejt;function Cjt(r,e,t,n,a,i,s,o){var c=0,u=e;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}Ka.sum64_4_hi=Cjt;function kjt(r,e,t,n,a,i,s,o){var c=e+n+i+o;return c>>>0}Ka.sum64_4_lo=kjt;function Ajt(r,e,t,n,a,i,s,o,c,u){var l=0,h=e;h=h+n>>>0,l+=h>>0,l+=h>>0,l+=h>>0,l+=h>>0}Ka.sum64_5_hi=Ajt;function Pjt(r,e,t,n,a,i,s,o,c,u){var l=e+n+i+o+u;return l>>>0}Ka.sum64_5_lo=Pjt;function Sjt(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}Ka.rotr64_hi=Sjt;function Rjt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ka.rotr64_lo=Rjt;function Mjt(r,e,t){return r>>>t}Ka.shr64_hi=Mjt;function Njt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ka.shr64_lo=Njt});var W3=_(BVe=>{"use strict";d();p();var NVe=hh(),Bjt=zl();function yce(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}BVe.BlockHash=yce;yce.prototype.update=function(e,t){if(e=NVe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=NVe.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";d();p();var Djt=hh(),Af=Djt.rotr32;function Ljt(r,e,t,n){if(r===0)return DVe(e,t,n);if(r===1||r===3)return OVe(e,t,n);if(r===2)return LVe(e,t,n)}o0.ft_1=Ljt;function DVe(r,e,t){return r&e^~r&t}o0.ch32=DVe;function LVe(r,e,t){return r&e^r&t^e&t}o0.maj32=LVe;function OVe(r,e,t){return r^e^t}o0.p32=OVe;function Ojt(r){return Af(r,2)^Af(r,13)^Af(r,22)}o0.s0_256=Ojt;function qjt(r){return Af(r,6)^Af(r,11)^Af(r,25)}o0.s1_256=qjt;function Fjt(r){return Af(r,7)^Af(r,18)^r>>>3}o0.g0_256=Fjt;function Wjt(r){return Af(r,17)^Af(r,19)^r>>>10}o0.g1_256=Wjt});var WVe=_((s7n,FVe)=>{"use strict";d();p();var U3=hh(),Ujt=W3(),Hjt=y3e(),g3e=U3.rotl32,rZ=U3.sum32,jjt=U3.sum32_5,zjt=Hjt.ft_1,qVe=Ujt.BlockHash,Kjt=[1518500249,1859775393,2400959708,3395469782];function Pf(){if(!(this instanceof Pf))return new Pf;qVe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}U3.inherits(Pf,qVe);FVe.exports=Pf;Pf.blockSize=512;Pf.outSize=160;Pf.hmacStrength=80;Pf.padLength=64;Pf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var H3=hh(),Gjt=W3(),j3=y3e(),Vjt=zl(),fh=H3.sum32,Yjt=H3.sum32_4,$jt=H3.sum32_5,Qjt=j3.ch32,Jjt=j3.maj32,Zjt=j3.s0_256,Xjt=j3.s1_256,ezt=j3.g0_256,tzt=j3.g1_256,UVe=Gjt.BlockHash,rzt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Sf(){if(!(this instanceof Sf))return new Sf;UVe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=rzt,this.W=new Array(64)}H3.inherits(Sf,UVe);HVe.exports=Sf;Sf.blockSize=512;Sf.outSize=256;Sf.hmacStrength=192;Sf.padLength=64;Sf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var v3e=hh(),jVe=b3e();function c0(){if(!(this instanceof c0))return new c0;jVe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}v3e.inherits(c0,jVe);zVe.exports=c0;c0.blockSize=512;c0.outSize=224;c0.hmacStrength=192;c0.padLength=64;c0.prototype._digest=function(e){return e==="hex"?v3e.toHex32(this.h.slice(0,7),"big"):v3e.split32(this.h.slice(0,7),"big")}});var _3e=_((m7n,$Ve)=>{"use strict";d();p();var dl=hh(),nzt=W3(),azt=zl(),Rf=dl.rotr64_hi,Mf=dl.rotr64_lo,GVe=dl.shr64_hi,VVe=dl.shr64_lo,Wy=dl.sum64,w3e=dl.sum64_hi,x3e=dl.sum64_lo,izt=dl.sum64_4_hi,szt=dl.sum64_4_lo,ozt=dl.sum64_5_hi,czt=dl.sum64_5_lo,YVe=nzt.BlockHash,uzt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function mh(){if(!(this instanceof mh))return new mh;YVe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=uzt,this.W=new Array(160)}dl.inherits(mh,YVe);$Ve.exports=mh;mh.blockSize=1024;mh.outSize=512;mh.hmacStrength=192;mh.padLength=128;mh.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var T3e=hh(),QVe=_3e();function u0(){if(!(this instanceof u0))return new u0;QVe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}T3e.inherits(u0,QVe);JVe.exports=u0;u0.blockSize=1024;u0.outSize=384;u0.hmacStrength=192;u0.padLength=128;u0.prototype._digest=function(e){return e==="hex"?T3e.toHex32(this.h.slice(0,12),"big"):T3e.split32(this.h.slice(0,12),"big")}});var XVe=_(z3=>{"use strict";d();p();z3.sha1=WVe();z3.sha224=KVe();z3.sha256=b3e();z3.sha384=ZVe();z3.sha512=_3e()});var iYe=_(aYe=>{"use strict";d();p();var Wb=hh(),_zt=W3(),gce=Wb.rotl32,eYe=Wb.sum32,nZ=Wb.sum32_3,tYe=Wb.sum32_4,nYe=_zt.BlockHash;function Nf(){if(!(this instanceof Nf))return new Nf;nYe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Wb.inherits(Nf,nYe);aYe.ripemd160=Nf;Nf.blockSize=512;Nf.outSize=160;Nf.hmacStrength=192;Nf.padLength=64;Nf.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],o=this.h[4],c=n,u=a,l=i,h=s,f=o,m=0;m<80;m++){var y=eYe(gce(tYe(n,rYe(m,a,i,s),e[Ezt[m]+t],Tzt(m)),kzt[m]),o);n=o,o=s,s=gce(i,10),i=a,a=y,y=eYe(gce(tYe(c,rYe(79-m,u,l,h),e[Czt[m]+t],Izt(m)),Azt[m]),f),c=f,f=h,h=gce(l,10),l=u,u=y}y=nZ(this.h[1],i,h),this.h[1]=nZ(this.h[2],s,f),this.h[2]=nZ(this.h[3],o,c),this.h[3]=nZ(this.h[4],n,u),this.h[4]=nZ(this.h[0],a,l),this.h[0]=y};Nf.prototype._digest=function(e){return e==="hex"?Wb.toHex32(this.h,"little"):Wb.split32(this.h,"little")};function rYe(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function Tzt(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function Izt(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var Ezt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Czt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],kzt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Azt=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var oYe=_((k7n,sYe)=>{"use strict";d();p();var Pzt=hh(),Szt=zl();function K3(r,e,t){if(!(this instanceof K3))return new K3(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(Pzt.toArray(e,t))}sYe.exports=K3;K3.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),Szt(e.length<=this.blockSize);for(var t=e.length;t{d();p();var mc=cYe;mc.utils=hh();mc.common=W3();mc.sha=XVe();mc.ripemd=iYe();mc.hmac=oYe();mc.sha1=mc.sha.sha1;mc.sha256=mc.sha.sha256;mc.sha224=mc.sha.sha224;mc.sha384=mc.sha.sha384;mc.sha512=mc.sha.sha512;mc.ripemd160=mc.ripemd.ripemd160});var lYe=_((N7n,uYe)=>{d();p();uYe.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var bce=_(hYe=>{"use strict";d();p();var E3e=hYe,Uy=aZ(),I3e=m3e(),Rzt=Kl(),dYe=Rzt.assert;function pYe(r){r.type==="short"?this.curve=new I3e.short(r):r.type==="edwards"?this.curve=new I3e.edwards(r):this.curve=new I3e.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,dYe(this.g.validate(),"Invalid curve"),dYe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}E3e.PresetCurve=pYe;function Hy(r,e){Object.defineProperty(E3e,r,{configurable:!0,enumerable:!0,get:function(){var t=new pYe(e);return Object.defineProperty(E3e,r,{configurable:!0,enumerable:!0,value:t}),t}})}Hy("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Uy.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});Hy("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Uy.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});Hy("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Uy.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});Hy("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Uy.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});Hy("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Uy.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});Hy("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Uy.sha256,gRed:!1,g:["9"]});Hy("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Uy.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var C3e;try{C3e=lYe()}catch{C3e=void 0}Hy("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Uy.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",C3e]})});var yYe=_((F7n,mYe)=>{"use strict";d();p();var Mzt=aZ(),Ub=j2e(),fYe=zl();function jy(r){if(!(this instanceof jy))return new jy(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ub.toArray(r.entropy,r.entropyEnc||"hex"),t=Ub.toArray(r.nonce,r.nonceEnc||"hex"),n=Ub.toArray(r.pers,r.persEnc||"hex");fYe(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}mYe.exports=jy;jy.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};jy.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=Ub.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";d();p();var Nzt=co(),Bzt=Kl(),k3e=Bzt.assert;function Xc(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}gYe.exports=Xc;Xc.fromPublic=function(e,t,n){return t instanceof Xc?t:new Xc(e,{pub:t,pubEnc:n})};Xc.fromPrivate=function(e,t,n){return t instanceof Xc?t:new Xc(e,{priv:t,privEnc:n})};Xc.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Xc.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Xc.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Xc.prototype._importPrivate=function(e,t){this.priv=new Nzt(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Xc.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?k3e(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&k3e(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};Xc.prototype.derive=function(e){return e.validate()||k3e(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Xc.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Xc.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Xc.prototype.inspect=function(){return""}});var xYe=_((K7n,wYe)=>{"use strict";d();p();var vce=co(),S3e=Kl(),Dzt=S3e.assert;function wce(r,e){if(r instanceof wce)return r;this._importDER(r,e)||(Dzt(r.r&&r.s,"Signature without r or s"),this.r=new vce(r.r,16),this.s=new vce(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}wYe.exports=wce;function Lzt(){this.place=0}function A3e(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function vYe(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}wce.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=vYe(t),n=vYe(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];P3e(a,t.length),a=a.concat(t),a.push(2),P3e(a,n.length);var i=a.concat(n),s=[48];return P3e(s,i.length),s=s.concat(i),S3e.encode(s,e)}});var EYe=_((Y7n,IYe)=>{"use strict";d();p();var Hb=co(),_Ye=yYe(),Ozt=Kl(),R3e=bce(),qzt=Voe(),TYe=Ozt.assert,M3e=bYe(),xce=xYe();function $d(r){if(!(this instanceof $d))return new $d(r);typeof r=="string"&&(TYe(Object.prototype.hasOwnProperty.call(R3e,r),"Unknown curve "+r),r=R3e[r]),r instanceof R3e.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}IYe.exports=$d;$d.prototype.keyPair=function(e){return new M3e(this,e)};$d.prototype.keyFromPrivate=function(e,t){return M3e.fromPrivate(this,e,t)};$d.prototype.keyFromPublic=function(e,t){return M3e.fromPublic(this,e,t)};$d.prototype.genKeyPair=function(e){e||(e={});for(var t=new _Ye({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||qzt(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new Hb(2));;){var i=new Hb(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};$d.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};$d.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Hb(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new _Ye({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new Hb(1)),l=0;;l++){var h=a.k?a.k(l):new Hb(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),y=m.umod(this.n);if(y.cmpn(0)!==0){var I=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(I=I.umod(this.n),I.cmpn(0)!==0){var C=(f.getY().isOdd()?1:0)|(m.cmp(y)!==0?2:0);return a.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),C^=1),new xce({r:y,s:I,recoveryParam:C})}}}}}};$d.prototype.verify=function(e,t,n,a){e=this._truncateToN(new Hb(e,16)),n=this.keyFromPublic(n,a),t=new xce(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(i).umod(this.n),l;return this.curve._maxwellTrick?(l=this.g.jmulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.eqXToP(i)):(l=this.g.mulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.getX().umod(this.n).cmp(i)===0)};$d.prototype.recoverPubKey=function(r,e,t,n){TYe((3&t)===t,"The recovery param is more than two bits"),e=new xce(e,n);var a=this.n,i=new Hb(r),s=e.r,o=e.s,c=t&1,u=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var l=e.r.invm(a),h=a.sub(i).mul(l).umod(a),f=o.mul(l).umod(a);return this.g.mulAdd(h,s,f)};$d.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new xce(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var PYe=_((J7n,AYe)=>{"use strict";d();p();var iZ=Kl(),kYe=iZ.assert,CYe=iZ.parseBytes,G3=iZ.cachedProperty;function Lo(r,e){this.eddsa=r,this._secret=CYe(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=CYe(e.pub)}Lo.fromPublic=function(e,t){return t instanceof Lo?t:new Lo(e,{pub:t})};Lo.fromSecret=function(e,t){return t instanceof Lo?t:new Lo(e,{secret:t})};Lo.prototype.secret=function(){return this._secret};G3(Lo,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});G3(Lo,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});G3(Lo,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});G3(Lo,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});G3(Lo,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});G3(Lo,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Lo.prototype.sign=function(e){return kYe(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Lo.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};Lo.prototype.getSecret=function(e){return kYe(this._secret,"KeyPair is public only"),iZ.encode(this.secret(),e)};Lo.prototype.getPublic=function(e){return iZ.encode(this.pubBytes(),e)};AYe.exports=Lo});var RYe=_((eRn,SYe)=>{"use strict";d();p();var Fzt=co(),_ce=Kl(),Wzt=_ce.assert,Tce=_ce.cachedProperty,Uzt=_ce.parseBytes;function jb(r,e){this.eddsa=r,typeof e!="object"&&(e=Uzt(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),Wzt(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof Fzt&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Tce(jb,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Tce(jb,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Tce(jb,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Tce(jb,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});jb.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};jb.prototype.toHex=function(){return _ce.encode(this.toBytes(),"hex").toUpperCase()};SYe.exports=jb});var LYe=_((nRn,DYe)=>{"use strict";d();p();var Hzt=aZ(),jzt=bce(),V3=Kl(),zzt=V3.assert,NYe=V3.parseBytes,BYe=PYe(),MYe=RYe();function pl(r){if(zzt(r==="ed25519","only tested with ed25519 so far"),!(this instanceof pl))return new pl(r);r=jzt[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=Hzt.sha512}DYe.exports=pl;pl.prototype.sign=function(e,t){e=NYe(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};pl.prototype.verify=function(e,t,n){e=NYe(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),o=t.R().add(a.pub().mul(i));return o.eq(s)};pl.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";d();p();var zb=OYe;zb.version=OWe().version;zb.utils=Kl();zb.rand=Voe();zb.curve=m3e();zb.curves=bce();zb.ec=EYe();zb.eddsa=LYe()});var qYe=_(Y3=>{"use strict";d();p();var Kzt=Y3&&Y3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Y3,"__esModule",{value:!0});Y3.EC=void 0;var Gzt=Kzt(VJ()),Vzt=Gzt.default.ec;Y3.EC=Vzt});var FYe=_(Ice=>{"use strict";d();p();Object.defineProperty(Ice,"__esModule",{value:!0});Ice.version=void 0;Ice.version="signing-key/5.7.0"});var oZ=_(zy=>{"use strict";d();p();Object.defineProperty(zy,"__esModule",{value:!0});zy.computePublicKey=zy.recoverPublicKey=zy.SigningKey=void 0;var Yzt=qYe(),Ws=wr(),sZ=Aa(),$zt=Zt(),Qzt=FYe(),B3e=new $zt.Logger(Qzt.version),N3e=null;function Bf(){return N3e||(N3e=new Yzt.EC("secp256k1")),N3e}var WYe=function(){function r(e){(0,sZ.defineReadOnly)(this,"curve","secp256k1"),(0,sZ.defineReadOnly)(this,"privateKey",(0,Ws.hexlify)(e)),(0,Ws.hexDataLength)(this.privateKey)!==32&&B3e.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey));(0,sZ.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,sZ.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,sZ.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=Bf().keyFromPublic((0,Ws.arrayify)(this.publicKey)),n=Bf().keyFromPublic((0,Ws.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey)),n=(0,Ws.arrayify)(e);n.length!==32&&B3e.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,Ws.splitSignature)({recoveryParam:a.recoveryParam,r:(0,Ws.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,Ws.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey)),n=Bf().keyFromPublic((0,Ws.arrayify)(UYe(e)));return(0,Ws.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();zy.SigningKey=WYe;function Jzt(r,e){var t=(0,Ws.splitSignature)(e),n={r:(0,Ws.arrayify)(t.r),s:(0,Ws.arrayify)(t.s)};return"0x"+Bf().recoverPubKey((0,Ws.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}zy.recoverPublicKey=Jzt;function UYe(r,e){var t=(0,Ws.arrayify)(r);if(t.length===32){var n=new WYe(t);return e?"0x"+Bf().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,Ws.hexlify)(t):"0x"+Bf().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+Bf().keyFromPublic(t).getPublic(!0,"hex"):(0,Ws.hexlify)(t)}return B3e.throwArgumentError("invalid public or private key","key","[REDACTED]")}zy.computePublicKey=UYe});var HYe=_(Ece=>{"use strict";d();p();Object.defineProperty(Ece,"__esModule",{value:!0});Ece.version=void 0;Ece.version="transactions/5.7.0"});var l0=_(vs=>{"use strict";d();p();var Zzt=vs&&vs.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Xzt=vs&&vs.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),eKt=vs&&vs.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Zzt(e,r,t);return Xzt(e,r),e};Object.defineProperty(vs,"__esModule",{value:!0});vs.parse=vs.serialize=vs.accessListify=vs.recoverAddress=vs.computeAddress=vs.TransactionTypes=void 0;var cZ=Sd(),Kb=Ls(),Kr=wr(),tKt=ib(),$3=jl(),rKt=Aa(),Ky=eKt(ase()),jYe=oZ(),L3e=Zt(),nKt=HYe(),tu=new L3e.Logger(nKt.version),aKt;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(aKt=vs.TransactionTypes||(vs.TransactionTypes={}));function O3e(r){return r==="0x"?null:(0,cZ.getAddress)(r)}function eu(r){return r==="0x"?tKt.Zero:Kb.BigNumber.from(r)}var iKt=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],sKt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function zYe(r){var e=(0,jYe.computePublicKey)(r);return(0,cZ.getAddress)((0,Kr.hexDataSlice)((0,$3.keccak256)((0,Kr.hexDataSlice)(e,1)),12))}vs.computeAddress=zYe;function q3e(r,e){return zYe((0,jYe.recoverPublicKey)((0,Kr.arrayify)(r),e))}vs.recoverAddress=q3e;function Yl(r,e){var t=(0,Kr.stripZeros)(Kb.BigNumber.from(r).toHexString());return t.length>32&&tu.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function D3e(r,e){return{address:(0,cZ.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Kr.hexDataLength)(t)!==32&&tu.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function Cce(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&tu.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),D3e(t[0],t[1])):D3e(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return D3e(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}vs.accessListify=Cce;function KYe(r){return Cce(r).map(function(e){return[e.address,e.storageKeys]})}function GYe(r,e){if(r.gasPrice!=null){var t=Kb.BigNumber.from(r.gasPrice),n=Kb.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||tu.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[Yl(r.chainId||0,"chainId"),Yl(r.nonce||0,"nonce"),Yl(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Yl(r.maxFeePerGas||0,"maxFeePerGas"),Yl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,cZ.getAddress)(r.to):"0x",Yl(r.value||0,"value"),r.data||"0x",KYe(r.accessList||[])];if(e){var i=(0,Kr.splitSignature)(e);a.push(Yl(i.recoveryParam,"recoveryParam")),a.push((0,Kr.stripZeros)(i.r)),a.push((0,Kr.stripZeros)(i.s))}return(0,Kr.hexConcat)(["0x02",Ky.encode(a)])}function VYe(r,e){var t=[Yl(r.chainId||0,"chainId"),Yl(r.nonce||0,"nonce"),Yl(r.gasPrice||0,"gasPrice"),Yl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,cZ.getAddress)(r.to):"0x",Yl(r.value||0,"value"),r.data||"0x",KYe(r.accessList||[])];if(e){var n=(0,Kr.splitSignature)(e);t.push(Yl(n.recoveryParam,"recoveryParam")),t.push((0,Kr.stripZeros)(n.r)),t.push((0,Kr.stripZeros)(n.s))}return(0,Kr.hexConcat)(["0x01",Ky.encode(t)])}function oKt(r,e){(0,rKt.checkProperties)(r,sKt);var t=[];iKt.forEach(function(s){var o=r[s.name]||[],c={};s.numeric&&(c.hexPad="left"),o=(0,Kr.arrayify)((0,Kr.hexlify)(o,c)),s.length&&o.length!==s.length&&o.length>0&&tu.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o),s.maxLength&&(o=(0,Kr.stripZeros)(o),o.length>s.maxLength&&tu.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o)),t.push((0,Kr.hexlify)(o))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&tu.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Kr.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Kr.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return Ky.encode(t);var a=(0,Kr.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&tu.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&tu.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Kr.hexlify)(i)),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.r))),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.s))),Ky.encode(t)}function cKt(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&tu.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),oKt(r,e);switch(r.type){case 1:return VYe(r,e);case 2:return GYe(r,e);default:break}return tu.throwError("unsupported transaction type: "+r.type,L3e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}vs.serialize=cKt;function YYe(r,e,t){try{var n=eu(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{tu.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Kr.hexZeroPad)(e[1],32),r.s=(0,Kr.hexZeroPad)(e[2],32);try{var a=(0,$3.keccak256)(t(r));r.from=q3e(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function uKt(r){var e=Ky.decode(r.slice(1));e.length!==9&&e.length!==12&&tu.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Kr.hexlify)(r));var t=eu(e[2]),n=eu(e[3]),a={type:2,chainId:eu(e[0]).toNumber(),nonce:eu(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:eu(e[4]),to:O3e(e[5]),value:eu(e[6]),data:e[7],accessList:Cce(e[8])};return e.length===9||(a.hash=(0,$3.keccak256)(r),YYe(a,e.slice(9),GYe)),a}function lKt(r){var e=Ky.decode(r.slice(1));e.length!==8&&e.length!==11&&tu.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Kr.hexlify)(r));var t={type:1,chainId:eu(e[0]).toNumber(),nonce:eu(e[1]).toNumber(),gasPrice:eu(e[2]),gasLimit:eu(e[3]),to:O3e(e[4]),value:eu(e[5]),data:e[6],accessList:Cce(e[7])};return e.length===8||(t.hash=(0,$3.keccak256)(r),YYe(t,e.slice(8),VYe)),t}function dKt(r){var e=Ky.decode(r);e.length!==9&&e.length!==6&&tu.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:eu(e[0]).toNumber(),gasPrice:eu(e[1]),gasLimit:eu(e[2]),to:O3e(e[3]),value:eu(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=Kb.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Kr.hexZeroPad)(e[7],32),t.s=(0,Kr.hexZeroPad)(e[8],32),Kb.BigNumber.from(t.r).isZero()&&Kb.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,Kr.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,$3.keccak256)(Ky.encode(a));try{t.from=q3e(i,{r:(0,Kr.hexlify)(t.r),s:(0,Kr.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,$3.keccak256)(r)}return t.type=null,t}function pKt(r){var e=(0,Kr.arrayify)(r);if(e[0]>127)return dKt(e);switch(e[0]){case 1:return lKt(e);case 2:return uKt(e);default:break}return tu.throwError("unsupported transaction type: "+e[0],L3e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}vs.parse=pKt});var $Ye=_(kce=>{"use strict";d();p();Object.defineProperty(kce,"__esModule",{value:!0});kce.version=void 0;kce.version="contracts/5.7.0"});var n$e=_(ru=>{"use strict";d();p();var Sce=ru&&ru.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vy=ru&&ru.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Yy=ru&&ru.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]1)){u=u.substring(1);var h=l[0];try{i[u]==null&&(0,ht.defineReadOnly)(i,u,i[h])}catch{}i.functions[u]==null&&(0,ht.defineReadOnly)(i.functions,u,i.functions[h]),i.callStatic[u]==null&&(0,ht.defineReadOnly)(i.callStatic,u,i.callStatic[h]),i.populateTransaction[u]==null&&(0,ht.defineReadOnly)(i.populateTransaction,u,i.populateTransaction[h]),i.estimateGas[u]==null&&(0,ht.defineReadOnly)(i.estimateGas,u,i.estimateGas[h])}})}return r.getContractAddress=function(e){return(0,lZ.getContractAddress)(e)},r.getInterface=function(e){return Ace.Interface.isInterface(e)?e:new Ace.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&Wa.throwError("contract not deployed",yc.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||Wa.throwError("sending a transactions require a signer",yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,ht.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&Wa.throwError("cannot override "+a,yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new F3e.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,ht.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return Ace.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new xKt);if(e==="event")return this._normalizeRunningEvent(new dZ("event",null));if(e==="*")return this._normalizeRunningEvent(new ZYe(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new JYe(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new JYe(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new dZ(t$e(a),a))}return this._normalizeRunningEvent(new ZYe(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,ht.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||Wa.throwError("events require a provider or a signer with a provider",yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var o=a._wrapEvent(e,s,t);if(o.decodeError==null)try{var c=e.getEmit(o);a.emit.apply(a,hKt([e.filter],c,!1))}catch(u){o.decodeError=u.error}e.filter!=null&&a.emit("event",o),o.decodeError!=null&&a.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,ht.shallowCopy)(i.filter);return typeof t=="string"&&(0,Gb.isHexString)(t,32)?(n!=null&&Wa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(o){return o.map(function(c){return a._wrapEvent(i,c,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();ru.BaseContract=r$e;var W3e=function(r){Sce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(r$e);ru.Contract=W3e;var _Kt=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,Gb.isBytes)(t)?i=(0,Gb.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,Gb.isHexString)(i)||i.length%2)&&Wa.throwArgumentError("invalid bytecode","bytecode",t),n&&!F3e.Signer.isSigner(n)&&Wa.throwArgumentError("invalid signer","signer",n),(0,ht.defineReadOnly)(this,"bytecode",i),(0,ht.defineReadOnly)(this,"interface",(0,ht.getStatic)(a,"getInterface")(e)),(0,ht.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty($y,"__esModule",{value:!0});$y.Base58=$y.Base32=$y.BaseX=void 0;var a$e=wr(),Mce=Aa(),U3e=function(){function r(e){(0,Mce.defineReadOnly)(this,"alphabet",e),(0,Mce.defineReadOnly)(this,"base",e.length),(0,Mce.defineReadOnly)(this,"_alphabetMap",{}),(0,Mce.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var o="",c=0;t[c]===0&&c=0;--u)o+=this.alphabet[n[u]];return o},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var o=0;e[o]===this._leader&&o{"use strict";d();p();Object.defineProperty(pZ,"__esModule",{value:!0});pZ.SupportedAlgorithm=void 0;var EKt;(function(r){r.sha256="sha256",r.sha512="sha512"})(EKt=pZ.SupportedAlgorithm||(pZ.SupportedAlgorithm={}))});var i$e=_(Bce=>{"use strict";d();p();Object.defineProperty(Bce,"__esModule",{value:!0});Bce.version=void 0;Bce.version="sha2/5.7.0"});var o$e=_(Qd=>{"use strict";d();p();var CKt=Qd&&Qd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qd,"__esModule",{value:!0});Qd.computeHmac=Qd.sha512=Qd.sha256=Qd.ripemd160=void 0;var hZ=CKt(aZ()),fZ=wr(),kKt=H3e(),s$e=Zt(),AKt=i$e(),PKt=new s$e.Logger(AKt.version);function SKt(r){return"0x"+hZ.default.ripemd160().update((0,fZ.arrayify)(r)).digest("hex")}Qd.ripemd160=SKt;function RKt(r){return"0x"+hZ.default.sha256().update((0,fZ.arrayify)(r)).digest("hex")}Qd.sha256=RKt;function MKt(r){return"0x"+hZ.default.sha512().update((0,fZ.arrayify)(r)).digest("hex")}Qd.sha512=MKt;function NKt(r,e,t){return kKt.SupportedAlgorithm[r]||PKt.throwError("unsupported algorithm "+r,s$e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+hZ.default.hmac(hZ.default[r],(0,fZ.arrayify)(e)).update((0,fZ.arrayify)(t)).digest("hex")}Qd.computeHmac=NKt});var Vb=_(Jd=>{"use strict";d();p();Object.defineProperty(Jd,"__esModule",{value:!0});Jd.SupportedAlgorithm=Jd.sha512=Jd.sha256=Jd.ripemd160=Jd.computeHmac=void 0;var Dce=o$e();Object.defineProperty(Jd,"computeHmac",{enumerable:!0,get:function(){return Dce.computeHmac}});Object.defineProperty(Jd,"ripemd160",{enumerable:!0,get:function(){return Dce.ripemd160}});Object.defineProperty(Jd,"sha256",{enumerable:!0,get:function(){return Dce.sha256}});Object.defineProperty(Jd,"sha512",{enumerable:!0,get:function(){return Dce.sha512}});var BKt=H3e();Object.defineProperty(Jd,"SupportedAlgorithm",{enumerable:!0,get:function(){return BKt.SupportedAlgorithm}})});var u$e=_(Lce=>{"use strict";d();p();Object.defineProperty(Lce,"__esModule",{value:!0});Lce.pbkdf2=void 0;var Q3=wr(),c$e=Vb();function DKt(r,e,t,n,a){r=(0,Q3.arrayify)(r),e=(0,Q3.arrayify)(e);var i,s=1,o=new Uint8Array(n),c=new Uint8Array(e.length+4);c.set(e);for(var u,l,h=1;h<=s;h++){c[e.length]=h>>24&255,c[e.length+1]=h>>16&255,c[e.length+2]=h>>8&255,c[e.length+3]=h&255;var f=(0,Q3.arrayify)((0,c$e.computeHmac)(a,r,c));i||(i=f.length,l=new Uint8Array(i),s=Math.ceil(n/i),u=n-(s-1)*i),l.set(f);for(var m=1;m{"use strict";d();p();Object.defineProperty(Oce,"__esModule",{value:!0});Oce.pbkdf2=void 0;var LKt=u$e();Object.defineProperty(Oce,"pbkdf2",{enumerable:!0,get:function(){return LKt.pbkdf2}})});var l$e=_(Fce=>{"use strict";d();p();Object.defineProperty(Fce,"__esModule",{value:!0});Fce.version=void 0;Fce.version="wordlists/5.7.0"});var Df=_(Yb=>{"use strict";d();p();Object.defineProperty(Yb,"__esModule",{value:!0});Yb.Wordlist=Yb.logger=void 0;var OKt=!1,qKt=lb(),d$e=Aa(),FKt=Zt(),WKt=l$e();Yb.logger=new FKt.Logger(WKt.version);var UKt=function(){function r(e){var t=this.constructor;Yb.logger.checkAbstract(t,r),(0,d$e.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,qKt.id)(t.join(` `)+` -`)},r.register=function(e,t){if(t||(t=e.locale),nzt)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,g6e.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();Gb.Wordlist=ozt});var w6e=x(_3=>{"use strict";d();p();var czt=_3&&_3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_3,"__esModule",{value:!0});_3.langCz=void 0;var dY=Lf(),uzt="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",VC=null;function b6e(r){if(VC==null&&(VC=uzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),dY.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw VC=null,new Error("BIP39 Wordlist for en (English) FAILED")}var lzt=function(r){czt(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return b6e(this),VC[t]},e.prototype.getWordIndex=function(t){return b6e(this),VC.indexOf(t)},e}(dY.Wordlist),v6e=new lzt;_3.langCz=v6e;dY.Wordlist.register(v6e)});var T6e=x(x3=>{"use strict";d();p();var dzt=x3&&x3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x3,"__esModule",{value:!0});x3.langEn=void 0;var pY=Lf(),pzt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",$C=null;function _6e(r){if($C==null&&($C=pzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),pY.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw $C=null,new Error("BIP39 Wordlist for en (English) FAILED")}var hzt=function(r){dzt(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return _6e(this),$C[t]},e.prototype.getWordIndex=function(t){return _6e(this),$C.indexOf(t)},e}(pY.Wordlist),x6e=new hzt;x3.langEn=x6e;pY.Wordlist.register(x6e)});var A6e=x(T3=>{"use strict";d();p();var fzt=T3&&T3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(T3,"__esModule",{value:!0});T3.langEs=void 0;var pM=Hs(),hM=Lf(),mzt="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",C6e={},YC=null;function I6e(r){return hM.logger.checkNormalize(),(0,pM.toUtf8String)(Array.prototype.filter.call((0,pM.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function yzt(r){var e=[];return Array.prototype.forEach.call((0,pM.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,pM.toUtf8String)(e)}function E6e(r){if(YC==null&&(YC=mzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return yzt(e)}),YC.forEach(function(e,t){C6e[I6e(e)]=t}),hM.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw YC=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var gzt=function(r){fzt(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return E6e(this),YC[t]},e.prototype.getWordIndex=function(t){return E6e(this),C6e[I6e(t)]},e}(hM.Wordlist),k6e=new gzt;T3.langEs=k6e;hM.Wordlist.register(k6e)});var N6e=x(E3=>{"use strict";d();p();var bzt=E3&&E3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E3,"__esModule",{value:!0});E3.langFr=void 0;var fM=Hs(),mM=Lf(),vzt="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",JC=null,P6e={};function R6e(r){return mM.logger.checkNormalize(),(0,fM.toUtf8String)(Array.prototype.filter.call((0,fM.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function wzt(r){var e=[];return Array.prototype.forEach.call((0,fM.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,fM.toUtf8String)(e)}function S6e(r){if(JC==null&&(JC=vzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return wzt(e)}),JC.forEach(function(e,t){P6e[R6e(e)]=t}),mM.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw JC=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var _zt=function(r){bzt(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return S6e(this),JC[t]},e.prototype.getWordIndex=function(t){return S6e(this),P6e[R6e(t)]},e}(mM.Wordlist),M6e=new _zt;E3.langFr=M6e;mM.Wordlist.register(M6e)});var L6e=x(C3=>{"use strict";d();p();var xzt=C3&&C3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C3,"__esModule",{value:!0});C3.langJa=void 0;var Tzt=wr(),ep=Hs(),yM=Lf(),Ezt=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],Czt="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",Ql=null;function B6e(r){return(0,Tzt.hexlify)((0,ep.toUtf8Bytes)(r))}var Izt="0xe3818de38284e3818f",kzt="0xe3818de38283e3818f";function D6e(r){if(Ql!==null)return;Ql=[];var e={};e[(0,ep.toUtf8String)([227,130,154])]=!1,e[(0,ep.toUtf8String)([227,130,153])]=!1,e[(0,ep.toUtf8String)([227,130,133])]=(0,ep.toUtf8String)([227,130,134]),e[(0,ep.toUtf8String)([227,129,163])]=(0,ep.toUtf8String)([227,129,164]),e[(0,ep.toUtf8String)([227,130,131])]=(0,ep.toUtf8String)([227,130,132]),e[(0,ep.toUtf8String)([227,130,135])]=(0,ep.toUtf8String)([227,130,136]);function t(h){for(var f="",m=0;mf?1:0}for(var a=3;a<=9;a++)for(var i=Ezt[a-3],s=0;s{"use strict";d();p();var Szt=I3&&I3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(I3,"__esModule",{value:!0});I3.langKo=void 0;var Pzt=Hs(),hY=Lf(),Rzt=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],Mzt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function Nzt(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,Pzt.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var Vb=null;function F6e(r){if(Vb==null&&(Vb=[],Rzt.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";d();p();var Dzt=k3&&k3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(k3,"__esModule",{value:!0});k3.langIt=void 0;var fY=Lf(),Ozt="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",QC=null;function U6e(r){if(QC==null&&(QC=Ozt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),fY.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw QC=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var Lzt=function(r){Dzt(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return U6e(this),QC[t]},e.prototype.getWordIndex=function(t){return U6e(this),QC.indexOf(t)},e}(fY.Wordlist),H6e=new Lzt;k3.langIt=H6e;fY.Wordlist.register(H6e)});var V6e=x(Zy=>{"use strict";d();p();var Fzt=Zy&&Zy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.langZhTw=Zy.langZhCn=void 0;var qzt=Hs(),ZC=Lf(),mY="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function z6e(r){if(A3[r.locale]===null){A3[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=Hzt.indexOf(mY[t*3]),a=[228+(n>>2),128+yY.indexOf(mY[t*3+1]),128+yY.indexOf(mY[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=yY.indexOf(Wzt[e++])+(s==0?228:128);A3[r.locale].push((0,qzt.toUtf8String)(a))}if(ZC.Wordlist.check(r)!==Uzt[r.locale])throw A3[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var K6e=function(r){Fzt(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return z6e(this),A3[this.locale][t]},e.prototype.getWordIndex=function(t){return z6e(this),A3[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(ZC.Wordlist),gY=new K6e("cn");Zy.langZhCn=gY;ZC.Wordlist.register(gY);ZC.Wordlist.register(gY,"zh");var G6e=new K6e("tw");Zy.langZhTw=G6e;ZC.Wordlist.register(G6e)});var $6e=x(gM=>{"use strict";d();p();Object.defineProperty(gM,"__esModule",{value:!0});gM.wordlists=void 0;var jzt=w6e(),zzt=T6e(),Kzt=A6e(),Gzt=N6e(),Vzt=L6e(),$zt=W6e(),Yzt=j6e(),bY=V6e();gM.wordlists={cz:jzt.langCz,en:zzt.langEn,es:Kzt.langEs,fr:Gzt.langFr,it:Yzt.langIt,ja:Vzt.langJa,ko:$zt.langKo,zh:bY.langZhCn,zh_cn:bY.langZhCn,zh_tw:bY.langZhTw}});var vY=x(Xy=>{"use strict";d();p();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.wordlists=Xy.Wordlist=Xy.logger=void 0;var Y6e=Lf();Object.defineProperty(Xy,"logger",{enumerable:!0,get:function(){return Y6e.logger}});Object.defineProperty(Xy,"Wordlist",{enumerable:!0,get:function(){return Y6e.Wordlist}});var Jzt=$6e();Object.defineProperty(Xy,"wordlists",{enumerable:!0,get:function(){return Jzt.wordlists}})});var J6e=x(bM=>{"use strict";d();p();Object.defineProperty(bM,"__esModule",{value:!0});bM.version=void 0;bM.version="hdnode/5.7.0"});var wM=x(au=>{"use strict";d();p();Object.defineProperty(au,"__esModule",{value:!0});au.getAccountPath=au.isValidMnemonic=au.entropyToMnemonic=au.mnemonicToEntropy=au.mnemonicToSeed=au.HDNode=au.defaultPath=void 0;var eEe=iM(),Ua=wr(),tEe=Ws(),XC=Hs(),Qzt=lM(),nu=Aa(),Q6e=qC(),Ff=Kb(),Zzt=p0(),Z6e=vY(),Xzt=Zt(),eKt=J6e(),e4=new Xzt.Logger(eKt.version),tKt=tEe.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),rKt=(0,XC.toUtf8Bytes)("Bitcoin seed"),P3=2147483648;function rEe(r){return(1<=256)throw new Error("Depth too large!");return X6e((0,Ua.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,Ua.hexlify)(this.depth),this.parentFingerprint,(0,Ua.hexZeroPad)((0,Ua.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,Ua.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(S3,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~P3));var n=new Uint8Array(37);if(e&P3){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,Ua.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,Ua.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,Ua.arrayify)((0,Ff.computeHmac)(Ff.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32),c=null,u=null;if(this.privateKey)c=vM(tEe.BigNumber.from(s).add(this.privateKey).mod(tKt));else{var l=new Q6e.SigningKey((0,Ua.hexlify)(s));u=l._addPoint(this.publicKey)}var h=t,f=this.mnemonic;return f&&(h=Object.freeze({phrase:f.phrase,path:t,locale:f.locale||"en"})),new r(S3,c,u,this.fingerprint,vM(o),e,this.depth+1,h)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=P3)throw new Error("invalid path index - "+i);n=n._derive(P3+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=P3)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,Ua.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,Ua.arrayify)((0,Ff.computeHmac)(Ff.SupportedAlgorithm.sha512,rKt,n));return new r(S3,vM(a.slice(0,32)),null,"0x00000000",vM(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=wY(n),e=aEe(_Y(e,n),n),r._fromSeed(nEe(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=eEe.Base58.decode(e);(t.length!==82||X6e(t.slice(0,78))!==e)&&e4.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,Ua.hexlify)(t.slice(5,9)),i=parseInt((0,Ua.hexlify)(t.slice(9,13)).substring(2),16),s=(0,Ua.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,Ua.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(S3,null,(0,Ua.hexlify)(o),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new r(S3,(0,Ua.hexlify)(o.slice(1)),null,a,s,i,n,null)}return e4.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();au.HDNode=aKt;function nEe(r,e){e||(e="");var t=(0,XC.toUtf8Bytes)("mnemonic"+e,XC.UnicodeNormalizationForm.NFKD);return(0,Qzt.pbkdf2)((0,XC.toUtf8Bytes)(r,XC.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}au.mnemonicToSeed=nEe;function _Y(r,e){e=wY(e),e4.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,Ua.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var c=32*t.length/3,u=t.length/3,l=rEe(u),h=(0,Ua.arrayify)((0,Ff.sha256)(n.slice(0,c/8)))[0]&l;if(h!==(n[n.length-1]&l))throw new Error("invalid checksum");return(0,Ua.hexlify)(n.slice(0,c/8))}au.mnemonicToEntropy=_Y;function aEe(r,e){if(e=wY(e),r=(0,Ua.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&nKt(8-n)),n+=3);var i=r.length/4,s=(0,Ua.arrayify)((0,Ff.sha256)(r))[0]&rEe(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(o){return e.getWord(o)}))}au.entropyToMnemonic=aEe;function iKt(r,e){try{return _Y(r,e),!0}catch{}return!1}au.isValidMnemonic=iKt;function sKt(r){return(typeof r!="number"||r<0||r>=P3||r%1)&&e4.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}au.getAccountPath=sKt});var iEe=x(_M=>{"use strict";d();p();Object.defineProperty(_M,"__esModule",{value:!0});_M.version=void 0;_M.version="random/5.7.0"});var cEe=x(TM=>{"use strict";d();p();Object.defineProperty(TM,"__esModule",{value:!0});TM.randomBytes=void 0;var oKt=wr(),oEe=Zt(),cKt=iEe(),xY=new oEe.Logger(cKt.version);function uKt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var sEe=uKt(),xM=sEe.crypto||sEe.msCrypto;(!xM||!xM.getRandomValues)&&(xY.warn("WARNING: Missing strong random number source"),xM={getRandomValues:function(r){return xY.throwError("no secure random source avaialble",oEe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function lKt(r){(r<=0||r>1024||r%1||r!=r)&&xY.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return xM.getRandomValues(e),(0,oKt.arrayify)(e)}TM.randomBytes=lKt});var uEe=x(EM=>{"use strict";d();p();Object.defineProperty(EM,"__esModule",{value:!0});EM.shuffled=void 0;function dKt(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}EM.shuffled=dKt});var t4=x(R3=>{"use strict";d();p();Object.defineProperty(R3,"__esModule",{value:!0});R3.shuffled=R3.randomBytes=void 0;var pKt=cEe();Object.defineProperty(R3,"randomBytes",{enumerable:!0,get:function(){return pKt.randomBytes}});var hKt=uEe();Object.defineProperty(R3,"shuffled",{enumerable:!0,get:function(){return hKt.shuffled}})});var EY=x((TY,lEe)=>{"use strict";d();p();(function(r){function e(_){return parseInt(_)===_}function t(_){if(!e(_.length))return!1;for(var N=0;N<_.length;N++)if(!e(_[N])||_[N]<0||_[N]>255)return!1;return!0}function n(_,N){if(_.buffer&&ArrayBuffer.isView(_)&&_.name==="Uint8Array")return N&&(_.slice?_=_.slice():_=Array.prototype.slice.call(_)),_;if(Array.isArray(_)){if(!t(_))throw new Error("Array contains invalid value: "+_);return new Uint8Array(_)}if(e(_.length)&&t(_))return new Uint8Array(_);throw new Error("unsupported array-like object")}function a(_){return new Uint8Array(_)}function i(_,N,U,C,z){(C!=null||z!=null)&&(_.slice?_=_.slice(C,z):_=Array.prototype.slice.call(_,C,z)),N.set(_,U)}var s=function(){function _(U){var C=[],z=0;for(U=encodeURI(U);z191&&ee<224?(C.push(String.fromCharCode((ee&31)<<6|U[z+1]&63)),z+=2):(C.push(String.fromCharCode((ee&15)<<12|(U[z+1]&63)<<6|U[z+2]&63)),z+=3)}return C.join("")}return{toBytes:_,fromBytes:N}}(),o=function(){function _(C){for(var z=[],ee=0;ee>4]+N[j&15])}return z.join("")}return{toBytes:_,fromBytes:U}}(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],E=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],I=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],S=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],q=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],W=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],V=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],K=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function G(_){for(var N=[],U=0;U<_.length;U+=4)N.push(_[U]<<24|_[U+1]<<16|_[U+2]<<8|_[U+3]);return N}var J=function(_){if(!(this instanceof J))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:n(_,!0)}),this._prepare()};J.prototype._prepare=function(){var _=c[this.key.length];if(_==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var N=0;N<=_;N++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var U=(_+1)*4,C=this.key.length/4,z=G(this.key),ee,N=0;N>2,this._Ke[ee][N%4]=z[N],this._Kd[_-ee][N%4]=z[N];for(var j=0,X=C,ie;X>16&255]<<24^l[ie>>8&255]<<16^l[ie&255]<<8^l[ie>>24&255]^u[j]<<24,j+=1,C!=8)for(var N=1;N>8&255]<<8^l[ie>>16&255]<<16^l[ie>>24&255]<<24;for(var N=C/2+1;N>2,he=X%4,this._Ke[ue][he]=z[N],this._Kd[_-ue][he]=z[N++],X++}for(var ue=1;ue<_;ue++)for(var he=0;he<4;he++)ie=this._Kd[ue][he],this._Kd[ue][he]=W[ie>>24&255]^V[ie>>16&255]^K[ie>>8&255]^H[ie&255]},J.prototype.encrypt=function(_){if(_.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var N=this._Ke.length-1,U=[0,0,0,0],C=G(_),z=0;z<4;z++)C[z]^=this._Ke[0][z];for(var ee=1;ee>24&255]^m[C[(z+1)%4]>>16&255]^y[C[(z+2)%4]>>8&255]^E[C[(z+3)%4]&255]^this._Ke[ee][z];C=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Ke[N][z],j[4*z]=(l[C[z]>>24&255]^X>>24)&255,j[4*z+1]=(l[C[(z+1)%4]>>16&255]^X>>16)&255,j[4*z+2]=(l[C[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(l[C[(z+3)%4]&255]^X)&255;return j},J.prototype.decrypt=function(_){if(_.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var N=this._Kd.length-1,U=[0,0,0,0],C=G(_),z=0;z<4;z++)C[z]^=this._Kd[0][z];for(var ee=1;ee>24&255]^S[C[(z+3)%4]>>16&255]^L[C[(z+2)%4]>>8&255]^q[C[(z+1)%4]&255]^this._Kd[ee][z];C=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Kd[N][z],j[4*z]=(h[C[z]>>24&255]^X>>24)&255,j[4*z+1]=(h[C[(z+3)%4]>>16&255]^X>>16)&255,j[4*z+2]=(h[C[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(h[C[(z+1)%4]&255]^X)&255;return j};var F=function(_){if(!(this instanceof F))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new J(_)};F.prototype.encrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16)i(_,U,0,C,C+16),U=this._aes.encrypt(U),i(U,N,C);return N},F.prototype.decrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16)i(_,U,0,C,C+16),U=this._aes.decrypt(U),i(U,N,C);return N};var T=function(_,N){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!N)N=a(16);else if(N.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=n(N,!0),this._aes=new J(_)};T.prototype.encrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16){i(_,U,0,C,C+16);for(var z=0;z<16;z++)U[z]^=this._lastCipherblock[z];this._lastCipherblock=this._aes.encrypt(U),i(this._lastCipherblock,N,C)}return N},T.prototype.decrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16){i(_,U,0,C,C+16),U=this._aes.decrypt(U);for(var z=0;z<16;z++)N[C+z]=U[z]^this._lastCipherblock[z];i(_,this._lastCipherblock,0,C,C+16)}return N};var P=function(_,N,U){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!N)N=a(16);else if(N.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");U||(U=1),this.segmentSize=U,this._shiftRegister=n(N,!0),this._aes=new J(_)};P.prototype.encrypt=function(_){if(_.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var N=n(_,!0),U,C=0;C=0;--N)this._counter[N]=_%256,_=_>>8},v.prototype.setBytes=function(_){if(_=n(_,!0),_.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=_},v.prototype.increment=function(){for(var _=15;_>=0;_--)if(this._counter[_]===255)this._counter[_]=0;else{this._counter[_]++;break}};var k=function(_,N){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",N instanceof v||(N=new v(N)),this._counter=N,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new J(_)};k.prototype.encrypt=function(_){for(var N=n(_,!0),U=0;U16)throw new Error("PKCS#7 padding byte out of range");for(var U=_.length-N,C=0;C{"use strict";d();p();Object.defineProperty(CM,"__esModule",{value:!0});CM.version=void 0;CM.version="json-wallets/5.7.0"});var IY=x(tp=>{"use strict";d();p();Object.defineProperty(tp,"__esModule",{value:!0});tp.uuidV4=tp.searchPath=tp.getPassword=tp.zpad=tp.looseArrayify=void 0;var IM=wr(),dEe=Hs();function fKt(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,IM.arrayify)(r)}tp.looseArrayify=fKt;function mKt(r,e){for(r=String(r);r.length{"use strict";d();p();var vKt=qf&&qf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wKt=qf&&qf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qf,"__esModule",{value:!0});qf.decrypt=qf.CrowdsaleAccount=void 0;var pEe=wKt(EY()),_Kt=Md(),hEe=wr(),xKt=Kl(),TKt=lM(),EKt=Hs(),CKt=Aa(),IKt=Zt(),kKt=CY(),AKt=new IKt.Logger(kKt.version),kM=IY(),fEe=function(r){vKt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(CKt.Description);qf.CrowdsaleAccount=fEe;function SKt(r,e){var t=JSON.parse(r);e=(0,kM.getPassword)(e);var n=(0,_Kt.getAddress)((0,kM.searchPath)(t,"ethaddr")),a=(0,kM.looseArrayify)((0,kM.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&AKt.throwArgumentError("invalid encseed","json",r);for(var i=(0,hEe.arrayify)((0,TKt.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),o=a.slice(16),c=new pEe.default.ModeOfOperation.cbc(i,s),u=pEe.default.padding.pkcs7.strip((0,hEe.arrayify)(c.decrypt(o))),l="",h=0;h{"use strict";d();p();Object.defineProperty(e1,"__esModule",{value:!0});e1.getJsonWalletAddress=e1.isKeystoreWallet=e1.isCrowdsaleWallet=void 0;var yEe=Md();function gEe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}e1.isCrowdsaleWallet=gEe;function bEe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}e1.isKeystoreWallet=bEe;function PKt(r){if(gEe(r))try{return(0,yEe.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(bEe(r))try{return(0,yEe.getAddress)(JSON.parse(r).address)}catch{return null}return null}e1.getJsonWalletAddress=PKt});var _Ee=x((kY,wEe)=>{"use strict";d();p();(function(r){function t(m){let y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),E=1779033703,I=3144134277,S=1013904242,L=2773480762,q=1359893119,W=2600822924,V=528734635,K=1541459225,H=new Uint32Array(64);function G(k){let O=0,D=k.length;for(;D>=64;){let B=E,_=I,N=S,U=L,C=q,z=W,ee=V,j=K,X,ie,ue,he,ke;for(ie=0;ie<16;ie++)ue=O+ie*4,H[ie]=(k[ue]&255)<<24|(k[ue+1]&255)<<16|(k[ue+2]&255)<<8|k[ue+3]&255;for(ie=16;ie<64;ie++)X=H[ie-2],he=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=H[ie-15],ke=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,H[ie]=(he+H[ie-7]|0)+(ke+H[ie-16]|0)|0;for(ie=0;ie<64;ie++)he=(((C>>>6|C<<32-6)^(C>>>11|C<<32-11)^(C>>>25|C<<32-25))+(C&z^~C&ee)|0)+(j+(y[ie]+H[ie]|0)|0)|0,ke=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&_^B&N^_&N)|0,j=ee,ee=z,z=C,C=U+he|0,U=N,N=_,_=B,B=he+ke|0;E=E+B|0,I=I+_|0,S=S+N|0,L=L+U|0,q=q+C|0,W=W+z|0,V=V+ee|0,K=K+j|0,O+=64,D-=64}}G(m);let J,F=m.length%64,T=m.length/536870912|0,P=m.length<<3,A=F<56?56:120,v=m.slice(m.length-F,m.length);for(v.push(128),J=F+1;J>>24&255),v.push(T>>>16&255),v.push(T>>>8&255),v.push(T>>>0&255),v.push(P>>>24&255),v.push(P>>>16&255),v.push(P>>>8&255),v.push(P>>>0&255),G(v),[E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,I>>>24&255,I>>>16&255,I>>>8&255,I>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,q>>>24&255,q>>>16&255,q>>>8&255,q>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255]}function n(m,y,E){m=m.length<=64?m:t(m);let I=64+y.length+4,S=new Array(I),L=new Array(64),q,W=[];for(q=0;q<64;q++)S[q]=54;for(q=0;q=I-4;K--){if(S[K]++,S[K]<=255)return;S[K]=0}}for(;E>=32;)V(),W=W.concat(t(L.concat(t(S)))),E-=32;return E>0&&(V(),W=W.concat(t(L.concat(t(S))).slice(0,E))),W}function a(m,y,E,I,S){let L;for(c(m,(2*E-1)*16,S,0,16),L=0;L<2*E;L++)o(m,L*16,S,16),s(S,I),c(S,0,m,y+L*16,16);for(L=0;L>>32-y}function s(m,y){c(m,0,y,0,16);for(let E=8;E>0;E-=2)y[4]^=i(y[0]+y[12],7),y[8]^=i(y[4]+y[0],9),y[12]^=i(y[8]+y[4],13),y[0]^=i(y[12]+y[8],18),y[9]^=i(y[5]+y[1],7),y[13]^=i(y[9]+y[5],9),y[1]^=i(y[13]+y[9],13),y[5]^=i(y[1]+y[13],18),y[14]^=i(y[10]+y[6],7),y[2]^=i(y[14]+y[10],9),y[6]^=i(y[2]+y[14],13),y[10]^=i(y[6]+y[2],18),y[3]^=i(y[15]+y[11],7),y[7]^=i(y[3]+y[15],9),y[11]^=i(y[7]+y[3],13),y[15]^=i(y[11]+y[7],18),y[1]^=i(y[0]+y[3],7),y[2]^=i(y[1]+y[0],9),y[3]^=i(y[2]+y[1],13),y[0]^=i(y[3]+y[2],18),y[6]^=i(y[5]+y[4],7),y[7]^=i(y[6]+y[5],9),y[4]^=i(y[7]+y[6],13),y[5]^=i(y[4]+y[7],18),y[11]^=i(y[10]+y[9],7),y[8]^=i(y[11]+y[10],9),y[9]^=i(y[8]+y[11],13),y[10]^=i(y[9]+y[8],18),y[12]^=i(y[15]+y[14],7),y[13]^=i(y[12]+y[15],9),y[14]^=i(y[13]+y[12],13),y[15]^=i(y[14]+y[13],18);for(let E=0;E<16;++E)m[E]+=y[E]}function o(m,y,E,I){for(let S=0;S=256)return!1}return!0}function l(m,y){if(typeof m!="number"||m%1)throw new Error("invalid "+y);return m}function h(m,y,E,I,S,L,q){if(E=l(E,"N"),I=l(I,"r"),S=l(S,"p"),L=l(L,"dkLen"),E===0||(E&E-1)!==0)throw new Error("N must be power of 2");if(E>2147483647/128/I)throw new Error("N too large");if(I>2147483647/128/S)throw new Error("r too large");if(!u(m))throw new Error("password must be an array or buffer");if(m=Array.prototype.slice.call(m),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let W=n(m,y,S*128*I),V=new Uint32Array(S*32*I);for(let C=0;C_&&(C=_);for(let ee=0;ee_&&(C=_);for(let ee=0;ee>0&255),W.push(V[ee]>>8&255),W.push(V[ee]>>16&255),W.push(V[ee]>>24&255);let z=n(m,W,L);return q&&q(null,1,z),z}q&&N(U)};if(!q)for(;;){let C=U();if(C!=null)return C}U()}let f={scrypt:function(m,y,E,I,S,L,q){return new Promise(function(W,V){let K=0;q&&q(0),h(m,y,E,I,S,L,function(H,G,J){if(H)V(H);else if(J)q&&K!==1&&q(1),W(new Uint8Array(J));else if(q&&G!==K)return K=G,q(G)})})},syncScrypt:function(m,y,E,I,S,L){return new Uint8Array(h(m,y,E,I,S,L))}};typeof kY<"u"?wEe.exports=f:typeof define=="function"&&define.amd?define(f):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=f)})(kY)});var REe=x(qo=>{"use strict";d();p();var RKt=qo&&qo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),MKt=qo&&qo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},NKt=qo&&qo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Gs,"__esModule",{value:!0});Gs.decryptJsonWalletSync=Gs.decryptJsonWallet=Gs.getJsonWalletAddress=Gs.isKeystoreWallet=Gs.isCrowdsaleWallet=Gs.encryptKeystore=Gs.decryptKeystoreSync=Gs.decryptKeystore=Gs.decryptCrowdsale=void 0;var RY=mEe();Object.defineProperty(Gs,"decryptCrowdsale",{enumerable:!0,get:function(){return RY.decrypt}});var Yb=vEe();Object.defineProperty(Gs,"getJsonWalletAddress",{enumerable:!0,get:function(){return Yb.getJsonWalletAddress}});Object.defineProperty(Gs,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Yb.isCrowdsaleWallet}});Object.defineProperty(Gs,"isKeystoreWallet",{enumerable:!0,get:function(){return Yb.isKeystoreWallet}});var r4=REe();Object.defineProperty(Gs,"decryptKeystore",{enumerable:!0,get:function(){return r4.decrypt}});Object.defineProperty(Gs,"decryptKeystoreSync",{enumerable:!0,get:function(){return r4.decryptSync}});Object.defineProperty(Gs,"encryptKeystore",{enumerable:!0,get:function(){return r4.encrypt}});function HKt(r,e,t){if((0,Yb.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,RY.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,Yb.isKeystoreWallet)(r)?(0,r4.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}Gs.decryptJsonWallet=HKt;function jKt(r,e){if((0,Yb.isCrowdsaleWallet)(r))return(0,RY.decrypt)(r,e);if((0,Yb.isKeystoreWallet)(r))return(0,r4.decryptSync)(r,e);throw new Error("invalid JSON wallet")}Gs.decryptJsonWalletSync=jKt});var MEe=x(SM=>{"use strict";d();p();Object.defineProperty(SM,"__esModule",{value:!0});SM.version=void 0;SM.version="wallet/5.7.0"});var DY=x(ml=>{"use strict";d();p();var zKt=ml&&ml.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),NEe=ml&&ml.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},BEe=ml&&ml.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(PM,"__esModule",{value:!0});PM.version=void 0;PM.version="networks/5.7.1"});var OY=x(NM=>{"use strict";d();p();Object.defineProperty(NM,"__esModule",{value:!0});NM.getNetwork=void 0;var eGt=Zt(),tGt=FEe(),qEe=new eGt.Logger(tGt.version);function rGt(r){return r&&typeof r.renetwork=="function"}function h0(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var o=1;return n.quorum!=null?o=n.quorum:r==="homestead"&&(o=2),new t.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(t){return h0(t)},e}function MM(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return MM(r,n)},t}var WEe={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:h0("homestead")},UEe={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:h0("ropsten")},HEe={chainId:63,name:"classicMordor",_defaultProvider:MM("https://www.ethercluster.com/mordor","classicMordor")},RM={unspecified:{chainId:0,name:"unspecified"},homestead:WEe,mainnet:WEe,morden:{chainId:2,name:"morden"},ropsten:UEe,testnet:UEe,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:h0("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:h0("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:h0("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:h0("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:MM("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:HEe,classicTestnet:HEe,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:MM("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:h0("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:h0("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function nGt(r){if(r==null)return null;if(typeof r=="number"){for(var e in RM){var t=RM[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=RM[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=RM[r.name];if(!a)return typeof r.chainId!="number"&&qEe.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&qEe.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(rGt(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}NM.getNetwork=nGt});var jEe=x(BM=>{"use strict";d();p();Object.defineProperty(BM,"__esModule",{value:!0});BM.version=void 0;BM.version="web/5.7.1"});var zEe=x(r1=>{"use strict";d();p();var aGt=r1&&r1.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},iGt=r1&&r1.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var cGt=rp&&rp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},uGt=rp&&rp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;bh.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,o={},c=null,u={method:"GET"},l=!1,h=2*60*1e3;if(typeof r=="string")c=r;else if(typeof r=="object"){if((r==null||r.url==null)&&bh.throwArgumentError("missing URL","connection.url",r),c=r.url,typeof r.timeout=="number"&&r.timeout>0&&(h=r.timeout),r.headers)for(var f in r.headers)o[f.toLowerCase()]={key:f,value:String(r.headers[f])},["if-none-match","if-modified-since"].indexOf(f.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){c.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&bh.throwError("basic authentication requires a secure https url",f0.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:r.user,password:"[REDACTED]"});var m=r.user+":"+r.password;o.authorization={key:"Authorization",value:"Basic "+(0,KEe.encode)((0,i4.toUtf8Bytes)(m))}}r.skipFetchSetup!=null&&(u.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(u.fetchOptions=(0,DM.shallowCopy)(r.fetchOptions))}var y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),E=c?c.match(y):null;if(E)try{var I={statusCode:200,statusMessage:"OK",headers:{"content-type":E[1]||"text/plain"},body:E[2]?(0,KEe.decode)(E[3]):pGt(E[3])},S=I.body;return t&&(S=t(I.body,I)),Promise.resolve(S)}catch(V){bh.throwError("processing response error",f0.Logger.errors.SERVER_ERROR,{body:n1(E[1],E[2]),error:V,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));var L={};Object.keys(o).forEach(function(V){var K=o[V];L[K.key]=K.value}),u.headers=L;var q=function(){var V=null,K=new Promise(function(G,J){h&&(V=setTimeout(function(){V!=null&&(V=null,J(bh.makeError("timeout",f0.Logger.errors.TIMEOUT,{requestBody:n1(u.body,L["content-type"]),requestMethod:u.method,timeout:h,url:c})))},h))}),H=function(){V!=null&&(clearTimeout(V),V=null)};return{promise:K,cancel:H}}(),W=function(){return cGt(this,void 0,void 0,function(){var V,K,H,v,G,J,F,T,P,A,v,k;return uGt(this,function(O){switch(O.label){case 0:V=0,O.label=1;case 1:if(!(V=300)&&(q.cancel(),bh.throwError("bad response",f0.Logger.errors.SERVER_ERROR,{status:K.statusCode,headers:K.headers,body:n1(T,K.headers?K.headers["content-type"]:null),requestBody:n1(u.body,L["content-type"]),requestMethod:u.method,url:c})),!t)return[3,18];O.label=11;case 11:return O.trys.push([11,13,,18]),[4,t(T,K)];case 12:return P=O.sent(),q.cancel(),[2,P];case 13:return A=O.sent(),A.throttleRetry&&Vo){s()&&n(new Error("retry limit reached"));return}var h=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));he.ceiling&&(h=e.ceiling),setTimeout(u,h)}return null},function(l){s()&&n(l)})}u()})}rp.poll=fGt});var ZEe=x((A7n,QEe)=>{"use strict";d();p();var LM="qpzry9x8gf2tvdw0s3jn54khce6mua7l",LY={};for(s4=0;s4>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function YEe(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=B3(e)^n>>5}for(e=B3(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=YEe(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=B3(n)^s,a+=LM.charAt(s)}for(i=0;i<6;++i)n=B3(n);for(n^=1,i=0;i<6;++i){var o=n>>(5-i)*5&31;a+=LM.charAt(o)}return a}function JEe(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var o=YEe(i);if(typeof o=="string")return o;for(var c=[],u=0;u=s.length)&&c.push(h)}return o!==1?"Invalid checksum for "+r:{prefix:i,words:c}}function yGt(){var r=JEe.apply(null,arguments);if(typeof r=="object")return r}function gGt(r){var e=JEe.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function FM(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,o.push(a>>i&s);if(n)i>0&&o.push(a<=e)return"Excess padding";if(a<{"use strict";d();p();Object.defineProperty(qM,"__esModule",{value:!0});qM.version=void 0;qM.version="providers/5.7.2"});var a1=x(Hf=>{"use strict";d();p();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.showThrottleMessage=Hf.isCommunityResource=Hf.isCommunityResourcable=Hf.Formatter=void 0;var FY=Md(),m0=Ws(),Uf=wr(),xGt=nb(),TGt=Aa(),XEe=p0(),EGt=Zt(),CGt=gc(),o4=new EGt.Logger(CGt.version),IGt=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),o=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),l=this.type.bind(this),h=function(f){return e.data(f,!0)};return t.transaction={hash:o,type:l,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(o,null),blockNumber:r.allowNull(u,null),transactionIndex:r.allowNull(u,null),confirmations:r.allowNull(u,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:u,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(u),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(u),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(h),type:r.allowNull(u),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:n,topics:r.arrayOf(o),data:s,logIndex:u,blockHash:o},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:u,root:r.allowNull(c),gasUsed:a,logsBloom:r.allowNull(s),blockHash:o,transactionHash:o,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:r.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(u),type:l},t.block={hash:r.allowNull(o),parentHash:o,number:u,timestamp:u,nonce:r.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(o)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,TGt.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(o,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(u),blockHash:r.allowNull(o),transactionIndex:u,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(o),transactionHash:o,logIndex:u},t},r.prototype.accessList=function(e){return(0,XEe.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:m0.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:m0.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return m0.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,Uf.isHexString)(e))?e.toLowerCase():o4.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,FY.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,Uf.isHexString)(e,32))return null;var t=(0,FY.getAddress)((0,Uf.hexDataSlice)(e,12));return t===xGt.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,FY.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,Uf.isHexString)(e))return(0,Uf.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,Uf.hexDataLength)(n)!==32?o4.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=m0.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,Uf.isHexString)(e))throw new Error("invalid uint256");return(0,Uf.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:m0.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&m0.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,Uf.isHexString)(n)&&(n=m0.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,Uf.isHexString)(n)&&(n=m0.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,XEe.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=m0.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&o4.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):o4.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&o4.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();Hf.Formatter=IGt;function tCe(r){return r&&typeof r.isCommunityResource=="function"}Hf.isCommunityResourcable=tCe;function kGt(r){return tCe(r)&&r.isCommunityResource()}Hf.isCommunityResource=kGt;var eCe=!1;function AGt(){eCe||(eCe=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}Hf.showThrottleMessage=AGt});var d4=x(su=>{"use strict";d();p();var SGt=su&&su.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hr=su&&su.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},fr=su&&su.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[iCe(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return iCe(e)}).join("&")}function OGt(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function D3(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,ir.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+sCe(r);if(dCe.ForkEvent.isForkEvent(r))throw Rr.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+sCe(r.topics||[])}throw new Error("invalid event - "+r)}function c4(){return new Date().getTime()}function oCe(r){return new Promise(function(e){setTimeout(e,r)})}var LGt=["block","network","pending","poll"],pCe=function(){function r(e,t,n){(0,Is.defineReadOnly)(this,"tag",e),(0,Is.defineReadOnly)(this,"listener",t),(0,Is.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=OGt(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||LGt.indexOf(this.tag)>=0},r}();su.Event=pCe;var FGt={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function qY(r){return(0,ir.hexZeroPad)(iu.BigNumber.from(r).toHexString(),32)}function cCe(r){return HY.Base58.encode((0,ir.concat)([r,(0,ir.hexDataSlice)((0,rCe.sha256)((0,rCe.sha256)(r)),0,4)]))}var hCe=new RegExp("^(ipfs)://(.*)$","i"),uCe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),hCe,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function WM(r,e){try{return(0,jY.toUtf8String)(l4(r,e))}catch{}return null}function l4(r,e){if(r==="0x")return null;var t=iu.BigNumber.from((0,ir.hexDataSlice)(r,e,e+32)).toNumber(),n=iu.BigNumber.from((0,ir.hexDataSlice)(r,t,t+32)).toNumber();return(0,ir.hexDataSlice)(r,t+32,t+32+n)}function WY(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):Rr.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function lCe(r){var e=(0,ir.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function qGt(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function fCe(r){for(var e=[],t=0,n=0;n=1&&s<=75)return cCe((0,ir.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var c=parseInt(o[1],16);if(o[2].length===c*2&&c>=1&&c<=75)return cCe((0,ir.concat)([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){var u=a[1],l=a[0];if(l===0?u!==20&&u!==32&&(l=-1):l=-1,l>=0&&a.length===2+u&&u>=1&&u<=75){var h=nCe.default.toWords(a.slice(2));return h.unshift(l),nCe.default.encode(n.prefix,h)}}return null},r.prototype.getAddress=function(e){return hr(this,void 0,void 0,function(){var t,n,a,i;return fr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===MGt.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===Fr.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",qY(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&Rr.throwError("invalid or unsupported coin data",Fr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return hr(this,void 0,void 0,function(){var e,t,n,a,i,s,o,c,u,l,h,f,m,y,E,I,S,L,q,W,V,K,H,G,J;return fr(this,function(F){switch(F.label){case 0:e=[{type:"name",content:this.name}],F.label=1;case 1:return F.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=F.sent(),t==null)return[2,null];n=0,F.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,O3.fetchJson)({url:l,errorPassThrough:!0},h,function(E,I){return E.status=I.statusCode,E})]):[3,4];case 2:if(f=y.sent(),f.data)return[2,f.data];if(m=f.message||"unknown error",f.status>=400&&f.status<500)return[2,Rr.throwError("response not found during CCIP fetch: "+m,Fr.Logger.errors.SERVER_ERROR,{url:u,errorMessage:m})];o.push(m),y.label=3;case 3:return c++,[3,1];case 4:return[2,Rr.throwError("error encountered during CCIP fetch: "+o.map(function(E){return JSON.stringify(E)}).join(", "),Fr.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:o})]}})})},e.prototype._getInternalBlockNumber=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o,c=this;return fr(this,function(u){switch(u.label){case 0:return[4,this._ready()];case 1:if(u.sent(),!(t>0))return[3,7];u.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n];case 4:return a=u.sent(),c4()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=u.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=c4(),o=(0,Is.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(l){return null},function(l){return l})}).then(function(l){var h=l.blockNumber,f=l.networkError;if(f)throw c._internalBlockNumber===o&&(c._internalBlockNumber=null),f;var m=c4();return h=iu.BigNumber.from(h).toNumber(),h1e3)Rr.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",Rr.makeError("network block skew detected",Fr.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(u){if(u!=="block"){var l=o._emitted[u];l!=="pending"&&a-l>12&&delete o._emitted[u]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(u){switch(u.type){case"tx":{var l=u.hash,h=o.getTransactionReceipt(l).then(function(y){return!y||y.blockNumber==null||(o._emitted["t:"+l]=y.blockNumber,o.emit(l,y)),null}).catch(function(y){o.emit("error",y)});n.push(h);break}case"filter":{if(!u._inflight){u._inflight=!0,u._lastBlockNumber===-2&&(u._lastBlockNumber=a-1);var f=u.filter;f.fromBlock=u._lastBlockNumber+1,f.toBlock=a;var m=f.toBlock-o._maxFilterBlockRange;m>f.fromBlock&&(f.fromBlock=m),f.fromBlock<0&&(f.fromBlock=0);var h=o.getLogs(f).then(function(E){u._inflight=!1,E.length!==0&&E.forEach(function(I){I.blockNumber>u._lastBlockNumber&&(u._lastBlockNumber=I.blockNumber),o._emitted["b:"+I.blockHash]=I.blockNumber,o._emitted["t:"+I.transactionHash]=I.blockNumber,o.emit(f,I)})}).catch(function(E){o.emit("error",E),u._inflight=!1});n.push(h)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){o.emit("didPoll",t)}).catch(function(u){o.emit("error",u)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,Rr.throwError("provider does not support network detection",Fr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return hr(this,void 0,void 0,function(){var t,n,a;return fr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,oCe(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=Rr.makeError("underlying network changed",Fr.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=c4();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return hr(this,void 0,void 0,function(){return fr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return hr(this,void 0,void 0,function(){var s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=c.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(u,l){var h=[],f=!1,m=function(){return f?!0:(f=!0,h.forEach(function(q){q()}),!1)},y=function(q){q.confirmations0){var L=setTimeout(function(){m()||l(Rr.makeError("timeout exceeded",Fr.Logger.errors.TIMEOUT,{timeout:a}))},a);L.unref&&L.unref(),h.push(function(){clearTimeout(L)})}})]}})})},e.prototype.getBlockNumber=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return hr(this,void 0,void 0,function(){var t;return fr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,iu.BigNumber.from(t)]}catch(a){return[2,Rr.throwError("bad result from backend",Fr.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Is.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,iu.BigNumber.from(i)]}catch(o){return[2,Rr.throwError("bad result from backend",Fr.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Is.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,iu.BigNumber.from(i).toNumber()]}catch(o){return[2,Rr.throwError("bad result from backend",Fr.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getCode=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Is.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,ir.hexlify)(i)]}catch(o){return[2,Rr.throwError("bad result from backend",Fr.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s;return fr(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,Is.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(c){return(0,ir.hexValue)(c)})})];case 2:return i=o.sent(),[4,this.perform("getStorageAt",i)];case 3:s=o.sent();try{return[2,(0,ir.hexlify)(s)]}catch(c){return[2,Rr.throwError("bad result from backend",Fr.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:c})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,ir.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&Rr.throwError("Transaction hash mismatch from Provider.sendTransaction.",Fr.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(o,c){return hr(i,void 0,void 0,function(){var u,l;return fr(this,function(h){switch(h.label){case 0:return o==null&&(o=1),c==null&&(c=0),u=void 0,o!==0&&a!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,o,c,u)];case 1:return l=h.sent(),l==null&&o===0?[2,null]:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&Rr.throwError("transaction failed",Fr.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),[2,l])}})})},s},e.prototype.sendTransaction=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o;return fr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,Promise.resolve(t).then(function(u){return(0,ir.hexlify)(u)})];case 2:return n=c.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=c.sent(),c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=c.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw o=c.sent(),o.transaction=a,o.transactionHash=a.hash,o;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return n=c.sent(),a={},["from","to"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?o._getAddress(l):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?iu.BigNumber.from(l):null}))}),["type"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?(0,ir.hexlify)(l):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,Is.resolveProperties)(a)];case 2:return[2,s.apply(i,[c.sent()])]}})})},e.prototype._getFilter=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s=this;return fr(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(c){t[c]!=null&&(n[c]=t[c])}),["fromBlock","toBlock"].forEach(function(c){t[c]!=null&&(n[c]=s._getBlockTag(t[c]))}),i=(a=this.formatter).filter,[4,(0,Is.resolveProperties)(n)];case 2:return[2,i.apply(a,[o.sent()])]}})})},e.prototype._call=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f,m,y,E,I,S,L,q,W;return fr(this,function(V){switch(V.label){case 0:return a>=DGt&&Rr.throwError("CCIP read exceeded maximum redirections",Fr.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=V.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,ir.hexDataLength)(s)%32===4))return[3,5];V.label=2;case 2:for(V.trys.push([2,4,,5]),o=(0,ir.hexDataSlice)(s,4),c=(0,ir.hexDataSlice)(o,0,32),iu.BigNumber.from(c).eq(i)||Rr.throwError("CCIP Read sender did not match",Fr.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),u=[],l=iu.BigNumber.from((0,ir.hexDataSlice)(o,32,64)).toNumber(),h=iu.BigNumber.from((0,ir.hexDataSlice)(o,l,l+32)).toNumber(),f=(0,ir.hexDataSlice)(o,l+32),m=0;mthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];h=null,f=0,S.label=2;case 2:return f0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new pCe(D3(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";d();p();var VY=np&&np.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),y0=np&&np.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},g0=np&&np.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Vs.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",mo.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function gCe(r){return new Promise(function(e){setTimeout(e,r)})}function VGt(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function p4(r){return r&&r.toLowerCase()}var GY={},$Y=function(r){VY(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==GY)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,ks.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,ks.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,ks.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,ks.defineReadOnly)(i,"_index",a),(0,ks.defineReadOnly)(i,"_address",null)):Vs.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return Vs.throwError("cannot alter JSON-RPC Signer connection",mo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new $Gt(GY,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&Vs.throwError("unknown account #"+t._index,mo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,ks.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,ks.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return y0(n,void 0,void 0,function(){var o;return g0(this,function(c){switch(c.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return o=c.sent(),o==null&&Vs.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,o]}})})})),(0,ks.resolveProperties)({tx:(0,ks.resolveProperties)(t),sender:a}).then(function(s){var o=s.tx,c=s.sender;o.from!=null?o.from.toLowerCase()!==c&&Vs.throwArgumentError("from address mismatch","transaction",t):o.from=c;var u=n.provider.constructor.hexlifyTransaction(o,{from:!0});return n.provider.send("eth_sendTransaction",[u]).then(function(l){return l},function(l){return typeof l.message=="string"&&l.message.match(/user denied/i)&&Vs.throwError("user rejected transaction",mo.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),vCe("sendTransaction",l,u)})})},e.prototype.signTransaction=function(t){return Vs.throwError("signing transactions is unsupported",mo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return y0(this,void 0,void 0,function(){var n,a,i,s=this;return g0(this,function(o){switch(o.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=o.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,(0,bCe.poll)(function(){return y0(s,void 0,void 0,function(){var c;return g0(this,function(u){switch(u.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return c=u.sent(),c===null?[2,void 0]:[2,this.provider._wrapTransaction(c,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,o.sent()];case 5:throw i=o.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return y0(this,void 0,void 0,function(){var n,a,i;return g0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,yCe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,L3.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&Vs.throwError("user rejected signing",mo.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return y0(this,void 0,void 0,function(){var n,a,i;return g0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,yCe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,L3.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&Vs.throwError("user rejected signing",mo.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return y0(this,void 0,void 0,function(){var i,s,o,c=this;return g0(this,function(u){switch(u.label){case 0:return[4,mCe._TypedDataEncoder.resolveNames(t,n,a,function(l){return c.provider.resolveName(l)})];case 1:return i=u.sent(),[4,this.getAddress()];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(mCe._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,u.sent()];case 5:throw o=u.sent(),typeof o.message=="string"&&o.message.match(/user denied/i)&&Vs.throwError("user rejected signing",mo.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),o;case 6:return[2]}})})},e.prototype.unlock=function(t){return y0(this,void 0,void 0,function(){var n,a;return g0(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(HGt.Signer);np.JsonRpcSigner=$Y;var $Gt=function(r){VY(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}($Y),YGt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},JGt=function(r){VY(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,o){setTimeout(function(){a.detectNetwork().then(function(c){s(c)},function(c){o(c)})},0)})),a=r.call(this,i)||this,t||(t=(0,ks.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,ks.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,ks.defineReadOnly)(a,"connection",Object.freeze((0,ks.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return y0(this,void 0,void 0,function(){var t,n,a,i;return g0(this,function(s){switch(s.label){case 0:return[4,gCe(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,ks.getStatic)(this.constructor,"getNetwork");try{return[2,i(KY.BigNumber.from(t).toNumber())]}catch(o){return[2,Vs.throwError("could not detect network",mo.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})]}}return[2,Vs.throwError("could not detect network",mo.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new $Y(GY,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,ks.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var o=(0,bCe.fetchJson)(this.connection,JSON.stringify(i),VGt).then(function(c){return a.emit("debug",{action:"response",request:i,response:c,provider:a}),c},function(c){throw a.emit("debug",{action:"response",error:c,request:i,provider:a}),c});return s&&(this._cache[t]=o,setTimeout(function(){a._cache[t]=null},0)),o},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[p4(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[p4(n.address),n.blockTag]];case"getCode":return["eth_getCode",[p4(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[p4(n.address),(0,L3.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,ks.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,ks.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=p4(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return y0(this,void 0,void 0,function(){var a,i,s,o;return g0(this,function(c){switch(c.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&KY.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=c.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,ks.shallowCopy)(n),n.transaction=(0,ks.shallowCopy)(a),delete n.transaction.type),c.label=2;case 2:s=this.prepareRequest(t,n),s==null&&Vs.throwError(t+" not implemented",mo.Logger.errors.NOT_IMPLEMENTED,{operation:t}),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,c.sent()];case 5:return o=c.sent(),[2,vCe(t,o,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var o=Promise.resolve();return s.forEach(function(c){t._emitted["t:"+c.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(c).then(function(u){return t.emit("pending",u),null})})}),o.then(function(){return gCe(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,ks.shallowCopy)(YGt);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,ks.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(t[o]!=null){var c=(0,L3.hexValue)(KY.BigNumber.from(t[o]));o==="gasLimit"&&(o="gas"),s[o]=c}}),["from","to","data"].forEach(function(o){t[o]!=null&&(s[o]=(0,L3.hexlify)(t[o]))}),t.accessList&&(s.accessList=(0,jGt.accessListify)(t.accessList)),s},e}(KGt.BaseProvider);np.JsonRpcProvider=JGt});var xCe=x(q3=>{"use strict";d();p();Object.defineProperty(q3,"__esModule",{value:!0});q3.WebSocket=void 0;var wCe=Zt(),QGt=gc(),UM=null;q3.WebSocket=UM;try{if(q3.WebSocket=UM=WebSocket,UM==null)throw new Error("inject please")}catch{_Ce=new wCe.Logger(QGt.version),q3.WebSocket=UM=function(){_Ce.throwError("WebSockets not supported in this environment",wCe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var _Ce});var jM=x(jf=>{"use strict";d();p();var ZGt=jf&&jf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),YY=jf&&jf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},JY=jf&&jf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var ECe=ap&&ap.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),aVt=ap&&ap.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},iVt=ap&&ap.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var kCe=o1&&o1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(o1,"__esModule",{value:!0});o1.AlchemyProvider=o1.AlchemyWebSocketProvider=void 0;var uVt=Aa(),lVt=a1(),dVt=jM(),pVt=Zt(),hVt=gc(),ICe=new pVt.Logger(hVt.version),fVt=s1(),KM="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",ACe=function(r){kCe(e,r);function e(t,n){var a=this,i=new SCe(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,uVt.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===KM},e}(dVt.WebSocketProvider);o1.AlchemyWebSocketProvider=ACe;var SCe=function(r){kCe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new ACe(t,n)},e.getApiKey=function(t){return t==null?KM:(t&&typeof t!="string"&&ICe.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:ICe.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===KM&&(0,lVt.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===KM},e}(fVt.UrlJsonRpcProvider);o1.AlchemyProvider=SCe});var RCe=x(U3=>{"use strict";d();p();var mVt=U3&&U3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(U3,"__esModule",{value:!0});U3.AnkrProvider=void 0;var yVt=a1(),gVt=s1(),bVt=Zt(),vVt=gc(),wVt=new bVt.Logger(vVt.version),GM="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function _Vt(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return wVt.throwArgumentError("unsupported network","name",r)}var xVt=function(r){mVt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===GM},e.getApiKey=function(t){return t??GM},e.getUrl=function(t,n){n==null&&(n=GM);var a={allowGzip:!0,url:"https://"+_Vt(t.name)+n,throttleCallback:function(i,s){return n.apiKey===GM&&(0,yVt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(gVt.UrlJsonRpcProvider);U3.AnkrProvider=xVt});var NCe=x(zf=>{"use strict";d();p();var TVt=zf&&zf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),EVt=zf&&zf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},CVt=zf&&zf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var PVt=Gf&&Gf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),VM=Gf&&Gf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},$M=Gf&&Gf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&(e.throttleRetry=!0),e}return r.result}function DCe(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function OCe(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function ZY(r,e,t){if(r==="call"&&e.code===Kf.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,YM.isHexString)(a))return a;c1.throwError("missing revert data in call exception",Kf.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===Kf.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&c1.throwError("insufficient funds for intrinsic transaction cost",Kf.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&c1.throwError("nonce has already been used",Kf.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&c1.throwError("replacement fee too low",Kf.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&c1.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Kf.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var LVt=function(r){PVt(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,QY.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,QY.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return c1.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,o){var c=n[o];return c!=null&&(s+="&"+o+"="+c),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return VM(this,void 0,void 0,function(){var i,s,o,c,u,l,h=this;return $M(this,function(f){switch(f.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,o=t==="proxy"?DCe:OVt,this.emit("debug",{action:"request",request:i,provider:this}),c={url:i,throttleSlotInterval:1e3,throttleCallback:function(m,y){return h.isCommunityResource()&&(0,NVt.showThrottleMessage)(),Promise.resolve(!0)}},u=null,s&&(c.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(s).map(function(m){return m+"="+s[m]}).join("&")),[4,(0,MVt.fetchJson)(c,u,o||DCe)];case 1:return l=f.sent(),this.emit("debug",{action:"response",request:i,response:(0,QY.deepCopy)(l),provider:this}),[2,l]}})})},e.prototype.detectNetwork=function(){return VM(this,void 0,void 0,function(){return $M(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return VM(this,void 0,void 0,function(){var a,s,i,s,o,c,u,l,h,f,m,y,E;return $M(this,function(I){switch(I.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(S){return ZY("sendTransaction",S,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=BCe(n.transaction),s.module="proxy",s.action="eth_call",I.label=12;case 12:return I.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,I.sent()];case 14:return i=I.sent(),[2,ZY("call",i,n.transaction)];case 15:s=BCe(n.transaction),s.module="proxy",s.action="eth_estimateGas",I.label=16;case 16:return I.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,I.sent()];case 18:return o=I.sent(),[2,ZY("estimateGas",o,n.transaction)];case 19:return c={action:"getLogs"},n.filter.fromBlock&&(c.fromBlock=OCe(n.filter.fromBlock)),n.filter.toBlock&&(c.toBlock=OCe(n.filter.toBlock)),n.filter.address&&(c.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&c1.throwError("unsupported topic count",Kf.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(u=n.filter.topics[0],(typeof u!="string"||u.length!==66)&&c1.throwError("unsupported topic format",Kf.Logger.errors.UNSUPPORTED_OPERATION,{topic0:u}),c.topic0=u)),[4,this.fetch("logs",c)];case 20:l=I.sent(),h={},f=0,I.label=21;case 21:return f{"use strict";d();p();var FVt=$f&&$f.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ZM=$f&&$f.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},g4=$f&&$f.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]e?null:(n+a)/2}function j3(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(WVt.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return j3(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=j3(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var KVt=1;function UCe(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var GVt=[u1.Logger.errors.CALL_EXCEPTION,u1.Logger.errors.INSUFFICIENT_FUNDS,u1.Logger.errors.NONCE_EXPIRED,u1.Logger.errors.REPLACEMENT_UNDERPRICED,u1.Logger.errors.UNPREDICTABLE_GAS_LIMIT],VVt=["address","args","errorArgs","errorSignature","method","transaction"];function QM(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function $Vt(r,e){return function(t){var n={};t.forEach(function(o){var c=r(o.result);n[c]||(n[c]={count:0,result:o.result}),n[c].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function YVt(r,e,t){var n=j3;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(o){return o.result}),s=WCe(a.map(function(o){return o.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return WCe(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,Vf.shallowCopy)(a),a.confirmations=-1,j3(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,Vf.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,Vf.shallowCopy)(i),i.confirmations=-1,i}),j3(a))}:n=function(a){return a==null?null:j3(a)};break;default:throw new Error("unknown method: "+e)}return $Vt(n,r.quorum)}function y4(r,e){return ZM(this,void 0,void 0,function(){var t;return g4(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,HVt.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function JVt(r,e,t,n){return ZM(this,void 0,void 0,function(){var a,i,s;return g4(this,function(o){switch(o.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,5];case 4:a=o.sent(),o.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,8];case 7:a=o.sent(),o.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,11];case 10:a=o.sent(),o.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,14];case 13:a=o.sent(),o.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,H3.isHexString)(s.fromBlock)||s.toBlock&&(0,H3.isHexString)(s.toBlock)?[4,y4(r,e)]:[3,18];case 17:a=o.sent(),o.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,Zb.throwError("unknown method error",u1.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var QVt=function(r){FVt(e,r);function e(t,n){var a=this;t.length===0&&Zb.throwArgumentError("missing providers","providers",t);var i=t.map(function(c,u){if(qVt.Provider.isProvider(c)){var l=(0,FCe.isCommunityResource)(c)?2e3:750,h=1;return Object.freeze({provider:c,weight:1,stallTimeout:l,priority:h})}var f=(0,Vf.shallowCopy)(c);f.priority==null&&(f.priority=1),f.stallTimeout==null&&(f.stallTimeout=(0,FCe.isCommunityResource)(c)?2e3:750),f.weight==null&&(f.weight=1);var m=f.weight;return(m%1||m>512||m<1)&&Zb.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+u+"].weight",m),Object.freeze(f)}),s=i.reduce(function(c,u){return c+u.weight},0);n==null?n=s/2:n>s&&Zb.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var o=qCe(i.map(function(c){return c.provider.network}));return o==null&&(o=new Promise(function(c,u){setTimeout(function(){a.detectNetwork().then(c,u)},0)})),a=r.call(this,o)||this,(0,Vf.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,Vf.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return ZM(this,void 0,void 0,function(){var t;return g4(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,qCe(t)]}})})},e.prototype.perform=function(t,n){return ZM(this,void 0,void 0,function(){var a,i,s,o,c,u,l,h,f,m,y,E=this;return g4(this,function(I){switch(I.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(S){return S.provider.sendTransaction(n.signedTransaction).then(function(L){return L.hash},function(L){return L})}))];case 1:for(a=I.sent(),i=0;i=m.quorum?(K=o(V),K!==void 0?(c.forEach(function(J){J.staller&&J.staller.cancel(),J.cancelled=!0}),[2,{value:K}]):h?[3,4]:[4,UCe(100).getPromise()]):[3,5];case 3:G.sent(),G.label=4;case 4:h=!1,G.label=5;case 5:return H=c.reduce(function(J,F){if(!F.done||F.error==null)return J;var T=F.error.code;return GVt.indexOf(T)>=0&&(J[T]||(J[T]={error:F.error,weight:0}),J[T].weight+=F.weight),J},{}),Object.keys(H).forEach(function(J){var F=H[J];if(!(F.weight{"use strict";d();p();Object.defineProperty(XM,"__esModule",{value:!0});XM.IpcProvider=void 0;var ZVt=null;XM.IpcProvider=ZVt});var VCe=x(l1=>{"use strict";d();p();var zCe=l1&&l1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(l1,"__esModule",{value:!0});l1.InfuraProvider=l1.InfuraWebSocketProvider=void 0;var XY=Aa(),XVt=jM(),e$t=a1(),eJ=Zt(),t$t=gc(),eN=new eJ.Logger(t$t.version),r$t=s1(),b4="84842078b09946638c03157f83405213",KCe=function(r){zCe(e,r);function e(t,n){var a=this,i=new GCe(t,n),s=i.connection;s.password&&eN.throwError("INFURA WebSocket project secrets unsupported",eJ.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var o=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,o,t)||this,(0,XY.defineReadOnly)(a,"apiKey",i.projectId),(0,XY.defineReadOnly)(a,"projectId",i.projectId),(0,XY.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===b4},e}(XVt.WebSocketProvider);l1.InfuraWebSocketProvider=KCe;var GCe=function(r){zCe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new KCe(t,n)},e.getApiKey=function(t){var n={apiKey:b4,projectId:b4,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(eN.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),eN.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:eN.throwError("unsupported network",eJ.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,o){return n.projectId===b4&&(0,e$t.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===b4},e}(r$t.UrlJsonRpcProvider);l1.InfuraProvider=GCe});var $Ce=x(z3=>{"use strict";d();p();var n$t=z3&&z3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(z3,"__esModule",{value:!0});z3.JsonRpcBatchProvider=void 0;var a$t=Aa(),i$t=Qb(),s$t=F3(),o$t=function(r){n$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},o=new Promise(function(c,u){s.resolve=c,s.reject=u});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var c=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var u=c.map(function(l){return l.request});return a.emit("debug",{action:"requestBatch",request:(0,a$t.deepCopy)(u),provider:a}),(0,i$t.fetchJson)(a.connection,JSON.stringify(u)).then(function(l){a.emit("debug",{action:"response",request:u,response:l,provider:a}),c.forEach(function(h,f){var m=l[f];if(m.error){var y=new Error(m.error.message);y.code=m.error.code,y.data=m.error.data,h.reject(y)}else h.resolve(m.result)})},function(l){a.emit("debug",{action:"response",error:l,request:u,provider:a}),c.forEach(function(h){h.reject(l)})})},10)),o},e}(s$t.JsonRpcProvider);z3.JsonRpcBatchProvider=o$t});var YCe=x(K3=>{"use strict";d();p();var c$t=K3&&K3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K3,"__esModule",{value:!0});K3.NodesmithProvider=void 0;var u$t=s1(),l$t=Zt(),d$t=gc(),tJ=new l$t.Logger(d$t.version),p$t="ETHERS_JS_SHARED",h$t=function(r){c$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&tJ.throwArgumentError("invalid apiKey","apiKey",t),t||p$t},e.getUrl=function(t,n){tJ.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:tJ.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(u$t.UrlJsonRpcProvider);K3.NodesmithProvider=h$t});var XCe=x(G3=>{"use strict";d();p();var f$t=G3&&G3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G3,"__esModule",{value:!0});G3.PocketProvider=void 0;var ZCe=Zt(),m$t=gc(),JCe=new ZCe.Logger(m$t.version),y$t=s1(),QCe="62e1ad51b37b8e00394bda3b",g$t=function(r){f$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=QCe:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:JCe.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:JCe.throwError("unsupported network",ZCe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===QCe},e}(y$t.UrlJsonRpcProvider);G3.PocketProvider=g$t});var r4e=x(V3=>{"use strict";d();p();var b$t=V3&&V3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(V3,"__esModule",{value:!0});V3.Web3Provider=void 0;var tN=Aa(),v$t=Zt(),w$t=gc(),e4e=new v$t.Logger(w$t.version),_$t=F3(),x$t=1;function t4e(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:x$t++,jsonrpc:"2.0"};return new Promise(function(o,c){i.emit("debug",{action:"request",fetcher:t,request:(0,tN.deepCopy)(s),provider:i}),e(s,function(u,l){if(u)return i.emit("debug",{action:"response",fetcher:t,error:u,request:s,provider:i}),c(u);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:l,provider:i}),l.error){var h=new Error(l.error.message);return h.code=l.error.code,h.data=l.error.data,c(h)}o(l.result)})})}}function T$t(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,tN.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var E$t=function(r){b$t(e,r);function e(t,n){var a=this;t==null&&e4e.throwArgumentError("missing provider","provider",t);var i=null,s=null,o=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),o=t,t.request?(i===""&&(i="eip-1193:"),s=T$t(t)):t.sendAsync?s=t4e(t,t.sendAsync.bind(t)):t.send?s=t4e(t,t.send.bind(t)):e4e.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,tN.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,tN.defineReadOnly)(a,"provider",o),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(_$t.JsonRpcProvider);V3.Web3Provider=E$t});var aJ=x(ft=>{"use strict";d();p();Object.defineProperty(ft,"__esModule",{value:!0});ft.Formatter=ft.showThrottleMessage=ft.isCommunityResourcable=ft.isCommunityResource=ft.getNetwork=ft.getDefaultProvider=ft.JsonRpcSigner=ft.IpcProvider=ft.WebSocketProvider=ft.Web3Provider=ft.StaticJsonRpcProvider=ft.PocketProvider=ft.NodesmithProvider=ft.JsonRpcBatchProvider=ft.JsonRpcProvider=ft.InfuraWebSocketProvider=ft.InfuraProvider=ft.EtherscanProvider=ft.CloudflareProvider=ft.AnkrProvider=ft.AlchemyWebSocketProvider=ft.AlchemyProvider=ft.FallbackProvider=ft.UrlJsonRpcProvider=ft.Resolver=ft.BaseProvider=ft.Provider=void 0;var C$t=R5();Object.defineProperty(ft,"Provider",{enumerable:!0,get:function(){return C$t.Provider}});var a4e=OY();Object.defineProperty(ft,"getNetwork",{enumerable:!0,get:function(){return a4e.getNetwork}});var i4e=d4();Object.defineProperty(ft,"BaseProvider",{enumerable:!0,get:function(){return i4e.BaseProvider}});Object.defineProperty(ft,"Resolver",{enumerable:!0,get:function(){return i4e.Resolver}});var rJ=PCe();Object.defineProperty(ft,"AlchemyProvider",{enumerable:!0,get:function(){return rJ.AlchemyProvider}});Object.defineProperty(ft,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return rJ.AlchemyWebSocketProvider}});var s4e=RCe();Object.defineProperty(ft,"AnkrProvider",{enumerable:!0,get:function(){return s4e.AnkrProvider}});var o4e=NCe();Object.defineProperty(ft,"CloudflareProvider",{enumerable:!0,get:function(){return o4e.CloudflareProvider}});var c4e=LCe();Object.defineProperty(ft,"EtherscanProvider",{enumerable:!0,get:function(){return c4e.EtherscanProvider}});var u4e=HCe();Object.defineProperty(ft,"FallbackProvider",{enumerable:!0,get:function(){return u4e.FallbackProvider}});var l4e=jCe();Object.defineProperty(ft,"IpcProvider",{enumerable:!0,get:function(){return l4e.IpcProvider}});var nJ=VCe();Object.defineProperty(ft,"InfuraProvider",{enumerable:!0,get:function(){return nJ.InfuraProvider}});Object.defineProperty(ft,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return nJ.InfuraWebSocketProvider}});var rN=F3();Object.defineProperty(ft,"JsonRpcProvider",{enumerable:!0,get:function(){return rN.JsonRpcProvider}});Object.defineProperty(ft,"JsonRpcSigner",{enumerable:!0,get:function(){return rN.JsonRpcSigner}});var I$t=$Ce();Object.defineProperty(ft,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return I$t.JsonRpcBatchProvider}});var d4e=YCe();Object.defineProperty(ft,"NodesmithProvider",{enumerable:!0,get:function(){return d4e.NodesmithProvider}});var p4e=XCe();Object.defineProperty(ft,"PocketProvider",{enumerable:!0,get:function(){return p4e.PocketProvider}});var h4e=s1();Object.defineProperty(ft,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return h4e.StaticJsonRpcProvider}});Object.defineProperty(ft,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return h4e.UrlJsonRpcProvider}});var f4e=r4e();Object.defineProperty(ft,"Web3Provider",{enumerable:!0,get:function(){return f4e.Web3Provider}});var m4e=jM();Object.defineProperty(ft,"WebSocketProvider",{enumerable:!0,get:function(){return m4e.WebSocketProvider}});var nN=a1();Object.defineProperty(ft,"Formatter",{enumerable:!0,get:function(){return nN.Formatter}});Object.defineProperty(ft,"isCommunityResourcable",{enumerable:!0,get:function(){return nN.isCommunityResourcable}});Object.defineProperty(ft,"isCommunityResource",{enumerable:!0,get:function(){return nN.isCommunityResource}});Object.defineProperty(ft,"showThrottleMessage",{enumerable:!0,get:function(){return nN.showThrottleMessage}});var y4e=Zt(),k$t=gc(),n4e=new y4e.Logger(k$t.version);function A$t(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new rN.JsonRpcProvider(r);case"ws":case"wss":return new m4e.WebSocketProvider(r);default:n4e.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,a4e.getNetwork)(r);return(!n||!n._defaultProvider)&&n4e.throwError("unsupported getDefaultProvider network",y4e.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:u4e.FallbackProvider,AlchemyProvider:rJ.AlchemyProvider,AnkrProvider:s4e.AnkrProvider,CloudflareProvider:o4e.CloudflareProvider,EtherscanProvider:c4e.EtherscanProvider,InfuraProvider:nJ.InfuraProvider,JsonRpcProvider:rN.JsonRpcProvider,NodesmithProvider:d4e.NodesmithProvider,PocketProvider:p4e.PocketProvider,Web3Provider:f4e.Web3Provider,IpcProvider:l4e.IpcProvider},e)}ft.getDefaultProvider=A$t});var g4e=x(aN=>{"use strict";d();p();Object.defineProperty(aN,"__esModule",{value:!0});aN.version=void 0;aN.version="solidity/5.7.0"});var v4e=x(d1=>{"use strict";d();p();Object.defineProperty(d1,"__esModule",{value:!0});d1.sha256=d1.keccak256=d1.pack=void 0;var S$t=Ws(),vh=wr(),P$t=Kl(),R$t=Kb(),M$t=Hs(),N$t=new RegExp("^bytes([0-9]+)$"),B$t=new RegExp("^(u?int)([0-9]*)$"),D$t=new RegExp("^(.*)\\[([0-9]*)\\]$"),O$t="0000000000000000000000000000000000000000000000000000000000000000",L$t=Zt(),F$t=g4e(),$3=new L$t.Logger(F$t.version);function b4e(r,e,t){switch(r){case"address":return t?(0,vh.zeroPad)(e,32):(0,vh.arrayify)(e);case"string":return(0,M$t.toUtf8Bytes)(e);case"bytes":return(0,vh.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,vh.zeroPad)(e,32):(0,vh.arrayify)(e)}var n=r.match(B$t);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&$3.throwArgumentError("invalid number type","type",r),t&&(a=256),e=S$t.BigNumber.from(e).toTwos(a),(0,vh.zeroPad)(e,a/8)}if(n=r.match(N$t),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&$3.throwArgumentError("invalid bytes type","type",r),(0,vh.arrayify)(e).byteLength!==a&&$3.throwArgumentError("invalid value for "+r,"value",e),t?(0,vh.arrayify)((e+O$t).substring(0,66)):e}if(n=r.match(D$t),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&$3.throwArgumentError("invalid array length for "+r,"value",e);var o=[];return e.forEach(function(c){o.push(b4e(i,c,!0))}),(0,vh.concat)(o)}return $3.throwArgumentError("invalid type","type",r)}function iJ(r,e){r.length!=e.length&&$3.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(b4e(n,e[a]))}),(0,vh.hexlify)((0,vh.concat)(t))}d1.pack=iJ;function q$t(r,e){return(0,P$t.keccak256)(iJ(r,e))}d1.keccak256=q$t;function W$t(r,e){return(0,R$t.sha256)(iJ(r,e))}d1.sha256=W$t});var w4e=x(iN=>{"use strict";d();p();Object.defineProperty(iN,"__esModule",{value:!0});iN.version=void 0;iN.version="units/5.7.0"});var I4e=x(ip=>{"use strict";d();p();Object.defineProperty(ip,"__esModule",{value:!0});ip.parseEther=ip.formatEther=ip.parseUnits=ip.formatUnits=ip.commify=void 0;var _4e=Ws(),U$t=Zt(),H$t=w4e(),x4e=new U$t.Logger(H$t.version),T4e=["wei","kwei","mwei","gwei","szabo","finney","ether"];function j$t(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&x4e.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}ip.commify=j$t;function E4e(r,e){if(typeof e=="string"){var t=T4e.indexOf(e);t!==-1&&(e=3*t)}return(0,_4e.formatFixed)(r,e??18)}ip.formatUnits=E4e;function C4e(r,e){if(typeof r!="string"&&x4e.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=T4e.indexOf(e);t!==-1&&(e=3*t)}return(0,_4e.parseFixed)(r,e??18)}ip.parseUnits=C4e;function z$t(r){return E4e(r,18)}ip.formatEther=z$t;function K$t(r){return C4e(r,18)}ip.parseEther=K$t});var Xr=x(le=>{"use strict";d();p();var G$t=le&&le.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),V$t=le&&le.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),k4e=le&&le.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&G$t(e,r,t);return V$t(e,r),e};Object.defineProperty(le,"__esModule",{value:!0});le.formatBytes32String=le.Utf8ErrorFuncs=le.toUtf8String=le.toUtf8CodePoints=le.toUtf8Bytes=le._toEscapedUtf8String=le.nameprep=le.hexDataSlice=le.hexDataLength=le.hexZeroPad=le.hexValue=le.hexStripZeros=le.hexConcat=le.isHexString=le.hexlify=le.base64=le.base58=le.TransactionDescription=le.LogDescription=le.Interface=le.SigningKey=le.HDNode=le.defaultPath=le.isBytesLike=le.isBytes=le.zeroPad=le.stripZeros=le.concat=le.arrayify=le.shallowCopy=le.resolveProperties=le.getStatic=le.defineReadOnly=le.deepCopy=le.checkProperties=le.poll=le.fetchJson=le._fetchData=le.RLP=le.Logger=le.checkResultErrors=le.FormatTypes=le.ParamType=le.FunctionFragment=le.EventFragment=le.ErrorFragment=le.ConstructorFragment=le.Fragment=le.defaultAbiCoder=le.AbiCoder=void 0;le.Indexed=le.Utf8ErrorReason=le.UnicodeNormalizationForm=le.SupportedAlgorithm=le.mnemonicToSeed=le.isValidMnemonic=le.entropyToMnemonic=le.mnemonicToEntropy=le.getAccountPath=le.verifyTypedData=le.verifyMessage=le.recoverPublicKey=le.computePublicKey=le.recoverAddress=le.computeAddress=le.getJsonWalletAddress=le.TransactionTypes=le.serializeTransaction=le.parseTransaction=le.accessListify=le.joinSignature=le.splitSignature=le.soliditySha256=le.solidityKeccak256=le.solidityPack=le.shuffled=le.randomBytes=le.sha512=le.sha256=le.ripemd160=le.keccak256=le.computeHmac=le.commify=le.parseUnits=le.formatUnits=le.parseEther=le.formatEther=le.isAddress=le.getCreate2Address=le.getContractAddress=le.getIcapAddress=le.getAddress=le._TypedDataEncoder=le.id=le.isValidName=le.namehash=le.hashMessage=le.dnsEncode=le.parseBytes32String=void 0;var yl=cG();Object.defineProperty(le,"AbiCoder",{enumerable:!0,get:function(){return yl.AbiCoder}});Object.defineProperty(le,"checkResultErrors",{enumerable:!0,get:function(){return yl.checkResultErrors}});Object.defineProperty(le,"ConstructorFragment",{enumerable:!0,get:function(){return yl.ConstructorFragment}});Object.defineProperty(le,"defaultAbiCoder",{enumerable:!0,get:function(){return yl.defaultAbiCoder}});Object.defineProperty(le,"ErrorFragment",{enumerable:!0,get:function(){return yl.ErrorFragment}});Object.defineProperty(le,"EventFragment",{enumerable:!0,get:function(){return yl.EventFragment}});Object.defineProperty(le,"FormatTypes",{enumerable:!0,get:function(){return yl.FormatTypes}});Object.defineProperty(le,"Fragment",{enumerable:!0,get:function(){return yl.Fragment}});Object.defineProperty(le,"FunctionFragment",{enumerable:!0,get:function(){return yl.FunctionFragment}});Object.defineProperty(le,"Indexed",{enumerable:!0,get:function(){return yl.Indexed}});Object.defineProperty(le,"Interface",{enumerable:!0,get:function(){return yl.Interface}});Object.defineProperty(le,"LogDescription",{enumerable:!0,get:function(){return yl.LogDescription}});Object.defineProperty(le,"ParamType",{enumerable:!0,get:function(){return yl.ParamType}});Object.defineProperty(le,"TransactionDescription",{enumerable:!0,get:function(){return yl.TransactionDescription}});var v4=Md();Object.defineProperty(le,"getAddress",{enumerable:!0,get:function(){return v4.getAddress}});Object.defineProperty(le,"getCreate2Address",{enumerable:!0,get:function(){return v4.getCreate2Address}});Object.defineProperty(le,"getContractAddress",{enumerable:!0,get:function(){return v4.getContractAddress}});Object.defineProperty(le,"getIcapAddress",{enumerable:!0,get:function(){return v4.getIcapAddress}});Object.defineProperty(le,"isAddress",{enumerable:!0,get:function(){return v4.isAddress}});var $$t=k4e(OE());le.base64=$$t;var Y$t=iM();Object.defineProperty(le,"base58",{enumerable:!0,get:function(){return Y$t.Base58}});var ou=wr();Object.defineProperty(le,"arrayify",{enumerable:!0,get:function(){return ou.arrayify}});Object.defineProperty(le,"concat",{enumerable:!0,get:function(){return ou.concat}});Object.defineProperty(le,"hexConcat",{enumerable:!0,get:function(){return ou.hexConcat}});Object.defineProperty(le,"hexDataSlice",{enumerable:!0,get:function(){return ou.hexDataSlice}});Object.defineProperty(le,"hexDataLength",{enumerable:!0,get:function(){return ou.hexDataLength}});Object.defineProperty(le,"hexlify",{enumerable:!0,get:function(){return ou.hexlify}});Object.defineProperty(le,"hexStripZeros",{enumerable:!0,get:function(){return ou.hexStripZeros}});Object.defineProperty(le,"hexValue",{enumerable:!0,get:function(){return ou.hexValue}});Object.defineProperty(le,"hexZeroPad",{enumerable:!0,get:function(){return ou.hexZeroPad}});Object.defineProperty(le,"isBytes",{enumerable:!0,get:function(){return ou.isBytes}});Object.defineProperty(le,"isBytesLike",{enumerable:!0,get:function(){return ou.isBytesLike}});Object.defineProperty(le,"isHexString",{enumerable:!0,get:function(){return ou.isHexString}});Object.defineProperty(le,"joinSignature",{enumerable:!0,get:function(){return ou.joinSignature}});Object.defineProperty(le,"zeroPad",{enumerable:!0,get:function(){return ou.zeroPad}});Object.defineProperty(le,"splitSignature",{enumerable:!0,get:function(){return ou.splitSignature}});Object.defineProperty(le,"stripZeros",{enumerable:!0,get:function(){return ou.stripZeros}});var Y3=cb();Object.defineProperty(le,"_TypedDataEncoder",{enumerable:!0,get:function(){return Y3._TypedDataEncoder}});Object.defineProperty(le,"dnsEncode",{enumerable:!0,get:function(){return Y3.dnsEncode}});Object.defineProperty(le,"hashMessage",{enumerable:!0,get:function(){return Y3.hashMessage}});Object.defineProperty(le,"id",{enumerable:!0,get:function(){return Y3.id}});Object.defineProperty(le,"isValidName",{enumerable:!0,get:function(){return Y3.isValidName}});Object.defineProperty(le,"namehash",{enumerable:!0,get:function(){return Y3.namehash}});var Xb=wM();Object.defineProperty(le,"defaultPath",{enumerable:!0,get:function(){return Xb.defaultPath}});Object.defineProperty(le,"entropyToMnemonic",{enumerable:!0,get:function(){return Xb.entropyToMnemonic}});Object.defineProperty(le,"getAccountPath",{enumerable:!0,get:function(){return Xb.getAccountPath}});Object.defineProperty(le,"HDNode",{enumerable:!0,get:function(){return Xb.HDNode}});Object.defineProperty(le,"isValidMnemonic",{enumerable:!0,get:function(){return Xb.isValidMnemonic}});Object.defineProperty(le,"mnemonicToEntropy",{enumerable:!0,get:function(){return Xb.mnemonicToEntropy}});Object.defineProperty(le,"mnemonicToSeed",{enumerable:!0,get:function(){return Xb.mnemonicToSeed}});var J$t=MY();Object.defineProperty(le,"getJsonWalletAddress",{enumerable:!0,get:function(){return J$t.getJsonWalletAddress}});var Q$t=Kl();Object.defineProperty(le,"keccak256",{enumerable:!0,get:function(){return Q$t.keccak256}});var Z$t=Zt();Object.defineProperty(le,"Logger",{enumerable:!0,get:function(){return Z$t.Logger}});var sN=Kb();Object.defineProperty(le,"computeHmac",{enumerable:!0,get:function(){return sN.computeHmac}});Object.defineProperty(le,"ripemd160",{enumerable:!0,get:function(){return sN.ripemd160}});Object.defineProperty(le,"sha256",{enumerable:!0,get:function(){return sN.sha256}});Object.defineProperty(le,"sha512",{enumerable:!0,get:function(){return sN.sha512}});var sJ=v4e();Object.defineProperty(le,"solidityKeccak256",{enumerable:!0,get:function(){return sJ.keccak256}});Object.defineProperty(le,"solidityPack",{enumerable:!0,get:function(){return sJ.pack}});Object.defineProperty(le,"soliditySha256",{enumerable:!0,get:function(){return sJ.sha256}});var A4e=t4();Object.defineProperty(le,"randomBytes",{enumerable:!0,get:function(){return A4e.randomBytes}});Object.defineProperty(le,"shuffled",{enumerable:!0,get:function(){return A4e.shuffled}});var J3=Aa();Object.defineProperty(le,"checkProperties",{enumerable:!0,get:function(){return J3.checkProperties}});Object.defineProperty(le,"deepCopy",{enumerable:!0,get:function(){return J3.deepCopy}});Object.defineProperty(le,"defineReadOnly",{enumerable:!0,get:function(){return J3.defineReadOnly}});Object.defineProperty(le,"getStatic",{enumerable:!0,get:function(){return J3.getStatic}});Object.defineProperty(le,"resolveProperties",{enumerable:!0,get:function(){return J3.resolveProperties}});Object.defineProperty(le,"shallowCopy",{enumerable:!0,get:function(){return J3.shallowCopy}});var X$t=k4e(P7());le.RLP=X$t;var oJ=qC();Object.defineProperty(le,"computePublicKey",{enumerable:!0,get:function(){return oJ.computePublicKey}});Object.defineProperty(le,"recoverPublicKey",{enumerable:!0,get:function(){return oJ.recoverPublicKey}});Object.defineProperty(le,"SigningKey",{enumerable:!0,get:function(){return oJ.SigningKey}});var p1=Hs();Object.defineProperty(le,"formatBytes32String",{enumerable:!0,get:function(){return p1.formatBytes32String}});Object.defineProperty(le,"nameprep",{enumerable:!0,get:function(){return p1.nameprep}});Object.defineProperty(le,"parseBytes32String",{enumerable:!0,get:function(){return p1.parseBytes32String}});Object.defineProperty(le,"_toEscapedUtf8String",{enumerable:!0,get:function(){return p1._toEscapedUtf8String}});Object.defineProperty(le,"toUtf8Bytes",{enumerable:!0,get:function(){return p1.toUtf8Bytes}});Object.defineProperty(le,"toUtf8CodePoints",{enumerable:!0,get:function(){return p1.toUtf8CodePoints}});Object.defineProperty(le,"toUtf8String",{enumerable:!0,get:function(){return p1.toUtf8String}});Object.defineProperty(le,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return p1.Utf8ErrorFuncs}});var Q3=p0();Object.defineProperty(le,"accessListify",{enumerable:!0,get:function(){return Q3.accessListify}});Object.defineProperty(le,"computeAddress",{enumerable:!0,get:function(){return Q3.computeAddress}});Object.defineProperty(le,"parseTransaction",{enumerable:!0,get:function(){return Q3.parse}});Object.defineProperty(le,"recoverAddress",{enumerable:!0,get:function(){return Q3.recoverAddress}});Object.defineProperty(le,"serializeTransaction",{enumerable:!0,get:function(){return Q3.serialize}});Object.defineProperty(le,"TransactionTypes",{enumerable:!0,get:function(){return Q3.TransactionTypes}});var w4=I4e();Object.defineProperty(le,"commify",{enumerable:!0,get:function(){return w4.commify}});Object.defineProperty(le,"formatEther",{enumerable:!0,get:function(){return w4.formatEther}});Object.defineProperty(le,"parseEther",{enumerable:!0,get:function(){return w4.parseEther}});Object.defineProperty(le,"formatUnits",{enumerable:!0,get:function(){return w4.formatUnits}});Object.defineProperty(le,"parseUnits",{enumerable:!0,get:function(){return w4.parseUnits}});var S4e=DY();Object.defineProperty(le,"verifyMessage",{enumerable:!0,get:function(){return S4e.verifyMessage}});Object.defineProperty(le,"verifyTypedData",{enumerable:!0,get:function(){return S4e.verifyTypedData}});var cJ=Qb();Object.defineProperty(le,"_fetchData",{enumerable:!0,get:function(){return cJ._fetchData}});Object.defineProperty(le,"fetchJson",{enumerable:!0,get:function(){return cJ.fetchJson}});Object.defineProperty(le,"poll",{enumerable:!0,get:function(){return cJ.poll}});var eYt=Kb();Object.defineProperty(le,"SupportedAlgorithm",{enumerable:!0,get:function(){return eYt.SupportedAlgorithm}});var P4e=Hs();Object.defineProperty(le,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return P4e.UnicodeNormalizationForm}});Object.defineProperty(le,"Utf8ErrorReason",{enumerable:!0,get:function(){return P4e.Utf8ErrorReason}})});var R4e=x(oN=>{"use strict";d();p();Object.defineProperty(oN,"__esModule",{value:!0});oN.version=void 0;oN.version="ethers/5.7.2"});var dJ=x(br=>{"use strict";d();p();var tYt=br&&br.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),rYt=br&&br.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),uJ=br&&br.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&tYt(e,r,t);return rYt(e,r),e};Object.defineProperty(br,"__esModule",{value:!0});br.Wordlist=br.version=br.wordlists=br.utils=br.logger=br.errors=br.constants=br.FixedNumber=br.BigNumber=br.ContractFactory=br.Contract=br.BaseContract=br.providers=br.getDefaultProvider=br.VoidSigner=br.Wallet=br.Signer=void 0;var lJ=u6e();Object.defineProperty(br,"BaseContract",{enumerable:!0,get:function(){return lJ.BaseContract}});Object.defineProperty(br,"Contract",{enumerable:!0,get:function(){return lJ.Contract}});Object.defineProperty(br,"ContractFactory",{enumerable:!0,get:function(){return lJ.ContractFactory}});var M4e=Ws();Object.defineProperty(br,"BigNumber",{enumerable:!0,get:function(){return M4e.BigNumber}});Object.defineProperty(br,"FixedNumber",{enumerable:!0,get:function(){return M4e.FixedNumber}});var N4e=qE();Object.defineProperty(br,"Signer",{enumerable:!0,get:function(){return N4e.Signer}});Object.defineProperty(br,"VoidSigner",{enumerable:!0,get:function(){return N4e.VoidSigner}});var nYt=DY();Object.defineProperty(br,"Wallet",{enumerable:!0,get:function(){return nYt.Wallet}});var aYt=uJ(nb());br.constants=aYt;var iYt=uJ(aJ());br.providers=iYt;var sYt=aJ();Object.defineProperty(br,"getDefaultProvider",{enumerable:!0,get:function(){return sYt.getDefaultProvider}});var B4e=vY();Object.defineProperty(br,"Wordlist",{enumerable:!0,get:function(){return B4e.Wordlist}});Object.defineProperty(br,"wordlists",{enumerable:!0,get:function(){return B4e.wordlists}});var oYt=uJ(Xr());br.utils=oYt;var D4e=Zt();Object.defineProperty(br,"errors",{enumerable:!0,get:function(){return D4e.ErrorCode}});var O4e=R4e();Object.defineProperty(br,"version",{enumerable:!0,get:function(){return O4e.version}});var cYt=new D4e.Logger(O4e.version);br.logger=cYt});var je=x(mr=>{"use strict";d();p();var uYt=mr&&mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),lYt=mr&&mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),dYt=mr&&mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&uYt(e,r,t);return lYt(e,r),e};Object.defineProperty(mr,"__esModule",{value:!0});mr.Wordlist=mr.version=mr.wordlists=mr.utils=mr.logger=mr.errors=mr.constants=mr.FixedNumber=mr.BigNumber=mr.ContractFactory=mr.Contract=mr.BaseContract=mr.providers=mr.getDefaultProvider=mr.VoidSigner=mr.Wallet=mr.Signer=mr.ethers=void 0;var L4e=dYt(dJ());mr.ethers=L4e;try{pJ=window,pJ._ethers==null&&(pJ._ethers=L4e)}catch{}var pJ,bc=dJ();Object.defineProperty(mr,"Signer",{enumerable:!0,get:function(){return bc.Signer}});Object.defineProperty(mr,"Wallet",{enumerable:!0,get:function(){return bc.Wallet}});Object.defineProperty(mr,"VoidSigner",{enumerable:!0,get:function(){return bc.VoidSigner}});Object.defineProperty(mr,"getDefaultProvider",{enumerable:!0,get:function(){return bc.getDefaultProvider}});Object.defineProperty(mr,"providers",{enumerable:!0,get:function(){return bc.providers}});Object.defineProperty(mr,"BaseContract",{enumerable:!0,get:function(){return bc.BaseContract}});Object.defineProperty(mr,"Contract",{enumerable:!0,get:function(){return bc.Contract}});Object.defineProperty(mr,"ContractFactory",{enumerable:!0,get:function(){return bc.ContractFactory}});Object.defineProperty(mr,"BigNumber",{enumerable:!0,get:function(){return bc.BigNumber}});Object.defineProperty(mr,"FixedNumber",{enumerable:!0,get:function(){return bc.FixedNumber}});Object.defineProperty(mr,"constants",{enumerable:!0,get:function(){return bc.constants}});Object.defineProperty(mr,"errors",{enumerable:!0,get:function(){return bc.errors}});Object.defineProperty(mr,"logger",{enumerable:!0,get:function(){return bc.logger}});Object.defineProperty(mr,"utils",{enumerable:!0,get:function(){return bc.utils}});Object.defineProperty(mr,"wordlists",{enumerable:!0,get:function(){return bc.wordlists}});Object.defineProperty(mr,"version",{enumerable:!0,get:function(){return bc.version}});Object.defineProperty(mr,"Wordlist",{enumerable:!0,get:function(){return bc.Wordlist}})});var fJ=x(hJ=>{"use strict";d();p();Object.defineProperty(hJ,"__esModule",{value:!0});hJ.default=hYt;var cN,pYt=new Uint8Array(16);function hYt(){if(!cN&&(cN=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cN))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cN(pYt)}});var F4e=x(uN=>{"use strict";d();p();Object.defineProperty(uN,"__esModule",{value:!0});uN.default=void 0;var fYt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;uN.default=fYt});var _4=x(lN=>{"use strict";d();p();Object.defineProperty(lN,"__esModule",{value:!0});lN.default=void 0;var mYt=yYt(F4e());function yYt(r){return r&&r.__esModule?r:{default:r}}function gYt(r){return typeof r=="string"&&mYt.default.test(r)}var bYt=gYt;lN.default=bYt});var T4=x(x4=>{"use strict";d();p();Object.defineProperty(x4,"__esModule",{value:!0});x4.default=void 0;x4.unsafeStringify=q4e;var vYt=wYt(_4());function wYt(r){return r&&r.__esModule?r:{default:r}}var vc=[];for(let r=0;r<256;++r)vc.push((r+256).toString(16).slice(1));function q4e(r,e=0){return(vc[r[e+0]]+vc[r[e+1]]+vc[r[e+2]]+vc[r[e+3]]+"-"+vc[r[e+4]]+vc[r[e+5]]+"-"+vc[r[e+6]]+vc[r[e+7]]+"-"+vc[r[e+8]]+vc[r[e+9]]+"-"+vc[r[e+10]]+vc[r[e+11]]+vc[r[e+12]]+vc[r[e+13]]+vc[r[e+14]]+vc[r[e+15]]).toLowerCase()}function _Yt(r,e=0){let t=q4e(r,e);if(!(0,vYt.default)(t))throw TypeError("Stringified UUID is invalid");return t}var xYt=_Yt;x4.default=xYt});var U4e=x(dN=>{"use strict";d();p();Object.defineProperty(dN,"__esModule",{value:!0});dN.default=void 0;var TYt=CYt(fJ()),EYt=T4();function CYt(r){return r&&r.__esModule?r:{default:r}}var W4e,mJ,yJ=0,gJ=0;function IYt(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||W4e,s=r.clockseq!==void 0?r.clockseq:mJ;if(i==null||s==null){let f=r.random||(r.rng||TYt.default)();i==null&&(i=W4e=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),s==null&&(s=mJ=(f[6]<<8|f[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),c=r.nsecs!==void 0?r.nsecs:gJ+1,u=o-yJ+(c-gJ)/1e4;if(u<0&&r.clockseq===void 0&&(s=s+1&16383),(u<0||o>yJ)&&r.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");yJ=o,gJ=c,mJ=s,o+=122192928e5;let l=((o&268435455)*1e4+c)%4294967296;a[n++]=l>>>24&255,a[n++]=l>>>16&255,a[n++]=l>>>8&255,a[n++]=l&255;let h=o/4294967296*1e4&268435455;a[n++]=h>>>8&255,a[n++]=h&255,a[n++]=h>>>24&15|16,a[n++]=h>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let f=0;f<6;++f)a[n+f]=i[f];return e||(0,EYt.unsafeStringify)(a)}var kYt=IYt;dN.default=kYt});var bJ=x(pN=>{"use strict";d();p();Object.defineProperty(pN,"__esModule",{value:!0});pN.default=void 0;var AYt=SYt(_4());function SYt(r){return r&&r.__esModule?r:{default:r}}function PYt(r){if(!(0,AYt.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var RYt=PYt;pN.default=RYt});var vJ=x(ev=>{"use strict";d();p();Object.defineProperty(ev,"__esModule",{value:!0});ev.URL=ev.DNS=void 0;ev.default=OYt;var MYt=T4(),NYt=BYt(bJ());function BYt(r){return r&&r.__esModule?r:{default:r}}function DYt(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";d();p();Object.defineProperty(fN,"__esModule",{value:!0});fN.default=void 0;function LYt(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function z4e(r){return(r+64>>>9<<4)+14+1}function qYt(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function UYt(r,e){return r<>>32-e}function hN(r,e,t,n,a,i){return h1(UYt(h1(h1(e,r),h1(n,i)),a),t)}function cu(r,e,t,n,a,i,s){return hN(e&t|~e&n,r,e,a,i,s)}function uu(r,e,t,n,a,i,s){return hN(e&n|t&~n,r,e,a,i,s)}function lu(r,e,t,n,a,i,s){return hN(e^t^n,r,e,a,i,s)}function du(r,e,t,n,a,i,s){return hN(t^(e|~n),r,e,a,i,s)}var HYt=LYt;fN.default=HYt});var V4e=x(mN=>{"use strict";d();p();Object.defineProperty(mN,"__esModule",{value:!0});mN.default=void 0;var jYt=G4e(vJ()),zYt=G4e(K4e());function G4e(r){return r&&r.__esModule?r:{default:r}}var KYt=(0,jYt.default)("v3",48,zYt.default),GYt=KYt;mN.default=GYt});var $4e=x(yN=>{"use strict";d();p();Object.defineProperty(yN,"__esModule",{value:!0});yN.default=void 0;var VYt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$Yt={randomUUID:VYt};yN.default=$Yt});var Q4e=x(gN=>{"use strict";d();p();Object.defineProperty(gN,"__esModule",{value:!0});gN.default=void 0;var Y4e=J4e($4e()),YYt=J4e(fJ()),JYt=T4();function J4e(r){return r&&r.__esModule?r:{default:r}}function QYt(r,e,t){if(Y4e.default.randomUUID&&!e&&!r)return Y4e.default.randomUUID();r=r||{};let n=r.random||(r.rng||YYt.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,JYt.unsafeStringify)(n)}var ZYt=QYt;gN.default=ZYt});var Z4e=x(bN=>{"use strict";d();p();Object.defineProperty(bN,"__esModule",{value:!0});bN.default=void 0;function XYt(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function wJ(r,e){return r<>>32-e}function eJt(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let o=0;o>>0;f=h,h=l,l=wJ(u,30)>>>0,u=c,c=E}t[0]=t[0]+c>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+l>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var tJt=eJt;bN.default=tJt});var e8e=x(vN=>{"use strict";d();p();Object.defineProperty(vN,"__esModule",{value:!0});vN.default=void 0;var rJt=X4e(vJ()),nJt=X4e(Z4e());function X4e(r){return r&&r.__esModule?r:{default:r}}var aJt=(0,rJt.default)("v5",80,nJt.default),iJt=aJt;vN.default=iJt});var t8e=x(wN=>{"use strict";d();p();Object.defineProperty(wN,"__esModule",{value:!0});wN.default=void 0;var sJt="00000000-0000-0000-0000-000000000000";wN.default=sJt});var r8e=x(_N=>{"use strict";d();p();Object.defineProperty(_N,"__esModule",{value:!0});_N.default=void 0;var oJt=cJt(_4());function cJt(r){return r&&r.__esModule?r:{default:r}}function uJt(r){if(!(0,oJt.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var lJt=uJt;_N.default=lJt});var qr=x(wh=>{"use strict";d();p();Object.defineProperty(wh,"__esModule",{value:!0});Object.defineProperty(wh,"NIL",{enumerable:!0,get:function(){return mJt.default}});Object.defineProperty(wh,"parse",{enumerable:!0,get:function(){return vJt.default}});Object.defineProperty(wh,"stringify",{enumerable:!0,get:function(){return bJt.default}});Object.defineProperty(wh,"v1",{enumerable:!0,get:function(){return dJt.default}});Object.defineProperty(wh,"v3",{enumerable:!0,get:function(){return pJt.default}});Object.defineProperty(wh,"v4",{enumerable:!0,get:function(){return hJt.default}});Object.defineProperty(wh,"v5",{enumerable:!0,get:function(){return fJt.default}});Object.defineProperty(wh,"validate",{enumerable:!0,get:function(){return gJt.default}});Object.defineProperty(wh,"version",{enumerable:!0,get:function(){return yJt.default}});var dJt=b0(U4e()),pJt=b0(V4e()),hJt=b0(Q4e()),fJt=b0(e8e()),mJt=b0(t8e()),yJt=b0(r8e()),gJt=b0(_4()),bJt=b0(T4()),vJt=b0(bJ());function b0(r){return r&&r.__esModule?r:{default:r}}});var E4=x(Ha=>{"use strict";d();p();Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getParsedType=Ha.ZodParsedType=Ha.objectUtil=Ha.util=void 0;var n8e;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of i)s[o]=a[o];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(n8e=Ha.util||(Ha.util={}));var wJt;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(wJt=Ha.objectUtil||(Ha.objectUtil={}));Ha.ZodParsedType=n8e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var _Jt=r=>{switch(typeof r){case"undefined":return Ha.ZodParsedType.undefined;case"string":return Ha.ZodParsedType.string;case"number":return isNaN(r)?Ha.ZodParsedType.nan:Ha.ZodParsedType.number;case"boolean":return Ha.ZodParsedType.boolean;case"function":return Ha.ZodParsedType.function;case"bigint":return Ha.ZodParsedType.bigint;case"symbol":return Ha.ZodParsedType.symbol;case"object":return Array.isArray(r)?Ha.ZodParsedType.array:r===null?Ha.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ha.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ha.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ha.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ha.ZodParsedType.date:Ha.ZodParsedType.object;default:return Ha.ZodParsedType.unknown}};Ha.getParsedType=_Jt});var xN=x(f1=>{"use strict";d();p();Object.defineProperty(f1,"__esModule",{value:!0});f1.ZodError=f1.quotelessJson=f1.ZodIssueCode=void 0;var a8e=E4();f1.ZodIssueCode=a8e.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var xJt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");f1.quotelessJson=xJt;var C4=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let o=n,c=0;for(;ct.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};f1.ZodError=C4;C4.create=r=>new C4(r)});var xJ=x(_J=>{"use strict";d();p();Object.defineProperty(_J,"__esModule",{value:!0});var tv=E4(),pu=xN(),TJt=(r,e)=>{let t;switch(r.code){case pu.ZodIssueCode.invalid_type:r.received===tv.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case pu.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,tv.util.jsonStringifyReplacer)}`;break;case pu.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${tv.util.joinValues(r.keys,", ")}`;break;case pu.ZodIssueCode.invalid_union:t="Invalid input";break;case pu.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${tv.util.joinValues(r.options)}`;break;case pu.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${tv.util.joinValues(r.options)}, received '${r.received}'`;break;case pu.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case pu.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case pu.ZodIssueCode.invalid_date:t="Invalid date";break;case pu.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:tv.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case pu.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case pu.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case pu.ZodIssueCode.custom:t="Invalid input";break;case pu.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case pu.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case pu.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,tv.util.assertNever(r)}return{message:t}};_J.default=TJt});var TN=x(Yf=>{"use strict";d();p();var EJt=Yf&&Yf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yf,"__esModule",{value:!0});Yf.getErrorMap=Yf.setErrorMap=Yf.defaultErrorMap=void 0;var i8e=EJt(xJ());Yf.defaultErrorMap=i8e.default;var s8e=i8e.default;function CJt(r){s8e=r}Yf.setErrorMap=CJt;function IJt(){return s8e}Yf.getErrorMap=IJt});var TJ=x(Pa=>{"use strict";d();p();var kJt=Pa&&Pa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.isAsync=Pa.isValid=Pa.isDirty=Pa.isAborted=Pa.OK=Pa.DIRTY=Pa.INVALID=Pa.ParseStatus=Pa.addIssueToContext=Pa.EMPTY_PATH=Pa.makeIssue=void 0;var AJt=TN(),SJt=kJt(xJ()),PJt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},o="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)o=u(s,{data:e,defaultError:o}).message;return{...a,path:i,message:a.message||o}};Pa.makeIssue=PJt;Pa.EMPTY_PATH=[];function RJt(r,e){let t=(0,Pa.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,AJt.getErrorMap)(),SJt.default].filter(n=>!!n)});r.common.issues.push(t)}Pa.addIssueToContext=RJt;var I4=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return Pa.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return I4.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return Pa.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};Pa.ParseStatus=I4;Pa.INVALID=Object.freeze({status:"aborted"});var MJt=r=>({status:"dirty",value:r});Pa.DIRTY=MJt;var NJt=r=>({status:"valid",value:r});Pa.OK=NJt;var BJt=r=>r.status==="aborted";Pa.isAborted=BJt;var DJt=r=>r.status==="dirty";Pa.isDirty=DJt;var OJt=r=>r.status==="valid";Pa.isValid=OJt;var LJt=r=>typeof Promise<"u"&&r instanceof Promise;Pa.isAsync=LJt});var c8e=x(o8e=>{"use strict";d();p();Object.defineProperty(o8e,"__esModule",{value:!0})});var u8e=x(k4=>{"use strict";d();p();Object.defineProperty(k4,"__esModule",{value:!0});k4.errorUtil=void 0;var FJt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(FJt=k4.errorUtil||(k4.errorUtil={}))});var y8e=x(fe=>{"use strict";d();p();Object.defineProperty(fe,"__esModule",{value:!0});fe.discriminatedUnion=fe.date=fe.boolean=fe.bigint=fe.array=fe.any=fe.coerce=fe.ZodFirstPartyTypeKind=fe.late=fe.ZodSchema=fe.Schema=fe.custom=fe.ZodPipeline=fe.ZodBranded=fe.BRAND=fe.ZodNaN=fe.ZodCatch=fe.ZodDefault=fe.ZodNullable=fe.ZodOptional=fe.ZodTransformer=fe.ZodEffects=fe.ZodPromise=fe.ZodNativeEnum=fe.ZodEnum=fe.ZodLiteral=fe.ZodLazy=fe.ZodFunction=fe.ZodSet=fe.ZodMap=fe.ZodRecord=fe.ZodTuple=fe.ZodIntersection=fe.ZodDiscriminatedUnion=fe.ZodUnion=fe.ZodObject=fe.ZodArray=fe.ZodVoid=fe.ZodNever=fe.ZodUnknown=fe.ZodAny=fe.ZodNull=fe.ZodUndefined=fe.ZodSymbol=fe.ZodDate=fe.ZodBoolean=fe.ZodBigInt=fe.ZodNumber=fe.ZodString=fe.ZodType=void 0;fe.NEVER=fe.void=fe.unknown=fe.union=fe.undefined=fe.tuple=fe.transformer=fe.symbol=fe.string=fe.strictObject=fe.set=fe.record=fe.promise=fe.preprocess=fe.pipeline=fe.ostring=fe.optional=fe.onumber=fe.oboolean=fe.object=fe.number=fe.nullable=fe.null=fe.never=fe.nativeEnum=fe.nan=fe.map=fe.literal=fe.lazy=fe.intersection=fe.instanceof=fe.function=fe.enum=fe.effect=void 0;var EN=TN(),zt=u8e(),ye=TJ(),Fe=E4(),Le=xN(),sp=class{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},l8e=(r,e)=>{if((0,ye.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Le.ZodError(r.common.issues);return this._error=t,this._error}}};function xr(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:t??o.defaultError},description:a}}var Tr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,Fe.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,Fe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ye.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,Fe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,ye.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,Fe.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return l8e(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,Fe.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,ye.isAsync)(a)?a:Promise.resolve(a));return l8e(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),o=()=>i.addIssue({code:Le.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new ed({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return _h.create(this,this._def)}nullable(){return x0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xl.create(this,this._def)}promise(){return g1.create(this,this._def)}or(e){return iv.create([this,e],this._def)}and(e){return sv.create(this,e,this._def)}transform(e){return new ed({...xr(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new dv({...xr(this._def),innerType:this,defaultValue:t,typeName:sr.ZodDefault})}brand(){return new IN({typeName:sr.ZodBranded,type:this,...xr(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new n_({...xr(this._def),innerType:this,catchValue:t,typeName:sr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return pv.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};fe.ZodType=Tr;fe.Schema=Tr;fe.ZodSchema=Tr;var qJt=/^c[^\s-]{8,}$/i,WJt=/^[a-z][a-z0-9]*$/,UJt=/[0-9A-HJKMNP-TV-Z]{26}/,HJt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,jJt=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,zJt=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,KJt=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,GJt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,VJt=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function $Jt(r,e){return!!((e==="v4"||!e)&&KJt.test(r)||(e==="v6"||!e)&&GJt.test(r))}var Zl=class extends Tr{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:Le.ZodIssueCode.invalid_string,...zt.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,zt.errorUtil.errToObj(e)),this.trim=()=>new Zl({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Zl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Zl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Fe.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.string,received:i.parsedType}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,o=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...zt.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...zt.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...zt.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...zt.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...zt.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...zt.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...zt.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...zt.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Zl({checks:[],typeName:sr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...xr(r)})};function YJt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Jf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Fe.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.number,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="int"?Fe.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?YJt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_finite,message:i.message}),a.dirty()):Fe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Jf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Jf({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:zt.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:zt.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:zt.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:zt.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&Fe.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew Jf({checks:[],typeName:sr.ZodNumber,coerce:r?.coerce||!1,...xr(r)});var Qf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Fe.ZodParsedType.bigint){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.bigint,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Fe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Qf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Qf({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Qf({checks:[],typeName:sr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...xr(r)})};var rv=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==Fe.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.boolean,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodBoolean=rv;rv.create=r=>new rv({typeName:sr.ZodBoolean,coerce:r?.coerce||!1,...xr(r)});var w0=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Fe.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.date,received:i.parsedType}),ye.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_date}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Fe.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new w0({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:zt.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:zt.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew w0({checks:[],coerce:r?.coerce||!1,typeName:sr.ZodDate,...xr(r)});var X3=class extends Tr{_parse(e){if(this._getType(e)!==Fe.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.symbol,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodSymbol=X3;X3.create=r=>new X3({typeName:sr.ZodSymbol,...xr(r)});var nv=class extends Tr{_parse(e){if(this._getType(e)!==Fe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.undefined,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodUndefined=nv;nv.create=r=>new nv({typeName:sr.ZodUndefined,...xr(r)});var av=class extends Tr{_parse(e){if(this._getType(e)!==Fe.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.null,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodNull=av;av.create=r=>new av({typeName:sr.ZodNull,...xr(r)});var y1=class extends Tr{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodAny=y1;y1.create=r=>new y1({typeName:sr.ZodAny,...xr(r)});var v0=class extends Tr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodUnknown=v0;v0.create=r=>new v0({typeName:sr.ZodUnknown,...xr(r)});var xh=class extends Tr{_parse(e){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.never,received:t.parsedType}),ye.INVALID}};fe.ZodNever=xh;xh.create=r=>new xh({typeName:sr.ZodNever,...xr(r)});var e_=class extends Tr{_parse(e){if(this._getType(e)!==Fe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.void,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodVoid=e_;e_.create=r=>new e_({typeName:sr.ZodVoid,...xr(r)});var Xl=class extends Tr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==Fe.ZodParsedType.array)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.array,received:t.parsedType}),ye.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,o=t.data.lengtha.maxLength.value&&((0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((s,o)=>a.type._parseAsync(new sp(t,s,t.path,o)))).then(s=>ye.ParseStatus.mergeArray(n,s));let i=[...t.data].map((s,o)=>a.type._parseSync(new sp(t,s,t.path,o)));return ye.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Xl({...this._def,minLength:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new Xl({...this._def,maxLength:{value:e,message:zt.errorUtil.toString(t)}})}length(e,t){return new Xl({...this._def,exactLength:{value:e,message:zt.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};fe.ZodArray=Xl;Xl.create=(r,e)=>new Xl({type:r,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,...xr(e)});function Z3(r){if(r instanceof pi){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=_h.create(Z3(n))}return new pi({...r._def,shape:()=>e})}else return r instanceof Xl?new Xl({...r._def,type:Z3(r.element)}):r instanceof _h?_h.create(Z3(r.unwrap())):r instanceof x0?x0.create(Z3(r.unwrap())):r instanceof op?op.create(r.items.map(e=>Z3(e))):r}var pi=class extends Tr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=Fe.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Fe.ZodParsedType.object){let u=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(u,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.object,received:u.parsedType}),ye.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof xh&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let c=[];for(let u of s){let l=i[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new sp(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof xh){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&((0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of o){let h=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new sp(a,h,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let h=await l.key;u.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>ye.ParseStatus.mergeObjectSync(n,u)):ye.ParseStatus.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return zt.errorUtil.errToObj,new pi({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,o;let c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=zt.errorUtil.errToObj(e).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new pi({...this._def,unknownKeys:"strip"})}passthrough(){return new pi({...this._def,unknownKeys:"passthrough"})}extend(e){return new pi({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pi({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:sr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pi({...this._def,catchall:e})}pick(e){let t={};return Fe.util.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new pi({...this._def,shape:()=>t})}omit(e){let t={};return Fe.util.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new pi({...this._def,shape:()=>t})}deepPartial(){return Z3(this)}partial(e){let t={};return Fe.util.objectKeys(this.shape).forEach(n=>{let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new pi({...this._def,shape:()=>t})}required(e){let t={};return Fe.util.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof _h;)i=i._def.innerType;t[n]=i}}),new pi({...this._def,shape:()=>t})}keyof(){return d8e(Fe.util.objectKeys(this.shape))}};fe.ZodObject=pi;pi.create=(r,e)=>new pi({shape:()=>r,unknownKeys:"strip",catchall:xh.create(),typeName:sr.ZodObject,...xr(e)});pi.strictCreate=(r,e)=>new pi({shape:()=>r,unknownKeys:"strict",catchall:xh.create(),typeName:sr.ZodObject,...xr(e)});pi.lazycreate=(r,e)=>new pi({shape:r,unknownKeys:"strip",catchall:xh.create(),typeName:sr.ZodObject,...xr(e)});var iv=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let o of i)if(o.result.status==="valid")return o.result;for(let o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(o=>new Le.ZodError(o.ctx.common.issues));return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union,unionErrors:s}),ye.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let c of n){let u={...t,common:{...t.common,issues:[]},parent:null},l=c._parseSync({data:t.data,path:t.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let o=s.map(c=>new Le.ZodError(c));return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union,unionErrors:o}),ye.INVALID}}get options(){return this._def.options}};fe.ZodUnion=iv;iv.create=(r,e)=>new iv({options:r,typeName:sr.ZodUnion,...xr(e)});var CN=r=>r instanceof cv?CN(r.schema):r instanceof ed?CN(r.innerType()):r instanceof uv?[r.value]:r instanceof Zf?r.options:r instanceof lv?Object.keys(r.enum):r instanceof dv?CN(r._def.innerType):r instanceof nv?[void 0]:r instanceof av?[null]:null,t_=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Fe.ZodParsedType.object)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.object,received:t.parsedType}),ye.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ye.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=CN(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,i)}}return new t_({typeName:sr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...xr(n)})}};fe.ZodDiscriminatedUnion=t_;function EJ(r,e){let t=(0,Fe.getParsedType)(r),n=(0,Fe.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===Fe.ZodParsedType.object&&n===Fe.ZodParsedType.object){let a=Fe.util.objectKeys(e),i=Fe.util.objectKeys(r).filter(o=>a.indexOf(o)!==-1),s={...r,...e};for(let o of i){let c=EJ(r[o],e[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(t===Fe.ZodParsedType.array&&n===Fe.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,ye.isAborted)(i)||(0,ye.isAborted)(s))return ye.INVALID;let o=EJ(i.value,s.value);return o.valid?(((0,ye.isDirty)(i)||(0,ye.isDirty)(s))&&t.dirty(),{status:t.value,value:o.data}):((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_intersection_types}),ye.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};fe.ZodIntersection=sv;sv.create=(r,e,t)=>new sv({left:r,right:e,typeName:sr.ZodIntersection,...xr(t)});var op=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.ZodParsedType.array)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.array,received:n.parsedType}),ye.INVALID;if(n.data.lengththis._def.items.length&&((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new sp(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>ye.ParseStatus.mergeArray(t,s)):ye.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new op({...this._def,rest:e})}};fe.ZodTuple=op;op.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new op({items:r,typeName:sr.ZodTuple,rest:null,...xr(e)})};var ov=class extends Tr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.ZodParsedType.object)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.object,received:n.parsedType}),ye.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:i._parse(new sp(n,o,n.path,o)),value:s._parse(new sp(n,n.data[o],n.path,o))});return n.common.async?ye.ParseStatus.mergeObjectAsync(t,a):ye.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof Tr?new ov({keyType:e,valueType:t,typeName:sr.ZodRecord,...xr(n)}):new ov({keyType:Zl.create(),valueType:e,typeName:sr.ZodRecord,...xr(t)})}};fe.ZodRecord=ov;var r_=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.ZodParsedType.map)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.map,received:n.parsedType}),ye.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([o,c],u)=>({key:a._parse(new sp(n,o,n.path,[u,"key"])),value:i._parse(new sp(n,c,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}}}};fe.ZodMap=r_;r_.create=(r,e,t)=>new r_({valueType:e,keyType:r,typeName:sr.ZodMap,...xr(t)});var _0=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.ZodParsedType.set)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.set,received:n.parsedType}),ye.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return ye.INVALID;l.status==="dirty"&&t.dirty(),u.add(l.value)}return{status:t.value,value:u}}let o=[...n.data.values()].map((c,u)=>i._parse(new sp(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(e,t){return new _0({...this._def,minSize:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new _0({...this._def,maxSize:{value:e,message:zt.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};fe.ZodSet=_0;_0.create=(r,e)=>new _0({valueType:r,minSize:null,maxSize:null,typeName:sr.ZodSet,...xr(e)});var m1=class extends Tr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Fe.ZodParsedType.function)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.function,received:t.parsedType}),ye.INVALID;function n(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,EN.getErrorMap)(),EN.defaultErrorMap].filter(u=>!!u),issueData:{code:Le.ZodIssueCode.invalid_arguments,argumentsError:c}})}function a(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,EN.getErrorMap)(),EN.defaultErrorMap].filter(u=>!!u),issueData:{code:Le.ZodIssueCode.invalid_return_type,returnTypeError:c}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof g1?(0,ye.OK)(async(...o)=>{let c=new Le.ZodError([]),u=await this._def.args.parseAsync(o,i).catch(f=>{throw c.addIssue(n(o,f)),c}),l=await s(...u);return await this._def.returns._def.type.parseAsync(l,i).catch(f=>{throw c.addIssue(a(l,f)),c})}):(0,ye.OK)((...o)=>{let c=this._def.args.safeParse(o,i);if(!c.success)throw new Le.ZodError([n(o,c.error)]);let u=s(...c.data),l=this._def.returns.safeParse(u,i);if(!l.success)throw new Le.ZodError([a(u,l.error)]);return l.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new m1({...this._def,args:op.create(e).rest(v0.create())})}returns(e){return new m1({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new m1({args:e||op.create([]).rest(v0.create()),returns:t||v0.create(),typeName:sr.ZodFunction,...xr(n)})}};fe.ZodFunction=m1;var cv=class extends Tr{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};fe.ZodLazy=cv;cv.create=(r,e)=>new cv({getter:r,typeName:sr.ZodLazy,...xr(e)});var uv=class extends Tr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{received:t.data,code:Le.ZodIssueCode.invalid_literal,expected:this._def.value}),ye.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};fe.ZodLiteral=uv;uv.create=(r,e)=>new uv({value:r,typeName:sr.ZodLiteral,...xr(e)});function d8e(r,e){return new Zf({values:r,typeName:sr.ZodEnum,...xr(e)})}var Zf=class extends Tr{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{expected:Fe.util.joinValues(n),received:t.parsedType,code:Le.ZodIssueCode.invalid_type}),ye.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{received:t.data,code:Le.ZodIssueCode.invalid_enum_value,options:n}),ye.INVALID}return(0,ye.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return Zf.create(e)}exclude(e){return Zf.create(this.options.filter(t=>!e.includes(t)))}};fe.ZodEnum=Zf;Zf.create=d8e;var lv=class extends Tr{_parse(e){let t=Fe.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Fe.ZodParsedType.string&&n.parsedType!==Fe.ZodParsedType.number){let a=Fe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{expected:Fe.util.joinValues(a),received:n.parsedType,code:Le.ZodIssueCode.invalid_type}),ye.INVALID}if(t.indexOf(e.data)===-1){let a=Fe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{received:n.data,code:Le.ZodIssueCode.invalid_enum_value,options:a}),ye.INVALID}return(0,ye.OK)(e.data)}get enum(){return this._def.values}};fe.ZodNativeEnum=lv;lv.create=(r,e)=>new lv({values:r,typeName:sr.ZodNativeEnum,...xr(e)});var g1=class extends Tr{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Fe.ZodParsedType.promise&&t.common.async===!1)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.promise,received:t.parsedType}),ye.INVALID;let n=t.parsedType===Fe.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,ye.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};fe.ZodPromise=g1;g1.create=(r,e)=>new g1({type:r,typeName:sr.ZodPromise,...xr(e)});var ed=class extends Tr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,ye.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=o=>{let c=a.refinement(o,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,ye.isValid)(s))return s;let o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,ye.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:t.value,value:o})):s);Fe.util.assertNever(a)}};fe.ZodEffects=ed;fe.ZodTransformer=ed;ed.create=(r,e,t)=>new ed({schema:r,typeName:sr.ZodEffects,effect:e,...xr(t)});ed.createWithPreprocess=(r,e,t)=>new ed({schema:e,effect:{type:"preprocess",transform:r},typeName:sr.ZodEffects,...xr(t)});var _h=class extends Tr{_parse(e){return this._getType(e)===Fe.ZodParsedType.undefined?(0,ye.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodOptional=_h;_h.create=(r,e)=>new _h({innerType:r,typeName:sr.ZodOptional,...xr(e)});var x0=class extends Tr{_parse(e){return this._getType(e)===Fe.ZodParsedType.null?(0,ye.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodNullable=x0;x0.create=(r,e)=>new x0({innerType:r,typeName:sr.ZodNullable,...xr(e)});var dv=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===Fe.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};fe.ZodDefault=dv;dv.create=(r,e)=>new dv({innerType:r,typeName:sr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...xr(e)});var n_=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,ye.isAsync)(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Le.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Le.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fe.ZodCatch=n_;n_.create=(r,e)=>new n_({innerType:r,typeName:sr.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...xr(e)});var a_=class extends Tr{_parse(e){if(this._getType(e)!==Fe.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:Fe.ZodParsedType.nan,received:n.parsedType}),ye.INVALID}return{status:"valid",value:e.data}}};fe.ZodNaN=a_;a_.create=r=>new a_({typeName:sr.ZodNaN,...xr(r)});fe.BRAND=Symbol("zod_brand");var IN=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};fe.ZodBranded=IN;var pv=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ye.INVALID:i.status==="dirty"?(t.dirty(),(0,ye.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ye.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new pv({in:e,out:t,typeName:sr.ZodPipeline})}};fe.ZodPipeline=pv;var JJt=(r,e={},t)=>r?y1.create().superRefine((n,a)=>{var i,s;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(s=(i=o.fatal)!==null&&i!==void 0?i:t)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):y1.create();fe.custom=JJt;fe.late={object:pi.lazycreate};var sr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(sr=fe.ZodFirstPartyTypeKind||(fe.ZodFirstPartyTypeKind={}));var QJt=(r,e={message:`Input not instance of ${r.name}`})=>(0,fe.custom)(t=>t instanceof r,e);fe.instanceof=QJt;var p8e=Zl.create;fe.string=p8e;var h8e=Jf.create;fe.number=h8e;var ZJt=a_.create;fe.nan=ZJt;var XJt=Qf.create;fe.bigint=XJt;var f8e=rv.create;fe.boolean=f8e;var eQt=w0.create;fe.date=eQt;var tQt=X3.create;fe.symbol=tQt;var rQt=nv.create;fe.undefined=rQt;var nQt=av.create;fe.null=nQt;var aQt=y1.create;fe.any=aQt;var iQt=v0.create;fe.unknown=iQt;var sQt=xh.create;fe.never=sQt;var oQt=e_.create;fe.void=oQt;var cQt=Xl.create;fe.array=cQt;var uQt=pi.create;fe.object=uQt;var lQt=pi.strictCreate;fe.strictObject=lQt;var dQt=iv.create;fe.union=dQt;var pQt=t_.create;fe.discriminatedUnion=pQt;var hQt=sv.create;fe.intersection=hQt;var fQt=op.create;fe.tuple=fQt;var mQt=ov.create;fe.record=mQt;var yQt=r_.create;fe.map=yQt;var gQt=_0.create;fe.set=gQt;var bQt=m1.create;fe.function=bQt;var vQt=cv.create;fe.lazy=vQt;var wQt=uv.create;fe.literal=wQt;var _Qt=Zf.create;fe.enum=_Qt;var xQt=lv.create;fe.nativeEnum=xQt;var TQt=g1.create;fe.promise=TQt;var m8e=ed.create;fe.effect=m8e;fe.transformer=m8e;var EQt=_h.create;fe.optional=EQt;var CQt=x0.create;fe.nullable=CQt;var IQt=ed.createWithPreprocess;fe.preprocess=IQt;var kQt=pv.create;fe.pipeline=kQt;var AQt=()=>p8e().optional();fe.ostring=AQt;var SQt=()=>h8e().optional();fe.onumber=SQt;var PQt=()=>f8e().optional();fe.oboolean=PQt;fe.coerce={string:r=>Zl.create({...r,coerce:!0}),number:r=>Jf.create({...r,coerce:!0}),boolean:r=>rv.create({...r,coerce:!0}),bigint:r=>Qf.create({...r,coerce:!0}),date:r=>w0.create({...r,coerce:!0})};fe.NEVER=ye.INVALID});var CJ=x(cp=>{"use strict";d();p();var RQt=cp&&cp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),i_=cp&&cp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&RQt(e,r,t)};Object.defineProperty(cp,"__esModule",{value:!0});i_(TN(),cp);i_(TJ(),cp);i_(c8e(),cp);i_(E4(),cp);i_(y8e(),cp);i_(xN(),cp)});var kr=x(gl=>{"use strict";d();p();var g8e=gl&&gl.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),MQt=gl&&gl.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),NQt=gl&&gl.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&g8e(e,r,t);return MQt(e,r),e},BQt=gl&&gl.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&g8e(e,r,t)};Object.defineProperty(gl,"__esModule",{value:!0});gl.z=void 0;var b8e=NQt(CJ());gl.z=b8e;BQt(CJ(),gl);gl.default=b8e});var A8e=x(Fu=>{"use strict";d();p();var v8e=je(),w8e=qr(),We=kr();function DQt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function OQt(r){var e=DQt(r,"string");return typeof e=="symbol"?e:String(e)}function kJ(r,e,t){return e=OQt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var LQt=We.z.string().refine(r=>v8e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),kN=We.z.date().transform(r=>v8e.BigNumber.from(Math.floor(r.getTime()/1e3))),_8e=We.z.union([We.z.literal("evm"),We.z.literal("solana")]),FQt=We.z.union([We.z.string(),We.z.number(),We.z.boolean(),We.z.null()]),AN=We.z.lazy(()=>We.z.union([FQt,We.z.array(AN),We.z.record(AN)]),{invalid_type_error:"Provided value was not valid JSON"}),x8e=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),nonce:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),resources:We.z.array(We.z.string()).optional()}).optional(),SN=We.z.object({type:_8e,domain:We.z.string(),address:We.z.string(),statement:We.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:We.z.string().optional(),version:We.z.string().default("1"),chain_id:We.z.string().optional(),nonce:We.z.string().default(w8e.v4()),issued_at:We.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:We.z.date().transform(r=>r.toISOString()),invalid_before:We.z.date().default(new Date).transform(r=>r.toISOString()),resources:We.z.array(We.z.string()).optional()}),T8e=We.z.object({payload:SN,signature:We.z.string()}),E8e=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),validateNonce:We.z.function().args(We.z.string()).optional(),resources:We.z.array(We.z.string()).optional()}),C8e=E8e.optional(),I8e=We.z.object({domain:We.z.string().optional(),tokenId:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),session:We.z.union([AN,We.z.function().args(We.z.string())]).optional(),verifyOptions:E8e.omit({domain:!0}).optional()}).optional(),SJ=We.z.object({iss:We.z.string(),sub:We.z.string(),aud:We.z.string(),exp:kN.transform(r=>r.toNumber()),nbf:kN.transform(r=>r.toNumber()),iat:kN.transform(r=>r.toNumber()),jti:We.z.string().default(w8e.v4()),ctx:AN.optional()}),qQt=We.z.object({payload:SJ,signature:We.z.string()}),k8e=We.z.object({domain:We.z.string().optional(),validateTokenId:We.z.function().args(We.z.string()).optional()}).optional(),WQt=T8e.extend({payload:SN.extend({issued_at:We.z.string(),expiration_time:We.z.string(),invalid_before:We.z.string()})}),IJ=()=>typeof window<"u",AJ=class{constructor(e,t){kJ(this,"domain",void 0),kJ(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=x8e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=SN.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(IJ()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=C8e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(IJ())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=I8e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let I=await n.session(i);I&&(s=I)}else s=n?.session;let o=await this.wallet.getAddress(),c=SJ.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(IJ())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=k8e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` +`)},r.register=function(e,t){if(t||(t=e.locale),OKt)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,d$e.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();Yb.Wordlist=UKt});var f$e=_(J3=>{"use strict";d();p();var HKt=J3&&J3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J3,"__esModule",{value:!0});J3.langCz=void 0;var j3e=Df(),jKt="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",mZ=null;function p$e(r){if(mZ==null&&(mZ=jKt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),j3e.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw mZ=null,new Error("BIP39 Wordlist for en (English) FAILED")}var zKt=function(r){HKt(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return p$e(this),mZ[t]},e.prototype.getWordIndex=function(t){return p$e(this),mZ.indexOf(t)},e}(j3e.Wordlist),h$e=new zKt;J3.langCz=h$e;j3e.Wordlist.register(h$e)});var g$e=_(Z3=>{"use strict";d();p();var KKt=Z3&&Z3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z3,"__esModule",{value:!0});Z3.langEn=void 0;var z3e=Df(),GKt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",yZ=null;function m$e(r){if(yZ==null&&(yZ=GKt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),z3e.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw yZ=null,new Error("BIP39 Wordlist for en (English) FAILED")}var VKt=function(r){KKt(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return m$e(this),yZ[t]},e.prototype.getWordIndex=function(t){return m$e(this),yZ.indexOf(t)},e}(z3e.Wordlist),y$e=new VKt;Z3.langEn=y$e;z3e.Wordlist.register(y$e)});var _$e=_(X3=>{"use strict";d();p();var YKt=X3&&X3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X3,"__esModule",{value:!0});X3.langEs=void 0;var Wce=qs(),Uce=Df(),$Kt="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",v$e={},gZ=null;function w$e(r){return Uce.logger.checkNormalize(),(0,Wce.toUtf8String)(Array.prototype.filter.call((0,Wce.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function QKt(r){var e=[];return Array.prototype.forEach.call((0,Wce.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,Wce.toUtf8String)(e)}function b$e(r){if(gZ==null&&(gZ=$Kt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return QKt(e)}),gZ.forEach(function(e,t){v$e[w$e(e)]=t}),Uce.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw gZ=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var JKt=function(r){YKt(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return b$e(this),gZ[t]},e.prototype.getWordIndex=function(t){return b$e(this),v$e[w$e(t)]},e}(Uce.Wordlist),x$e=new JKt;X3.langEs=x$e;Uce.Wordlist.register(x$e)});var k$e=_(ex=>{"use strict";d();p();var ZKt=ex&&ex.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ex,"__esModule",{value:!0});ex.langFr=void 0;var Hce=qs(),jce=Df(),XKt="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",bZ=null,I$e={};function E$e(r){return jce.logger.checkNormalize(),(0,Hce.toUtf8String)(Array.prototype.filter.call((0,Hce.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function eGt(r){var e=[];return Array.prototype.forEach.call((0,Hce.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,Hce.toUtf8String)(e)}function T$e(r){if(bZ==null&&(bZ=XKt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return eGt(e)}),bZ.forEach(function(e,t){I$e[E$e(e)]=t}),jce.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw bZ=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var tGt=function(r){ZKt(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return T$e(this),bZ[t]},e.prototype.getWordIndex=function(t){return T$e(this),I$e[E$e(t)]},e}(jce.Wordlist),C$e=new tGt;ex.langFr=C$e;jce.Wordlist.register(C$e)});var R$e=_(tx=>{"use strict";d();p();var rGt=tx&&tx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tx,"__esModule",{value:!0});tx.langJa=void 0;var nGt=wr(),Zd=qs(),zce=Df(),aGt=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],iGt="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",$l=null;function A$e(r){return(0,nGt.hexlify)((0,Zd.toUtf8Bytes)(r))}var sGt="0xe3818de38284e3818f",oGt="0xe3818de38283e3818f";function P$e(r){if($l!==null)return;$l=[];var e={};e[(0,Zd.toUtf8String)([227,130,154])]=!1,e[(0,Zd.toUtf8String)([227,130,153])]=!1,e[(0,Zd.toUtf8String)([227,130,133])]=(0,Zd.toUtf8String)([227,130,134]),e[(0,Zd.toUtf8String)([227,129,163])]=(0,Zd.toUtf8String)([227,129,164]),e[(0,Zd.toUtf8String)([227,130,131])]=(0,Zd.toUtf8String)([227,130,132]),e[(0,Zd.toUtf8String)([227,130,135])]=(0,Zd.toUtf8String)([227,130,136]);function t(h){for(var f="",m=0;mf?1:0}for(var a=3;a<=9;a++)for(var i=aGt[a-3],s=0;s{"use strict";d();p();var uGt=rx&&rx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rx,"__esModule",{value:!0});rx.langKo=void 0;var lGt=qs(),K3e=Df(),dGt=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],pGt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function hGt(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,lGt.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var $b=null;function M$e(r){if($b==null&&($b=[],dGt.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";d();p();var mGt=nx&&nx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nx,"__esModule",{value:!0});nx.langIt=void 0;var G3e=Df(),yGt="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",vZ=null;function D$e(r){if(vZ==null&&(vZ=yGt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),G3e.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw vZ=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var gGt=function(r){mGt(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return D$e(this),vZ[t]},e.prototype.getWordIndex=function(t){return D$e(this),vZ.indexOf(t)},e}(G3e.Wordlist),L$e=new gGt;nx.langIt=L$e;G3e.Wordlist.register(L$e)});var U$e=_(Qy=>{"use strict";d();p();var bGt=Qy&&Qy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.langZhTw=Qy.langZhCn=void 0;var vGt=qs(),wZ=Df(),V3e="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function q$e(r){if(ax[r.locale]===null){ax[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=_Gt.indexOf(V3e[t*3]),a=[228+(n>>2),128+Y3e.indexOf(V3e[t*3+1]),128+Y3e.indexOf(V3e[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=Y3e.indexOf(wGt[e++])+(s==0?228:128);ax[r.locale].push((0,vGt.toUtf8String)(a))}if(wZ.Wordlist.check(r)!==xGt[r.locale])throw ax[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var F$e=function(r){bGt(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return q$e(this),ax[this.locale][t]},e.prototype.getWordIndex=function(t){return q$e(this),ax[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(wZ.Wordlist),$3e=new F$e("cn");Qy.langZhCn=$3e;wZ.Wordlist.register($3e);wZ.Wordlist.register($3e,"zh");var W$e=new F$e("tw");Qy.langZhTw=W$e;wZ.Wordlist.register(W$e)});var H$e=_(Kce=>{"use strict";d();p();Object.defineProperty(Kce,"__esModule",{value:!0});Kce.wordlists=void 0;var TGt=f$e(),IGt=g$e(),EGt=_$e(),CGt=k$e(),kGt=R$e(),AGt=B$e(),PGt=O$e(),Q3e=U$e();Kce.wordlists={cz:TGt.langCz,en:IGt.langEn,es:EGt.langEs,fr:CGt.langFr,it:PGt.langIt,ja:kGt.langJa,ko:AGt.langKo,zh:Q3e.langZhCn,zh_cn:Q3e.langZhCn,zh_tw:Q3e.langZhTw}});var J3e=_(Jy=>{"use strict";d();p();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.wordlists=Jy.Wordlist=Jy.logger=void 0;var j$e=Df();Object.defineProperty(Jy,"logger",{enumerable:!0,get:function(){return j$e.logger}});Object.defineProperty(Jy,"Wordlist",{enumerable:!0,get:function(){return j$e.Wordlist}});var SGt=H$e();Object.defineProperty(Jy,"wordlists",{enumerable:!0,get:function(){return SGt.wordlists}})});var z$e=_(Gce=>{"use strict";d();p();Object.defineProperty(Gce,"__esModule",{value:!0});Gce.version=void 0;Gce.version="hdnode/5.7.0"});var Yce=_(au=>{"use strict";d();p();Object.defineProperty(au,"__esModule",{value:!0});au.getAccountPath=au.isValidMnemonic=au.entropyToMnemonic=au.mnemonicToEntropy=au.mnemonicToSeed=au.HDNode=au.defaultPath=void 0;var Y$e=Nce(),Ua=wr(),$$e=Ls(),xZ=qs(),RGt=qce(),nu=Aa(),K$e=oZ(),Lf=Vb(),MGt=l0(),G$e=J3e(),NGt=Zt(),BGt=z$e(),_Z=new NGt.Logger(BGt.version),DGt=$$e.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),LGt=(0,xZ.toUtf8Bytes)("Bitcoin seed"),sx=2147483648;function Q$e(r){return(1<=256)throw new Error("Depth too large!");return V$e((0,Ua.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,Ua.hexlify)(this.depth),this.parentFingerprint,(0,Ua.hexZeroPad)((0,Ua.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,Ua.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(ix,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~sx));var n=new Uint8Array(37);if(e&sx){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,Ua.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,Ua.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,Ua.arrayify)((0,Lf.computeHmac)(Lf.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32),c=null,u=null;if(this.privateKey)c=Vce($$e.BigNumber.from(s).add(this.privateKey).mod(DGt));else{var l=new K$e.SigningKey((0,Ua.hexlify)(s));u=l._addPoint(this.publicKey)}var h=t,f=this.mnemonic;return f&&(h=Object.freeze({phrase:f.phrase,path:t,locale:f.locale||"en"})),new r(ix,c,u,this.fingerprint,Vce(o),e,this.depth+1,h)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=sx)throw new Error("invalid path index - "+i);n=n._derive(sx+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=sx)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,Ua.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,Ua.arrayify)((0,Lf.computeHmac)(Lf.SupportedAlgorithm.sha512,LGt,n));return new r(ix,Vce(a.slice(0,32)),null,"0x00000000",Vce(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=Z3e(n),e=Z$e(X3e(e,n),n),r._fromSeed(J$e(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=Y$e.Base58.decode(e);(t.length!==82||V$e(t.slice(0,78))!==e)&&_Z.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,Ua.hexlify)(t.slice(5,9)),i=parseInt((0,Ua.hexlify)(t.slice(9,13)).substring(2),16),s=(0,Ua.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,Ua.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(ix,null,(0,Ua.hexlify)(o),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new r(ix,(0,Ua.hexlify)(o.slice(1)),null,a,s,i,n,null)}return _Z.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();au.HDNode=qGt;function J$e(r,e){e||(e="");var t=(0,xZ.toUtf8Bytes)("mnemonic"+e,xZ.UnicodeNormalizationForm.NFKD);return(0,RGt.pbkdf2)((0,xZ.toUtf8Bytes)(r,xZ.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}au.mnemonicToSeed=J$e;function X3e(r,e){e=Z3e(e),_Z.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,Ua.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var c=32*t.length/3,u=t.length/3,l=Q$e(u),h=(0,Ua.arrayify)((0,Lf.sha256)(n.slice(0,c/8)))[0]&l;if(h!==(n[n.length-1]&l))throw new Error("invalid checksum");return(0,Ua.hexlify)(n.slice(0,c/8))}au.mnemonicToEntropy=X3e;function Z$e(r,e){if(e=Z3e(e),r=(0,Ua.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&OGt(8-n)),n+=3);var i=r.length/4,s=(0,Ua.arrayify)((0,Lf.sha256)(r))[0]&Q$e(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(o){return e.getWord(o)}))}au.entropyToMnemonic=Z$e;function FGt(r,e){try{return X3e(r,e),!0}catch{}return!1}au.isValidMnemonic=FGt;function WGt(r){return(typeof r!="number"||r<0||r>=sx||r%1)&&_Z.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}au.getAccountPath=WGt});var X$e=_($ce=>{"use strict";d();p();Object.defineProperty($ce,"__esModule",{value:!0});$ce.version=void 0;$ce.version="random/5.7.0"});var rQe=_(Jce=>{"use strict";d();p();Object.defineProperty(Jce,"__esModule",{value:!0});Jce.randomBytes=void 0;var UGt=wr(),tQe=Zt(),HGt=X$e(),exe=new tQe.Logger(HGt.version);function jGt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var eQe=jGt(),Qce=eQe.crypto||eQe.msCrypto;(!Qce||!Qce.getRandomValues)&&(exe.warn("WARNING: Missing strong random number source"),Qce={getRandomValues:function(r){return exe.throwError("no secure random source avaialble",tQe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function zGt(r){(r<=0||r>1024||r%1||r!=r)&&exe.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return Qce.getRandomValues(e),(0,UGt.arrayify)(e)}Jce.randomBytes=zGt});var nQe=_(Zce=>{"use strict";d();p();Object.defineProperty(Zce,"__esModule",{value:!0});Zce.shuffled=void 0;function KGt(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}Zce.shuffled=KGt});var TZ=_(ox=>{"use strict";d();p();Object.defineProperty(ox,"__esModule",{value:!0});ox.shuffled=ox.randomBytes=void 0;var GGt=rQe();Object.defineProperty(ox,"randomBytes",{enumerable:!0,get:function(){return GGt.randomBytes}});var VGt=nQe();Object.defineProperty(ox,"shuffled",{enumerable:!0,get:function(){return VGt.shuffled}})});var rxe=_((txe,aQe)=>{"use strict";d();p();(function(r){function e(x){return parseInt(x)===x}function t(x){if(!e(x.length))return!1;for(var N=0;N255)return!1;return!0}function n(x,N){if(x.buffer&&ArrayBuffer.isView(x)&&x.name==="Uint8Array")return N&&(x.slice?x=x.slice():x=Array.prototype.slice.call(x)),x;if(Array.isArray(x)){if(!t(x))throw new Error("Array contains invalid value: "+x);return new Uint8Array(x)}if(e(x.length)&&t(x))return new Uint8Array(x);throw new Error("unsupported array-like object")}function a(x){return new Uint8Array(x)}function i(x,N,U,E,z){(E!=null||z!=null)&&(x.slice?x=x.slice(E,z):x=Array.prototype.slice.call(x,E,z)),N.set(x,U)}var s=function(){function x(U){var E=[],z=0;for(U=encodeURI(U);z191&&ee<224?(E.push(String.fromCharCode((ee&31)<<6|U[z+1]&63)),z+=2):(E.push(String.fromCharCode((ee&15)<<12|(U[z+1]&63)<<6|U[z+2]&63)),z+=3)}return E.join("")}return{toBytes:x,fromBytes:N}}(),o=function(){function x(E){for(var z=[],ee=0;ee>4]+N[j&15])}return z.join("")}return{toBytes:x,fromBytes:U}}(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],I=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],C=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],R=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],F=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],W=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],V=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],K=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function G(x){for(var N=[],U=0;U>2,this._Ke[ee][N%4]=z[N],this._Kd[x-ee][N%4]=z[N];for(var j=0,X=E,ie;X>16&255]<<24^l[ie>>8&255]<<16^l[ie&255]<<8^l[ie>>24&255]^u[j]<<24,j+=1,E!=8)for(var N=1;N>8&255]<<8^l[ie>>16&255]<<16^l[ie>>24&255]<<24;for(var N=E/2+1;N>2,he=X%4,this._Ke[ue][he]=z[N],this._Kd[x-ue][he]=z[N++],X++}for(var ue=1;ue>24&255]^V[ie>>16&255]^K[ie>>8&255]^H[ie&255]},Q.prototype.encrypt=function(x){if(x.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var N=this._Ke.length-1,U=[0,0,0,0],E=G(x),z=0;z<4;z++)E[z]^=this._Ke[0][z];for(var ee=1;ee>24&255]^m[E[(z+1)%4]>>16&255]^y[E[(z+2)%4]>>8&255]^I[E[(z+3)%4]&255]^this._Ke[ee][z];E=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Ke[N][z],j[4*z]=(l[E[z]>>24&255]^X>>24)&255,j[4*z+1]=(l[E[(z+1)%4]>>16&255]^X>>16)&255,j[4*z+2]=(l[E[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(l[E[(z+3)%4]&255]^X)&255;return j},Q.prototype.decrypt=function(x){if(x.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var N=this._Kd.length-1,U=[0,0,0,0],E=G(x),z=0;z<4;z++)E[z]^=this._Kd[0][z];for(var ee=1;ee>24&255]^R[E[(z+3)%4]>>16&255]^L[E[(z+2)%4]>>8&255]^F[E[(z+1)%4]&255]^this._Kd[ee][z];E=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Kd[N][z],j[4*z]=(h[E[z]>>24&255]^X>>24)&255,j[4*z+1]=(h[E[(z+3)%4]>>16&255]^X>>16)&255,j[4*z+2]=(h[E[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(h[E[(z+1)%4]&255]^X)&255;return j};var q=function(x){if(!(this instanceof q))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Q(x)};q.prototype.encrypt=function(x){if(x=n(x),x.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(x.length),U=a(16),E=0;E=0;--N)this._counter[N]=x%256,x=x>>8},v.prototype.setBytes=function(x){if(x=n(x,!0),x.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=x},v.prototype.increment=function(){for(var x=15;x>=0;x--)if(this._counter[x]===255)this._counter[x]=0;else{this._counter[x]++;break}};var k=function(x,N){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",N instanceof v||(N=new v(N)),this._counter=N,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Q(x)};k.prototype.encrypt=function(x){for(var N=n(x,!0),U=0;U16)throw new Error("PKCS#7 padding byte out of range");for(var U=x.length-N,E=0;E{"use strict";d();p();Object.defineProperty(Xce,"__esModule",{value:!0});Xce.version=void 0;Xce.version="json-wallets/5.7.0"});var axe=_(Xd=>{"use strict";d();p();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.uuidV4=Xd.searchPath=Xd.getPassword=Xd.zpad=Xd.looseArrayify=void 0;var eue=wr(),iQe=qs();function YGt(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,eue.arrayify)(r)}Xd.looseArrayify=YGt;function $Gt(r,e){for(r=String(r);r.length{"use strict";d();p();var XGt=Of&&Of.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),eVt=Of&&Of.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Of,"__esModule",{value:!0});Of.decrypt=Of.CrowdsaleAccount=void 0;var sQe=eVt(rxe()),tVt=Sd(),oQe=wr(),rVt=jl(),nVt=qce(),aVt=qs(),iVt=Aa(),sVt=Zt(),oVt=nxe(),cVt=new sVt.Logger(oVt.version),tue=axe(),cQe=function(r){XGt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(iVt.Description);Of.CrowdsaleAccount=cQe;function uVt(r,e){var t=JSON.parse(r);e=(0,tue.getPassword)(e);var n=(0,tVt.getAddress)((0,tue.searchPath)(t,"ethaddr")),a=(0,tue.looseArrayify)((0,tue.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&cVt.throwArgumentError("invalid encseed","json",r);for(var i=(0,oQe.arrayify)((0,nVt.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),o=a.slice(16),c=new sQe.default.ModeOfOperation.cbc(i,s),u=sQe.default.padding.pkcs7.strip((0,oQe.arrayify)(c.decrypt(o))),l="",h=0;h{"use strict";d();p();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.getJsonWalletAddress=Zy.isKeystoreWallet=Zy.isCrowdsaleWallet=void 0;var lQe=Sd();function dQe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}Zy.isCrowdsaleWallet=dQe;function pQe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}Zy.isKeystoreWallet=pQe;function lVt(r){if(dQe(r))try{return(0,lQe.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(pQe(r))try{return(0,lQe.getAddress)(JSON.parse(r).address)}catch{return null}return null}Zy.getJsonWalletAddress=lVt});var mQe=_((ixe,fQe)=>{"use strict";d();p();(function(r){function t(m){let y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),I=1779033703,C=3144134277,R=1013904242,L=2773480762,F=1359893119,W=2600822924,V=528734635,K=1541459225,H=new Uint32Array(64);function G(k){let O=0,D=k.length;for(;D>=64;){let B=I,x=C,N=R,U=L,E=F,z=W,ee=V,j=K,X,ie,ue,he,ke;for(ie=0;ie<16;ie++)ue=O+ie*4,H[ie]=(k[ue]&255)<<24|(k[ue+1]&255)<<16|(k[ue+2]&255)<<8|k[ue+3]&255;for(ie=16;ie<64;ie++)X=H[ie-2],he=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=H[ie-15],ke=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,H[ie]=(he+H[ie-7]|0)+(ke+H[ie-16]|0)|0;for(ie=0;ie<64;ie++)he=(((E>>>6|E<<32-6)^(E>>>11|E<<32-11)^(E>>>25|E<<32-25))+(E&z^~E&ee)|0)+(j+(y[ie]+H[ie]|0)|0)|0,ke=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&x^B&N^x&N)|0,j=ee,ee=z,z=E,E=U+he|0,U=N,N=x,x=B,B=he+ke|0;I=I+B|0,C=C+x|0,R=R+N|0,L=L+U|0,F=F+E|0,W=W+z|0,V=V+ee|0,K=K+j|0,O+=64,D-=64}}G(m);let Q,q=m.length%64,T=m.length/536870912|0,M=m.length<<3,A=q<56?56:120,v=m.slice(m.length-q,m.length);for(v.push(128),Q=q+1;Q>>24&255),v.push(T>>>16&255),v.push(T>>>8&255),v.push(T>>>0&255),v.push(M>>>24&255),v.push(M>>>16&255),v.push(M>>>8&255),v.push(M>>>0&255),G(v),[I>>>24&255,I>>>16&255,I>>>8&255,I>>>0&255,C>>>24&255,C>>>16&255,C>>>8&255,C>>>0&255,R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255]}function n(m,y,I){m=m.length<=64?m:t(m);let C=64+y.length+4,R=new Array(C),L=new Array(64),F,W=[];for(F=0;F<64;F++)R[F]=54;for(F=0;F=C-4;K--){if(R[K]++,R[K]<=255)return;R[K]=0}}for(;I>=32;)V(),W=W.concat(t(L.concat(t(R)))),I-=32;return I>0&&(V(),W=W.concat(t(L.concat(t(R))).slice(0,I))),W}function a(m,y,I,C,R){let L;for(c(m,(2*I-1)*16,R,0,16),L=0;L<2*I;L++)o(m,L*16,R,16),s(R,C),c(R,0,m,y+L*16,16);for(L=0;L>>32-y}function s(m,y){c(m,0,y,0,16);for(let I=8;I>0;I-=2)y[4]^=i(y[0]+y[12],7),y[8]^=i(y[4]+y[0],9),y[12]^=i(y[8]+y[4],13),y[0]^=i(y[12]+y[8],18),y[9]^=i(y[5]+y[1],7),y[13]^=i(y[9]+y[5],9),y[1]^=i(y[13]+y[9],13),y[5]^=i(y[1]+y[13],18),y[14]^=i(y[10]+y[6],7),y[2]^=i(y[14]+y[10],9),y[6]^=i(y[2]+y[14],13),y[10]^=i(y[6]+y[2],18),y[3]^=i(y[15]+y[11],7),y[7]^=i(y[3]+y[15],9),y[11]^=i(y[7]+y[3],13),y[15]^=i(y[11]+y[7],18),y[1]^=i(y[0]+y[3],7),y[2]^=i(y[1]+y[0],9),y[3]^=i(y[2]+y[1],13),y[0]^=i(y[3]+y[2],18),y[6]^=i(y[5]+y[4],7),y[7]^=i(y[6]+y[5],9),y[4]^=i(y[7]+y[6],13),y[5]^=i(y[4]+y[7],18),y[11]^=i(y[10]+y[9],7),y[8]^=i(y[11]+y[10],9),y[9]^=i(y[8]+y[11],13),y[10]^=i(y[9]+y[8],18),y[12]^=i(y[15]+y[14],7),y[13]^=i(y[12]+y[15],9),y[14]^=i(y[13]+y[12],13),y[15]^=i(y[14]+y[13],18);for(let I=0;I<16;++I)m[I]+=y[I]}function o(m,y,I,C){for(let R=0;R=256)return!1}return!0}function l(m,y){if(typeof m!="number"||m%1)throw new Error("invalid "+y);return m}function h(m,y,I,C,R,L,F){if(I=l(I,"N"),C=l(C,"r"),R=l(R,"p"),L=l(L,"dkLen"),I===0||(I&I-1)!==0)throw new Error("N must be power of 2");if(I>2147483647/128/C)throw new Error("N too large");if(C>2147483647/128/R)throw new Error("r too large");if(!u(m))throw new Error("password must be an array or buffer");if(m=Array.prototype.slice.call(m),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let W=n(m,y,R*128*C),V=new Uint32Array(R*32*C);for(let E=0;Ex&&(E=x);for(let ee=0;eex&&(E=x);for(let ee=0;ee>0&255),W.push(V[ee]>>8&255),W.push(V[ee]>>16&255),W.push(V[ee]>>24&255);let z=n(m,W,L);return F&&F(null,1,z),z}F&&N(U)};if(!F)for(;;){let E=U();if(E!=null)return E}U()}let f={scrypt:function(m,y,I,C,R,L,F){return new Promise(function(W,V){let K=0;F&&F(0),h(m,y,I,C,R,L,function(H,G,Q){if(H)V(H);else if(Q)F&&K!==1&&F(1),W(new Uint8Array(Q));else if(F&&G!==K)return K=G,F(G)})})},syncScrypt:function(m,y,I,C,R,L){return new Uint8Array(h(m,y,I,C,R,L))}};typeof ixe<"u"?fQe.exports=f:typeof define=="function"&&define.amd?define(f):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=f)})(ixe)});var EQe=_(Oo=>{"use strict";d();p();var dVt=Oo&&Oo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pVt=Oo&&Oo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},hVt=Oo&&Oo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.decryptJsonWalletSync=Hs.decryptJsonWallet=Hs.getJsonWalletAddress=Hs.isKeystoreWallet=Hs.isCrowdsaleWallet=Hs.encryptKeystore=Hs.decryptKeystoreSync=Hs.decryptKeystore=Hs.decryptCrowdsale=void 0;var uxe=uQe();Object.defineProperty(Hs,"decryptCrowdsale",{enumerable:!0,get:function(){return uxe.decrypt}});var Jb=hQe();Object.defineProperty(Hs,"getJsonWalletAddress",{enumerable:!0,get:function(){return Jb.getJsonWalletAddress}});Object.defineProperty(Hs,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Jb.isCrowdsaleWallet}});Object.defineProperty(Hs,"isKeystoreWallet",{enumerable:!0,get:function(){return Jb.isKeystoreWallet}});var IZ=EQe();Object.defineProperty(Hs,"decryptKeystore",{enumerable:!0,get:function(){return IZ.decrypt}});Object.defineProperty(Hs,"decryptKeystoreSync",{enumerable:!0,get:function(){return IZ.decryptSync}});Object.defineProperty(Hs,"encryptKeystore",{enumerable:!0,get:function(){return IZ.encrypt}});function _Vt(r,e,t){if((0,Jb.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,uxe.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,Jb.isKeystoreWallet)(r)?(0,IZ.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}Hs.decryptJsonWallet=_Vt;function TVt(r,e){if((0,Jb.isCrowdsaleWallet)(r))return(0,uxe.decrypt)(r,e);if((0,Jb.isKeystoreWallet)(r))return(0,IZ.decryptSync)(r,e);throw new Error("invalid JSON wallet")}Hs.decryptJsonWalletSync=TVt});var CQe=_(nue=>{"use strict";d();p();Object.defineProperty(nue,"__esModule",{value:!0});nue.version=void 0;nue.version="wallet/5.7.0"});var hxe=_(hl=>{"use strict";d();p();var IVt=hl&&hl.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kQe=hl&&hl.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},AQe=hl&&hl.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(aue,"__esModule",{value:!0});aue.version=void 0;aue.version="networks/5.7.1"});var fxe=_(oue=>{"use strict";d();p();Object.defineProperty(oue,"__esModule",{value:!0});oue.getNetwork=void 0;var BVt=Zt(),DVt=MQe(),NQe=new BVt.Logger(DVt.version);function LVt(r){return r&&typeof r.renetwork=="function"}function d0(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var o=1;return n.quorum!=null?o=n.quorum:r==="homestead"&&(o=2),new t.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(t){return d0(t)},e}function sue(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return sue(r,n)},t}var BQe={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:d0("homestead")},DQe={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:d0("ropsten")},LQe={chainId:63,name:"classicMordor",_defaultProvider:sue("https://www.ethercluster.com/mordor","classicMordor")},iue={unspecified:{chainId:0,name:"unspecified"},homestead:BQe,mainnet:BQe,morden:{chainId:2,name:"morden"},ropsten:DQe,testnet:DQe,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:d0("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:d0("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:d0("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:d0("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:sue("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:LQe,classicTestnet:LQe,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:sue("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:d0("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:d0("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function OVt(r){if(r==null)return null;if(typeof r=="number"){for(var e in iue){var t=iue[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=iue[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=iue[r.name];if(!a)return typeof r.chainId!="number"&&NQe.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&NQe.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(LVt(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}oue.getNetwork=OVt});var OQe=_(cue=>{"use strict";d();p();Object.defineProperty(cue,"__esModule",{value:!0});cue.version=void 0;cue.version="web/5.7.1"});var qQe=_(eg=>{"use strict";d();p();var qVt=eg&&eg.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},FVt=eg&&eg.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var HVt=ep&&ep.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},jVt=ep&&ep.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;yh.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,o={},c=null,u={method:"GET"},l=!1,h=2*60*1e3;if(typeof r=="string")c=r;else if(typeof r=="object"){if((r==null||r.url==null)&&yh.throwArgumentError("missing URL","connection.url",r),c=r.url,typeof r.timeout=="number"&&r.timeout>0&&(h=r.timeout),r.headers)for(var f in r.headers)o[f.toLowerCase()]={key:f,value:String(r.headers[f])},["if-none-match","if-modified-since"].indexOf(f.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){c.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&yh.throwError("basic authentication requires a secure https url",p0.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:r.user,password:"[REDACTED]"});var m=r.user+":"+r.password;o.authorization={key:"Authorization",value:"Basic "+(0,FQe.encode)((0,kZ.toUtf8Bytes)(m))}}r.skipFetchSetup!=null&&(u.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(u.fetchOptions=(0,uue.shallowCopy)(r.fetchOptions))}var y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),I=c?c.match(y):null;if(I)try{var C={statusCode:200,statusMessage:"OK",headers:{"content-type":I[1]||"text/plain"},body:I[2]?(0,FQe.decode)(I[3]):GVt(I[3])},R=C.body;return t&&(R=t(C.body,C)),Promise.resolve(R)}catch(V){yh.throwError("processing response error",p0.Logger.errors.SERVER_ERROR,{body:tg(I[1],I[2]),error:V,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));var L={};Object.keys(o).forEach(function(V){var K=o[V];L[K.key]=K.value}),u.headers=L;var F=function(){var V=null,K=new Promise(function(G,Q){h&&(V=setTimeout(function(){V!=null&&(V=null,Q(yh.makeError("timeout",p0.Logger.errors.TIMEOUT,{requestBody:tg(u.body,L["content-type"]),requestMethod:u.method,timeout:h,url:c})))},h))}),H=function(){V!=null&&(clearTimeout(V),V=null)};return{promise:K,cancel:H}}(),W=function(){return HVt(this,void 0,void 0,function(){var V,K,H,v,G,Q,q,T,M,A,v,k;return jVt(this,function(O){switch(O.label){case 0:V=0,O.label=1;case 1:if(!(V=300)&&(F.cancel(),yh.throwError("bad response",p0.Logger.errors.SERVER_ERROR,{status:K.statusCode,headers:K.headers,body:tg(T,K.headers?K.headers["content-type"]:null),requestBody:tg(u.body,L["content-type"]),requestMethod:u.method,url:c})),!t)return[3,18];O.label=11;case 11:return O.trys.push([11,13,,18]),[4,t(T,K)];case 12:return M=O.sent(),F.cancel(),[2,M];case 13:return A=O.sent(),A.throttleRetry&&Vo){s()&&n(new Error("retry limit reached"));return}var h=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));he.ceiling&&(h=e.ceiling),setTimeout(u,h)}return null},function(l){s()&&n(l)})}u()})}ep.poll=YVt});var GQe=_((WMn,KQe)=>{"use strict";d();p();var due="qpzry9x8gf2tvdw0s3jn54khce6mua7l",mxe={};for(AZ=0;AZ>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function jQe(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=lx(e)^n>>5}for(e=lx(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=jQe(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=lx(n)^s,a+=due.charAt(s)}for(i=0;i<6;++i)n=lx(n);for(n^=1,i=0;i<6;++i){var o=n>>(5-i)*5&31;a+=due.charAt(o)}return a}function zQe(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var o=jQe(i);if(typeof o=="string")return o;for(var c=[],u=0;u=s.length)&&c.push(h)}return o!==1?"Invalid checksum for "+r:{prefix:i,words:c}}function QVt(){var r=zQe.apply(null,arguments);if(typeof r=="object")return r}function JVt(r){var e=zQe.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function pue(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,o.push(a>>i&s);if(n)i>0&&o.push(a<=e)return"Excess padding";if(a<{"use strict";d();p();Object.defineProperty(hue,"__esModule",{value:!0});hue.version=void 0;hue.version="providers/5.7.2"});var rg=_(Wf=>{"use strict";d();p();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.showThrottleMessage=Wf.isCommunityResource=Wf.isCommunityResourcable=Wf.Formatter=void 0;var yxe=Sd(),h0=Ls(),Ff=wr(),rYt=ib(),nYt=Aa(),VQe=l0(),aYt=Zt(),iYt=gc(),PZ=new aYt.Logger(iYt.version),sYt=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),o=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),l=this.type.bind(this),h=function(f){return e.data(f,!0)};return t.transaction={hash:o,type:l,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(o,null),blockNumber:r.allowNull(u,null),transactionIndex:r.allowNull(u,null),confirmations:r.allowNull(u,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:u,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(u),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(u),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(h),type:r.allowNull(u),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:n,topics:r.arrayOf(o),data:s,logIndex:u,blockHash:o},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:u,root:r.allowNull(c),gasUsed:a,logsBloom:r.allowNull(s),blockHash:o,transactionHash:o,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:r.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(u),type:l},t.block={hash:r.allowNull(o),parentHash:o,number:u,timestamp:u,nonce:r.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(o)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,nYt.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(o,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(u),blockHash:r.allowNull(o),transactionIndex:u,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(o),transactionHash:o,logIndex:u},t},r.prototype.accessList=function(e){return(0,VQe.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:h0.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:h0.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return h0.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,Ff.isHexString)(e))?e.toLowerCase():PZ.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,yxe.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,Ff.isHexString)(e,32))return null;var t=(0,yxe.getAddress)((0,Ff.hexDataSlice)(e,12));return t===rYt.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,yxe.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,Ff.isHexString)(e))return(0,Ff.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,Ff.hexDataLength)(n)!==32?PZ.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=h0.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,Ff.isHexString)(e))throw new Error("invalid uint256");return(0,Ff.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:h0.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&h0.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,Ff.isHexString)(n)&&(n=h0.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,Ff.isHexString)(n)&&(n=h0.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,VQe.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=h0.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&PZ.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):PZ.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&PZ.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();Wf.Formatter=sYt;function $Qe(r){return r&&typeof r.isCommunityResource=="function"}Wf.isCommunityResourcable=$Qe;function oYt(r){return $Qe(r)&&r.isCommunityResource()}Wf.isCommunityResource=oYt;var YQe=!1;function cYt(){YQe||(YQe=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}Wf.showThrottleMessage=cYt});var NZ=_(su=>{"use strict";d();p();var uYt=su&&su.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hr=su&&su.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},fr=su&&su.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[XQe(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return XQe(e)}).join("&")}function yYt(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function dx(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,ir.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+eJe(r);if(iJe.ForkEvent.isForkEvent(r))throw Rr.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+eJe(r.topics||[])}throw new Error("invalid event - "+r)}function SZ(){return new Date().getTime()}function tJe(r){return new Promise(function(e){setTimeout(e,r)})}var gYt=["block","network","pending","poll"],sJe=function(){function r(e,t,n){(0,ws.defineReadOnly)(this,"tag",e),(0,ws.defineReadOnly)(this,"listener",t),(0,ws.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=yYt(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||gYt.indexOf(this.tag)>=0},r}();su.Event=sJe;var bYt={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function gxe(r){return(0,ir.hexZeroPad)(iu.BigNumber.from(r).toHexString(),32)}function rJe(r){return wxe.Base58.encode((0,ir.concat)([r,(0,ir.hexDataSlice)((0,QQe.sha256)((0,QQe.sha256)(r)),0,4)]))}var oJe=new RegExp("^(ipfs)://(.*)$","i"),nJe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),oJe,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function fue(r,e){try{return(0,xxe.toUtf8String)(MZ(r,e))}catch{}return null}function MZ(r,e){if(r==="0x")return null;var t=iu.BigNumber.from((0,ir.hexDataSlice)(r,e,e+32)).toNumber(),n=iu.BigNumber.from((0,ir.hexDataSlice)(r,t,t+32)).toNumber();return(0,ir.hexDataSlice)(r,t+32,t+32+n)}function bxe(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):Rr.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function aJe(r){var e=(0,ir.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function vYt(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function cJe(r){for(var e=[],t=0,n=0;n=1&&s<=75)return rJe((0,ir.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var c=parseInt(o[1],16);if(o[2].length===c*2&&c>=1&&c<=75)return rJe((0,ir.concat)([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){var u=a[1],l=a[0];if(l===0?u!==20&&u!==32&&(l=-1):l=-1,l>=0&&a.length===2+u&&u>=1&&u<=75){var h=JQe.default.toWords(a.slice(2));return h.unshift(l),JQe.default.encode(n.prefix,h)}}return null},r.prototype.getAddress=function(e){return hr(this,void 0,void 0,function(){var t,n,a,i;return fr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===pYt.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===qr.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",gxe(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&Rr.throwError("invalid or unsupported coin data",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return hr(this,void 0,void 0,function(){var e,t,n,a,i,s,o,c,u,l,h,f,m,y,I,C,R,L,F,W,V,K,H,G,Q;return fr(this,function(q){switch(q.label){case 0:e=[{type:"name",content:this.name}],q.label=1;case 1:return q.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=q.sent(),t==null)return[2,null];n=0,q.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,px.fetchJson)({url:l,errorPassThrough:!0},h,function(I,C){return I.status=C.statusCode,I})]):[3,4];case 2:if(f=y.sent(),f.data)return[2,f.data];if(m=f.message||"unknown error",f.status>=400&&f.status<500)return[2,Rr.throwError("response not found during CCIP fetch: "+m,qr.Logger.errors.SERVER_ERROR,{url:u,errorMessage:m})];o.push(m),y.label=3;case 3:return c++,[3,1];case 4:return[2,Rr.throwError("error encountered during CCIP fetch: "+o.map(function(I){return JSON.stringify(I)}).join(", "),qr.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:o})]}})})},e.prototype._getInternalBlockNumber=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o,c=this;return fr(this,function(u){switch(u.label){case 0:return[4,this._ready()];case 1:if(u.sent(),!(t>0))return[3,7];u.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n];case 4:return a=u.sent(),SZ()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=u.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=SZ(),o=(0,ws.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(l){return null},function(l){return l})}).then(function(l){var h=l.blockNumber,f=l.networkError;if(f)throw c._internalBlockNumber===o&&(c._internalBlockNumber=null),f;var m=SZ();return h=iu.BigNumber.from(h).toNumber(),h1e3)Rr.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",Rr.makeError("network block skew detected",qr.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(u){if(u!=="block"){var l=o._emitted[u];l!=="pending"&&a-l>12&&delete o._emitted[u]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(u){switch(u.type){case"tx":{var l=u.hash,h=o.getTransactionReceipt(l).then(function(y){return!y||y.blockNumber==null||(o._emitted["t:"+l]=y.blockNumber,o.emit(l,y)),null}).catch(function(y){o.emit("error",y)});n.push(h);break}case"filter":{if(!u._inflight){u._inflight=!0,u._lastBlockNumber===-2&&(u._lastBlockNumber=a-1);var f=u.filter;f.fromBlock=u._lastBlockNumber+1,f.toBlock=a;var m=f.toBlock-o._maxFilterBlockRange;m>f.fromBlock&&(f.fromBlock=m),f.fromBlock<0&&(f.fromBlock=0);var h=o.getLogs(f).then(function(I){u._inflight=!1,I.length!==0&&I.forEach(function(C){C.blockNumber>u._lastBlockNumber&&(u._lastBlockNumber=C.blockNumber),o._emitted["b:"+C.blockHash]=C.blockNumber,o._emitted["t:"+C.transactionHash]=C.blockNumber,o.emit(f,C)})}).catch(function(I){o.emit("error",I),u._inflight=!1});n.push(h)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){o.emit("didPoll",t)}).catch(function(u){o.emit("error",u)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,Rr.throwError("provider does not support network detection",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return hr(this,void 0,void 0,function(){var t,n,a;return fr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,tJe(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=Rr.makeError("underlying network changed",qr.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=SZ();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return hr(this,void 0,void 0,function(){return fr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return hr(this,void 0,void 0,function(){var s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=c.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(u,l){var h=[],f=!1,m=function(){return f?!0:(f=!0,h.forEach(function(F){F()}),!1)},y=function(F){F.confirmations0){var L=setTimeout(function(){m()||l(Rr.makeError("timeout exceeded",qr.Logger.errors.TIMEOUT,{timeout:a}))},a);L.unref&&L.unref(),h.push(function(){clearTimeout(L)})}})]}})})},e.prototype.getBlockNumber=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return hr(this,void 0,void 0,function(){var t;return fr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,iu.BigNumber.from(t)]}catch(a){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,iu.BigNumber.from(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,iu.BigNumber.from(i).toNumber()]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getCode=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,ir.hexlify)(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s;return fr(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(c){return(0,ir.hexValue)(c)})})];case 2:return i=o.sent(),[4,this.perform("getStorageAt",i)];case 3:s=o.sent();try{return[2,(0,ir.hexlify)(s)]}catch(c){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:c})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,ir.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&Rr.throwError("Transaction hash mismatch from Provider.sendTransaction.",qr.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(o,c){return hr(i,void 0,void 0,function(){var u,l;return fr(this,function(h){switch(h.label){case 0:return o==null&&(o=1),c==null&&(c=0),u=void 0,o!==0&&a!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,o,c,u)];case 1:return l=h.sent(),l==null&&o===0?[2,null]:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&Rr.throwError("transaction failed",qr.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),[2,l])}})})},s},e.prototype.sendTransaction=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o;return fr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,Promise.resolve(t).then(function(u){return(0,ir.hexlify)(u)})];case 2:return n=c.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=c.sent(),c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=c.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw o=c.sent(),o.transaction=a,o.transactionHash=a.hash,o;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return n=c.sent(),a={},["from","to"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?o._getAddress(l):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?iu.BigNumber.from(l):null}))}),["type"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?(0,ir.hexlify)(l):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,ws.resolveProperties)(a)];case 2:return[2,s.apply(i,[c.sent()])]}})})},e.prototype._getFilter=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s=this;return fr(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(c){t[c]!=null&&(n[c]=t[c])}),["fromBlock","toBlock"].forEach(function(c){t[c]!=null&&(n[c]=s._getBlockTag(t[c]))}),i=(a=this.formatter).filter,[4,(0,ws.resolveProperties)(n)];case 2:return[2,i.apply(a,[o.sent()])]}})})},e.prototype._call=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f,m,y,I,C,R,L,F,W;return fr(this,function(V){switch(V.label){case 0:return a>=mYt&&Rr.throwError("CCIP read exceeded maximum redirections",qr.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=V.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,ir.hexDataLength)(s)%32===4))return[3,5];V.label=2;case 2:for(V.trys.push([2,4,,5]),o=(0,ir.hexDataSlice)(s,4),c=(0,ir.hexDataSlice)(o,0,32),iu.BigNumber.from(c).eq(i)||Rr.throwError("CCIP Read sender did not match",qr.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),u=[],l=iu.BigNumber.from((0,ir.hexDataSlice)(o,32,64)).toNumber(),h=iu.BigNumber.from((0,ir.hexDataSlice)(o,l,l+32)).toNumber(),f=(0,ir.hexDataSlice)(o,l+32),m=0;mthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];h=null,f=0,R.label=2;case 2:return f0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new sJe(dx(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";d();p();var Exe=tp&&tp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),f0=tp&&tp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},m0=tp&&tp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&js.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",lo.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function dJe(r){return new Promise(function(e){setTimeout(e,r)})}function kYt(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function BZ(r){return r&&r.toLowerCase()}var Ixe={},Cxe=function(r){Exe(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==Ixe)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,xs.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,xs.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,xs.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,xs.defineReadOnly)(i,"_index",a),(0,xs.defineReadOnly)(i,"_address",null)):js.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return js.throwError("cannot alter JSON-RPC Signer connection",lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new AYt(Ixe,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&js.throwError("unknown account #"+t._index,lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,xs.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,xs.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return f0(n,void 0,void 0,function(){var o;return m0(this,function(c){switch(c.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return o=c.sent(),o==null&&js.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,o]}})})})),(0,xs.resolveProperties)({tx:(0,xs.resolveProperties)(t),sender:a}).then(function(s){var o=s.tx,c=s.sender;o.from!=null?o.from.toLowerCase()!==c&&js.throwArgumentError("from address mismatch","transaction",t):o.from=c;var u=n.provider.constructor.hexlifyTransaction(o,{from:!0});return n.provider.send("eth_sendTransaction",[u]).then(function(l){return l},function(l){return typeof l.message=="string"&&l.message.match(/user denied/i)&&js.throwError("user rejected transaction",lo.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),hJe("sendTransaction",l,u)})})},e.prototype.signTransaction=function(t){return js.throwError("signing transactions is unsupported",lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return f0(this,void 0,void 0,function(){var n,a,i,s=this;return m0(this,function(o){switch(o.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=o.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,(0,pJe.poll)(function(){return f0(s,void 0,void 0,function(){var c;return m0(this,function(u){switch(u.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return c=u.sent(),c===null?[2,void 0]:[2,this.provider._wrapTransaction(c,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,o.sent()];case 5:throw i=o.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return f0(this,void 0,void 0,function(){var n,a,i;return m0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,lJe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,hx.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&js.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return f0(this,void 0,void 0,function(){var n,a,i;return m0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,lJe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,hx.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&js.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return f0(this,void 0,void 0,function(){var i,s,o,c=this;return m0(this,function(u){switch(u.label){case 0:return[4,uJe._TypedDataEncoder.resolveNames(t,n,a,function(l){return c.provider.resolveName(l)})];case 1:return i=u.sent(),[4,this.getAddress()];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(uJe._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,u.sent()];case 5:throw o=u.sent(),typeof o.message=="string"&&o.message.match(/user denied/i)&&js.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),o;case 6:return[2]}})})},e.prototype.unlock=function(t){return f0(this,void 0,void 0,function(){var n,a;return m0(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(_Yt.Signer);tp.JsonRpcSigner=Cxe;var AYt=function(r){Exe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}(Cxe),PYt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},SYt=function(r){Exe(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,o){setTimeout(function(){a.detectNetwork().then(function(c){s(c)},function(c){o(c)})},0)})),a=r.call(this,i)||this,t||(t=(0,xs.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,xs.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,xs.defineReadOnly)(a,"connection",Object.freeze((0,xs.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return f0(this,void 0,void 0,function(){var t,n,a,i;return m0(this,function(s){switch(s.label){case 0:return[4,dJe(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,xs.getStatic)(this.constructor,"getNetwork");try{return[2,i(Txe.BigNumber.from(t).toNumber())]}catch(o){return[2,js.throwError("could not detect network",lo.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})]}}return[2,js.throwError("could not detect network",lo.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new Cxe(Ixe,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,xs.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var o=(0,pJe.fetchJson)(this.connection,JSON.stringify(i),kYt).then(function(c){return a.emit("debug",{action:"response",request:i,response:c,provider:a}),c},function(c){throw a.emit("debug",{action:"response",error:c,request:i,provider:a}),c});return s&&(this._cache[t]=o,setTimeout(function(){a._cache[t]=null},0)),o},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[BZ(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[BZ(n.address),n.blockTag]];case"getCode":return["eth_getCode",[BZ(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[BZ(n.address),(0,hx.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,xs.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,xs.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=BZ(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return f0(this,void 0,void 0,function(){var a,i,s,o;return m0(this,function(c){switch(c.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&Txe.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=c.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,xs.shallowCopy)(n),n.transaction=(0,xs.shallowCopy)(a),delete n.transaction.type),c.label=2;case 2:s=this.prepareRequest(t,n),s==null&&js.throwError(t+" not implemented",lo.Logger.errors.NOT_IMPLEMENTED,{operation:t}),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,c.sent()];case 5:return o=c.sent(),[2,hJe(t,o,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var o=Promise.resolve();return s.forEach(function(c){t._emitted["t:"+c.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(c).then(function(u){return t.emit("pending",u),null})})}),o.then(function(){return dJe(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,xs.shallowCopy)(PYt);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,xs.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(t[o]!=null){var c=(0,hx.hexValue)(Txe.BigNumber.from(t[o]));o==="gasLimit"&&(o="gas"),s[o]=c}}),["from","to","data"].forEach(function(o){t[o]!=null&&(s[o]=(0,hx.hexlify)(t[o]))}),t.accessList&&(s.accessList=(0,TYt.accessListify)(t.accessList)),s},e}(EYt.BaseProvider);tp.JsonRpcProvider=SYt});var yJe=_(mx=>{"use strict";d();p();Object.defineProperty(mx,"__esModule",{value:!0});mx.WebSocket=void 0;var fJe=Zt(),RYt=gc(),mue=null;mx.WebSocket=mue;try{if(mx.WebSocket=mue=WebSocket,mue==null)throw new Error("inject please")}catch{mJe=new fJe.Logger(RYt.version),mx.WebSocket=mue=function(){mJe.throwError("WebSockets not supported in this environment",fJe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var mJe});var gue=_(Uf=>{"use strict";d();p();var MYt=Uf&&Uf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kxe=Uf&&Uf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Axe=Uf&&Uf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var bJe=rp&&rp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qYt=rp&&rp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},FYt=rp&&rp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var xJe=ig&&ig.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ig,"__esModule",{value:!0});ig.AlchemyProvider=ig.AlchemyWebSocketProvider=void 0;var jYt=Aa(),zYt=rg(),KYt=gue(),GYt=Zt(),VYt=gc(),wJe=new GYt.Logger(VYt.version),YYt=ag(),vue="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",_Je=function(r){xJe(e,r);function e(t,n){var a=this,i=new TJe(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,jYt.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===vue},e}(KYt.WebSocketProvider);ig.AlchemyWebSocketProvider=_Je;var TJe=function(r){xJe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new _Je(t,n)},e.getApiKey=function(t){return t==null?vue:(t&&typeof t!="string"&&wJe.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:wJe.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===vue&&(0,zYt.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===vue},e}(YYt.UrlJsonRpcProvider);ig.AlchemyProvider=TJe});var EJe=_(gx=>{"use strict";d();p();var $Yt=gx&&gx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gx,"__esModule",{value:!0});gx.AnkrProvider=void 0;var QYt=rg(),JYt=ag(),ZYt=Zt(),XYt=gc(),e$t=new ZYt.Logger(XYt.version),wue="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function t$t(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return e$t.throwArgumentError("unsupported network","name",r)}var r$t=function(r){$Yt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===wue},e.getApiKey=function(t){return t??wue},e.getUrl=function(t,n){n==null&&(n=wue);var a={allowGzip:!0,url:"https://"+t$t(t.name)+n,throttleCallback:function(i,s){return n.apiKey===wue&&(0,QYt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(JYt.UrlJsonRpcProvider);gx.AnkrProvider=r$t});var kJe=_(Hf=>{"use strict";d();p();var n$t=Hf&&Hf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),a$t=Hf&&Hf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},i$t=Hf&&Hf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var l$t=zf&&zf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xue=zf&&zf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},_ue=zf&&zf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&(e.throttleRetry=!0),e}return r.result}function PJe(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function SJe(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function Sxe(r,e,t){if(r==="call"&&e.code===jf.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,Tue.isHexString)(a))return a;sg.throwError("missing revert data in call exception",jf.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===jf.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&sg.throwError("insufficient funds for intrinsic transaction cost",jf.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&sg.throwError("nonce has already been used",jf.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&sg.throwError("replacement fee too low",jf.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&sg.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",jf.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var g$t=function(r){l$t(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,Pxe.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,Pxe.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return sg.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,o){var c=n[o];return c!=null&&(s+="&"+o+"="+c),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return xue(this,void 0,void 0,function(){var i,s,o,c,u,l,h=this;return _ue(this,function(f){switch(f.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,o=t==="proxy"?PJe:y$t,this.emit("debug",{action:"request",request:i,provider:this}),c={url:i,throttleSlotInterval:1e3,throttleCallback:function(m,y){return h.isCommunityResource()&&(0,h$t.showThrottleMessage)(),Promise.resolve(!0)}},u=null,s&&(c.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(s).map(function(m){return m+"="+s[m]}).join("&")),[4,(0,p$t.fetchJson)(c,u,o||PJe)];case 1:return l=f.sent(),this.emit("debug",{action:"response",request:i,response:(0,Pxe.deepCopy)(l),provider:this}),[2,l]}})})},e.prototype.detectNetwork=function(){return xue(this,void 0,void 0,function(){return _ue(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return xue(this,void 0,void 0,function(){var a,s,i,s,o,c,u,l,h,f,m,y,I;return _ue(this,function(C){switch(C.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(R){return Sxe("sendTransaction",R,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=AJe(n.transaction),s.module="proxy",s.action="eth_call",C.label=12;case 12:return C.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,C.sent()];case 14:return i=C.sent(),[2,Sxe("call",i,n.transaction)];case 15:s=AJe(n.transaction),s.module="proxy",s.action="eth_estimateGas",C.label=16;case 16:return C.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,C.sent()];case 18:return o=C.sent(),[2,Sxe("estimateGas",o,n.transaction)];case 19:return c={action:"getLogs"},n.filter.fromBlock&&(c.fromBlock=SJe(n.filter.fromBlock)),n.filter.toBlock&&(c.toBlock=SJe(n.filter.toBlock)),n.filter.address&&(c.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&sg.throwError("unsupported topic count",jf.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(u=n.filter.topics[0],(typeof u!="string"||u.length!==66)&&sg.throwError("unsupported topic format",jf.Logger.errors.UNSUPPORTED_OPERATION,{topic0:u}),c.topic0=u)),[4,this.fetch("logs",c)];case 20:l=C.sent(),h={},f=0,C.label=21;case 21:return f{"use strict";d();p();var b$t=Gf&&Gf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cue=Gf&&Gf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},FZ=Gf&&Gf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]e?null:(n+a)/2}function vx(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(w$t.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return vx(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=vx(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var E$t=1;function DJe(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var C$t=[og.Logger.errors.CALL_EXCEPTION,og.Logger.errors.INSUFFICIENT_FUNDS,og.Logger.errors.NONCE_EXPIRED,og.Logger.errors.REPLACEMENT_UNDERPRICED,og.Logger.errors.UNPREDICTABLE_GAS_LIMIT],k$t=["address","args","errorArgs","errorSignature","method","transaction"];function Eue(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function A$t(r,e){return function(t){var n={};t.forEach(function(o){var c=r(o.result);n[c]||(n[c]={count:0,result:o.result}),n[c].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function P$t(r,e,t){var n=vx;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(o){return o.result}),s=BJe(a.map(function(o){return o.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return BJe(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,Kf.shallowCopy)(a),a.confirmations=-1,vx(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,Kf.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,Kf.shallowCopy)(i),i.confirmations=-1,i}),vx(a))}:n=function(a){return a==null?null:vx(a)};break;default:throw new Error("unknown method: "+e)}return A$t(n,r.quorum)}function qZ(r,e){return Cue(this,void 0,void 0,function(){var t;return FZ(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,_$t.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function S$t(r,e,t,n){return Cue(this,void 0,void 0,function(){var a,i,s;return FZ(this,function(o){switch(o.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,5];case 4:a=o.sent(),o.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,8];case 7:a=o.sent(),o.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,11];case 10:a=o.sent(),o.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,14];case 13:a=o.sent(),o.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,bx.isHexString)(s.fromBlock)||s.toBlock&&(0,bx.isHexString)(s.toBlock)?[4,qZ(r,e)]:[3,18];case 17:a=o.sent(),o.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,ev.throwError("unknown method error",og.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var R$t=function(r){b$t(e,r);function e(t,n){var a=this;t.length===0&&ev.throwArgumentError("missing providers","providers",t);var i=t.map(function(c,u){if(v$t.Provider.isProvider(c)){var l=(0,MJe.isCommunityResource)(c)?2e3:750,h=1;return Object.freeze({provider:c,weight:1,stallTimeout:l,priority:h})}var f=(0,Kf.shallowCopy)(c);f.priority==null&&(f.priority=1),f.stallTimeout==null&&(f.stallTimeout=(0,MJe.isCommunityResource)(c)?2e3:750),f.weight==null&&(f.weight=1);var m=f.weight;return(m%1||m>512||m<1)&&ev.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+u+"].weight",m),Object.freeze(f)}),s=i.reduce(function(c,u){return c+u.weight},0);n==null?n=s/2:n>s&&ev.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var o=NJe(i.map(function(c){return c.provider.network}));return o==null&&(o=new Promise(function(c,u){setTimeout(function(){a.detectNetwork().then(c,u)},0)})),a=r.call(this,o)||this,(0,Kf.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,Kf.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return Cue(this,void 0,void 0,function(){var t;return FZ(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,NJe(t)]}})})},e.prototype.perform=function(t,n){return Cue(this,void 0,void 0,function(){var a,i,s,o,c,u,l,h,f,m,y,I=this;return FZ(this,function(C){switch(C.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(R){return R.provider.sendTransaction(n.signedTransaction).then(function(L){return L.hash},function(L){return L})}))];case 1:for(a=C.sent(),i=0;i=m.quorum?(K=o(V),K!==void 0?(c.forEach(function(Q){Q.staller&&Q.staller.cancel(),Q.cancelled=!0}),[2,{value:K}]):h?[3,4]:[4,DJe(100).getPromise()]):[3,5];case 3:G.sent(),G.label=4;case 4:h=!1,G.label=5;case 5:return H=c.reduce(function(Q,q){if(!q.done||q.error==null)return Q;var T=q.error.code;return C$t.indexOf(T)>=0&&(Q[T]||(Q[T]={error:q.error,weight:0}),Q[T].weight+=q.weight),Q},{}),Object.keys(H).forEach(function(Q){var q=H[Q];if(!(q.weight{"use strict";d();p();Object.defineProperty(kue,"__esModule",{value:!0});kue.IpcProvider=void 0;var M$t=null;kue.IpcProvider=M$t});var UJe=_(cg=>{"use strict";d();p();var qJe=cg&&cg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cg,"__esModule",{value:!0});cg.InfuraProvider=cg.InfuraWebSocketProvider=void 0;var Rxe=Aa(),N$t=gue(),B$t=rg(),Mxe=Zt(),D$t=gc(),Aue=new Mxe.Logger(D$t.version),L$t=ag(),WZ="84842078b09946638c03157f83405213",FJe=function(r){qJe(e,r);function e(t,n){var a=this,i=new WJe(t,n),s=i.connection;s.password&&Aue.throwError("INFURA WebSocket project secrets unsupported",Mxe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var o=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,o,t)||this,(0,Rxe.defineReadOnly)(a,"apiKey",i.projectId),(0,Rxe.defineReadOnly)(a,"projectId",i.projectId),(0,Rxe.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===WZ},e}(N$t.WebSocketProvider);cg.InfuraWebSocketProvider=FJe;var WJe=function(r){qJe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new FJe(t,n)},e.getApiKey=function(t){var n={apiKey:WZ,projectId:WZ,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(Aue.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),Aue.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:Aue.throwError("unsupported network",Mxe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,o){return n.projectId===WZ&&(0,B$t.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===WZ},e}(L$t.UrlJsonRpcProvider);cg.InfuraProvider=WJe});var HJe=_(wx=>{"use strict";d();p();var O$t=wx&&wx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wx,"__esModule",{value:!0});wx.JsonRpcBatchProvider=void 0;var q$t=Aa(),F$t=Xb(),W$t=fx(),U$t=function(r){O$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},o=new Promise(function(c,u){s.resolve=c,s.reject=u});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var c=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var u=c.map(function(l){return l.request});return a.emit("debug",{action:"requestBatch",request:(0,q$t.deepCopy)(u),provider:a}),(0,F$t.fetchJson)(a.connection,JSON.stringify(u)).then(function(l){a.emit("debug",{action:"response",request:u,response:l,provider:a}),c.forEach(function(h,f){var m=l[f];if(m.error){var y=new Error(m.error.message);y.code=m.error.code,y.data=m.error.data,h.reject(y)}else h.resolve(m.result)})},function(l){a.emit("debug",{action:"response",error:l,request:u,provider:a}),c.forEach(function(h){h.reject(l)})})},10)),o},e}(W$t.JsonRpcProvider);wx.JsonRpcBatchProvider=U$t});var jJe=_(xx=>{"use strict";d();p();var H$t=xx&&xx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xx,"__esModule",{value:!0});xx.NodesmithProvider=void 0;var j$t=ag(),z$t=Zt(),K$t=gc(),Nxe=new z$t.Logger(K$t.version),G$t="ETHERS_JS_SHARED",V$t=function(r){H$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&Nxe.throwArgumentError("invalid apiKey","apiKey",t),t||G$t},e.getUrl=function(t,n){Nxe.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Nxe.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(j$t.UrlJsonRpcProvider);xx.NodesmithProvider=V$t});var VJe=_(_x=>{"use strict";d();p();var Y$t=_x&&_x.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_x,"__esModule",{value:!0});_x.PocketProvider=void 0;var GJe=Zt(),$$t=gc(),zJe=new GJe.Logger($$t.version),Q$t=ag(),KJe="62e1ad51b37b8e00394bda3b",J$t=function(r){Y$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=KJe:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:zJe.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:zJe.throwError("unsupported network",GJe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===KJe},e}(Q$t.UrlJsonRpcProvider);_x.PocketProvider=J$t});var QJe=_(Tx=>{"use strict";d();p();var Z$t=Tx&&Tx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tx,"__esModule",{value:!0});Tx.Web3Provider=void 0;var Pue=Aa(),X$t=Zt(),eQt=gc(),YJe=new X$t.Logger(eQt.version),tQt=fx(),rQt=1;function $Je(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:rQt++,jsonrpc:"2.0"};return new Promise(function(o,c){i.emit("debug",{action:"request",fetcher:t,request:(0,Pue.deepCopy)(s),provider:i}),e(s,function(u,l){if(u)return i.emit("debug",{action:"response",fetcher:t,error:u,request:s,provider:i}),c(u);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:l,provider:i}),l.error){var h=new Error(l.error.message);return h.code=l.error.code,h.data=l.error.data,c(h)}o(l.result)})})}}function nQt(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,Pue.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var aQt=function(r){Z$t(e,r);function e(t,n){var a=this;t==null&&YJe.throwArgumentError("missing provider","provider",t);var i=null,s=null,o=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),o=t,t.request?(i===""&&(i="eip-1193:"),s=nQt(t)):t.sendAsync?s=$Je(t,t.sendAsync.bind(t)):t.send?s=$Je(t,t.send.bind(t)):YJe.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,Pue.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,Pue.defineReadOnly)(a,"provider",o),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(tQt.JsonRpcProvider);Tx.Web3Provider=aQt});var Lxe=_(ft=>{"use strict";d();p();Object.defineProperty(ft,"__esModule",{value:!0});ft.Formatter=ft.showThrottleMessage=ft.isCommunityResourcable=ft.isCommunityResource=ft.getNetwork=ft.getDefaultProvider=ft.JsonRpcSigner=ft.IpcProvider=ft.WebSocketProvider=ft.Web3Provider=ft.StaticJsonRpcProvider=ft.PocketProvider=ft.NodesmithProvider=ft.JsonRpcBatchProvider=ft.JsonRpcProvider=ft.InfuraWebSocketProvider=ft.InfuraProvider=ft.EtherscanProvider=ft.CloudflareProvider=ft.AnkrProvider=ft.AlchemyWebSocketProvider=ft.AlchemyProvider=ft.FallbackProvider=ft.UrlJsonRpcProvider=ft.Resolver=ft.BaseProvider=ft.Provider=void 0;var iQt=o3();Object.defineProperty(ft,"Provider",{enumerable:!0,get:function(){return iQt.Provider}});var ZJe=fxe();Object.defineProperty(ft,"getNetwork",{enumerable:!0,get:function(){return ZJe.getNetwork}});var XJe=NZ();Object.defineProperty(ft,"BaseProvider",{enumerable:!0,get:function(){return XJe.BaseProvider}});Object.defineProperty(ft,"Resolver",{enumerable:!0,get:function(){return XJe.Resolver}});var Bxe=IJe();Object.defineProperty(ft,"AlchemyProvider",{enumerable:!0,get:function(){return Bxe.AlchemyProvider}});Object.defineProperty(ft,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return Bxe.AlchemyWebSocketProvider}});var eZe=EJe();Object.defineProperty(ft,"AnkrProvider",{enumerable:!0,get:function(){return eZe.AnkrProvider}});var tZe=kJe();Object.defineProperty(ft,"CloudflareProvider",{enumerable:!0,get:function(){return tZe.CloudflareProvider}});var rZe=RJe();Object.defineProperty(ft,"EtherscanProvider",{enumerable:!0,get:function(){return rZe.EtherscanProvider}});var nZe=LJe();Object.defineProperty(ft,"FallbackProvider",{enumerable:!0,get:function(){return nZe.FallbackProvider}});var aZe=OJe();Object.defineProperty(ft,"IpcProvider",{enumerable:!0,get:function(){return aZe.IpcProvider}});var Dxe=UJe();Object.defineProperty(ft,"InfuraProvider",{enumerable:!0,get:function(){return Dxe.InfuraProvider}});Object.defineProperty(ft,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return Dxe.InfuraWebSocketProvider}});var Sue=fx();Object.defineProperty(ft,"JsonRpcProvider",{enumerable:!0,get:function(){return Sue.JsonRpcProvider}});Object.defineProperty(ft,"JsonRpcSigner",{enumerable:!0,get:function(){return Sue.JsonRpcSigner}});var sQt=HJe();Object.defineProperty(ft,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return sQt.JsonRpcBatchProvider}});var iZe=jJe();Object.defineProperty(ft,"NodesmithProvider",{enumerable:!0,get:function(){return iZe.NodesmithProvider}});var sZe=VJe();Object.defineProperty(ft,"PocketProvider",{enumerable:!0,get:function(){return sZe.PocketProvider}});var oZe=ag();Object.defineProperty(ft,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return oZe.StaticJsonRpcProvider}});Object.defineProperty(ft,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return oZe.UrlJsonRpcProvider}});var cZe=QJe();Object.defineProperty(ft,"Web3Provider",{enumerable:!0,get:function(){return cZe.Web3Provider}});var uZe=gue();Object.defineProperty(ft,"WebSocketProvider",{enumerable:!0,get:function(){return uZe.WebSocketProvider}});var Rue=rg();Object.defineProperty(ft,"Formatter",{enumerable:!0,get:function(){return Rue.Formatter}});Object.defineProperty(ft,"isCommunityResourcable",{enumerable:!0,get:function(){return Rue.isCommunityResourcable}});Object.defineProperty(ft,"isCommunityResource",{enumerable:!0,get:function(){return Rue.isCommunityResource}});Object.defineProperty(ft,"showThrottleMessage",{enumerable:!0,get:function(){return Rue.showThrottleMessage}});var lZe=Zt(),oQt=gc(),JJe=new lZe.Logger(oQt.version);function cQt(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new Sue.JsonRpcProvider(r);case"ws":case"wss":return new uZe.WebSocketProvider(r);default:JJe.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,ZJe.getNetwork)(r);return(!n||!n._defaultProvider)&&JJe.throwError("unsupported getDefaultProvider network",lZe.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:nZe.FallbackProvider,AlchemyProvider:Bxe.AlchemyProvider,AnkrProvider:eZe.AnkrProvider,CloudflareProvider:tZe.CloudflareProvider,EtherscanProvider:rZe.EtherscanProvider,InfuraProvider:Dxe.InfuraProvider,JsonRpcProvider:Sue.JsonRpcProvider,NodesmithProvider:iZe.NodesmithProvider,PocketProvider:sZe.PocketProvider,Web3Provider:cZe.Web3Provider,IpcProvider:aZe.IpcProvider},e)}ft.getDefaultProvider=cQt});var dZe=_(Mue=>{"use strict";d();p();Object.defineProperty(Mue,"__esModule",{value:!0});Mue.version=void 0;Mue.version="solidity/5.7.0"});var hZe=_(ug=>{"use strict";d();p();Object.defineProperty(ug,"__esModule",{value:!0});ug.sha256=ug.keccak256=ug.pack=void 0;var uQt=Ls(),gh=wr(),lQt=jl(),dQt=Vb(),pQt=qs(),hQt=new RegExp("^bytes([0-9]+)$"),fQt=new RegExp("^(u?int)([0-9]*)$"),mQt=new RegExp("^(.*)\\[([0-9]*)\\]$"),yQt="0000000000000000000000000000000000000000000000000000000000000000",gQt=Zt(),bQt=dZe(),Ix=new gQt.Logger(bQt.version);function pZe(r,e,t){switch(r){case"address":return t?(0,gh.zeroPad)(e,32):(0,gh.arrayify)(e);case"string":return(0,pQt.toUtf8Bytes)(e);case"bytes":return(0,gh.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,gh.zeroPad)(e,32):(0,gh.arrayify)(e)}var n=r.match(fQt);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&Ix.throwArgumentError("invalid number type","type",r),t&&(a=256),e=uQt.BigNumber.from(e).toTwos(a),(0,gh.zeroPad)(e,a/8)}if(n=r.match(hQt),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&Ix.throwArgumentError("invalid bytes type","type",r),(0,gh.arrayify)(e).byteLength!==a&&Ix.throwArgumentError("invalid value for "+r,"value",e),t?(0,gh.arrayify)((e+yQt).substring(0,66)):e}if(n=r.match(mQt),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&Ix.throwArgumentError("invalid array length for "+r,"value",e);var o=[];return e.forEach(function(c){o.push(pZe(i,c,!0))}),(0,gh.concat)(o)}return Ix.throwArgumentError("invalid type","type",r)}function Oxe(r,e){r.length!=e.length&&Ix.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(pZe(n,e[a]))}),(0,gh.hexlify)((0,gh.concat)(t))}ug.pack=Oxe;function vQt(r,e){return(0,lQt.keccak256)(Oxe(r,e))}ug.keccak256=vQt;function wQt(r,e){return(0,dQt.sha256)(Oxe(r,e))}ug.sha256=wQt});var fZe=_(Nue=>{"use strict";d();p();Object.defineProperty(Nue,"__esModule",{value:!0});Nue.version=void 0;Nue.version="units/5.7.0"});var wZe=_(np=>{"use strict";d();p();Object.defineProperty(np,"__esModule",{value:!0});np.parseEther=np.formatEther=np.parseUnits=np.formatUnits=np.commify=void 0;var mZe=Ls(),xQt=Zt(),_Qt=fZe(),yZe=new xQt.Logger(_Qt.version),gZe=["wei","kwei","mwei","gwei","szabo","finney","ether"];function TQt(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&yZe.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}np.commify=TQt;function bZe(r,e){if(typeof e=="string"){var t=gZe.indexOf(e);t!==-1&&(e=3*t)}return(0,mZe.formatFixed)(r,e??18)}np.formatUnits=bZe;function vZe(r,e){if(typeof r!="string"&&yZe.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=gZe.indexOf(e);t!==-1&&(e=3*t)}return(0,mZe.parseFixed)(r,e??18)}np.parseUnits=vZe;function IQt(r){return bZe(r,18)}np.formatEther=IQt;function EQt(r){return vZe(r,18)}np.parseEther=EQt});var Xr=_(le=>{"use strict";d();p();var CQt=le&&le.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),kQt=le&&le.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),xZe=le&&le.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&CQt(e,r,t);return kQt(e,r),e};Object.defineProperty(le,"__esModule",{value:!0});le.formatBytes32String=le.Utf8ErrorFuncs=le.toUtf8String=le.toUtf8CodePoints=le.toUtf8Bytes=le._toEscapedUtf8String=le.nameprep=le.hexDataSlice=le.hexDataLength=le.hexZeroPad=le.hexValue=le.hexStripZeros=le.hexConcat=le.isHexString=le.hexlify=le.base64=le.base58=le.TransactionDescription=le.LogDescription=le.Interface=le.SigningKey=le.HDNode=le.defaultPath=le.isBytesLike=le.isBytes=le.zeroPad=le.stripZeros=le.concat=le.arrayify=le.shallowCopy=le.resolveProperties=le.getStatic=le.defineReadOnly=le.deepCopy=le.checkProperties=le.poll=le.fetchJson=le._fetchData=le.RLP=le.Logger=le.checkResultErrors=le.FormatTypes=le.ParamType=le.FunctionFragment=le.EventFragment=le.ErrorFragment=le.ConstructorFragment=le.Fragment=le.defaultAbiCoder=le.AbiCoder=void 0;le.Indexed=le.Utf8ErrorReason=le.UnicodeNormalizationForm=le.SupportedAlgorithm=le.mnemonicToSeed=le.isValidMnemonic=le.entropyToMnemonic=le.mnemonicToEntropy=le.getAccountPath=le.verifyTypedData=le.verifyMessage=le.recoverPublicKey=le.computePublicKey=le.recoverAddress=le.computeAddress=le.getJsonWalletAddress=le.TransactionTypes=le.serializeTransaction=le.parseTransaction=le.accessListify=le.joinSignature=le.splitSignature=le.soliditySha256=le.solidityKeccak256=le.solidityPack=le.shuffled=le.randomBytes=le.sha512=le.sha256=le.ripemd160=le.keccak256=le.computeHmac=le.commify=le.parseUnits=le.formatUnits=le.parseEther=le.formatEther=le.isAddress=le.getCreate2Address=le.getContractAddress=le.getIcapAddress=le.getAddress=le._TypedDataEncoder=le.id=le.isValidName=le.namehash=le.hashMessage=le.dnsEncode=le.parseBytes32String=void 0;var fl=W2e();Object.defineProperty(le,"AbiCoder",{enumerable:!0,get:function(){return fl.AbiCoder}});Object.defineProperty(le,"checkResultErrors",{enumerable:!0,get:function(){return fl.checkResultErrors}});Object.defineProperty(le,"ConstructorFragment",{enumerable:!0,get:function(){return fl.ConstructorFragment}});Object.defineProperty(le,"defaultAbiCoder",{enumerable:!0,get:function(){return fl.defaultAbiCoder}});Object.defineProperty(le,"ErrorFragment",{enumerable:!0,get:function(){return fl.ErrorFragment}});Object.defineProperty(le,"EventFragment",{enumerable:!0,get:function(){return fl.EventFragment}});Object.defineProperty(le,"FormatTypes",{enumerable:!0,get:function(){return fl.FormatTypes}});Object.defineProperty(le,"Fragment",{enumerable:!0,get:function(){return fl.Fragment}});Object.defineProperty(le,"FunctionFragment",{enumerable:!0,get:function(){return fl.FunctionFragment}});Object.defineProperty(le,"Indexed",{enumerable:!0,get:function(){return fl.Indexed}});Object.defineProperty(le,"Interface",{enumerable:!0,get:function(){return fl.Interface}});Object.defineProperty(le,"LogDescription",{enumerable:!0,get:function(){return fl.LogDescription}});Object.defineProperty(le,"ParamType",{enumerable:!0,get:function(){return fl.ParamType}});Object.defineProperty(le,"TransactionDescription",{enumerable:!0,get:function(){return fl.TransactionDescription}});var UZ=Sd();Object.defineProperty(le,"getAddress",{enumerable:!0,get:function(){return UZ.getAddress}});Object.defineProperty(le,"getCreate2Address",{enumerable:!0,get:function(){return UZ.getCreate2Address}});Object.defineProperty(le,"getContractAddress",{enumerable:!0,get:function(){return UZ.getContractAddress}});Object.defineProperty(le,"getIcapAddress",{enumerable:!0,get:function(){return UZ.getIcapAddress}});Object.defineProperty(le,"isAddress",{enumerable:!0,get:function(){return UZ.isAddress}});var AQt=xZe(aJ());le.base64=AQt;var PQt=Nce();Object.defineProperty(le,"base58",{enumerable:!0,get:function(){return PQt.Base58}});var ou=wr();Object.defineProperty(le,"arrayify",{enumerable:!0,get:function(){return ou.arrayify}});Object.defineProperty(le,"concat",{enumerable:!0,get:function(){return ou.concat}});Object.defineProperty(le,"hexConcat",{enumerable:!0,get:function(){return ou.hexConcat}});Object.defineProperty(le,"hexDataSlice",{enumerable:!0,get:function(){return ou.hexDataSlice}});Object.defineProperty(le,"hexDataLength",{enumerable:!0,get:function(){return ou.hexDataLength}});Object.defineProperty(le,"hexlify",{enumerable:!0,get:function(){return ou.hexlify}});Object.defineProperty(le,"hexStripZeros",{enumerable:!0,get:function(){return ou.hexStripZeros}});Object.defineProperty(le,"hexValue",{enumerable:!0,get:function(){return ou.hexValue}});Object.defineProperty(le,"hexZeroPad",{enumerable:!0,get:function(){return ou.hexZeroPad}});Object.defineProperty(le,"isBytes",{enumerable:!0,get:function(){return ou.isBytes}});Object.defineProperty(le,"isBytesLike",{enumerable:!0,get:function(){return ou.isBytesLike}});Object.defineProperty(le,"isHexString",{enumerable:!0,get:function(){return ou.isHexString}});Object.defineProperty(le,"joinSignature",{enumerable:!0,get:function(){return ou.joinSignature}});Object.defineProperty(le,"zeroPad",{enumerable:!0,get:function(){return ou.zeroPad}});Object.defineProperty(le,"splitSignature",{enumerable:!0,get:function(){return ou.splitSignature}});Object.defineProperty(le,"stripZeros",{enumerable:!0,get:function(){return ou.stripZeros}});var Ex=lb();Object.defineProperty(le,"_TypedDataEncoder",{enumerable:!0,get:function(){return Ex._TypedDataEncoder}});Object.defineProperty(le,"dnsEncode",{enumerable:!0,get:function(){return Ex.dnsEncode}});Object.defineProperty(le,"hashMessage",{enumerable:!0,get:function(){return Ex.hashMessage}});Object.defineProperty(le,"id",{enumerable:!0,get:function(){return Ex.id}});Object.defineProperty(le,"isValidName",{enumerable:!0,get:function(){return Ex.isValidName}});Object.defineProperty(le,"namehash",{enumerable:!0,get:function(){return Ex.namehash}});var tv=Yce();Object.defineProperty(le,"defaultPath",{enumerable:!0,get:function(){return tv.defaultPath}});Object.defineProperty(le,"entropyToMnemonic",{enumerable:!0,get:function(){return tv.entropyToMnemonic}});Object.defineProperty(le,"getAccountPath",{enumerable:!0,get:function(){return tv.getAccountPath}});Object.defineProperty(le,"HDNode",{enumerable:!0,get:function(){return tv.HDNode}});Object.defineProperty(le,"isValidMnemonic",{enumerable:!0,get:function(){return tv.isValidMnemonic}});Object.defineProperty(le,"mnemonicToEntropy",{enumerable:!0,get:function(){return tv.mnemonicToEntropy}});Object.defineProperty(le,"mnemonicToSeed",{enumerable:!0,get:function(){return tv.mnemonicToSeed}});var SQt=lxe();Object.defineProperty(le,"getJsonWalletAddress",{enumerable:!0,get:function(){return SQt.getJsonWalletAddress}});var RQt=jl();Object.defineProperty(le,"keccak256",{enumerable:!0,get:function(){return RQt.keccak256}});var MQt=Zt();Object.defineProperty(le,"Logger",{enumerable:!0,get:function(){return MQt.Logger}});var Bue=Vb();Object.defineProperty(le,"computeHmac",{enumerable:!0,get:function(){return Bue.computeHmac}});Object.defineProperty(le,"ripemd160",{enumerable:!0,get:function(){return Bue.ripemd160}});Object.defineProperty(le,"sha256",{enumerable:!0,get:function(){return Bue.sha256}});Object.defineProperty(le,"sha512",{enumerable:!0,get:function(){return Bue.sha512}});var qxe=hZe();Object.defineProperty(le,"solidityKeccak256",{enumerable:!0,get:function(){return qxe.keccak256}});Object.defineProperty(le,"solidityPack",{enumerable:!0,get:function(){return qxe.pack}});Object.defineProperty(le,"soliditySha256",{enumerable:!0,get:function(){return qxe.sha256}});var _Ze=TZ();Object.defineProperty(le,"randomBytes",{enumerable:!0,get:function(){return _Ze.randomBytes}});Object.defineProperty(le,"shuffled",{enumerable:!0,get:function(){return _Ze.shuffled}});var Cx=Aa();Object.defineProperty(le,"checkProperties",{enumerable:!0,get:function(){return Cx.checkProperties}});Object.defineProperty(le,"deepCopy",{enumerable:!0,get:function(){return Cx.deepCopy}});Object.defineProperty(le,"defineReadOnly",{enumerable:!0,get:function(){return Cx.defineReadOnly}});Object.defineProperty(le,"getStatic",{enumerable:!0,get:function(){return Cx.getStatic}});Object.defineProperty(le,"resolveProperties",{enumerable:!0,get:function(){return Cx.resolveProperties}});Object.defineProperty(le,"shallowCopy",{enumerable:!0,get:function(){return Cx.shallowCopy}});var NQt=xZe(ase());le.RLP=NQt;var Fxe=oZ();Object.defineProperty(le,"computePublicKey",{enumerable:!0,get:function(){return Fxe.computePublicKey}});Object.defineProperty(le,"recoverPublicKey",{enumerable:!0,get:function(){return Fxe.recoverPublicKey}});Object.defineProperty(le,"SigningKey",{enumerable:!0,get:function(){return Fxe.SigningKey}});var lg=qs();Object.defineProperty(le,"formatBytes32String",{enumerable:!0,get:function(){return lg.formatBytes32String}});Object.defineProperty(le,"nameprep",{enumerable:!0,get:function(){return lg.nameprep}});Object.defineProperty(le,"parseBytes32String",{enumerable:!0,get:function(){return lg.parseBytes32String}});Object.defineProperty(le,"_toEscapedUtf8String",{enumerable:!0,get:function(){return lg._toEscapedUtf8String}});Object.defineProperty(le,"toUtf8Bytes",{enumerable:!0,get:function(){return lg.toUtf8Bytes}});Object.defineProperty(le,"toUtf8CodePoints",{enumerable:!0,get:function(){return lg.toUtf8CodePoints}});Object.defineProperty(le,"toUtf8String",{enumerable:!0,get:function(){return lg.toUtf8String}});Object.defineProperty(le,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return lg.Utf8ErrorFuncs}});var kx=l0();Object.defineProperty(le,"accessListify",{enumerable:!0,get:function(){return kx.accessListify}});Object.defineProperty(le,"computeAddress",{enumerable:!0,get:function(){return kx.computeAddress}});Object.defineProperty(le,"parseTransaction",{enumerable:!0,get:function(){return kx.parse}});Object.defineProperty(le,"recoverAddress",{enumerable:!0,get:function(){return kx.recoverAddress}});Object.defineProperty(le,"serializeTransaction",{enumerable:!0,get:function(){return kx.serialize}});Object.defineProperty(le,"TransactionTypes",{enumerable:!0,get:function(){return kx.TransactionTypes}});var HZ=wZe();Object.defineProperty(le,"commify",{enumerable:!0,get:function(){return HZ.commify}});Object.defineProperty(le,"formatEther",{enumerable:!0,get:function(){return HZ.formatEther}});Object.defineProperty(le,"parseEther",{enumerable:!0,get:function(){return HZ.parseEther}});Object.defineProperty(le,"formatUnits",{enumerable:!0,get:function(){return HZ.formatUnits}});Object.defineProperty(le,"parseUnits",{enumerable:!0,get:function(){return HZ.parseUnits}});var TZe=hxe();Object.defineProperty(le,"verifyMessage",{enumerable:!0,get:function(){return TZe.verifyMessage}});Object.defineProperty(le,"verifyTypedData",{enumerable:!0,get:function(){return TZe.verifyTypedData}});var Wxe=Xb();Object.defineProperty(le,"_fetchData",{enumerable:!0,get:function(){return Wxe._fetchData}});Object.defineProperty(le,"fetchJson",{enumerable:!0,get:function(){return Wxe.fetchJson}});Object.defineProperty(le,"poll",{enumerable:!0,get:function(){return Wxe.poll}});var BQt=Vb();Object.defineProperty(le,"SupportedAlgorithm",{enumerable:!0,get:function(){return BQt.SupportedAlgorithm}});var IZe=qs();Object.defineProperty(le,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return IZe.UnicodeNormalizationForm}});Object.defineProperty(le,"Utf8ErrorReason",{enumerable:!0,get:function(){return IZe.Utf8ErrorReason}})});var EZe=_(Due=>{"use strict";d();p();Object.defineProperty(Due,"__esModule",{value:!0});Due.version=void 0;Due.version="ethers/5.7.2"});var jxe=_(br=>{"use strict";d();p();var DQt=br&&br.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),LQt=br&&br.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Uxe=br&&br.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&DQt(e,r,t);return LQt(e,r),e};Object.defineProperty(br,"__esModule",{value:!0});br.Wordlist=br.version=br.wordlists=br.utils=br.logger=br.errors=br.constants=br.FixedNumber=br.BigNumber=br.ContractFactory=br.Contract=br.BaseContract=br.providers=br.getDefaultProvider=br.VoidSigner=br.Wallet=br.Signer=void 0;var Hxe=n$e();Object.defineProperty(br,"BaseContract",{enumerable:!0,get:function(){return Hxe.BaseContract}});Object.defineProperty(br,"Contract",{enumerable:!0,get:function(){return Hxe.Contract}});Object.defineProperty(br,"ContractFactory",{enumerable:!0,get:function(){return Hxe.ContractFactory}});var CZe=Ls();Object.defineProperty(br,"BigNumber",{enumerable:!0,get:function(){return CZe.BigNumber}});Object.defineProperty(br,"FixedNumber",{enumerable:!0,get:function(){return CZe.FixedNumber}});var kZe=oJ();Object.defineProperty(br,"Signer",{enumerable:!0,get:function(){return kZe.Signer}});Object.defineProperty(br,"VoidSigner",{enumerable:!0,get:function(){return kZe.VoidSigner}});var OQt=hxe();Object.defineProperty(br,"Wallet",{enumerable:!0,get:function(){return OQt.Wallet}});var qQt=Uxe(ib());br.constants=qQt;var FQt=Uxe(Lxe());br.providers=FQt;var WQt=Lxe();Object.defineProperty(br,"getDefaultProvider",{enumerable:!0,get:function(){return WQt.getDefaultProvider}});var AZe=J3e();Object.defineProperty(br,"Wordlist",{enumerable:!0,get:function(){return AZe.Wordlist}});Object.defineProperty(br,"wordlists",{enumerable:!0,get:function(){return AZe.wordlists}});var UQt=Uxe(Xr());br.utils=UQt;var PZe=Zt();Object.defineProperty(br,"errors",{enumerable:!0,get:function(){return PZe.ErrorCode}});var SZe=EZe();Object.defineProperty(br,"version",{enumerable:!0,get:function(){return SZe.version}});var HQt=new PZe.Logger(SZe.version);br.logger=HQt});var je=_(mr=>{"use strict";d();p();var jQt=mr&&mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),zQt=mr&&mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),KQt=mr&&mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&jQt(e,r,t);return zQt(e,r),e};Object.defineProperty(mr,"__esModule",{value:!0});mr.Wordlist=mr.version=mr.wordlists=mr.utils=mr.logger=mr.errors=mr.constants=mr.FixedNumber=mr.BigNumber=mr.ContractFactory=mr.Contract=mr.BaseContract=mr.providers=mr.getDefaultProvider=mr.VoidSigner=mr.Wallet=mr.Signer=mr.ethers=void 0;var RZe=KQt(jxe());mr.ethers=RZe;try{zxe=window,zxe._ethers==null&&(zxe._ethers=RZe)}catch{}var zxe,bc=jxe();Object.defineProperty(mr,"Signer",{enumerable:!0,get:function(){return bc.Signer}});Object.defineProperty(mr,"Wallet",{enumerable:!0,get:function(){return bc.Wallet}});Object.defineProperty(mr,"VoidSigner",{enumerable:!0,get:function(){return bc.VoidSigner}});Object.defineProperty(mr,"getDefaultProvider",{enumerable:!0,get:function(){return bc.getDefaultProvider}});Object.defineProperty(mr,"providers",{enumerable:!0,get:function(){return bc.providers}});Object.defineProperty(mr,"BaseContract",{enumerable:!0,get:function(){return bc.BaseContract}});Object.defineProperty(mr,"Contract",{enumerable:!0,get:function(){return bc.Contract}});Object.defineProperty(mr,"ContractFactory",{enumerable:!0,get:function(){return bc.ContractFactory}});Object.defineProperty(mr,"BigNumber",{enumerable:!0,get:function(){return bc.BigNumber}});Object.defineProperty(mr,"FixedNumber",{enumerable:!0,get:function(){return bc.FixedNumber}});Object.defineProperty(mr,"constants",{enumerable:!0,get:function(){return bc.constants}});Object.defineProperty(mr,"errors",{enumerable:!0,get:function(){return bc.errors}});Object.defineProperty(mr,"logger",{enumerable:!0,get:function(){return bc.logger}});Object.defineProperty(mr,"utils",{enumerable:!0,get:function(){return bc.utils}});Object.defineProperty(mr,"wordlists",{enumerable:!0,get:function(){return bc.wordlists}});Object.defineProperty(mr,"version",{enumerable:!0,get:function(){return bc.version}});Object.defineProperty(mr,"Wordlist",{enumerable:!0,get:function(){return bc.Wordlist}})});var Gxe=_(Kxe=>{"use strict";d();p();Object.defineProperty(Kxe,"__esModule",{value:!0});Kxe.default=VQt;var Lue,GQt=new Uint8Array(16);function VQt(){if(!Lue&&(Lue=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Lue))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Lue(GQt)}});var MZe=_(Oue=>{"use strict";d();p();Object.defineProperty(Oue,"__esModule",{value:!0});Oue.default=void 0;var YQt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Oue.default=YQt});var jZ=_(que=>{"use strict";d();p();Object.defineProperty(que,"__esModule",{value:!0});que.default=void 0;var $Qt=QQt(MZe());function QQt(r){return r&&r.__esModule?r:{default:r}}function JQt(r){return typeof r=="string"&&$Qt.default.test(r)}var ZQt=JQt;que.default=ZQt});var KZ=_(zZ=>{"use strict";d();p();Object.defineProperty(zZ,"__esModule",{value:!0});zZ.default=void 0;zZ.unsafeStringify=NZe;var XQt=eJt(jZ());function eJt(r){return r&&r.__esModule?r:{default:r}}var vc=[];for(let r=0;r<256;++r)vc.push((r+256).toString(16).slice(1));function NZe(r,e=0){return(vc[r[e+0]]+vc[r[e+1]]+vc[r[e+2]]+vc[r[e+3]]+"-"+vc[r[e+4]]+vc[r[e+5]]+"-"+vc[r[e+6]]+vc[r[e+7]]+"-"+vc[r[e+8]]+vc[r[e+9]]+"-"+vc[r[e+10]]+vc[r[e+11]]+vc[r[e+12]]+vc[r[e+13]]+vc[r[e+14]]+vc[r[e+15]]).toLowerCase()}function tJt(r,e=0){let t=NZe(r,e);if(!(0,XQt.default)(t))throw TypeError("Stringified UUID is invalid");return t}var rJt=tJt;zZ.default=rJt});var DZe=_(Fue=>{"use strict";d();p();Object.defineProperty(Fue,"__esModule",{value:!0});Fue.default=void 0;var nJt=iJt(Gxe()),aJt=KZ();function iJt(r){return r&&r.__esModule?r:{default:r}}var BZe,Vxe,Yxe=0,$xe=0;function sJt(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||BZe,s=r.clockseq!==void 0?r.clockseq:Vxe;if(i==null||s==null){let f=r.random||(r.rng||nJt.default)();i==null&&(i=BZe=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),s==null&&(s=Vxe=(f[6]<<8|f[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),c=r.nsecs!==void 0?r.nsecs:$xe+1,u=o-Yxe+(c-$xe)/1e4;if(u<0&&r.clockseq===void 0&&(s=s+1&16383),(u<0||o>Yxe)&&r.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Yxe=o,$xe=c,Vxe=s,o+=122192928e5;let l=((o&268435455)*1e4+c)%4294967296;a[n++]=l>>>24&255,a[n++]=l>>>16&255,a[n++]=l>>>8&255,a[n++]=l&255;let h=o/4294967296*1e4&268435455;a[n++]=h>>>8&255,a[n++]=h&255,a[n++]=h>>>24&15|16,a[n++]=h>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let f=0;f<6;++f)a[n+f]=i[f];return e||(0,aJt.unsafeStringify)(a)}var oJt=sJt;Fue.default=oJt});var Qxe=_(Wue=>{"use strict";d();p();Object.defineProperty(Wue,"__esModule",{value:!0});Wue.default=void 0;var cJt=uJt(jZ());function uJt(r){return r&&r.__esModule?r:{default:r}}function lJt(r){if(!(0,cJt.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var dJt=lJt;Wue.default=dJt});var Jxe=_(rv=>{"use strict";d();p();Object.defineProperty(rv,"__esModule",{value:!0});rv.URL=rv.DNS=void 0;rv.default=yJt;var pJt=KZ(),hJt=fJt(Qxe());function fJt(r){return r&&r.__esModule?r:{default:r}}function mJt(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";d();p();Object.defineProperty(Hue,"__esModule",{value:!0});Hue.default=void 0;function gJt(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function qZe(r){return(r+64>>>9<<4)+14+1}function vJt(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function xJt(r,e){return r<>>32-e}function Uue(r,e,t,n,a,i){return dg(xJt(dg(dg(e,r),dg(n,i)),a),t)}function cu(r,e,t,n,a,i,s){return Uue(e&t|~e&n,r,e,a,i,s)}function uu(r,e,t,n,a,i,s){return Uue(e&n|t&~n,r,e,a,i,s)}function lu(r,e,t,n,a,i,s){return Uue(e^t^n,r,e,a,i,s)}function du(r,e,t,n,a,i,s){return Uue(t^(e|~n),r,e,a,i,s)}var _Jt=gJt;Hue.default=_Jt});var UZe=_(jue=>{"use strict";d();p();Object.defineProperty(jue,"__esModule",{value:!0});jue.default=void 0;var TJt=WZe(Jxe()),IJt=WZe(FZe());function WZe(r){return r&&r.__esModule?r:{default:r}}var EJt=(0,TJt.default)("v3",48,IJt.default),CJt=EJt;jue.default=CJt});var HZe=_(zue=>{"use strict";d();p();Object.defineProperty(zue,"__esModule",{value:!0});zue.default=void 0;var kJt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),AJt={randomUUID:kJt};zue.default=AJt});var KZe=_(Kue=>{"use strict";d();p();Object.defineProperty(Kue,"__esModule",{value:!0});Kue.default=void 0;var jZe=zZe(HZe()),PJt=zZe(Gxe()),SJt=KZ();function zZe(r){return r&&r.__esModule?r:{default:r}}function RJt(r,e,t){if(jZe.default.randomUUID&&!e&&!r)return jZe.default.randomUUID();r=r||{};let n=r.random||(r.rng||PJt.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,SJt.unsafeStringify)(n)}var MJt=RJt;Kue.default=MJt});var GZe=_(Gue=>{"use strict";d();p();Object.defineProperty(Gue,"__esModule",{value:!0});Gue.default=void 0;function NJt(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function Zxe(r,e){return r<>>32-e}function BJt(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let o=0;o>>0;f=h,h=l,l=Zxe(u,30)>>>0,u=c,c=I}t[0]=t[0]+c>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+l>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var DJt=BJt;Gue.default=DJt});var YZe=_(Vue=>{"use strict";d();p();Object.defineProperty(Vue,"__esModule",{value:!0});Vue.default=void 0;var LJt=VZe(Jxe()),OJt=VZe(GZe());function VZe(r){return r&&r.__esModule?r:{default:r}}var qJt=(0,LJt.default)("v5",80,OJt.default),FJt=qJt;Vue.default=FJt});var $Ze=_(Yue=>{"use strict";d();p();Object.defineProperty(Yue,"__esModule",{value:!0});Yue.default=void 0;var WJt="00000000-0000-0000-0000-000000000000";Yue.default=WJt});var QZe=_($ue=>{"use strict";d();p();Object.defineProperty($ue,"__esModule",{value:!0});$ue.default=void 0;var UJt=HJt(jZ());function HJt(r){return r&&r.__esModule?r:{default:r}}function jJt(r){if(!(0,UJt.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var zJt=jJt;$ue.default=zJt});var Fr=_(bh=>{"use strict";d();p();Object.defineProperty(bh,"__esModule",{value:!0});Object.defineProperty(bh,"NIL",{enumerable:!0,get:function(){return $Jt.default}});Object.defineProperty(bh,"parse",{enumerable:!0,get:function(){return XJt.default}});Object.defineProperty(bh,"stringify",{enumerable:!0,get:function(){return ZJt.default}});Object.defineProperty(bh,"v1",{enumerable:!0,get:function(){return KJt.default}});Object.defineProperty(bh,"v3",{enumerable:!0,get:function(){return GJt.default}});Object.defineProperty(bh,"v4",{enumerable:!0,get:function(){return VJt.default}});Object.defineProperty(bh,"v5",{enumerable:!0,get:function(){return YJt.default}});Object.defineProperty(bh,"validate",{enumerable:!0,get:function(){return JJt.default}});Object.defineProperty(bh,"version",{enumerable:!0,get:function(){return QJt.default}});var KJt=y0(DZe()),GJt=y0(UZe()),VJt=y0(KZe()),YJt=y0(YZe()),$Jt=y0($Ze()),QJt=y0(QZe()),JJt=y0(jZ()),ZJt=y0(KZ()),XJt=y0(Qxe());function y0(r){return r&&r.__esModule?r:{default:r}}});var GZ=_(Ha=>{"use strict";d();p();Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getParsedType=Ha.ZodParsedType=Ha.objectUtil=Ha.util=void 0;var JZe;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of i)s[o]=a[o];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(JZe=Ha.util||(Ha.util={}));var eZt;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(eZt=Ha.objectUtil||(Ha.objectUtil={}));Ha.ZodParsedType=JZe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var tZt=r=>{switch(typeof r){case"undefined":return Ha.ZodParsedType.undefined;case"string":return Ha.ZodParsedType.string;case"number":return isNaN(r)?Ha.ZodParsedType.nan:Ha.ZodParsedType.number;case"boolean":return Ha.ZodParsedType.boolean;case"function":return Ha.ZodParsedType.function;case"bigint":return Ha.ZodParsedType.bigint;case"symbol":return Ha.ZodParsedType.symbol;case"object":return Array.isArray(r)?Ha.ZodParsedType.array:r===null?Ha.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ha.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ha.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ha.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ha.ZodParsedType.date:Ha.ZodParsedType.object;default:return Ha.ZodParsedType.unknown}};Ha.getParsedType=tZt});var Que=_(pg=>{"use strict";d();p();Object.defineProperty(pg,"__esModule",{value:!0});pg.ZodError=pg.quotelessJson=pg.ZodIssueCode=void 0;var ZZe=GZ();pg.ZodIssueCode=ZZe.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var rZt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");pg.quotelessJson=rZt;var VZ=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let o=n,c=0;for(;ct.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};pg.ZodError=VZ;VZ.create=r=>new VZ(r)});var e_e=_(Xxe=>{"use strict";d();p();Object.defineProperty(Xxe,"__esModule",{value:!0});var nv=GZ(),pu=Que(),nZt=(r,e)=>{let t;switch(r.code){case pu.ZodIssueCode.invalid_type:r.received===nv.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case pu.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,nv.util.jsonStringifyReplacer)}`;break;case pu.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${nv.util.joinValues(r.keys,", ")}`;break;case pu.ZodIssueCode.invalid_union:t="Invalid input";break;case pu.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${nv.util.joinValues(r.options)}`;break;case pu.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${nv.util.joinValues(r.options)}, received '${r.received}'`;break;case pu.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case pu.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case pu.ZodIssueCode.invalid_date:t="Invalid date";break;case pu.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:nv.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case pu.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case pu.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case pu.ZodIssueCode.custom:t="Invalid input";break;case pu.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case pu.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case pu.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,nv.util.assertNever(r)}return{message:t}};Xxe.default=nZt});var Jue=_(Vf=>{"use strict";d();p();var aZt=Vf&&Vf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getErrorMap=Vf.setErrorMap=Vf.defaultErrorMap=void 0;var XZe=aZt(e_e());Vf.defaultErrorMap=XZe.default;var eXe=XZe.default;function iZt(r){eXe=r}Vf.setErrorMap=iZt;function sZt(){return eXe}Vf.getErrorMap=sZt});var t_e=_(Sa=>{"use strict";d();p();var oZt=Sa&&Sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.isAsync=Sa.isValid=Sa.isDirty=Sa.isAborted=Sa.OK=Sa.DIRTY=Sa.INVALID=Sa.ParseStatus=Sa.addIssueToContext=Sa.EMPTY_PATH=Sa.makeIssue=void 0;var cZt=Jue(),uZt=oZt(e_e()),lZt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},o="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)o=u(s,{data:e,defaultError:o}).message;return{...a,path:i,message:a.message||o}};Sa.makeIssue=lZt;Sa.EMPTY_PATH=[];function dZt(r,e){let t=(0,Sa.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,cZt.getErrorMap)(),uZt.default].filter(n=>!!n)});r.common.issues.push(t)}Sa.addIssueToContext=dZt;var YZ=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return Sa.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return YZ.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return Sa.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};Sa.ParseStatus=YZ;Sa.INVALID=Object.freeze({status:"aborted"});var pZt=r=>({status:"dirty",value:r});Sa.DIRTY=pZt;var hZt=r=>({status:"valid",value:r});Sa.OK=hZt;var fZt=r=>r.status==="aborted";Sa.isAborted=fZt;var mZt=r=>r.status==="dirty";Sa.isDirty=mZt;var yZt=r=>r.status==="valid";Sa.isValid=yZt;var gZt=r=>typeof Promise<"u"&&r instanceof Promise;Sa.isAsync=gZt});var rXe=_(tXe=>{"use strict";d();p();Object.defineProperty(tXe,"__esModule",{value:!0})});var nXe=_($Z=>{"use strict";d();p();Object.defineProperty($Z,"__esModule",{value:!0});$Z.errorUtil=void 0;var bZt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(bZt=$Z.errorUtil||($Z.errorUtil={}))});var lXe=_(fe=>{"use strict";d();p();Object.defineProperty(fe,"__esModule",{value:!0});fe.discriminatedUnion=fe.date=fe.boolean=fe.bigint=fe.array=fe.any=fe.coerce=fe.ZodFirstPartyTypeKind=fe.late=fe.ZodSchema=fe.Schema=fe.custom=fe.ZodPipeline=fe.ZodBranded=fe.BRAND=fe.ZodNaN=fe.ZodCatch=fe.ZodDefault=fe.ZodNullable=fe.ZodOptional=fe.ZodTransformer=fe.ZodEffects=fe.ZodPromise=fe.ZodNativeEnum=fe.ZodEnum=fe.ZodLiteral=fe.ZodLazy=fe.ZodFunction=fe.ZodSet=fe.ZodMap=fe.ZodRecord=fe.ZodTuple=fe.ZodIntersection=fe.ZodDiscriminatedUnion=fe.ZodUnion=fe.ZodObject=fe.ZodArray=fe.ZodVoid=fe.ZodNever=fe.ZodUnknown=fe.ZodAny=fe.ZodNull=fe.ZodUndefined=fe.ZodSymbol=fe.ZodDate=fe.ZodBoolean=fe.ZodBigInt=fe.ZodNumber=fe.ZodString=fe.ZodType=void 0;fe.NEVER=fe.void=fe.unknown=fe.union=fe.undefined=fe.tuple=fe.transformer=fe.symbol=fe.string=fe.strictObject=fe.set=fe.record=fe.promise=fe.preprocess=fe.pipeline=fe.ostring=fe.optional=fe.onumber=fe.oboolean=fe.object=fe.number=fe.nullable=fe.null=fe.never=fe.nativeEnum=fe.nan=fe.map=fe.literal=fe.lazy=fe.intersection=fe.instanceof=fe.function=fe.enum=fe.effect=void 0;var Zue=Jue(),zt=nXe(),ye=t_e(),qe=GZ(),Oe=Que(),ap=class{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},aXe=(r,e)=>{if((0,ye.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Oe.ZodError(r.common.issues);return this._error=t,this._error}}};function _r(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:t??o.defaultError},description:a}}var Tr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,qe.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ye.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,ye.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return aXe(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,ye.isAsync)(a)?a:Promise.resolve(a));return aXe(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),o=()=>i.addIssue({code:Oe.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new Zl({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return vh.create(this,this._def)}nullable(){return w0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jl.create(this,this._def)}promise(){return mg.create(this,this._def)}or(e){return ov.create([this,e],this._def)}and(e){return cv.create(this,e,this._def)}transform(e){return new Zl({..._r(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new hv({..._r(this._def),innerType:this,defaultValue:t,typeName:sr.ZodDefault})}brand(){return new ele({typeName:sr.ZodBranded,type:this,..._r(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new Nx({..._r(this._def),innerType:this,catchValue:t,typeName:sr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return fv.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};fe.ZodType=Tr;fe.Schema=Tr;fe.ZodSchema=Tr;var vZt=/^c[^\s-]{8,}$/i,wZt=/^[a-z][a-z0-9]*$/,xZt=/[0-9A-HJKMNP-TV-Z]{26}/,_Zt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,TZt=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,IZt=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,EZt=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,CZt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,kZt=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function AZt(r,e){return!!((e==="v4"||!e)&&EZt.test(r)||(e==="v6"||!e)&&CZt.test(r))}var Ql=class extends Tr{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:Oe.ZodIssueCode.invalid_string,...zt.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,zt.errorUtil.errToObj(e)),this.trim=()=>new Ql({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Ql({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Ql({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==qe.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.string,received:i.parsedType}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Oe.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,o=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...zt.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...zt.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...zt.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...zt.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...zt.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...zt.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...zt.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...zt.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Ql({checks:[],typeName:sr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,..._r(r)})};function PZt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Yf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==qe.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.number,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="int"?qe.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?PZt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.not_finite,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Yf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Yf({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:zt.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:zt.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:zt.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:zt.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&qe.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew Yf({checks:[],typeName:sr.ZodNumber,coerce:r?.coerce||!1,..._r(r)});var $f=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==qe.ZodParsedType.bigint){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.bigint,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new $f({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new $f({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new $f({checks:[],typeName:sr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,..._r(r)})};var av=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==qe.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.boolean,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodBoolean=av;av.create=r=>new av({typeName:sr.ZodBoolean,coerce:r?.coerce||!1,..._r(r)});var b0=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==qe.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.date,received:i.parsedType}),ye.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_date}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Oe.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):qe.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new b0({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:zt.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:zt.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew b0({checks:[],coerce:r?.coerce||!1,typeName:sr.ZodDate,..._r(r)});var Px=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.symbol,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodSymbol=Px;Px.create=r=>new Px({typeName:sr.ZodSymbol,..._r(r)});var iv=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.undefined,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodUndefined=iv;iv.create=r=>new iv({typeName:sr.ZodUndefined,..._r(r)});var sv=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.null,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodNull=sv;sv.create=r=>new sv({typeName:sr.ZodNull,..._r(r)});var fg=class extends Tr{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodAny=fg;fg.create=r=>new fg({typeName:sr.ZodAny,..._r(r)});var g0=class extends Tr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodUnknown=g0;g0.create=r=>new g0({typeName:sr.ZodUnknown,..._r(r)});var wh=class extends Tr{_parse(e){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.never,received:t.parsedType}),ye.INVALID}};fe.ZodNever=wh;wh.create=r=>new wh({typeName:sr.ZodNever,..._r(r)});var Sx=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.void,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodVoid=Sx;Sx.create=r=>new Sx({typeName:sr.ZodVoid,..._r(r)});var Jl=class extends Tr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:t.parsedType}),ye.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,o=t.data.lengtha.maxLength.value&&((0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((s,o)=>a.type._parseAsync(new ap(t,s,t.path,o)))).then(s=>ye.ParseStatus.mergeArray(n,s));let i=[...t.data].map((s,o)=>a.type._parseSync(new ap(t,s,t.path,o)));return ye.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Jl({...this._def,minLength:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new Jl({...this._def,maxLength:{value:e,message:zt.errorUtil.toString(t)}})}length(e,t){return new Jl({...this._def,exactLength:{value:e,message:zt.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};fe.ZodArray=Jl;Jl.create=(r,e)=>new Jl({type:r,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,..._r(e)});function Ax(r){if(r instanceof si){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=vh.create(Ax(n))}return new si({...r._def,shape:()=>e})}else return r instanceof Jl?new Jl({...r._def,type:Ax(r.element)}):r instanceof vh?vh.create(Ax(r.unwrap())):r instanceof w0?w0.create(Ax(r.unwrap())):r instanceof ip?ip.create(r.items.map(e=>Ax(e))):r}var si=class extends Tr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=qe.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==qe.ZodParsedType.object){let u=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(u,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:u.parsedType}),ye.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof wh&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let c=[];for(let u of s){let l=i[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ap(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof wh){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&((0,ye.addIssueToContext)(a,{code:Oe.ZodIssueCode.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of o){let h=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ap(a,h,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let h=await l.key;u.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>ye.ParseStatus.mergeObjectSync(n,u)):ye.ParseStatus.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return zt.errorUtil.errToObj,new si({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,o;let c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=zt.errorUtil.errToObj(e).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new si({...this._def,unknownKeys:"strip"})}passthrough(){return new si({...this._def,unknownKeys:"passthrough"})}extend(e){return new si({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new si({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:sr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new si({...this._def,catchall:e})}pick(e){let t={};return qe.util.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new si({...this._def,shape:()=>t})}omit(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new si({...this._def,shape:()=>t})}deepPartial(){return Ax(this)}partial(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new si({...this._def,shape:()=>t})}required(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof vh;)i=i._def.innerType;t[n]=i}}),new si({...this._def,shape:()=>t})}keyof(){return iXe(qe.util.objectKeys(this.shape))}};fe.ZodObject=si;si.create=(r,e)=>new si({shape:()=>r,unknownKeys:"strip",catchall:wh.create(),typeName:sr.ZodObject,..._r(e)});si.strictCreate=(r,e)=>new si({shape:()=>r,unknownKeys:"strict",catchall:wh.create(),typeName:sr.ZodObject,..._r(e)});si.lazycreate=(r,e)=>new si({shape:r,unknownKeys:"strip",catchall:wh.create(),typeName:sr.ZodObject,..._r(e)});var ov=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let o of i)if(o.result.status==="valid")return o.result;for(let o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(o=>new Oe.ZodError(o.ctx.common.issues));return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_union,unionErrors:s}),ye.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let c of n){let u={...t,common:{...t.common,issues:[]},parent:null},l=c._parseSync({data:t.data,path:t.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let o=s.map(c=>new Oe.ZodError(c));return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_union,unionErrors:o}),ye.INVALID}}get options(){return this._def.options}};fe.ZodUnion=ov;ov.create=(r,e)=>new ov({options:r,typeName:sr.ZodUnion,..._r(e)});var Xue=r=>r instanceof lv?Xue(r.schema):r instanceof Zl?Xue(r.innerType()):r instanceof dv?[r.value]:r instanceof Qf?r.options:r instanceof pv?Object.keys(r.enum):r instanceof hv?Xue(r._def.innerType):r instanceof iv?[void 0]:r instanceof sv?[null]:null,Rx=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:t.parsedType}),ye.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ye.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=Xue(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,i)}}return new Rx({typeName:sr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,..._r(n)})}};fe.ZodDiscriminatedUnion=Rx;function r_e(r,e){let t=(0,qe.getParsedType)(r),n=(0,qe.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===qe.ZodParsedType.object&&n===qe.ZodParsedType.object){let a=qe.util.objectKeys(e),i=qe.util.objectKeys(r).filter(o=>a.indexOf(o)!==-1),s={...r,...e};for(let o of i){let c=r_e(r[o],e[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(t===qe.ZodParsedType.array&&n===qe.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,ye.isAborted)(i)||(0,ye.isAborted)(s))return ye.INVALID;let o=r_e(i.value,s.value);return o.valid?(((0,ye.isDirty)(i)||(0,ye.isDirty)(s))&&t.dirty(),{status:t.value,value:o.data}):((0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_intersection_types}),ye.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};fe.ZodIntersection=cv;cv.create=(r,e,t)=>new cv({left:r,right:e,typeName:sr.ZodIntersection,..._r(t)});var ip=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:n.parsedType}),ye.INVALID;if(n.data.lengththis._def.items.length&&((0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new ap(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>ye.ParseStatus.mergeArray(t,s)):ye.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ip({...this._def,rest:e})}};fe.ZodTuple=ip;ip.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ip({items:r,typeName:sr.ZodTuple,rest:null,..._r(e)})};var uv=class extends Tr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:n.parsedType}),ye.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:i._parse(new ap(n,o,n.path,o)),value:s._parse(new ap(n,n.data[o],n.path,o))});return n.common.async?ye.ParseStatus.mergeObjectAsync(t,a):ye.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof Tr?new uv({keyType:e,valueType:t,typeName:sr.ZodRecord,..._r(n)}):new uv({keyType:Ql.create(),valueType:e,typeName:sr.ZodRecord,..._r(t)})}};fe.ZodRecord=uv;var Mx=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.map)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.map,received:n.parsedType}),ye.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([o,c],u)=>({key:a._parse(new ap(n,o,n.path,[u,"key"])),value:i._parse(new ap(n,c,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}}}};fe.ZodMap=Mx;Mx.create=(r,e,t)=>new Mx({valueType:e,keyType:r,typeName:sr.ZodMap,..._r(t)});var v0=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.set)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.set,received:n.parsedType}),ye.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return ye.INVALID;l.status==="dirty"&&t.dirty(),u.add(l.value)}return{status:t.value,value:u}}let o=[...n.data.values()].map((c,u)=>i._parse(new ap(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(e,t){return new v0({...this._def,minSize:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new v0({...this._def,maxSize:{value:e,message:zt.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};fe.ZodSet=v0;v0.create=(r,e)=>new v0({valueType:r,minSize:null,maxSize:null,typeName:sr.ZodSet,..._r(e)});var hg=class extends Tr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.function)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.function,received:t.parsedType}),ye.INVALID;function n(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,Zue.getErrorMap)(),Zue.defaultErrorMap].filter(u=>!!u),issueData:{code:Oe.ZodIssueCode.invalid_arguments,argumentsError:c}})}function a(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,Zue.getErrorMap)(),Zue.defaultErrorMap].filter(u=>!!u),issueData:{code:Oe.ZodIssueCode.invalid_return_type,returnTypeError:c}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof mg?(0,ye.OK)(async(...o)=>{let c=new Oe.ZodError([]),u=await this._def.args.parseAsync(o,i).catch(f=>{throw c.addIssue(n(o,f)),c}),l=await s(...u);return await this._def.returns._def.type.parseAsync(l,i).catch(f=>{throw c.addIssue(a(l,f)),c})}):(0,ye.OK)((...o)=>{let c=this._def.args.safeParse(o,i);if(!c.success)throw new Oe.ZodError([n(o,c.error)]);let u=s(...c.data),l=this._def.returns.safeParse(u,i);if(!l.success)throw new Oe.ZodError([a(u,l.error)]);return l.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new hg({...this._def,args:ip.create(e).rest(g0.create())})}returns(e){return new hg({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new hg({args:e||ip.create([]).rest(g0.create()),returns:t||g0.create(),typeName:sr.ZodFunction,..._r(n)})}};fe.ZodFunction=hg;var lv=class extends Tr{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};fe.ZodLazy=lv;lv.create=(r,e)=>new lv({getter:r,typeName:sr.ZodLazy,..._r(e)});var dv=class extends Tr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{received:t.data,code:Oe.ZodIssueCode.invalid_literal,expected:this._def.value}),ye.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};fe.ZodLiteral=dv;dv.create=(r,e)=>new dv({value:r,typeName:sr.ZodLiteral,..._r(e)});function iXe(r,e){return new Qf({values:r,typeName:sr.ZodEnum,..._r(e)})}var Qf=class extends Tr{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{expected:qe.util.joinValues(n),received:t.parsedType,code:Oe.ZodIssueCode.invalid_type}),ye.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{received:t.data,code:Oe.ZodIssueCode.invalid_enum_value,options:n}),ye.INVALID}return(0,ye.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return Qf.create(e)}exclude(e){return Qf.create(this.options.filter(t=>!e.includes(t)))}};fe.ZodEnum=Qf;Qf.create=iXe;var pv=class extends Tr{_parse(e){let t=qe.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==qe.ZodParsedType.string&&n.parsedType!==qe.ZodParsedType.number){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{expected:qe.util.joinValues(a),received:n.parsedType,code:Oe.ZodIssueCode.invalid_type}),ye.INVALID}if(t.indexOf(e.data)===-1){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{received:n.data,code:Oe.ZodIssueCode.invalid_enum_value,options:a}),ye.INVALID}return(0,ye.OK)(e.data)}get enum(){return this._def.values}};fe.ZodNativeEnum=pv;pv.create=(r,e)=>new pv({values:r,typeName:sr.ZodNativeEnum,..._r(e)});var mg=class extends Tr{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.promise&&t.common.async===!1)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.promise,received:t.parsedType}),ye.INVALID;let n=t.parsedType===qe.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,ye.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};fe.ZodPromise=mg;mg.create=(r,e)=>new mg({type:r,typeName:sr.ZodPromise,..._r(e)});var Zl=class extends Tr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,ye.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=o=>{let c=a.refinement(o,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,ye.isValid)(s))return s;let o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,ye.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:t.value,value:o})):s);qe.util.assertNever(a)}};fe.ZodEffects=Zl;fe.ZodTransformer=Zl;Zl.create=(r,e,t)=>new Zl({schema:r,typeName:sr.ZodEffects,effect:e,..._r(t)});Zl.createWithPreprocess=(r,e,t)=>new Zl({schema:e,effect:{type:"preprocess",transform:r},typeName:sr.ZodEffects,..._r(t)});var vh=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.undefined?(0,ye.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodOptional=vh;vh.create=(r,e)=>new vh({innerType:r,typeName:sr.ZodOptional,..._r(e)});var w0=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.null?(0,ye.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodNullable=w0;w0.create=(r,e)=>new w0({innerType:r,typeName:sr.ZodNullable,..._r(e)});var hv=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===qe.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};fe.ZodDefault=hv;hv.create=(r,e)=>new hv({innerType:r,typeName:sr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._r(e)});var Nx=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,ye.isAsync)(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Oe.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Oe.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fe.ZodCatch=Nx;Nx.create=(r,e)=>new Nx({innerType:r,typeName:sr.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._r(e)});var Bx=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.nan,received:n.parsedType}),ye.INVALID}return{status:"valid",value:e.data}}};fe.ZodNaN=Bx;Bx.create=r=>new Bx({typeName:sr.ZodNaN,..._r(r)});fe.BRAND=Symbol("zod_brand");var ele=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};fe.ZodBranded=ele;var fv=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ye.INVALID:i.status==="dirty"?(t.dirty(),(0,ye.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ye.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new fv({in:e,out:t,typeName:sr.ZodPipeline})}};fe.ZodPipeline=fv;var SZt=(r,e={},t)=>r?fg.create().superRefine((n,a)=>{var i,s;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(s=(i=o.fatal)!==null&&i!==void 0?i:t)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):fg.create();fe.custom=SZt;fe.late={object:si.lazycreate};var sr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(sr=fe.ZodFirstPartyTypeKind||(fe.ZodFirstPartyTypeKind={}));var RZt=(r,e={message:`Input not instance of ${r.name}`})=>(0,fe.custom)(t=>t instanceof r,e);fe.instanceof=RZt;var sXe=Ql.create;fe.string=sXe;var oXe=Yf.create;fe.number=oXe;var MZt=Bx.create;fe.nan=MZt;var NZt=$f.create;fe.bigint=NZt;var cXe=av.create;fe.boolean=cXe;var BZt=b0.create;fe.date=BZt;var DZt=Px.create;fe.symbol=DZt;var LZt=iv.create;fe.undefined=LZt;var OZt=sv.create;fe.null=OZt;var qZt=fg.create;fe.any=qZt;var FZt=g0.create;fe.unknown=FZt;var WZt=wh.create;fe.never=WZt;var UZt=Sx.create;fe.void=UZt;var HZt=Jl.create;fe.array=HZt;var jZt=si.create;fe.object=jZt;var zZt=si.strictCreate;fe.strictObject=zZt;var KZt=ov.create;fe.union=KZt;var GZt=Rx.create;fe.discriminatedUnion=GZt;var VZt=cv.create;fe.intersection=VZt;var YZt=ip.create;fe.tuple=YZt;var $Zt=uv.create;fe.record=$Zt;var QZt=Mx.create;fe.map=QZt;var JZt=v0.create;fe.set=JZt;var ZZt=hg.create;fe.function=ZZt;var XZt=lv.create;fe.lazy=XZt;var eXt=dv.create;fe.literal=eXt;var tXt=Qf.create;fe.enum=tXt;var rXt=pv.create;fe.nativeEnum=rXt;var nXt=mg.create;fe.promise=nXt;var uXe=Zl.create;fe.effect=uXe;fe.transformer=uXe;var aXt=vh.create;fe.optional=aXt;var iXt=w0.create;fe.nullable=iXt;var sXt=Zl.createWithPreprocess;fe.preprocess=sXt;var oXt=fv.create;fe.pipeline=oXt;var cXt=()=>sXe().optional();fe.ostring=cXt;var uXt=()=>oXe().optional();fe.onumber=uXt;var lXt=()=>cXe().optional();fe.oboolean=lXt;fe.coerce={string:r=>Ql.create({...r,coerce:!0}),number:r=>Yf.create({...r,coerce:!0}),boolean:r=>av.create({...r,coerce:!0}),bigint:r=>$f.create({...r,coerce:!0}),date:r=>b0.create({...r,coerce:!0})};fe.NEVER=ye.INVALID});var n_e=_(sp=>{"use strict";d();p();var dXt=sp&&sp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Dx=sp&&sp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&dXt(e,r,t)};Object.defineProperty(sp,"__esModule",{value:!0});Dx(Jue(),sp);Dx(t_e(),sp);Dx(rXe(),sp);Dx(GZ(),sp);Dx(lXe(),sp);Dx(Que(),sp)});var kr=_(ml=>{"use strict";d();p();var dXe=ml&&ml.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),pXt=ml&&ml.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),hXt=ml&&ml.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&dXe(e,r,t);return pXt(e,r),e},fXt=ml&&ml.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&dXe(e,r,t)};Object.defineProperty(ml,"__esModule",{value:!0});ml.z=void 0;var pXe=hXt(n_e());ml.z=pXe;fXt(n_e(),ml);ml.default=pXe});var TXe=_(yl=>{"use strict";d();p();var fXe=je(),mXe=Fr(),We=kr();function mXt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function yXt(r){var e=mXt(r,"string");return typeof e=="symbol"?e:String(e)}function hXe(r,e,t){return e=yXt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var gXt=We.z.string().refine(r=>fXe.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),tle=We.z.date().transform(r=>fXe.BigNumber.from(Math.floor(r.getTime()/1e3))),yXe=We.z.union([We.z.literal("evm"),We.z.literal("solana")]),bXt=We.z.union([We.z.string(),We.z.number(),We.z.boolean(),We.z.null()]),rle=We.z.lazy(()=>We.z.union([bXt,We.z.array(rle),We.z.record(rle)]),{invalid_type_error:"Provided value was not valid JSON"}),gXe=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),nonce:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),resources:We.z.array(We.z.string()).optional()}).optional(),nle=We.z.object({type:yXe,domain:We.z.string(),address:We.z.string(),statement:We.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:We.z.string().optional(),version:We.z.string().default("1"),chain_id:We.z.string().optional(),nonce:We.z.string().default(mXe.v4()),issued_at:We.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:We.z.date().transform(r=>r.toISOString()),invalid_before:We.z.date().default(new Date).transform(r=>r.toISOString()),resources:We.z.array(We.z.string()).optional()}),bXe=We.z.object({payload:nle,signature:We.z.string()}),vXe=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),validateNonce:We.z.function().args(We.z.string()).optional(),resources:We.z.array(We.z.string()).optional()}),wXe=vXe.optional(),xXe=We.z.object({domain:We.z.string().optional(),tokenId:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),session:We.z.union([rle,We.z.function().args(We.z.string())]).optional(),verifyOptions:vXe.omit({domain:!0}).optional()}).optional(),s_e=We.z.object({iss:We.z.string(),sub:We.z.string(),aud:We.z.string(),exp:tle.transform(r=>r.toNumber()),nbf:tle.transform(r=>r.toNumber()),iat:tle.transform(r=>r.toNumber()),jti:We.z.string().default(mXe.v4()),ctx:rle.optional()}),vXt=We.z.object({payload:s_e,signature:We.z.string()}),_Xe=We.z.object({domain:We.z.string().optional(),validateTokenId:We.z.function().args(We.z.string()).optional()}).optional(),wXt=bXe.extend({payload:nle.extend({issued_at:We.z.string(),expiration_time:We.z.string(),invalid_before:We.z.string()})}),a_e=()=>typeof window<"u",i_e=class{constructor(e,t){hXe(this,"domain",void 0),hXe(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=gXe.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=nle.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(a_e()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=wXe.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(a_e())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=xXe.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let C=await n.session(i);C&&(s=C)}else s=n?.session;let o=await this.wallet.getAddress(),c=s_e.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(a_e())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=_Xe.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` `);a=[a,e.statement].join(` `),e.statement&&(a+=` `);let i=[];if(e.uri){let h=`URI: ${e.uri}`;i.push(h)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let h="Chain ID: "+e.chain_id||"1";i.push(h)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let h=`Not Before: ${e.invalid_before}`;i.push(h)}e.resources&&i.push(["Resources:",...e.resources.map(h=>`- ${h}`)].join(` `));let l=i.join(` `);return[a,l].join(` -`)}};Fu.AccountTypeSchema=_8e;Fu.AddressSchema=LQt;Fu.AuthenticateOptionsSchema=k8e;Fu.AuthenticationPayloadDataSchema=SJ;Fu.AuthenticationPayloadSchema=qQt;Fu.GenerateOptionsSchema=I8e;Fu.LoginOptionsSchema=x8e;Fu.LoginPayloadDataSchema=SN;Fu.LoginPayloadOutputSchema=WQt;Fu.LoginPayloadSchema=T8e;Fu.RawDateSchema=kN;Fu.ThirdwebAuth=AJ;Fu.VerifyOptionsSchema=C8e;Fu._defineProperty=kJ});var S8e=x(qu=>{"use strict";d();p();Object.defineProperty(qu,"__esModule",{value:!0});var td=A8e();je();qr();kr();qu.AccountTypeSchema=td.AccountTypeSchema;qu.AddressSchema=td.AddressSchema;qu.AuthenticateOptionsSchema=td.AuthenticateOptionsSchema;qu.AuthenticationPayloadDataSchema=td.AuthenticationPayloadDataSchema;qu.AuthenticationPayloadSchema=td.AuthenticationPayloadSchema;qu.GenerateOptionsSchema=td.GenerateOptionsSchema;qu.LoginOptionsSchema=td.LoginOptionsSchema;qu.LoginPayloadDataSchema=td.LoginPayloadDataSchema;qu.LoginPayloadOutputSchema=td.LoginPayloadOutputSchema;qu.LoginPayloadSchema=td.LoginPayloadSchema;qu.RawDateSchema=td.RawDateSchema;qu.ThirdwebAuth=td.ThirdwebAuth;qu.VerifyOptionsSchema=td.VerifyOptionsSchema});var q8e=x(Wu=>{"use strict";d();p();var P8e=je(),R8e=qr(),Ue=kr();function UQt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function HQt(r){var e=UQt(r,"string");return typeof e=="symbol"?e:String(e)}function RJ(r,e,t){return e=HQt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var jQt=Ue.z.string().refine(r=>P8e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),PN=Ue.z.date().transform(r=>P8e.BigNumber.from(Math.floor(r.getTime()/1e3))),M8e=Ue.z.union([Ue.z.literal("evm"),Ue.z.literal("solana")]),zQt=Ue.z.union([Ue.z.string(),Ue.z.number(),Ue.z.boolean(),Ue.z.null()]),RN=Ue.z.lazy(()=>Ue.z.union([zQt,Ue.z.array(RN),Ue.z.record(RN)]),{invalid_type_error:"Provided value was not valid JSON"}),N8e=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),nonce:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),resources:Ue.z.array(Ue.z.string()).optional()}).optional(),MN=Ue.z.object({type:M8e,domain:Ue.z.string(),address:Ue.z.string(),statement:Ue.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Ue.z.string().optional(),version:Ue.z.string().default("1"),chain_id:Ue.z.string().optional(),nonce:Ue.z.string().default(R8e.v4()),issued_at:Ue.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Ue.z.date().transform(r=>r.toISOString()),invalid_before:Ue.z.date().default(new Date).transform(r=>r.toISOString()),resources:Ue.z.array(Ue.z.string()).optional()}),B8e=Ue.z.object({payload:MN,signature:Ue.z.string()}),D8e=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),validateNonce:Ue.z.function().args(Ue.z.string()).optional(),resources:Ue.z.array(Ue.z.string()).optional()}),O8e=D8e.optional(),L8e=Ue.z.object({domain:Ue.z.string().optional(),tokenId:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),session:Ue.z.union([RN,Ue.z.function().args(Ue.z.string())]).optional(),verifyOptions:D8e.omit({domain:!0}).optional()}).optional(),NJ=Ue.z.object({iss:Ue.z.string(),sub:Ue.z.string(),aud:Ue.z.string(),exp:PN.transform(r=>r.toNumber()),nbf:PN.transform(r=>r.toNumber()),iat:PN.transform(r=>r.toNumber()),jti:Ue.z.string().default(R8e.v4()),ctx:RN.optional()}),KQt=Ue.z.object({payload:NJ,signature:Ue.z.string()}),F8e=Ue.z.object({domain:Ue.z.string().optional(),validateTokenId:Ue.z.function().args(Ue.z.string()).optional()}).optional(),GQt=B8e.extend({payload:MN.extend({issued_at:Ue.z.string(),expiration_time:Ue.z.string(),invalid_before:Ue.z.string()})}),PJ=()=>typeof window<"u",MJ=class{constructor(e,t){RJ(this,"domain",void 0),RJ(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=N8e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=MN.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(PJ()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=O8e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(PJ())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=L8e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let I=await n.session(i);I&&(s=I)}else s=n?.session;let o=await this.wallet.getAddress(),c=NJ.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(PJ())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=F8e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` +`)}};yl.AccountTypeSchema=yXe;yl.AddressSchema=gXt;yl.AuthenticateOptionsSchema=_Xe;yl.AuthenticationPayloadDataSchema=s_e;yl.AuthenticationPayloadSchema=vXt;yl.GenerateOptionsSchema=xXe;yl.LoginOptionsSchema=gXe;yl.LoginPayloadDataSchema=nle;yl.LoginPayloadOutputSchema=wXt;yl.LoginPayloadSchema=bXe;yl.RawDateSchema=tle;yl.ThirdwebAuth=i_e;yl.VerifyOptionsSchema=wXe});var IXe=_(qu=>{"use strict";d();p();Object.defineProperty(qu,"__esModule",{value:!0});var Xl=TXe();je();Fr();kr();qu.AccountTypeSchema=Xl.AccountTypeSchema;qu.AddressSchema=Xl.AddressSchema;qu.AuthenticateOptionsSchema=Xl.AuthenticateOptionsSchema;qu.AuthenticationPayloadDataSchema=Xl.AuthenticationPayloadDataSchema;qu.AuthenticationPayloadSchema=Xl.AuthenticationPayloadSchema;qu.GenerateOptionsSchema=Xl.GenerateOptionsSchema;qu.LoginOptionsSchema=Xl.LoginOptionsSchema;qu.LoginPayloadDataSchema=Xl.LoginPayloadDataSchema;qu.LoginPayloadOutputSchema=Xl.LoginPayloadOutputSchema;qu.LoginPayloadSchema=Xl.LoginPayloadSchema;qu.RawDateSchema=Xl.RawDateSchema;qu.ThirdwebAuth=Xl.ThirdwebAuth;qu.VerifyOptionsSchema=Xl.VerifyOptionsSchema});var DXe=_(gl=>{"use strict";d();p();var CXe=je(),kXe=Fr(),Ue=kr();function xXt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function _Xt(r){var e=xXt(r,"string");return typeof e=="symbol"?e:String(e)}function EXe(r,e,t){return e=_Xt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var TXt=Ue.z.string().refine(r=>CXe.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),ale=Ue.z.date().transform(r=>CXe.BigNumber.from(Math.floor(r.getTime()/1e3))),AXe=Ue.z.union([Ue.z.literal("evm"),Ue.z.literal("solana")]),IXt=Ue.z.union([Ue.z.string(),Ue.z.number(),Ue.z.boolean(),Ue.z.null()]),ile=Ue.z.lazy(()=>Ue.z.union([IXt,Ue.z.array(ile),Ue.z.record(ile)]),{invalid_type_error:"Provided value was not valid JSON"}),PXe=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),nonce:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),resources:Ue.z.array(Ue.z.string()).optional()}).optional(),sle=Ue.z.object({type:AXe,domain:Ue.z.string(),address:Ue.z.string(),statement:Ue.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Ue.z.string().optional(),version:Ue.z.string().default("1"),chain_id:Ue.z.string().optional(),nonce:Ue.z.string().default(kXe.v4()),issued_at:Ue.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Ue.z.date().transform(r=>r.toISOString()),invalid_before:Ue.z.date().default(new Date).transform(r=>r.toISOString()),resources:Ue.z.array(Ue.z.string()).optional()}),SXe=Ue.z.object({payload:sle,signature:Ue.z.string()}),RXe=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),validateNonce:Ue.z.function().args(Ue.z.string()).optional(),resources:Ue.z.array(Ue.z.string()).optional()}),MXe=RXe.optional(),NXe=Ue.z.object({domain:Ue.z.string().optional(),tokenId:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),session:Ue.z.union([ile,Ue.z.function().args(Ue.z.string())]).optional(),verifyOptions:RXe.omit({domain:!0}).optional()}).optional(),u_e=Ue.z.object({iss:Ue.z.string(),sub:Ue.z.string(),aud:Ue.z.string(),exp:ale.transform(r=>r.toNumber()),nbf:ale.transform(r=>r.toNumber()),iat:ale.transform(r=>r.toNumber()),jti:Ue.z.string().default(kXe.v4()),ctx:ile.optional()}),EXt=Ue.z.object({payload:u_e,signature:Ue.z.string()}),BXe=Ue.z.object({domain:Ue.z.string().optional(),validateTokenId:Ue.z.function().args(Ue.z.string()).optional()}).optional(),CXt=SXe.extend({payload:sle.extend({issued_at:Ue.z.string(),expiration_time:Ue.z.string(),invalid_before:Ue.z.string()})}),o_e=()=>typeof window<"u",c_e=class{constructor(e,t){EXe(this,"domain",void 0),EXe(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=PXe.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=sle.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(o_e()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=MXe.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(o_e())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=NXe.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let C=await n.session(i);C&&(s=C)}else s=n?.session;let o=await this.wallet.getAddress(),c=u_e.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(o_e())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=BXe.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` `);a=[a,e.statement].join(` `),e.statement&&(a+=` `);let i=[];if(e.uri){let h=`URI: ${e.uri}`;i.push(h)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let h="Chain ID: "+e.chain_id||"1";i.push(h)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let h=`Not Before: ${e.invalid_before}`;i.push(h)}e.resources&&i.push(["Resources:",...e.resources.map(h=>`- ${h}`)].join(` `));let l=i.join(` `);return[a,l].join(` -`)}};Wu.AccountTypeSchema=M8e;Wu.AddressSchema=jQt;Wu.AuthenticateOptionsSchema=F8e;Wu.AuthenticationPayloadDataSchema=NJ;Wu.AuthenticationPayloadSchema=KQt;Wu.GenerateOptionsSchema=L8e;Wu.LoginOptionsSchema=N8e;Wu.LoginPayloadDataSchema=MN;Wu.LoginPayloadOutputSchema=GQt;Wu.LoginPayloadSchema=B8e;Wu.RawDateSchema=PN;Wu.ThirdwebAuth=MJ;Wu.VerifyOptionsSchema=O8e;Wu._defineProperty=RJ});var W8e=x(Uu=>{"use strict";d();p();Object.defineProperty(Uu,"__esModule",{value:!0});var rd=q8e();je();qr();kr();Uu.AccountTypeSchema=rd.AccountTypeSchema;Uu.AddressSchema=rd.AddressSchema;Uu.AuthenticateOptionsSchema=rd.AuthenticateOptionsSchema;Uu.AuthenticationPayloadDataSchema=rd.AuthenticationPayloadDataSchema;Uu.AuthenticationPayloadSchema=rd.AuthenticationPayloadSchema;Uu.GenerateOptionsSchema=rd.GenerateOptionsSchema;Uu.LoginOptionsSchema=rd.LoginOptionsSchema;Uu.LoginPayloadDataSchema=rd.LoginPayloadDataSchema;Uu.LoginPayloadOutputSchema=rd.LoginPayloadOutputSchema;Uu.LoginPayloadSchema=rd.LoginPayloadSchema;Uu.RawDateSchema=rd.RawDateSchema;Uu.ThirdwebAuth=rd.ThirdwebAuth;Uu.VerifyOptionsSchema=rd.VerifyOptionsSchema});var U8e=x((WMn,BJ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?BJ.exports=S8e():BJ.exports=W8e()});var H8e=x((jMn,OJ)=>{d();p();var DJ=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(D,B,_){D[B]=_.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(D,B,_){return Object.defineProperty(D,B,{value:_,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{u({},"")}catch{u=function(B,_,N){return B[_]=N}}function l(D,B,_,N){var U=B&&B.prototype instanceof S?B:S,C=Object.create(U.prototype),z=new v(N||[]);return n(C,"_invoke",{value:F(D,_,z)}),C}r.wrap=l;function h(D,B,_){try{return{type:"normal",arg:D.call(B,_)}}catch(N){return{type:"throw",arg:N}}}var f="suspendedStart",m="suspendedYield",y="executing",E="completed",I={};function S(){}function L(){}function q(){}var W={};u(W,s,function(){return this});var V=Object.getPrototypeOf,K=V&&V(V(k([])));K&&K!==e&&t.call(K,s)&&(W=K);var H=q.prototype=S.prototype=Object.create(W);L.prototype=q,n(H,"constructor",{value:q,configurable:!0}),n(q,"constructor",{value:L,configurable:!0}),L.displayName=u(q,c,"GeneratorFunction");function G(D){["next","throw","return"].forEach(function(B){u(D,B,function(_){return this._invoke(B,_)})})}r.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return B?B===L||(B.displayName||B.name)==="GeneratorFunction":!1},r.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,q):(D.__proto__=q,u(D,c,"GeneratorFunction")),D.prototype=Object.create(H),D},r.awrap=function(D){return{__await:D}};function J(D,B){function _(C,z,ee,j){var X=h(D[C],D,z);if(X.type==="throw")j(X.arg);else{var ie=X.arg,ue=ie.value;return ue&&typeof ue=="object"&&t.call(ue,"__await")?B.resolve(ue.__await).then(function(he){_("next",he,ee,j)},function(he){_("throw",he,ee,j)}):B.resolve(ue).then(function(he){ie.value=he,ee(ie)},function(he){return _("throw",he,ee,j)})}}var N;function U(C,z){function ee(){return new B(function(j,X){_(C,z,j,X)})}return N=N?N.then(ee,ee):ee()}n(this,"_invoke",{value:U})}G(J.prototype),u(J.prototype,o,function(){return this}),r.AsyncIterator=J,r.async=function(D,B,_,N,U){U===void 0&&(U=Promise);var C=new J(l(D,B,_,N),U);return r.isGeneratorFunction(B)?C:C.next().then(function(z){return z.done?z.value:C.next()})};function F(D,B,_){var N=f;return function(C,z){if(N===y)throw new Error("Generator is already running");if(N===E){if(C==="throw")throw z;return O()}for(_.method=C,_.arg=z;;){var ee=_.delegate;if(ee){var j=T(ee,_);if(j){if(j===I)continue;return j}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(N===f)throw N=E,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);N=y;var X=h(D,B,_);if(X.type==="normal"){if(N=_.done?E:m,X.arg===I)continue;return{value:X.arg,done:_.done}}else X.type==="throw"&&(N=E,_.method="throw",_.arg=X.arg)}}}function T(D,B){var _=B.method,N=D.iterator[_];if(N===a)return B.delegate=null,_==="throw"&&D.iterator.return&&(B.method="return",B.arg=a,T(D,B),B.method==="throw")||_!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+_+"' method")),I;var U=h(N,D.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,I;var C=U.arg;if(!C)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,I;if(C.done)B[D.resultName]=C.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=a);else return C;return B.delegate=null,I}G(H),u(H,c,"Generator"),u(H,s,function(){return this}),u(H,"toString",function(){return"[object Generator]"});function P(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function A(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function v(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(P,this),this.reset(!0)}r.keys=function(D){var B=Object(D),_=[];for(var N in B)_.push(N);return _.reverse(),function U(){for(;_.length;){var C=_.pop();if(C in B)return U.value=C,U.done=!1,U}return U.done=!0,U}};function k(D){if(D){var B=D[s];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var _=-1,N=function U(){for(;++_=0;--N){var U=this.tryEntries[N],C=U.completion;if(U.tryLoc==="root")return _("end");if(U.tryLoc<=this.prev){var z=t.call(U,"catchLoc"),ee=t.call(U,"finallyLoc");if(z&&ee){if(this.prev=0;--_){var N=this.tryEntries[_];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev=0;--B){var _=this.tryEntries[B];if(_.finallyLoc===D)return this.complete(_.completion,_.afterLoc),A(_),I}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var _=this.tryEntries[B];if(_.tryLoc===D){var N=_.completion;if(N.type==="throw"){var U=N.arg;A(_)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,_){return this.delegate={iterator:k(D),resultName:B,nextLoc:_},this.method==="next"&&(this.arg=a),I}},r}(typeof OJ=="object"?OJ.exports:{});try{regeneratorRuntime=DJ}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=DJ:Function("r","regeneratorRuntime = r")(DJ)}});var A4=x(Xf=>{"use strict";d();p();Object.defineProperty(Xf,"__esModule",{value:!0});var j8e=JQt(H8e());function LJ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function eZt(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function Y8e(r){return VQt(r)||QQt(r)||rZt(r)||ZQt()}var tZt=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function rZt(r,e){if(!!r){if(typeof r=="string")return LJ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return LJ(r,e)}}Object.defineProperty(Xf,"__esModule",{value:!0});function xn(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":tZt(e))!=="symbol"?e+"":e,t),t},Q8e="https://pay.coinbase.com",Z8e=en(function(r){var e=r.host,t=e===void 0?Q8e:e,n=r.destinationWallets,a=$8e(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var o=a[s];o!==void 0&&i.searchParams.append(s,o.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),X8e="cbpay-embedded-onramp",aZt=en(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,o=s===void 0?"fixed":s,c=r.top,u=c===void 0?"0px":c,l=document.createElement("iframe");return l.style.border="unset",l.style.borderWidth="0",l.style.width=n.toString(),l.style.height=i.toString(),l.style.position=o,l.style.top=u,l.id=X8e,l.src=e,l},"createEmbeddedContent"),K8e;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(K8e||(K8e={}));var eIe=en(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,o=s===void 0?en(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,c=en(function(u){var l=oZt(u.data),h=l.eventName,f=l.data,m=!i||u.origin===i;h===r&&$Qt(j8e.default.mark(function y(){return j8e.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(I.t0=m,!I.t0){I.next=5;break}return I.next=4,o(u.origin);case 4:I.t0=I.sent;case 5:if(!I.t0){I.next=7;break}t(f),a&&window.removeEventListener("message",c);case 7:case"end":return I.stop()}},y)}))()},"onMessage");return window.addEventListener("message",c),function(){window.removeEventListener("message",c)}},"onBroadcastedPostMessage"),iZt=en(function(r){return r!==window?r:sZt(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),sZt=en(function(r){try{return xn([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),WJ=en(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=cZt(e,i);r.postMessage(s,a)},"broadcastPostMessage"),oZt=en(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),cZt=en(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),uZt="/embed",lZt=5e3,FJ="coinbase-sdk-connect",b1={signin:{width:460,height:730},widget:{width:430,height:600}},tIe=function r(e){var t=e.host,n=t===void 0?Q8e:t,a=e.appId,i=e.appParams,s=e.onReady,o=e.onFallbackOpen,c=e.debug,u=this;G8e(this,r),As(this,"state","loading"),As(this,"nonce",""),As(this,"eventStreamListeners",{}),As(this,"unsubs",[]),As(this,"isLoggedIn",!1),As(this,"openExperience",en(function(l){if(u.log("Attempting to open experience",{state:u.state}),u.state!=="waiting_for_response"&&u.state!=="loading"){if(u.state==="failed"){xn([u,"access",function(V){return V.onFallbackOpen},"optionalCall",function(V){return V()}]);return}if(!u.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var h=u.nonce;u.nonce="",u.setupExperienceListeners(l);var f=l.path,m=l.experienceLoggedIn,y=l.experienceLoggedOut,E=l.embeddedContentStyles,I=new URL("".concat(u.host).concat(f));I.searchParams.append("appId",u.appId),I.searchParams.append("type","secure_standalone");var S=u.isLoggedIn?m:y||m;I.searchParams.append("nonce",h);var L=I.toString();if(u.log("Opening experience",{experience:S,isLoggedIn:u.isLoggedIn}),S==="embedded"){var q=en(function(){var V=aZt(s_({url:L},E));xn([E,"optionalAccess",function(K){return K.target}])?xn([document,"access",function(K){return K.querySelector},"call",function(K){return K(xn([E,"optionalAccess",function(H){return H.target}]))},"optionalAccess",function(K){return K.replaceChildren},"call",function(K){return K(V)}]):document.body.appendChild(V)},"openEmbeddedExperience");u.isLoggedIn?q():u.startDirectSignin(q)}else S==="popup"&&xn([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.windows},"optionalAccess",function(V){return V.create}])?window.chrome.windows.create({url:L,setSelfAsOpener:!0,type:"popup",focused:!0,width:b1.signin.width,height:b1.signin.height,left:window.screenLeft-b1.signin.width-10,top:window.screenTop},function(V){u.addEventStreamListener("open",function(){xn([V,"optionalAccess",function(K){return K.id}])&&chrome.windows.update(V.id,{width:b1.widget.width,height:b1.widget.height,left:window.screenLeft-b1.widget.width-10,top:window.screenTop})})}):S==="new_tab"&&xn([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.tabs},"optionalAccess",function(V){return V.create}])?window.chrome.tabs.create({url:L}):qJ(L,S);var W=en(function(){u.sendAppParams(),u.removeEventStreamListener("open",W)},"onOpen");u.addEventStreamListener("open",W)}},"openExperience")),As(this,"endExperience",en(function(){xn([document,"access",function(l){return l.getElementById},"call",function(l){return l(X8e)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}])},"endExperience")),As(this,"destroy",en(function(){xn([document,"access",function(l){return l.getElementById},"call",function(l){return l(FJ)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}]),u.unsubs.forEach(function(l){return l()})},"destroy")),As(this,"addPixelReadyListener",en(function(){u.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(l){u.log("Received message: pixel_ready"),u.isLoggedIn=!!xn([l,"optionalAccess",function(h){return h.isLoggedIn}]),xn([u,"access",function(h){return h.removeErrorListener},"optionalCall",function(h){return h()}]),u.sendAppParams(function(){xn([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}])})}})},"addPixelReadyListener")),As(this,"addErrorListener",en(function(){u.removeErrorListener=u.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(l){if(u.log("Received message: error"),l){var h=typeof l=="string"?l:JSON.stringify(l);xn([u,"access",function(f){return f.onReadyCallback},"optionalCall",function(f){return f(new Error(h))}])}}})},"addErrorListener")),As(this,"embedPixel",en(function(){xn([document,"access",function(h){return h.getElementById},"call",function(h){return h(FJ)},"optionalAccess",function(h){return h.remove},"call",function(h){return h()}]);var l=rIe({host:u.host,appId:u.appId});l.onerror=u.onFailedToLoad,u.pixelIframe=l,document.body.appendChild(l)},"embedPixel")),As(this,"onFailedToLoad",en(function(){if(u.state="failed",u.onFallbackOpen)u.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),xn([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}]);else{var l=new Error("Failed to load CB Pay pixel");u.debug&&console.error(l),xn([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h(l)}])}},"onFailedToLoad")),As(this,"sendAppParams",en(function(l){xn([u,"access",function(h){return h.pixelIframe},"optionalAccess",function(h){return h.contentWindow}])?(u.log("Sending message: app_params"),u.onMessage("on_app_params_nonce",{onMessage:function(h){u.state="ready",u.nonce=xn([h,"optionalAccess",function(f){return f.nonce}])||"",xn([l,"optionalCall",function(f){return f()}])}}),u.state="waiting_for_response",WJ(u.pixelIframe.contentWindow,"app_params",{data:u.appParams})):(console.error("Failed to find pixel content window"),u.state="failed",xn([u,"access",function(h){return h.onFallbackOpen},"optionalCall",function(h){return h()}]))},"sendAppParams")),As(this,"setupExperienceListeners",en(function(l){var h=l.onSuccess,f=l.onExit,m=l.onEvent;u.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(y){var E=y;xn([u,"access",function(I){return I.eventStreamListeners},"access",function(I){return I[E.eventName]},"optionalAccess",function(I){return I.forEach},"call",function(I){return I(function(S){return xn([S,"optionalCall",function(L){return L()}])})}]),E.eventName==="success"&&xn([h,"optionalCall",function(I){return I()}]),E.eventName==="exit"&&xn([f,"optionalCall",function(I){return I(E.error)}]),xn([m,"optionalCall",function(I){return I(y)}])}})},"setupExperienceListeners")),As(this,"startDirectSignin",en(function(l){var h=new URLSearchParams;h.set("appId",u.appId),h.set("type","direct");var f="".concat(u.host,"/signin?").concat(h.toString()),m=qJ(f,"popup");u.onMessage("signin_success",{onMessage:function(){xn([m,"optionalAccess",function(y){return y.close},"call",function(y){return y()}]),l()}})},"startDirectSignin")),As(this,"addEventStreamListener",en(function(l,h){u.eventStreamListeners[l]?xn([u,"access",function(f){return f.eventStreamListeners},"access",function(f){return f[l]},"optionalAccess",function(f){return f.push},"call",function(f){return f(h)}]):u.eventStreamListeners[l]=[h]},"addEventStreamListener")),As(this,"removeEventStreamListener",en(function(l,h){if(u.eventStreamListeners[l]){var f=xn([u,"access",function(m){return m.eventStreamListeners},"access",function(m){return m[l]},"optionalAccess",function(m){return m.filter},"call",function(m){return m(function(y){return y!==h})}]);u.eventStreamListeners[l]=f}},"removeEventStreamListener")),As(this,"onMessage",en(function(){for(var l=arguments.length,h=new Array(l),f=0;f{"use strict";d();p();Object.defineProperty(zJ,"__esModule",{value:!0});var hZt=A4();function fZt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mZt(r,e,t){fZt(r,e),e.set(r,t)}function yZt(r,e){return e.get?e.get.call(r):e.value}function aIe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function gZt(r,e){var t=aIe(r,e,"get");return yZt(r,t)}function bZt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function vZt(r,e,t){var n=aIe(r,e,"set");return bZt(r,n,t),t}var wZt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},HJ=new WeakMap,jJ=class{constructor(e){mZt(this,HJ,{writable:!0,value:void 0}),vZt(this,HJ,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{hZt.initOnRamp({appId:gZt(this,HJ),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[wZt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};zJ.CoinbasePayIntegration=jJ});var sIe=x(KJ=>{"use strict";d();p();Object.defineProperty(KJ,"__esModule",{value:!0});var _Zt=iIe();A4();KJ.CoinbasePayIntegration=_Zt.CoinbasePayIntegration});var cIe=x($J=>{"use strict";d();p();Object.defineProperty($J,"__esModule",{value:!0});var xZt=A4();function TZt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function EZt(r,e,t){TZt(r,e),e.set(r,t)}function CZt(r,e){return e.get?e.get.call(r):e.value}function oIe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function IZt(r,e){var t=oIe(r,e,"get");return CZt(r,t)}function kZt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function AZt(r,e,t){var n=oIe(r,e,"set");return kZt(r,n,t),t}var SZt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},GJ=new WeakMap,VJ=class{constructor(e){EZt(this,GJ,{writable:!0,value:void 0}),AZt(this,GJ,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{xZt.initOnRamp({appId:IZt(this,GJ),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[SZt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};$J.CoinbasePayIntegration=VJ});var uIe=x(YJ=>{"use strict";d();p();Object.defineProperty(YJ,"__esModule",{value:!0});var PZt=cIe();A4();YJ.CoinbasePayIntegration=PZt.CoinbasePayIntegration});var lIe=x((oNn,JJ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?JJ.exports=sIe():JJ.exports=uIe()});var xi=x(hu=>{"use strict";d();p();var RZt=Ir(),o_=je(),ct=kr();function MZt(r){return r&&r.__esModule?r:{default:r}}var c_=MZt(RZt),fIe="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function NZt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fIe;return`https://${r}.rpc.thirdweb.com/${e}`}var BZt=()=>typeof window<"u",dIe=BZt()?ct.z.instanceof(File):ct.z.instanceof(b.Buffer),DZt=ct.z.union([dIe,ct.z.object({data:ct.z.union([dIe,ct.z.string()]),name:ct.z.string()})]),NN=ct.z.union([DZt,ct.z.string()]),mIe=1e4,OZt=ct.z.union([ct.z.array(ct.z.number()),ct.z.string()]),LZt=ct.z.union([ct.z.string(),ct.z.number(),ct.z.bigint(),ct.z.custom(r=>o_.BigNumber.isBigNumber(r)),ct.z.custom(r=>c_.default.isBN(r))]).transform(r=>{let e=c_.default.isBN(r)?new c_.default(r).toString():o_.BigNumber.from(r).toString();return o_.BigNumber.from(e)});LZt.transform(r=>r.toString());var yIe=ct.z.union([ct.z.bigint(),ct.z.custom(r=>o_.BigNumber.isBigNumber(r)),ct.z.custom(r=>c_.default.isBN(r))]).transform(r=>c_.default.isBN(r)?new c_.default(r).toString():o_.BigNumber.from(r).toString()),FZt=ct.z.number().max(mIe,"Cannot exceed 100%").min(0,"Cannot be below 0%"),qZt=ct.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),WZt=ct.z.union([ct.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),ct.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),ct.z.string().length(0)]),gIe=ct.z.union([ct.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),ct.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),UZt=ct.z.union([gIe,ct.z.literal("unlimited")]).default("unlimited"),bIe=ct.z.date().transform(r=>o_.BigNumber.from(Math.floor(r.getTime()/1e3)));bIe.default(new Date(0));bIe.default(new Date(Date.now()+1e3*60*60*24*365*10));function HZt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function jZt(r){var e=HZt(r,"string");return typeof e=="symbol"?e:String(e)}function zZt(r,e,t){return e=jZt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var pIe=ct.z.object({}).catchall(ct.z.union([yIe,ct.z.unknown()])),hIe=ct.z.union([ct.z.array(pIe),pIe]).optional().nullable(),ZJ=ct.z.object({name:ct.z.union([ct.z.string(),ct.z.number()]).optional().nullable(),description:ct.z.string().nullable().optional().nullable(),image:NN.nullable().optional(),external_url:NN.nullable().optional(),animation_url:NN.optional().nullable(),background_color:WZt.optional().nullable(),properties:hIe,attributes:hIe}).catchall(ct.z.union([yIe,ct.z.unknown()])),KZt=ct.z.union([ZJ,ct.z.string()]),GZt=ZJ.extend({id:ct.z.string(),uri:ct.z.string(),image:ct.z.string().nullable().optional(),external_url:ct.z.string().nullable().optional(),animation_url:ct.z.string().nullable().optional()}),QJ=100,VZt=ct.z.object({start:ct.z.number().default(0),count:ct.z.number().default(QJ)}).default({start:0,count:QJ});hu.AmountSchema=gIe;hu.BasisPointsSchema=FZt;hu.BytesLikeSchema=OZt;hu.CommonNFTInput=ZJ;hu.CommonNFTOutput=GZt;hu.DEFAULT_API_KEY=fIe;hu.DEFAULT_QUERY_ALL_COUNT=QJ;hu.FileOrBufferOrStringSchema=NN;hu.MAX_BPS=mIe;hu.NFTInputOrUriSchema=KZt;hu.PercentSchema=qZt;hu.QuantitySchema=UZt;hu.QueryAllParamsSchema=VZt;hu._defineProperty=zZt;hu.getRpcUrl=NZt});var Tn=x((hNn,$Zt)=>{$Zt.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var En=x((fNn,YZt)=>{YZt.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Cn=x((mNn,JZt)=>{JZt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var In=x((yNn,QZt)=>{QZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var kn=x((gNn,ZZt)=>{ZZt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var An=x((bNn,XZt)=>{XZt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Sn=x((vNn,eXt)=>{eXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Pn=x((wNn,tXt)=>{tXt.exports=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Rn=x((_Nn,rXt)=>{rXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Mn=x((xNn,nXt)=>{nXt.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Nn=x((TNn,aXt)=>{aXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Bn=x((ENn,iXt)=>{iXt.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Dn=x((CNn,sXt)=>{sXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var On=x((INn,oXt)=>{oXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var Ln=x((kNn,cXt)=>{cXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var pn=x((ANn,uXt)=>{uXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Fn=x((SNn,lXt)=>{lXt.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var qn=x((PNn,dXt)=>{dXt.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Wn=x((RNn,pXt)=>{pXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Un=x((MNn,hXt)=>{hXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Hn=x((NNn,fXt)=>{fXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var jn=x((BNn,mXt)=>{mXt.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var zn=x((DNn,yXt)=>{yXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Kn=x((ONn,gXt)=>{gXt.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Gn=x((LNn,bXt)=>{bXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Vn=x((FNn,vXt)=>{vXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var $n=x((qNn,wXt)=>{wXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Yn=x((WNn,_Xt)=>{_Xt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Jn=x((UNn,xXt)=>{xXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var hn=x((HNn,TXt)=>{TXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Qn=x((jNn,EXt)=>{EXt.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Zn=x((zNn,CXt)=>{CXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Xn=x((KNn,IXt)=>{IXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var ea=x((GNn,kXt)=>{kXt.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ta=x((VNn,AXt)=>{AXt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ra=x(($Nn,SXt)=>{SXt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=x((YNn,PXt)=>{PXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var aa=x((JNn,RXt)=>{RXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ia=x((QNn,MXt)=>{MXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var sa=x((ZNn,NXt)=>{NXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var oa=x((XNn,BXt)=>{BXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ca=x((eBn,DXt)=>{DXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ua=x((tBn,OXt)=>{OXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var la=x((rBn,LXt)=>{LXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var da=x((nBn,FXt)=>{FXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var pa=x((aBn,qXt)=>{qXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var RFe=x(R=>{"use strict";d();p();Object.defineProperty(R,"__esModule",{value:!0});var WXt={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},UXt={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},HXt={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},jXt={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},zXt={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},KXt={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},GXt={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},VXt={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},$Xt={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},YXt={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},JXt={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},QXt={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},ZXt={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},XXt={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},eer={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},ter={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},rer={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},ner={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},aer={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},ier={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},ser={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},oer={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},cer={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},uer={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},ler={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},der={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},per={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},her={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},fer={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},mer={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},yer={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},ger={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},ber={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},ver={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},wer={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},_er={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},xer={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},Ter={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},Eer={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},Cer={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},Ier={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},ker={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},Aer={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},Ser={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},Per={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},Rer={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},Mer={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},Ner={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},Ber={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},Der={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},Oer={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},Ler={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},Fer={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},qer={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},Wer={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance"},Uer={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},Her={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},jer={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},zer={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Ker={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},Ger={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Ver={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},$er={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Yer={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Jer={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Qer={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Zer={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},Xer={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},etr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},ttr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},rtr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},ntr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},atr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},itr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},str={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},otr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},ctr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},utr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},ltr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},dtr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},ptr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},htr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},ftr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},mtr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},ytr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},gtr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},btr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},vtr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},wtr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},_tr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},xtr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},Ttr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},Etr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:"bkc"}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},Ctr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-testnet"},Itr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},ktr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},Atr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},Str={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},Ptr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},Rtr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},Mtr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},Ntr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},Btr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},Dtr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},Otr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},Ltr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},Ftr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},qtr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},Wtr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},Utr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Htr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},jtr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},ztr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},Ktr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},Gtr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Vtr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},$tr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Ytr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},Jtr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},Qtr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},Ztr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},Xtr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},err={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},trr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},rrr={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},nrr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},arr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},irr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},srr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},orr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},crr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},urr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},lrr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},drr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},prr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},hrr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},frr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},mrr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},yrr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},grr={name:"OKBChain Testnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"tokb",chainId:195,networkId:195,explorers:[],status:"incubating",testnet:!0,slug:"okbchain-testnet"},brr={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},vrr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},wrr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},_rr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},xrr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},Trr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},Err={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},Crr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},Irr={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},krr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},Arr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},Srr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom"},Prr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},Rrr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},Mrr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},Nrr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},Brr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-testnet.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},Drr={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},Orr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},Lrr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},Frr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},qrr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},Wrr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},Urr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},Hrr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},jrr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},zrr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Krr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},Grr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-mainnet.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://portal.zksync.io/bridge"}]},testnet:!1,slug:"zksync-era"},Vrr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},$rr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Yrr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},Jrr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Qrr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Zrr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Xrr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},enr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},tnr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},rnr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},nnr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},anr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},inr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},snr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},onr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli"},cnr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},unr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},lnr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},dnr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},pnr={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},hnr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},fnr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},mnr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},ynr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},gnr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},bnr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},vnr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},wnr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},_nr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},xnr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},Tnr={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},Enr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},Cnr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},Inr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},knr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},Anr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},Snr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},Pnr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},Rnr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},Mnr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},Nnr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},Bnr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},Dnr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},Onr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},Lnr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},Fnr={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"http://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},qnr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},Wnr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},Unr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Hnr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},jnr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},znr={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},Knr={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},Gnr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Vnr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},$nr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},Ynr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},Jnr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Qnr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Znr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Xnr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},ear={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},tar={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},rar={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},nar={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},aar={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},iar={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},sar={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},oar={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},car={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},uar={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},lar={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},dar={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},par={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},har={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},far={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},mar={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},yar={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},gar={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},bar={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},war={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memo",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},_ar={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},xar={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},Tar={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},Ear={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Car={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},Iar={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},kar={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},Aar={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},Sar={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},Par={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},Rar={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},Mar={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},Nar={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},Bar={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},Dar={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},Oar={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},Lar={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},Far={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},qar={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},War={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Uar={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},Har={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},jar={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},zar={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Kar={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Gar={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Var={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},$ar={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},Yar={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},Jar={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},Qar={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Zar={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Xar={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},eir={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},tir={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},rir={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},nir={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},air={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},iir={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},sir={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},oir={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},cir={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},uir={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},lir={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},dir={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},pir={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},hir={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},fir={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},mir={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},yir={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},gir={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},bir={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},vir={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},wir={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},_ir={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},xir={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},Tir={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},Eir={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},Cir={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},Iir={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},kir={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},Air={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},Sir={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},Pir={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},Rir={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},Mir={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},Nir={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:"eon",standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},Bir={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},Dir={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},Oir={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},Lir={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},Fir={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:"PLT",standard:"none"}],testnet:!1,slug:"palette-chain"},qir={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},Wir={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},Uir={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},Hir={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},jir={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},zir={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Kir={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},Gir={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},Vir={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},$ir={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},Yir={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},Jir={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},Qir={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Zir={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Xir={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},esr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},tsr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},rsr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},nsr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},asr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},isr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},ssr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},osr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},csr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},usr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},lsr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},dsr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},psr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"edgeware-edgeevm"},hsr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},fsr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},msr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},ysr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},gsr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},bsr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},vsr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},wsr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},_sr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},xsr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},Tsr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},Esr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},Csr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},Isr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ksr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},Asr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},Ssr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},Psr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},Rsr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},Msr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},Nsr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},Bsr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Dsr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},Osr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Lsr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},Fsr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},qsr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},Wsr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},Usr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Hsr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},jsr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},zsr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},Ksr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},Gsr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},Vsr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},$sr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},Ysr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},Jsr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Qsr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Zsr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Xsr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},eor={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},tor={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},ror={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},nor={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},aor={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},ior={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},sor={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},oor={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},cor={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},uor={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},lor={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},dor={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},por={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},hor={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},mor={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},yor={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},gor={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},bor={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},vor={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},wor={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},_or={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},xor={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},Tor={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},Eor={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},Cor={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},Ior={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},kor={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},Aor={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},Sor={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},Por={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},Ror={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},Mor={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},Nor={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},Bor={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},Dor={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},Oor={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},Lor={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},For={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},qor={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},Wor={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},Uor={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},Hor={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},jor={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},zor={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},Kor={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},Gor={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},Vor={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},$or={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},Yor={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},Jor={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},Qor={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},Zor={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},Xor={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},ecr={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},tcr={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},rcr={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},ncr={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},acr={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},icr={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},scr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},ocr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},ccr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},ucr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},lcr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},dcr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},pcr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},hcr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},fcr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},mcr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},ycr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},gcr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},bcr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},vcr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},wcr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},_cr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},xcr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},Tcr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},Ecr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},Ccr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},Icr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},kcr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},Acr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},Scr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},Pcr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Rcr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},Mcr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},Ncr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},Bcr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},Dcr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},Ocr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},Lcr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},Fcr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},qcr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},Wcr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},Ucr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},Hcr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},jcr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},zcr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},Kcr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},Gcr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Vcr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},$cr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},Ycr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},Jcr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Qcr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Zcr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Xcr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},eur={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},tur={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},rur={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},nur={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},aur={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},iur={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},sur={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},our={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},cur={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},uur={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},lur={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},dur={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},pur={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},hur={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},fur={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},mur={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},yur={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},gur={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},bur={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},vur={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},wur={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},_ur={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},xur={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},Tur={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},Eur={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Cur={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Iur={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},kur={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},Aur={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},Sur={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Pur={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Rur={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Mur={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},Nur={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},Bur={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},Dur={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},Our={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},Lur={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},Fur={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},qur={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},Wur={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},Uur={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},Hur={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},jur={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},zur={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},Kur={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},Gur={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},Vur={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},$ur={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},Yur={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},Jur={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},Qur={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},Zur={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},Xur={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},elr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},tlr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},rlr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},nlr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},alr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},ilr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},slr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},olr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},clr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},ulr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},llr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},dlr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},plr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},hlr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},flr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},mlr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},ylr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},glr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},blr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum"},vlr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},wlr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},_lr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},xlr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},Tlr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},Elr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},Clr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},Ilr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},klr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},Alr={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},Slr={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Plr={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},Rlr={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},Mlr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},Nlr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},Blr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},Dlr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},Olr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},Llr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},Flr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},qlr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},Wlr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},Ulr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},Hlr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},jlr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},zlr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},Klr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},Glr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},Vlr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},$lr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},Ylr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},Jlr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},Qlr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},Zlr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},Xlr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},edr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},tdr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},rdr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},ndr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},adr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},idr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},sdr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},odr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},cdr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},udr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},ldr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},ddr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},pdr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},hdr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},fdr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},mdr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},ydr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},gdr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},bdr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},vdr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},wdr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},_dr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},xdr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},Tdr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},Edr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},Cdr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},Idr={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},kdr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},Adr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},Sdr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},Pdr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},Rdr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},Mdr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},Ndr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},Bdr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},Ddr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},Odr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},Ldr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},Fdr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},qdr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},Wdr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},Udr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},Hdr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},jdr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},zdr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},Kdr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},Gdr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:"siberium",standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:"siberium",standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},Vdr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},$dr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},Ydr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},Jdr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},Qdr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},Zdr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},Xdr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},epr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},tpr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},rpr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},npr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},apr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},ipr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},spr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},opr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},cpr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},upr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},lpr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},dpr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},ppr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},hpr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},fpr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},mpr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},ypr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:"hap"}],testnet:!0,slug:"hapchain-testnet"},gpr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},bpr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},vpr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},wpr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},_pr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},xpr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},Tpr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},Epr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},Cpr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},Ipr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},kpr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},Apr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},Spr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},Ppr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},Rpr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},Mpr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},Npr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},Bpr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},Dpr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},Opr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},Lpr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},Fpr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},qpr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},Wpr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},Upr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},Hpr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},jpr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},zpr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},Kpr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},Gpr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},Vpr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},$pr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Ypr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},Jpr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},Qpr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Zpr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Xpr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},ehr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},thr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},rhr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},nhr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},ahr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},ihr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},shr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},ohr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},chr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:"hap"}],testnet:!1,slug:"hapchain"},uhr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},lhr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},dhr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},phr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},hhr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},fhr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},mhr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},yhr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},ghr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},bhr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},vhr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},whr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},_hr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},xhr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},Thr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},Ehr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},Chr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},Ihr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},khr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},Ahr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},Shr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},Phr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},Rhr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},Mhr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},Nhr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},Bhr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},Dhr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},Ohr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},Lhr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},Fhr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},qhr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},Whr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:"cyberdeck",standard:"none"}],testnet:!1,slug:"cyberdecknet"},Uhr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:"human",standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},Hhr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},jhr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},zhr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},Khr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},Ghr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},Vhr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},$hr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},Yhr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},Jhr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},Qhr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},Zhr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},Xhr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},efr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},tfr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},rfr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},nfr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},afr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},ifr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},sfr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},ofr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},cfr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},ufr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},lfr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},dfr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},pfr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},hfr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},ffr={mode:"http"};function vIe(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...ffr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function mfr(r,e){return vIe(r,e)[0]}function yfr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function gfr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var XJ=WXt,wIe=UXt,_Ie=HXt,xIe=jXt,eQ=zXt,TIe=KXt,EIe=GXt,CIe=VXt,IIe=$Xt,tQ=YXt,kIe=JXt,AIe=QXt,SIe=ZXt,PIe=XXt,RIe=eer,MIe=ter,NIe=rer,BIe=ner,DIe=aer,OIe=ier,LIe=ser,FIe=oer,qIe=cer,WIe=uer,UIe=ler,HIe=der,jIe=per,zIe=her,KIe=fer,GIe=mer,VIe=yer,$Ie=ger,YIe=ber,JIe=ver,QIe=wer,ZIe=_er,XIe=xer,eke=Ter,tke=Eer,rke=Cer,nke=Ier,ake=ker,ike=Aer,ske=Ser,oke=Per,cke=Rer,uke=Mer,lke=Ner,dke=Ber,pke=Der,hke=Oer,fke=Ler,mke=Fer,yke=qer,rQ=Wer,gke=Uer,bke=Her,vke=jer,wke=zer,_ke=Ker,xke=Ger,Tke=Ver,Eke=$er,Cke=Yer,Ike=Jer,kke=Qer,Ake=Zer,Ske=Xer,Pke=etr,Rke=ttr,Mke=rtr,Nke=ntr,Bke=atr,Dke=itr,Oke=str,Lke=otr,Fke=ctr,qke=utr,Wke=ltr,Uke=dtr,Hke=ptr,jke=htr,zke=ftr,Kke=mtr,Gke=ytr,Vke=gtr,$ke=btr,Yke=vtr,Jke=wtr,Qke=_tr,Zke=xtr,Xke=Ttr,eAe=Etr,nQ=Ctr,tAe=Itr,rAe=ktr,nAe=Atr,aAe=Str,iAe=Ptr,sAe=Rtr,oAe=Mtr,cAe=Ntr,uAe=Btr,lAe=Dtr,dAe=Otr,pAe=Ltr,hAe=Ftr,fAe=qtr,mAe=Wtr,yAe=Utr,gAe=Htr,bAe=jtr,vAe=ztr,wAe=Ktr,_Ae=Gtr,xAe=Vtr,TAe=$tr,EAe=Ytr,CAe=Jtr,IAe=Qtr,kAe=Ztr,AAe=Xtr,aQ=err,SAe=trr,PAe=rrr,RAe=nrr,MAe=arr,NAe=irr,BAe=srr,DAe=orr,OAe=crr,LAe=urr,FAe=lrr,qAe=drr,WAe=prr,UAe=hrr,HAe=frr,jAe=mrr,zAe=yrr,KAe=grr,GAe=brr,VAe=vrr,$Ae=wrr,YAe=_rr,JAe=xrr,QAe=Trr,ZAe=Err,XAe=Crr,eSe=Irr,tSe=krr,rSe=Arr,iQ=Srr,nSe=Prr,aSe=Rrr,iSe=Mrr,sSe=Nrr,oSe=Brr,cSe=Drr,uSe=Orr,lSe=Lrr,dSe=Frr,pSe=qrr,hSe=Wrr,fSe=Urr,mSe=Hrr,ySe=jrr,gSe=zrr,bSe=Krr,vSe=Grr,wSe=Vrr,_Se=$rr,xSe=Yrr,TSe=Jrr,ESe=Qrr,CSe=Zrr,ISe=Xrr,kSe=enr,ASe=tnr,SSe=rnr,PSe=nnr,RSe=anr,MSe=inr,NSe=snr,sQ=onr,BSe=cnr,DSe=unr,OSe=lnr,LSe=dnr,FSe=pnr,qSe=hnr,WSe=fnr,USe=mnr,HSe=ynr,jSe=gnr,zSe=bnr,KSe=vnr,GSe=wnr,VSe=_nr,$Se=xnr,YSe=Tnr,JSe=Enr,QSe=Cnr,ZSe=Inr,XSe=knr,ePe=Anr,tPe=Snr,rPe=Pnr,nPe=Rnr,aPe=Mnr,iPe=Nnr,sPe=Bnr,oPe=Dnr,cPe=Onr,uPe=Lnr,lPe=Fnr,dPe=qnr,pPe=Wnr,hPe=Unr,fPe=Hnr,mPe=jnr,yPe=znr,gPe=Knr,bPe=Gnr,vPe=Vnr,wPe=$nr,_Pe=Ynr,xPe=Jnr,TPe=Qnr,EPe=Znr,CPe=Xnr,IPe=ear,kPe=tar,APe=rar,SPe=nar,PPe=aar,RPe=iar,MPe=sar,NPe=oar,BPe=car,DPe=uar,OPe=lar,LPe=dar,FPe=par,qPe=har,WPe=far,UPe=mar,HPe=yar,jPe=gar,zPe=bar,KPe=war,GPe=_ar,VPe=xar,$Pe=Tar,YPe=Ear,JPe=Car,QPe=Iar,ZPe=kar,XPe=Aar,e7e=Sar,t7e=Par,r7e=Rar,n7e=Mar,a7e=Nar,i7e=Bar,s7e=Dar,o7e=Oar,c7e=Lar,u7e=Far,l7e=qar,d7e=War,p7e=Uar,h7e=Har,f7e=jar,m7e=zar,y7e=Kar,g7e=Gar,b7e=Var,v7e=$ar,w7e=Yar,_7e=Jar,x7e=Qar,T7e=Zar,E7e=Xar,C7e=eir,I7e=tir,k7e=rir,A7e=nir,S7e=air,P7e=iir,R7e=sir,M7e=oir,N7e=cir,B7e=uir,D7e=lir,O7e=dir,L7e=pir,F7e=hir,q7e=fir,W7e=mir,U7e=yir,H7e=gir,j7e=bir,z7e=vir,K7e=wir,G7e=_ir,V7e=xir,$7e=Tir,Y7e=Eir,J7e=Cir,Q7e=Iir,Z7e=kir,X7e=Air,eRe=Sir,tRe=Pir,rRe=Rir,nRe=Mir,aRe=Nir,iRe=Bir,sRe=Dir,oRe=Oir,cRe=Lir,uRe=Fir,lRe=qir,dRe=Wir,pRe=Uir,hRe=Hir,fRe=jir,mRe=zir,yRe=Kir,gRe=Gir,bRe=Vir,vRe=$ir,wRe=Yir,_Re=Jir,xRe=Qir,TRe=Zir,ERe=Xir,CRe=esr,IRe=tsr,kRe=rsr,ARe=nsr,SRe=asr,PRe=isr,RRe=ssr,MRe=osr,NRe=csr,BRe=usr,DRe=lsr,ORe=dsr,LRe=psr,FRe=hsr,qRe=fsr,WRe=msr,URe=ysr,HRe=gsr,jRe=bsr,zRe=vsr,KRe=wsr,GRe=_sr,VRe=xsr,$Re=Tsr,YRe=Esr,JRe=Csr,QRe=Isr,ZRe=ksr,XRe=Asr,e9e=Ssr,t9e=Psr,r9e=Rsr,n9e=Msr,a9e=Nsr,i9e=Bsr,s9e=Dsr,o9e=Osr,c9e=Lsr,u9e=Fsr,l9e=qsr,d9e=Wsr,p9e=Usr,h9e=Hsr,f9e=jsr,m9e=zsr,y9e=Ksr,g9e=Gsr,b9e=Vsr,v9e=$sr,w9e=Ysr,_9e=Jsr,x9e=Qsr,T9e=Zsr,E9e=Xsr,C9e=eor,I9e=tor,k9e=ror,A9e=nor,S9e=aor,P9e=ior,R9e=sor,M9e=oor,N9e=cor,B9e=uor,D9e=lor,O9e=dor,L9e=por,F9e=hor,q9e=mor,oQ=yor,W9e=gor,U9e=bor,H9e=vor,j9e=wor,z9e=_or,K9e=xor,G9e=Tor,V9e=Eor,$9e=Cor,Y9e=Ior,J9e=kor,Q9e=Aor,Z9e=Sor,X9e=Por,eMe=Ror,tMe=Mor,rMe=Nor,nMe=Bor,aMe=Dor,iMe=Oor,sMe=Lor,oMe=For,cMe=qor,uMe=Wor,lMe=Uor,dMe=Hor,pMe=jor,hMe=zor,fMe=Kor,mMe=Gor,yMe=Vor,gMe=$or,bMe=Yor,vMe=Jor,wMe=Qor,_Me=Zor,xMe=Xor,TMe=ecr,EMe=tcr,CMe=rcr,IMe=ncr,kMe=acr,AMe=icr,SMe=scr,PMe=ocr,RMe=ccr,MMe=ucr,NMe=lcr,BMe=dcr,DMe=pcr,OMe=hcr,LMe=fcr,FMe=mcr,qMe=ycr,WMe=gcr,UMe=bcr,HMe=vcr,jMe=wcr,zMe=_cr,KMe=xcr,GMe=Tcr,VMe=Ecr,$Me=Ccr,YMe=Icr,JMe=kcr,QMe=Acr,ZMe=Scr,XMe=Pcr,eNe=Rcr,tNe=Mcr,rNe=Ncr,nNe=Bcr,aNe=Dcr,iNe=Ocr,sNe=Lcr,oNe=Fcr,cNe=qcr,uNe=Wcr,lNe=Ucr,dNe=Hcr,pNe=jcr,hNe=zcr,fNe=Kcr,mNe=Gcr,yNe=Vcr,gNe=$cr,bNe=Ycr,vNe=Jcr,wNe=Qcr,_Ne=Zcr,xNe=Xcr,TNe=eur,ENe=tur,CNe=rur,INe=nur,kNe=aur,ANe=iur,SNe=sur,PNe=our,RNe=cur,MNe=uur,NNe=lur,BNe=dur,DNe=pur,ONe=hur,LNe=fur,FNe=mur,qNe=yur,WNe=gur,UNe=bur,HNe=vur,jNe=wur,zNe=_ur,KNe=xur,GNe=Tur,VNe=Eur,$Ne=Cur,YNe=Iur,JNe=kur,QNe=Aur,ZNe=Sur,XNe=Pur,eBe=Rur,tBe=Mur,rBe=Nur,nBe=Bur,aBe=Dur,iBe=Our,sBe=Lur,oBe=Fur,cBe=qur,uBe=Wur,lBe=Uur,dBe=Hur,pBe=jur,hBe=zur,fBe=Kur,mBe=Gur,yBe=Vur,gBe=$ur,bBe=Yur,vBe=Jur,wBe=Qur,_Be=Zur,xBe=Xur,TBe=elr,EBe=tlr,CBe=rlr,IBe=nlr,kBe=alr,ABe=ilr,SBe=slr,PBe=olr,RBe=clr,MBe=ulr,NBe=llr,BBe=dlr,DBe=plr,OBe=hlr,LBe=flr,FBe=mlr,qBe=ylr,WBe=glr,cQ=blr,UBe=vlr,HBe=wlr,jBe=_lr,zBe=xlr,KBe=Tlr,uQ=Elr,lQ=Clr,GBe=Ilr,VBe=klr,$Be=Alr,YBe=Slr,JBe=Plr,QBe=Rlr,ZBe=Mlr,XBe=Nlr,eDe=Blr,tDe=Dlr,rDe=Olr,nDe=Llr,aDe=Flr,iDe=qlr,sDe=Wlr,oDe=Ulr,cDe=Hlr,uDe=jlr,lDe=zlr,dDe=Klr,pDe=Glr,hDe=Vlr,fDe=$lr,mDe=Ylr,yDe=Jlr,gDe=Qlr,bDe=Zlr,vDe=Xlr,wDe=edr,_De=tdr,xDe=rdr,TDe=ndr,EDe=adr,CDe=idr,IDe=sdr,kDe=odr,ADe=cdr,SDe=udr,PDe=ldr,RDe=ddr,MDe=pdr,NDe=hdr,BDe=fdr,dQ=mdr,DDe=ydr,ODe=gdr,LDe=bdr,FDe=vdr,qDe=wdr,WDe=_dr,UDe=xdr,HDe=Tdr,jDe=Edr,zDe=Cdr,KDe=Idr,GDe=kdr,VDe=Adr,$De=Sdr,YDe=Pdr,JDe=Rdr,QDe=Mdr,ZDe=Ndr,XDe=Bdr,eOe=Ddr,tOe=Odr,rOe=Ldr,nOe=Fdr,aOe=qdr,iOe=Wdr,sOe=Udr,oOe=Hdr,cOe=jdr,uOe=zdr,lOe=Kdr,dOe=Gdr,pOe=Vdr,hOe=$dr,fOe=Ydr,mOe=Jdr,yOe=Qdr,gOe=Zdr,bOe=Xdr,vOe=epr,wOe=tpr,_Oe=rpr,xOe=npr,TOe=apr,EOe=ipr,COe=spr,IOe=opr,kOe=cpr,AOe=upr,SOe=lpr,POe=dpr,ROe=ppr,MOe=hpr,NOe=fpr,BOe=mpr,DOe=ypr,OOe=gpr,LOe=bpr,FOe=vpr,qOe=wpr,WOe=_pr,UOe=xpr,pQ=Tpr,HOe=Epr,jOe=Cpr,zOe=Ipr,KOe=kpr,GOe=Apr,VOe=Spr,$Oe=Ppr,YOe=Rpr,JOe=Mpr,QOe=Npr,ZOe=Bpr,XOe=Dpr,eLe=Opr,tLe=Lpr,rLe=Fpr,nLe=qpr,aLe=Wpr,iLe=Upr,sLe=Hpr,oLe=jpr,cLe=zpr,uLe=Kpr,lLe=Gpr,dLe=Vpr,pLe=$pr,hLe=Ypr,fLe=Jpr,mLe=Qpr,yLe=Zpr,gLe=Xpr,bLe=ehr,vLe=thr,wLe=rhr,_Le=nhr,xLe=ahr,TLe=ihr,ELe=shr,CLe=ohr,ILe=chr,kLe=uhr,ALe=lhr,SLe=dhr,PLe=phr,RLe=hhr,MLe=fhr,NLe=mhr,BLe=yhr,DLe=ghr,OLe=bhr,LLe=vhr,FLe=whr,qLe=_hr,WLe=xhr,ULe=Thr,HLe=Ehr,jLe=Chr,zLe=Ihr,KLe=khr,GLe=Ahr,VLe=Shr,$Le=Phr,YLe=Rhr,JLe=Mhr,QLe=Nhr,ZLe=Bhr,XLe=Dhr,eFe=Ohr,tFe=Lhr,rFe=Fhr,nFe=qhr,aFe=Whr,iFe=Uhr,sFe=Hhr,oFe=jhr,cFe=zhr,uFe=Khr,lFe=Ghr,dFe=Vhr,pFe=$hr,hFe=Yhr,fFe=Jhr,mFe=Qhr,yFe=Zhr,gFe=Xhr,bFe=efr,vFe=tfr,wFe=rfr,_Fe=nfr,xFe=afr,TFe=ifr,EFe=sfr,CFe=ofr,IFe=cfr,kFe=ufr,AFe=lfr,SFe=dfr,PFe=pfr,hQ=hfr,bfr=[XJ,eQ,aQ,dQ,cQ,pQ,tQ,sQ,rQ,nQ,iQ,oQ,lQ,uQ,hQ],fQ=[XJ,wIe,_Ie,xIe,eQ,TIe,EIe,CIe,IIe,tQ,kIe,AIe,SIe,PIe,RIe,MIe,NIe,BIe,DIe,OIe,LIe,FIe,qIe,WIe,UIe,HIe,jIe,zIe,KIe,GIe,VIe,$Ie,YIe,JIe,QIe,ZIe,XIe,eke,tke,rke,nke,ake,ike,ske,oke,cke,uke,lke,dke,pke,hke,fke,mke,yke,rQ,gke,bke,vke,wke,_ke,xke,Tke,Eke,Cke,Ike,kke,Ake,Ske,Pke,Rke,Mke,Nke,Bke,Dke,Oke,Lke,Fke,qke,Wke,Uke,Hke,jke,zke,Kke,Gke,Vke,$ke,Yke,Jke,Qke,Zke,Xke,eAe,nQ,tAe,rAe,nAe,aAe,iAe,sAe,oAe,cAe,uAe,lAe,dAe,pAe,hAe,fAe,mAe,yAe,gAe,bAe,vAe,wAe,_Ae,xAe,TAe,EAe,CAe,IAe,kAe,AAe,aQ,SAe,PAe,RAe,MAe,NAe,BAe,DAe,OAe,LAe,FAe,qAe,WAe,UAe,HAe,jAe,zAe,KAe,GAe,VAe,$Ae,YAe,JAe,QAe,ZAe,XAe,eSe,tSe,rSe,iQ,nSe,aSe,iSe,sSe,oSe,cSe,uSe,lSe,dSe,pSe,hSe,fSe,mSe,ySe,gSe,bSe,vSe,wSe,_Se,xSe,TSe,ESe,CSe,ISe,kSe,ASe,SSe,PSe,RSe,MSe,NSe,sQ,BSe,DSe,OSe,LSe,FSe,qSe,WSe,USe,HSe,jSe,zSe,KSe,GSe,VSe,$Se,YSe,JSe,QSe,ZSe,XSe,ePe,tPe,rPe,nPe,aPe,iPe,sPe,oPe,cPe,uPe,lPe,dPe,pPe,hPe,fPe,mPe,yPe,gPe,bPe,vPe,wPe,_Pe,xPe,TPe,EPe,CPe,IPe,kPe,APe,SPe,PPe,RPe,MPe,NPe,BPe,DPe,OPe,LPe,FPe,qPe,WPe,UPe,HPe,jPe,zPe,KPe,GPe,VPe,$Pe,YPe,JPe,QPe,ZPe,XPe,e7e,t7e,r7e,n7e,a7e,i7e,s7e,o7e,c7e,u7e,l7e,d7e,p7e,h7e,f7e,m7e,y7e,g7e,b7e,v7e,w7e,_7e,x7e,T7e,E7e,C7e,I7e,k7e,A7e,S7e,P7e,R7e,M7e,N7e,B7e,D7e,O7e,L7e,F7e,q7e,W7e,U7e,H7e,j7e,z7e,K7e,G7e,V7e,$7e,Y7e,J7e,Q7e,Z7e,X7e,eRe,tRe,rRe,nRe,aRe,iRe,sRe,oRe,cRe,uRe,lRe,dRe,pRe,hRe,fRe,mRe,yRe,gRe,bRe,vRe,wRe,_Re,xRe,TRe,ERe,CRe,IRe,kRe,ARe,SRe,PRe,RRe,MRe,NRe,BRe,DRe,ORe,LRe,FRe,qRe,WRe,URe,HRe,jRe,zRe,KRe,GRe,VRe,$Re,YRe,JRe,QRe,ZRe,XRe,e9e,t9e,r9e,n9e,a9e,i9e,s9e,o9e,c9e,u9e,l9e,d9e,p9e,h9e,f9e,m9e,y9e,g9e,b9e,v9e,w9e,_9e,x9e,T9e,E9e,C9e,I9e,k9e,A9e,S9e,P9e,R9e,M9e,N9e,B9e,D9e,O9e,L9e,F9e,q9e,oQ,W9e,U9e,H9e,j9e,z9e,K9e,G9e,V9e,$9e,Y9e,J9e,Q9e,Z9e,X9e,eMe,tMe,rMe,nMe,aMe,iMe,sMe,oMe,cMe,uMe,lMe,dMe,pMe,hMe,fMe,mMe,yMe,gMe,bMe,vMe,wMe,_Me,xMe,TMe,EMe,CMe,IMe,kMe,AMe,SMe,PMe,RMe,MMe,NMe,BMe,DMe,OMe,LMe,FMe,qMe,WMe,UMe,HMe,jMe,zMe,KMe,GMe,VMe,$Me,YMe,JMe,QMe,ZMe,XMe,eNe,tNe,rNe,nNe,aNe,iNe,sNe,oNe,cNe,uNe,lNe,dNe,pNe,hNe,fNe,mNe,yNe,gNe,bNe,vNe,wNe,_Ne,xNe,TNe,ENe,CNe,INe,kNe,ANe,SNe,PNe,RNe,MNe,NNe,BNe,DNe,ONe,LNe,FNe,qNe,WNe,UNe,HNe,jNe,zNe,KNe,GNe,VNe,$Ne,YNe,JNe,QNe,ZNe,XNe,eBe,tBe,rBe,nBe,aBe,iBe,sBe,oBe,cBe,uBe,lBe,dBe,pBe,hBe,fBe,mBe,yBe,gBe,bBe,vBe,wBe,_Be,xBe,TBe,EBe,CBe,IBe,kBe,ABe,SBe,PBe,RBe,MBe,NBe,BBe,DBe,OBe,LBe,FBe,qBe,WBe,cQ,UBe,HBe,jBe,zBe,KBe,uQ,lQ,GBe,VBe,$Be,YBe,JBe,QBe,ZBe,XBe,eDe,tDe,rDe,nDe,aDe,iDe,sDe,oDe,cDe,uDe,lDe,dDe,pDe,hDe,fDe,mDe,yDe,gDe,bDe,vDe,wDe,_De,xDe,TDe,EDe,CDe,IDe,kDe,ADe,SDe,PDe,RDe,MDe,NDe,BDe,dQ,DDe,ODe,LDe,FDe,qDe,WDe,UDe,HDe,jDe,zDe,KDe,GDe,VDe,$De,YDe,JDe,QDe,ZDe,XDe,eOe,tOe,rOe,nOe,aOe,iOe,sOe,oOe,cOe,uOe,lOe,dOe,pOe,hOe,fOe,mOe,yOe,gOe,bOe,vOe,wOe,_Oe,xOe,TOe,EOe,COe,IOe,kOe,AOe,SOe,POe,ROe,MOe,NOe,BOe,DOe,OOe,LOe,FOe,qOe,WOe,UOe,pQ,HOe,jOe,zOe,KOe,GOe,VOe,$Oe,YOe,JOe,QOe,ZOe,XOe,eLe,tLe,rLe,nLe,aLe,iLe,sLe,oLe,cLe,uLe,lLe,dLe,pLe,hLe,fLe,mLe,yLe,gLe,bLe,vLe,wLe,_Le,xLe,TLe,ELe,CLe,ILe,kLe,ALe,SLe,PLe,RLe,MLe,NLe,BLe,DLe,OLe,LLe,FLe,qLe,WLe,ULe,HLe,jLe,zLe,KLe,GLe,VLe,$Le,YLe,JLe,QLe,ZLe,XLe,eFe,tFe,rFe,nFe,aFe,iFe,sFe,oFe,cFe,uFe,lFe,dFe,pFe,hFe,fFe,mFe,yFe,gFe,bFe,vFe,wFe,_Fe,xFe,TFe,EFe,CFe,IFe,kFe,AFe,SFe,PFe,hQ];function vfr(r){let e=fQ.find(t=>t.chainId===r);if(!e)throw new Error(`Chain with chainId "${r}" not found`);return e}function wfr(r){let e=fQ.find(t=>t.slug===r);if(!e)throw new Error(`Chain with slug "${r}" not found`);return e}R.AcalaMandalaTestnet=JSe;R.AcalaNetwork=mPe;R.AcalaNetworkTestnet=ZSe;R.AerochainTestnet=yPe;R.AiozNetwork=LAe;R.AiozNetworkTestnet=K9e;R.Airdao=tBe;R.AirdaoTestnet=pBe;R.Aitd=j7e;R.AitdTestnet=z7e;R.Akroma=yOe;R.Alaya=gOe;R.AlayaDevTestnet=bOe;R.AlphNetwork=JMe;R.Altcoinchain=s9e;R.Alyx=H7e;R.AlyxChainTestnet=AAe;R.AmbrosChain=APe;R.AmeChain=WAe;R.Amstar=$7e;R.AmstarTestnet=v7e;R.Anduschain=RLe;R.AnytypeEvmChain=sRe;R.Aquachain=zLe;R.Arbitrum=cQ;R.ArbitrumGoerli=pQ;R.ArbitrumNova=UBe;R.ArbitrumOnXdai=$Ae;R.ArbitrumRinkeby=UOe;R.ArcologyTestnet=yAe;R.Arevia=i9e;R.ArmoniaEvaChain=MAe;R.ArmoniaEvaChainTestnet=NAe;R.ArtisSigma1=COe;R.ArtisTestnetTau1=IOe;R.Astar=YSe;R.Astra=MNe;R.AstraTestnet=BNe;R.Atelier=xRe;R.Atheios=rRe;R.Athereum=KBe;R.AtoshiTestnet=OAe;R.Aurora=sFe;R.AuroraBetanet=cFe;R.AuroraTestnet=oFe;R.AutobahnNetwork=YBe;R.AutonityBakerlooThamesTestnet=KLe;R.AutonityPiccadillyThamesTestnet=GLe;R.AuxiliumNetwork=qLe;R.Avalanche=lQ;R.AvalancheFuji=uQ;R.Aves=NBe;R.BandaiNamcoResearchVerse=IPe;R.Base=KMe;R.BaseGoerli=DDe;R.BeagleMessagingChain=eRe;R.BeanecoSmartchain=ZOe;R.BearNetworkChain=XOe;R.BearNetworkChainTestnet=tLe;R.BeoneChainTestnet=WMe;R.BeresheetBereevmTestnet=FRe;R.Berylbit=dNe;R.BeverlyHills=FDe;R.Bifrost=_9e;R.BifrostTestnet=XBe;R.Binance=rQ;R.BinanceTestnet=nQ;R.Bitcichain=gRe;R.BitcichainTestnet=bRe;R.BitcoinEvm=XRe;R.Bitgert=PBe;R.Bitindi=z9e;R.BitindiTestnet=j9e;R.BitkubChain=eAe;R.BitkubChainTestnet=wBe;R.Bittex=N9e;R.BittorrentChain=VAe;R.BittorrentChainTestnet=i7e;R.Bityuan=g9e;R.BlackfortExchangeNetwork=tMe;R.BlackfortExchangeNetworkTestnet=Z9e;R.BlgTestnet=jNe;R.BlockchainGenesis=ENe;R.BlockchainStation=oPe;R.BlockchainStationTestnet=cPe;R.BlocktonBlockchain=HMe;R.Bloxberg=cNe;R.Bmc=HAe;R.BmcTestnet=jAe;R.BobaAvax=GBe;R.BobaBnb=cDe;R.BobaBnbTestnet=gNe;R.BobaNetwork=cSe;R.BobaNetworkGoerliTestnet=y9e;R.BobaNetworkRinkebyTestnet=zIe;R.BobabaseTestnet=W7e;R.Bobabeam=q7e;R.BobafujiTestnet=$9e;R.Bobaopera=fSe;R.BobaoperaTestnet=W9e;R.BombChain=a9e;R.BombChainTestnet=o9e;R.BonNetwork=yRe;R.Bosagora=YRe;R.Brochain=tOe;R.Bronos=u7e;R.BronosTestnet=c7e;R.Btachain=nRe;R.BtcixNetwork=sBe;R.Callisto=_Pe;R.CallistoTestnet=oBe;R.CalypsoNftHubSkale=lFe;R.CalypsoNftHubSkaleTestnet=XLe;R.CaminoCChain=LSe;R.Candle=KSe;R.Canto=SMe;R.CantoTestnet=lPe;R.CatecoinChain=tRe;R.Celo=HBe;R.CeloAlfajoresTestnet=$Be;R.CeloBaklavaTestnet=yDe;R.CennznetAzalea=uBe;R.CennznetNikau=v9e;R.CennznetRata=b9e;R.ChainVerse=lMe;R.Cheapeth=fPe;R.ChiadoTestnet=CNe;R.ChilizScovilleTestnet=ODe;R.CicChain=V7e;R.CicChainTestnet=N7e;R.Cloudtx=IBe;R.CloudtxTestnet=kBe;R.Cloudwalk=MRe;R.CloudwalkTestnet=RRe;R.CloverTestnet=n7e;R.ClvParachain=a7e;R.Cmp=AOe;R.CmpTestnet=VOe;R.CoinexSmartChain=hke;R.CoinexSmartChainTestnet=fke;R.ColumbusTestNetwork=FSe;R.CondorTestNetwork=hOe;R.Condrieu=_De;R.ConfluxEspace=s7e;R.ConfluxEspaceTestnet=Rke;R.ConstaTestnet=SSe;R.CoreBlockchain=m7e;R.CoreBlockchainTestnet=f7e;R.CreditSmartchain=VNe;R.CronosBeta=UIe;R.CronosTestnet=TSe;R.Crossbell=D9e;R.CryptoEmergency=zAe;R.Cryptocoinpay=SNe;R.CryptokylinTestnet=Xke;R.Crystaleum=eOe;R.CtexScanBlockchain=Q7e;R.CubeChain=pRe;R.CubeChainTestnet=hRe;R.Cyberdecknet=aFe;R.DChain=wRe;R.DarwiniaCrabNetwork=ske;R.DarwiniaNetwork=cke;R.DarwiniaPangolinTestnet=ike;R.DarwiniaPangoroTestnet=oke;R.Datahopper=wFe;R.DaxChain=PAe;R.DbchainTestnet=kke;R.Debank=mAe;R.DebankTestnet=fAe;R.DebounceSubnetTestnet=T9e;R.DecentralizedWeb=xAe;R.DecimalSmartChain=Dke;R.DecimalSmartChainTestnet=wOe;R.DefichainEvmNetwork=g7e;R.DefichainEvmNetworkTestnet=b7e;R.Dehvo=pAe;R.DexalotSubnet=zOe;R.DexalotSubnetTestnet=jOe;R.DexitNetwork=kPe;R.DfkChain=aDe;R.DfkChainTest=_Se;R.DiodePrenet=RIe;R.DiodeTestnetStaging=SIe;R.DithereumTestnet=JIe;R.Dogcoin=y7e;R.DogcoinTestnet=hNe;R.Dogechain=ARe;R.DogechainTestnet=$Se;R.DokenSuperChain=mDe;R.DosFujiSubnet=U7e;R.DoubleAChain=qSe;R.DoubleAChainTestnet=WSe;R.DracNetwork=O9e;R.DraconesFinancialServices=zMe;R.Dxchain=ZIe;R.DxchainTestnet=Mke;R.Dyno=L9e;R.DynoTestnet=F9e;R.Ecoball=KRe;R.EcoballTestnetEspuma=GRe;R.Ecredits=bDe;R.EcreditsTestnet=vDe;R.EdexaTestnet=kRe;R.EdgewareEdgeevm=LRe;R.Ekta=IRe;R.ElaDidSidechain=FIe;R.ElaDidSidechainTestnet=qIe;R.ElastosSmartChain=OIe;R.ElastosSmartChainTestnet=LIe;R.Eleanor=_Re;R.EllaTheHeart=CMe;R.Ellaism=Eke;R.EluvioContentFabric=lLe;R.Elysium=G7e;R.ElysiumTestnet=K7e;R.EmpireNetwork=B9e;R.EnduranceSmartChain=nPe;R.Energi=LBe;R.EnergiTestnet=eDe;R.EnergyWebChain=tSe;R.EnergyWebVoltaTestnet=SDe;R.EnnothemProterozoic=uke;R.EnnothemTestnetPioneer=lke;R.Enterchain=k7e;R.Enuls=gAe;R.EnulsTestnet=bAe;R.Eos=vke;R.Eraswap=iMe;R.Ethereum=XJ;R.EthereumClassic=_ke;R.EthereumClassicTestnetKotti=TIe;R.EthereumClassicTestnetMorden=xke;R.EthereumClassicTestnetMordor=Tke;R.EthereumFair=$Oe;R.Ethergem=CRe;R.Etherinc=nAe;R.EtherliteChain=dAe;R.EthersocialNetwork=CBe;R.EthoProtocol=dLe;R.Etica=fDe;R.EtndChainS=pOe;R.EuropaSkaleChain=_Fe;R.Eurus=XPe;R.EurusTestnet=ERe;R.Evanesco=e9e;R.EvanescoTestnet=E7e;R.Evmos=lNe;R.EvmosTestnet=uNe;R.EvriceNetwork=e7e;R.Excelon=OLe;R.ExcoincialChain=FLe;R.ExcoincialChainVoltaTestnet=LLe;R.ExosamaNetwork=VRe;R.ExpanseNetwork=wIe;R.ExzoNetwork=A7e;R.EzchainCChain=f9e;R.EzchainCChainTestnet=m9e;R.FXCoreNetwork=zSe;R.Factory127=CAe;R.FantasiaChain=CPe;R.Fantom=iQ;R.FantomTestnet=oQ;R.FastexChainTestnet=HOe;R.Fibonacci=HNe;R.Filecoin=ySe;R.FilecoinButterflyTestnet=bLe;R.FilecoinCalibrationTestnet=ROe;R.FilecoinHyperspaceTestnet=x9e;R.FilecoinLocalTestnet=ULe;R.FilecoinWallabyTestnet=SBe;R.Findora=JRe;R.FindoraForge=ZRe;R.FindoraTestnet=QRe;R.Firechain=jSe;R.FirenzeTestNetwork=NDe;R.Flachain=WLe;R.Flare=PIe;R.FlareTestnetCoston=MIe;R.FlareTestnetCoston2=hAe;R.Floripa=ZBe;R.Fncy=Nke;R.FncyTestnet=uLe;R.FreightTrustNetwork=JAe;R.Frenchain=VBe;R.FrenchainTestnet=DSe;R.FrontierOfDreamsTestnet=nBe;R.Fuse=wAe;R.FuseSparknet=_Ae;R.Fusion=RBe;R.FusionTestnet=JBe;R.Ganache=hMe;R.GarizonStage0=Yke;R.GarizonStage1=Jke;R.GarizonStage2=Qke;R.GarizonStage3=Zke;R.GarizonTestnetStage0=PPe;R.GarizonTestnetStage1=RPe;R.GarizonTestnetStage2=MPe;R.GarizonTestnetStage3=NPe;R.Gatechain=Kke;R.GatechainTestnet=zke;R.GatherDevnetNetwork=tFe;R.GatherNetwork=$Le;R.GatherTestnetNetwork=eFe;R.GearZeroNetwork=USe;R.GearZeroNetworkTestnet=SOe;R.Genechain=Wke;R.GenesisCoin=pNe;R.GenesisL1=KIe;R.GenesisL1Testnet=HIe;R.GiantMammoth=oNe;R.GitshockCartenzTestnet=mRe;R.Gnosis=rAe;R.Gochain=wke;R.GochainTestnet=ABe;R.Godwoken=ADe;R.GodwokenTestnetV1=kDe;R.Goerli=eQ;R.GoldSmartChain=wMe;R.GoldSmartChainTestnet=BDe;R.GonChain=xNe;R.Gooddata=YIe;R.GooddataTestnet=$Ie;R.GraphlinqBlockchain=tPe;R.Gton=YPe;R.GtonTestnet=rDe;R.Haic=bPe;R.Halo=B7e;R.HammerChain=vBe;R.Hapchain=ILe;R.HapchainTestnet=DOe;R.HaqqChainTestnet=iDe;R.HaqqNetwork=ONe;R.HaradevTestnet=kFe;R.HarmonyDevnetShard0=vFe;R.HarmonyShard0=dFe;R.HarmonyShard1=pFe;R.HarmonyShard2=hFe;R.HarmonyShard3=fFe;R.HarmonyTestnetShard0=mFe;R.HarmonyTestnetShard1=yFe;R.HarmonyTestnetShard2=gFe;R.HarmonyTestnetShard3=bFe;R.Hashbit=DNe;R.HaymoTestnet=EOe;R.HazlorTestnet=RMe;R.Hedera=uSe;R.HederaLocalnet=pSe;R.HederaPreviewnet=dSe;R.HederaTestnet=lSe;R.HertzNetwork=_Be;R.HighPerformanceBlockchain=sSe;R.HikaNetworkTestnet=pMe;R.HomeVerse=iBe;R.HooSmartChain=Pke;R.HooSmartChainTestnet=FAe;R.HorizenYumaTestnet=aRe;R.Htmlcoin=Y9e;R.HumanProtocol=iFe;R.Humanode=sMe;R.HuobiEcoChain=IAe;R.HuobiEcoChainTestnet=nSe;R.HyperonchainTestnet=RSe;R.Idchain=Bke;R.IexecSidechain=kAe;R.Imversed=vLe;R.ImversedTestnet=wLe;R.Iolite=NLe;R.IoraChain=T7e;R.IotexNetwork=J9e;R.IotexNetworkTestnet=Q9e;R.IposNetwork=nFe;R.IvarChain=LDe;R.IvarChainTestnet=rBe;R.J2oTaro=BBe;R.Jellie=_Oe;R.JfinChain=S9e;R.JibchainL1=sNe;R.JoysDigital=HLe;R.JoysDigitalTestnet=VLe;R.KaibaLightningChainTestnet=iAe;R.Kardiachain=WIe;R.KaruraNetwork=iPe;R.KaruraNetworkTestnet=QSe;R.KavaEvm=r9e;R.KavaEvmTestnet=t9e;R.Kcc=gSe;R.KccTestnet=bSe;R.Kekchain=qOe;R.KekchainKektest=WOe;R.Kerleano=lRe;R.Kiln=fLe;R.Kintsugi=hLe;R.KlaytnCypress=UMe;R.KlaytnTestnetBaobab=JPe;R.Klyntar=kMe;R.Kortho=l9e;R.Korthotest=jMe;R.Kovan=ake;R.LaTestnet=NSe;R.Lachain=XAe;R.LachainTestnet=eSe;R.LambdaTestnet=qDe;R.LatamBlockchainResilTestnet=qAe;R.Lightstreams=DAe;R.LightstreamsTestnet=BAe;R.Lisinski=PSe;R.LiveplexOracleevm=tDe;R.Localhost=hQ;R.Loopnetwork=QNe;R.LucidBlockchain=gPe;R.LuckyNetwork=VPe;R.Ludan=iRe;R.LycanChain=uPe;R.Maistestsubnet=jLe;R.Mammoth=iNe;R.Mantle=rMe;R.MantleTestnet=nMe;R.Map=hBe;R.MapMakalu=QAe;R.MaroBlockchain=ZMe;R.Mas=TOe;R.Mathchain=w7e;R.MathchainTestnet=_7e;R.MdglTestnet=BMe;R.MemoSmartChain=KPe;R.MeshnyanTestnet=ePe;R.Metacodechain=M9e;R.Metadium=kIe;R.MetadiumTestnet=AIe;R.Metadot=XNe;R.MetadotTestnet=eBe;R.MetalCChain=OOe;R.MetalTahoeCChain=LOe;R.Metaplayerone=$Re;R.Meter=Hke;R.MeterTestnet=jke;R.MetisAndromeda=l7e;R.MetisGoerliTestnet=XSe;R.MilkomedaA1=PRe;R.MilkomedaA1Testnet=mOe;R.MilkomedaC1=SRe;R.MilkomedaC1Testnet=fOe;R.MintmeComCoin=bBe;R.Mix=Oke;R.MixinVirtualMachine=PDe;R.Moac=d7e;R.MoacTestnet=YAe;R.MolereumNetwork=PFe;R.MoonbaseAlpha=L7e;R.Moonbeam=D7e;R.Moonriver=O7e;R.Moonrock=F7e;R.Multivac=gDe;R.Mumbai=dQ;R.MunodeTestnet=qPe;R.Musicoin=ELe;R.MyownTestnet=vNe;R.MythicalChain=vOe;R.Nahmii=cMe;R.Nahmii3=U9e;R.Nahmii3Testnet=H9e;R.NahmiiTestnet=uMe;R.Nebula=uFe;R.NebulaStaging=rFe;R.NebulaTestnet=cAe;R.NeonEvm=JLe;R.NeonEvmDevnet=YLe;R.NeonEvmTestnet=QLe;R.NepalBlockchainNetwork=jPe;R.Newton=t7e;R.NewtonTestnet=ZPe;R.NovaNetwork=Gke;R.Ntity=IFe;R.Numbers=kNe;R.NumbersTestnet=ANe;R.OasisEmerald=zBe;R.OasisEmeraldTestnet=jBe;R.OasisSapphire=mBe;R.OasisSapphireTestnet=yBe;R.Oasischain=xBe;R.Oasys=rSe;R.Octaspace=rLe;R.Oho=FBe;R.Okbchain=GAe;R.OkbchainTestnet=KAe;R.OkexchainTestnet=Cke;R.Okxchain=Ike;R.OmPlatform=M7e;R.Omax=mSe;R.Omchain=lBe;R.Oneledger=ZLe;R.OneledgerTestnetFrankenstein=TFe;R.Ontology=bke;R.OntologyTestnet=fMe;R.OnusChain=TRe;R.OnusChainTestnet=vRe;R.OoneChainTestnet=MOe;R.Oort=WPe;R.OortAscraeus=HPe;R.OortDev=yNe;R.OortHuygens=UPe;R.OpalTestnetByUnique=tNe;R.Openchain=GOe;R.OpenchainTestnet=hPe;R.Openpiece=mke;R.OpenpieceTestnet=SAe;R.Openvessel=xLe;R.OpsideTestnet=fBe;R.Optimism=tQ;R.OptimismBedrockGoerliAlphaTestnet=TBe;R.OptimismGoerli=sQ;R.OptimismKovan=Ske;R.OptimismOnGnosis=hSe;R.OpulentXBeta=qBe;R.OrigintrailParachain=URe;R.OrlandoChain=w9e;R.Oychain=EAe;R.OychainTestnet=TAe;R.P12Chain=cBe;R.PaletteChain=uRe;R.Palm=CFe;R.PalmTestnet=EFe;R.Pandoproject=P9e;R.PandoprojectTestnet=R9e;R.ParibuNet=k9e;R.ParibuNetTestnet=A9e;R.Pdc=SFe;R.Pegglecoin=WBe;R.PepchainChurchill=PLe;R.PhiNetworkV1=V9e;R.PhiNetworkV2=RAe;R.Phoenix=$Ne;R.PieceTestnet=EBe;R.Pirl=xFe;R.PixieChain=vMe;R.PixieChainTestnet=aPe;R.Planq=IMe;R.Platon=xOe;R.PlatonDevTestnet2=gLe;R.PlianMain=yLe;R.PlianSubchain1=CLe;R.PlianTestnetMain=MLe;R.PlianTestnetSubchain1=kLe;R.PoaNetworkCore=tAe;R.PoaNetworkSokol=Lke;R.Pocrnet=p9e;R.Polis=BOe;R.PolisTestnet=NOe;R.Polygon=aQ;R.PolygonZkevmTestnet=J7e;R.PolyjuiceTestnet=IDe;R.Polysmartchain=xMe;R.Popcateum=I7e;R.PortalFantasyChain=BPe;R.PortalFantasyChainTest=vPe;R.PosichainDevnetShard0=oLe;R.PosichainDevnetShard1=cLe;R.PosichainShard0=iLe;R.PosichainTestnetShard0=sLe;R.Primuschain=Fke;R.ProofOfMemes=aBe;R.ProtonTestnet=lAe;R.ProxyNetworkTestnet=o7e;R.Publicmint=ORe;R.PublicmintDevnet=BRe;R.PublicmintTestnet=DRe;R.Pulsechain=ASe;R.PulsechainTestnet=OPe;R.PulsechainTestnetV2b=LPe;R.PulsechainTestnetV3=FPe;R.Q=DBe;R.QTestnet=OBe;R.Qeasyweb3Testnet=mNe;R.Qitmeer=wPe;R.QitmeerNetworkTestnet=qMe;R.Ql1=pPe;R.Ql1Testnet=TLe;R.QuadransBlockchain=PNe;R.QuadransBlockchainTestnet=RNe;R.Quarkblockchain=DLe;R.QuarkchainDevnetRoot=rOe;R.QuarkchainDevnetShard0=nOe;R.QuarkchainDevnetShard1=aOe;R.QuarkchainDevnetShard2=iOe;R.QuarkchainDevnetShard3=sOe;R.QuarkchainDevnetShard4=oOe;R.QuarkchainDevnetShard5=cOe;R.QuarkchainDevnetShard6=uOe;R.QuarkchainDevnetShard7=lOe;R.QuarkchainRoot=HDe;R.QuarkchainShard0=jDe;R.QuarkchainShard1=zDe;R.QuarkchainShard2=KDe;R.QuarkchainShard3=GDe;R.QuarkchainShard4=VDe;R.QuarkchainShard5=$De;R.QuarkchainShard6=YDe;R.QuarkchainShard7=JDe;R.QuartzByUnique=eNe;R.Quokkacoin=zRe;R.RabbitAnalogTestnetChain=dRe;R.RangersProtocol=WRe;R.RangersProtocolTestnetRobin=fNe;R.Realchain=vAe;R.RedlightChain=h9e;R.ReiChain=sDe;R.ReiChainTestnet=oDe;R.ReiNetwork=QBe;R.Resincoin=RDe;R.RikezaNetwork=Y7e;R.RikezaNetworkTestnet=KNe;R.RiniaTestnet=DPe;R.Rinkeby=xIe;R.RiseOfTheWarbotsTestnet=PMe;R.Ropsten=_Ie;R.Rsk=GIe;R.RskTestnet=VIe;R.Rupaya=OSe;R.Saakuru=_Le;R.SaakuruTestnet=kOe;R.Sakura=r7e;R.SanrChain=qNe;R.SapphireByUnique=rNe;R.Sardis=nDe;R.SardisTestnet=FNe;R.Scolcoin=wDe;R.ScolcoinWeichainTestnet=bMe;R.Scroll=YOe;R.ScrollAlphaTestnet=JOe;R.ScrollPreAlphaTestnet=QOe;R.SeedcoinNetwork=XIe;R.Seele=UAe;R.Sepolia=SLe;R.Setheum=aSe;R.ShardeumLiberty1X=DMe;R.ShardeumLiberty2X=OMe;R.ShardeumSphinx1X=LMe;R.Sherpax=Z7e;R.SherpaxTestnet=X7e;R.Shibachain=jIe;R.Shiden=xSe;R.Shyft=AMe;R.ShyftTestnet=LNe;R.SiberiumNetwork=dOe;R.SingularityZero=UNe;R.SingularityZeroTestnet=WNe;R.SiriusnetV2=ZAe;R.Sjatsh=TNe;R.SmartBitcoinCash=wNe;R.SmartBitcoinCashTestnet=_Ne;R.SmartHostTeknolojiTestnet=x7e;R.Smartmesh=BLe;R.SocialSmartChain=POe;R.SongbirdCanaryNetwork=DIe;R.Soterone=Ake;R.Soverun=ALe;R.SoverunTestnet=XDe;R.Sps=GNe;R.SpsTestnet=JNe;R.StarSocialTestnet=sPe;R.StepNetwork=R7e;R.StepTestnet=zNe;R.Stratos=jRe;R.StratosTestnet=HRe;R.StreamuxBlockchain=FMe;R.SurBlockchainNetwork=iSe;R.Susono=YNe;R.SxNetwork=MSe;R.SxNetworkTestnet=rPe;R.Syscoin=gke;R.SyscoinRolluxTestnet=uDe;R.SyscoinTanenbaumTestnet=dMe;R.TEkta=QPe;R.TaoNetwork=VSe;R.Taraxa=xPe;R.TaraxaTestnet=TPe;R.Taycan=dBe;R.TaycanTestnet=qRe;R.Tbsi=oRe;R.TbsiTestnet=cRe;R.TbwgChain=QIe;R.TcgVerse=c9e;R.Techpay=d9e;R.Teleport=MMe;R.TeleportTestnet=NMe;R.TelosEvm=rke;R.TelosEvmTestnet=nke;R.Teslafunds=fRe;R.Thaichain=EIe;R.Thaichain20Thaifi=NIe;R.Theta=ESe;R.ThetaAmberTestnet=ISe;R.ThetaSapphireTestnet=CSe;R.ThetaTestnet=kSe;R.ThinkiumChain0=xDe;R.ThinkiumChain1=TDe;R.ThinkiumChain103=CDe;R.ThinkiumChain2=EDe;R.ThinkiumTestnetChain0=lDe;R.ThinkiumTestnetChain1=dDe;R.ThinkiumTestnetChain103=hDe;R.ThinkiumTestnetChain2=pDe;R.Thundercore=uAe;R.ThundercoreTestnet=BIe;R.Tipboxcoin=FOe;R.TipboxcoinTestnet=G9e;R.TlchainNetwork=aMe;R.TmyChain=QMe;R.TokiNetwork=GMe;R.TokiTestnet=VMe;R.TombChain=_Me;R.Tomochain=Vke;R.TomochainTestnet=$ke;R.ToolGlobal=$Me;R.ToolGlobalTestnet=YMe;R.Top=GPe;R.TopEvm=zPe;R.Tres=gMe;R.TresTestnet=yMe;R.TrustEvmTestnet=ZNe;R.UbSmartChain=UDe;R.UbSmartChainTestnet=WDe;R.Ubiq=CIe;R.UbiqNetworkTestnet=IIe;R.Ultron=P7e;R.UltronTestnet=S7e;R.UnicornUltraTestnet=tke;R.Unique=XMe;R.UzmiNetwork=oMe;R.Valorbit=eke;R.Vchain=n9e;R.Vechain=QDe;R.VechainTestnet=ZDe;R.Vela1Chain=GSe;R.VelasEvm=oAe;R.Venidium=eMe;R.VenidiumTestnet=X9e;R.VentionSmartChain=MDe;R.VentionSmartChainTestnet=dPe;R.Vision=aLe;R.VisionVpioneerTestChain=eLe;R.VyvoSmartChain=aNe;R.Wagmi=NNe;R.Wanchain=SPe;R.WanchainTestnet=$Pe;R.Web3gamesDevnet=sAe;R.Web3gamesTestnet=aAe;R.Web3q=wSe;R.Web3qGalileo=I9e;R.Web3qTestnet=C9e;R.Webchain=gBe;R.WeelinkTestnet=KOe;R.WegochainRubidium=mMe;R.Wemix30=p7e;R.Wemix30Testnet=h7e;R.WorldTradeTechnicalChain=C7e;R.Xanachain=nNe;R.XdcApothemNetwork=pke;R.Xerom=pLe;R.XinfinXdcNetwork=dke;R.Xodex=u9e;R.XtSmartChain=HSe;R.Yuanchain=q9e;R.ZMainnet=NRe;R.ZTestnet=bNe;R.ZcoreTestnet=E9e;R.ZeethChain=BSe;R.ZeethChainDev=EPe;R.Zeniq=AFe;R.Zenith=qke;R.ZenithTestnetVilnius=Uke;R.Zetachain=TMe;R.ZetachainAthensTestnet=EMe;R.Zhejiang=mLe;R.ZilliqaEvmTestnet=MBe;R.ZksyncEra=vSe;R.ZksyncEraTestnet=oSe;R.Zyx=yke;R._0xtade=INe;R._4goodnetwork=nLe;R.allChains=fQ;R.configureChain=gfr;R.defaultChains=bfr;R.getChainByChainId=vfr;R.getChainBySlug=wfr;R.getChainRPC=mfr;R.getChainRPCs=vIe;R.minimizeChain=yfr});var zZe=x(M=>{"use strict";d();p();Object.defineProperty(M,"__esModule",{value:!0});var _fr={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},xfr={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},Tfr={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},Efr={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},Cfr={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},Ifr={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},kfr={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},Afr={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},Sfr={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Pfr={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},Rfr={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},Mfr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},Nfr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},Bfr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},Dfr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},Ofr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},Lfr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},Ffr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},qfr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},Wfr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},Ufr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},Hfr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},jfr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},zfr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},Kfr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},Gfr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},Vfr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},$fr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},Yfr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},Jfr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},Qfr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},Zfr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},Xfr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},emr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},tmr={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},rmr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},nmr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},amr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},imr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},smr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},omr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},cmr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},umr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},lmr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},dmr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},pmr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},hmr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},fmr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},mmr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},ymr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},gmr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},bmr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},vmr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},wmr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},_mr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance"},xmr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},Tmr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Emr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Cmr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Imr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},kmr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Amr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},Smr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Pmr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Rmr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Mmr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Nmr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},Bmr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},Dmr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Omr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},Lmr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},Fmr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},qmr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},Wmr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},Umr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},Hmr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},jmr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},zmr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},Kmr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},Gmr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},Vmr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},$mr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},Ymr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},Jmr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},Qmr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},Zmr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},Xmr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},e0r={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},t0r={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},r0r={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},n0r={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},a0r={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},i0r={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:"bkc"}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},s0r={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-testnet"},o0r={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},c0r={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},u0r={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},l0r={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},d0r={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},p0r={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},h0r={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},f0r={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},m0r={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},y0r={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},g0r={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},b0r={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},v0r={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},w0r={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},_0r={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},x0r={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},T0r={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},E0r={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},C0r={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},I0r={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},k0r={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},A0r={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},S0r={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},P0r={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},R0r={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},M0r={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},N0r={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},B0r={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},D0r={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},O0r={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},L0r={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},F0r={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},q0r={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},W0r={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},U0r={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},H0r={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},j0r={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},z0r={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},K0r={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},G0r={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},V0r={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},$0r={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},Y0r={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},J0r={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},Q0r={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},Z0r={name:"OKBChain Testnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"tokb",chainId:195,networkId:195,explorers:[],status:"incubating",testnet:!0,slug:"okbchain-testnet"},X0r={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},eyr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},tyr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},ryr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},nyr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},ayr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},iyr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},syr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},oyr={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},cyr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},uyr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},lyr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom"},dyr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},pyr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},hyr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},fyr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},myr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-testnet.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},yyr={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},gyr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},byr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},vyr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},wyr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},_yr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},xyr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},Tyr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},Eyr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},Cyr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Iyr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},kyr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-mainnet.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://portal.zksync.io/bridge"}]},testnet:!1,slug:"zksync-era"},Ayr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},Syr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Pyr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},Ryr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Myr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Nyr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Byr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},Dyr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},Oyr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},Lyr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},Fyr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},qyr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},Wyr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},Uyr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},Hyr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli"},jyr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},zyr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},Kyr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},Gyr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},Vyr={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},$yr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},Yyr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},Jyr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},Qyr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},Zyr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},Xyr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},e1r={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},t1r={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},r1r={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},n1r={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},a1r={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},i1r={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},s1r={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},o1r={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},c1r={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},u1r={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},l1r={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},d1r={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},p1r={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},h1r={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},f1r={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},m1r={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},y1r={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},g1r={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},b1r={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},v1r={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"http://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},w1r={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},_1r={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},x1r={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},T1r={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},E1r={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},C1r={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},I1r={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},k1r={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},A1r={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},S1r={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},P1r={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},R1r={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},M1r={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},N1r={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},B1r={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},D1r={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},O1r={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},L1r={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},F1r={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},q1r={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},W1r={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},U1r={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},H1r={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},j1r={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},z1r={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},K1r={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},G1r={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},V1r={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},$1r={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},Y1r={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},J1r={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},Q1r={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},Z1r={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},X1r={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},egr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memo",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},tgr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},rgr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},ngr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},agr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},igr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},sgr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},ogr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},cgr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},ugr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},lgr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},dgr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},pgr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},hgr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},fgr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},mgr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},ygr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},ggr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},bgr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},vgr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},wgr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},_gr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},xgr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Tgr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},Egr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Cgr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Igr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},kgr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Agr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},Sgr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},Pgr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},Rgr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Mgr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Ngr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},Bgr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},Dgr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},Ogr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},Lgr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},Fgr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},qgr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},Wgr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},Ugr={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},Hgr={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},jgr={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},zgr={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},Kgr={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},Ggr={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},Vgr={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},$gr={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},Ygr={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},Jgr={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},Qgr={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},Zgr={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},Xgr={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},ebr={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},tbr={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},rbr={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},nbr={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},abr={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},ibr={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},sbr={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},obr={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},cbr={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},ubr={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},lbr={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},dbr={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},pbr={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},hbr={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:"eon",standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},fbr={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},mbr={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},ybr={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},gbr={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},bbr={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:"PLT",standard:"none"}],testnet:!1,slug:"palette-chain"},vbr={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},wbr={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},_br={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},xbr={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},Tbr={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},Ebr={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Cbr={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},Ibr={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},kbr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},Abr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},Sbr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},Pbr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},Rbr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Mbr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Nbr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},Bbr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},Dbr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},Obr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},Lbr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},Fbr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},qbr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},Wbr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},Ubr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},Hbr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},jbr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},zbr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},Kbr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},Gbr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"edgeware-edgeevm"},Vbr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},$br={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},Ybr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},Jbr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},Qbr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},Zbr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},Xbr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},evr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},tvr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},rvr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},nvr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},avr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},ivr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},svr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ovr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},cvr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},uvr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},lvr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},dvr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},pvr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},hvr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},fvr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},mvr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},yvr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},gvr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},bvr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},vvr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},wvr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},_vr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},xvr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Tvr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},Evr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},Cvr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},Ivr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},kvr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},Avr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},Svr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},Pvr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Rvr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Mvr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Nvr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},Bvr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},Dvr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},Ovr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},Lvr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},Fvr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},qvr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},Wvr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},Uvr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},Hvr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},jvr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},zvr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},Kvr={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},Gvr={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},Vvr={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},$vr={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},Yvr={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},Jvr={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},Qvr={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},Zvr={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},Xvr={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},e2r={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},t2r={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},r2r={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},n2r={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},a2r={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},i2r={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},s2r={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},o2r={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},c2r={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},u2r={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},l2r={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},d2r={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},p2r={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},h2r={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},f2r={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},m2r={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},y2r={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},g2r={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},b2r={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},v2r={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},w2r={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},_2r={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},x2r={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},T2r={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},E2r={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},C2r={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},I2r={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},k2r={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},A2r={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},S2r={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},P2r={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},R2r={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},M2r={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},N2r={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},B2r={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},D2r={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},O2r={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},L2r={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},F2r={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},q2r={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},W2r={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},U2r={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},H2r={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},j2r={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},z2r={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},K2r={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},G2r={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},V2r={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},$2r={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},Y2r={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},J2r={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},Q2r={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},Z2r={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},X2r={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},ewr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},twr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},rwr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},nwr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},awr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},iwr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},swr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},owr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},cwr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},uwr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},lwr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},dwr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},pwr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},hwr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},fwr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},mwr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},ywr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},gwr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},bwr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},vwr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},wwr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},_wr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},xwr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},Twr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},Ewr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},Cwr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Iwr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},kwr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},Awr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},Swr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Pwr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Rwr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Mwr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},Nwr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},Bwr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},Dwr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},Owr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},Lwr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},Fwr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},qwr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},Wwr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},Uwr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},Hwr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},jwr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},zwr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},Kwr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},Gwr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},Vwr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},$wr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},Ywr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},Jwr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},Qwr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},Zwr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},Xwr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},e5r={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},t5r={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},r5r={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},n5r={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},a5r={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},i5r={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},s5r={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},o5r={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},c5r={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},u5r={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},l5r={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},d5r={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},p5r={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},h5r={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},f5r={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},m5r={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},y5r={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},g5r={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},b5r={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},v5r={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},w5r={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},_5r={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},x5r={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},T5r={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},E5r={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},C5r={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},I5r={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},k5r={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},A5r={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},S5r={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},P5r={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},R5r={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},M5r={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},N5r={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},B5r={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},D5r={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},O5r={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},L5r={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},F5r={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},q5r={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},W5r={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},U5r={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},H5r={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},j5r={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},z5r={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},K5r={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},G5r={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},V5r={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},$5r={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},Y5r={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},J5r={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},Q5r={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum"},Z5r={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},X5r={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},e3r={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},t3r={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},r3r={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},n3r={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},a3r={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},i3r={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},s3r={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},o3r={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},c3r={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},u3r={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},l3r={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},d3r={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},p3r={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},h3r={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},f3r={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},m3r={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},y3r={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},g3r={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},b3r={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},v3r={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},w3r={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},_3r={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},x3r={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},T3r={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},E3r={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},C3r={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},I3r={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},k3r={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},A3r={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},S3r={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},P3r={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},R3r={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},M3r={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},N3r={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},B3r={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},D3r={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},O3r={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},L3r={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},F3r={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},q3r={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},W3r={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},U3r={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},H3r={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},j3r={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},z3r={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},K3r={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},G3r={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},V3r={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},$3r={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},Y3r={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},J3r={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},Q3r={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},Z3r={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},X3r={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},e_r={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},t_r={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},r_r={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},n_r={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},a_r={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},i_r={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},s_r={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},o_r={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},c_r={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},u_r={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},l_r={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},d_r={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},p_r={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},h_r={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},f_r={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},m_r={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},y_r={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},g_r={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},b_r={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},v_r={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},w_r={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},__r={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},x_r={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},T_r={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},E_r={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},C_r={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:"siberium",standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:"siberium",standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},I_r={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},k_r={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},A_r={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},S_r={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},P_r={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},R_r={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},M_r={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},N_r={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},B_r={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},D_r={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},O_r={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},L_r={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},F_r={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},q_r={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},W_r={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},U_r={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},H_r={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},j_r={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},z_r={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},K_r={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},G_r={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},V_r={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},$_r={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},Y_r={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:"hap"}],testnet:!0,slug:"hapchain-testnet"},J_r={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},Q_r={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},Z_r={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},X_r={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},exr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},txr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},rxr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},nxr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},axr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},ixr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},sxr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},oxr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},cxr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},uxr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},lxr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},dxr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},pxr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},hxr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},fxr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},mxr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},yxr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},gxr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},bxr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},vxr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},wxr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},_xr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},xxr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},Txr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},Exr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},Cxr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},Ixr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},kxr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Axr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},Sxr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},Pxr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Rxr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Mxr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Nxr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},Bxr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},Dxr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},Oxr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},Lxr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},Fxr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},qxr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},Wxr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Uxr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:"hap"}],testnet:!1,slug:"hapchain"},Hxr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},jxr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},zxr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},Kxr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},Gxr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},Vxr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},$xr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},Yxr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},Jxr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},Qxr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},Zxr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},Xxr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},eTr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},tTr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},rTr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},nTr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},aTr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},iTr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},sTr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},oTr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},cTr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},uTr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},lTr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},dTr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},pTr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},hTr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},fTr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},mTr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},yTr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},gTr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},bTr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},vTr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:"cyberdeck",standard:"none"}],testnet:!1,slug:"cyberdecknet"},wTr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:"human",standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},_Tr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},xTr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},TTr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},ETr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},CTr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},ITr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},kTr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},ATr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},STr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},PTr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},RTr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},MTr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},NTr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},BTr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},DTr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},OTr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},LTr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},FTr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},qTr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},WTr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},UTr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},HTr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},jTr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},zTr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},KTr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},GTr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},VTr={mode:"http"};function MFe(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...VTr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function $Tr(r,e){return MFe(r,e)[0]}function YTr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function JTr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var mQ=_fr,NFe=xfr,BFe=Tfr,DFe=Efr,yQ=Cfr,OFe=Ifr,LFe=kfr,FFe=Afr,qFe=Sfr,gQ=Pfr,WFe=Rfr,UFe=Mfr,HFe=Nfr,jFe=Bfr,zFe=Dfr,KFe=Ofr,GFe=Lfr,VFe=Ffr,$Fe=qfr,YFe=Wfr,JFe=Ufr,QFe=Hfr,ZFe=jfr,XFe=zfr,eqe=Kfr,tqe=Gfr,rqe=Vfr,nqe=$fr,aqe=Yfr,iqe=Jfr,sqe=Qfr,oqe=Zfr,cqe=Xfr,uqe=emr,lqe=tmr,dqe=rmr,pqe=nmr,hqe=amr,fqe=imr,mqe=smr,yqe=omr,gqe=cmr,bqe=umr,vqe=lmr,wqe=dmr,_qe=pmr,xqe=hmr,Tqe=fmr,Eqe=mmr,Cqe=ymr,Iqe=gmr,kqe=bmr,Aqe=vmr,Sqe=wmr,bQ=_mr,Pqe=xmr,Rqe=Tmr,Mqe=Emr,Nqe=Cmr,Bqe=Imr,Dqe=kmr,Oqe=Amr,Lqe=Smr,Fqe=Pmr,qqe=Rmr,Wqe=Mmr,Uqe=Nmr,Hqe=Bmr,jqe=Dmr,zqe=Omr,Kqe=Lmr,Gqe=Fmr,Vqe=qmr,$qe=Wmr,Yqe=Umr,Jqe=Hmr,Qqe=jmr,Zqe=zmr,Xqe=Kmr,eWe=Gmr,tWe=Vmr,rWe=$mr,nWe=Ymr,aWe=Jmr,iWe=Qmr,sWe=Zmr,oWe=Xmr,cWe=e0r,uWe=t0r,lWe=r0r,dWe=n0r,pWe=a0r,hWe=i0r,vQ=s0r,fWe=o0r,mWe=c0r,yWe=u0r,gWe=l0r,bWe=d0r,vWe=p0r,wWe=h0r,_We=f0r,xWe=m0r,TWe=y0r,EWe=g0r,CWe=b0r,IWe=v0r,kWe=w0r,AWe=_0r,SWe=x0r,PWe=T0r,RWe=E0r,MWe=C0r,NWe=I0r,BWe=k0r,DWe=A0r,OWe=S0r,LWe=P0r,FWe=R0r,qWe=M0r,WWe=N0r,UWe=B0r,wQ=D0r,HWe=O0r,jWe=L0r,zWe=F0r,KWe=q0r,GWe=W0r,VWe=U0r,$We=H0r,YWe=j0r,JWe=z0r,QWe=K0r,ZWe=G0r,XWe=V0r,eUe=$0r,tUe=Y0r,rUe=J0r,nUe=Q0r,aUe=Z0r,iUe=X0r,sUe=eyr,oUe=tyr,cUe=ryr,uUe=nyr,lUe=ayr,dUe=iyr,pUe=syr,hUe=oyr,fUe=cyr,mUe=uyr,_Q=lyr,yUe=dyr,gUe=pyr,bUe=hyr,vUe=fyr,wUe=myr,_Ue=yyr,xUe=gyr,TUe=byr,EUe=vyr,CUe=wyr,IUe=_yr,kUe=xyr,AUe=Tyr,SUe=Eyr,PUe=Cyr,RUe=Iyr,MUe=kyr,NUe=Ayr,BUe=Syr,DUe=Pyr,OUe=Ryr,LUe=Myr,FUe=Nyr,qUe=Byr,WUe=Dyr,UUe=Oyr,HUe=Lyr,jUe=Fyr,zUe=qyr,KUe=Wyr,GUe=Uyr,xQ=Hyr,VUe=jyr,$Ue=zyr,YUe=Kyr,JUe=Gyr,QUe=Vyr,ZUe=$yr,XUe=Yyr,eHe=Jyr,tHe=Qyr,rHe=Zyr,nHe=Xyr,aHe=e1r,iHe=t1r,sHe=r1r,oHe=n1r,cHe=a1r,uHe=i1r,lHe=s1r,dHe=o1r,pHe=c1r,hHe=u1r,fHe=l1r,mHe=d1r,yHe=p1r,gHe=h1r,bHe=f1r,vHe=m1r,wHe=y1r,_He=g1r,xHe=b1r,THe=v1r,EHe=w1r,CHe=_1r,IHe=x1r,kHe=T1r,AHe=E1r,SHe=C1r,PHe=I1r,RHe=k1r,MHe=A1r,NHe=S1r,BHe=P1r,DHe=R1r,OHe=M1r,LHe=N1r,FHe=B1r,qHe=D1r,WHe=O1r,UHe=L1r,HHe=F1r,jHe=q1r,zHe=W1r,KHe=U1r,GHe=H1r,VHe=j1r,$He=z1r,YHe=K1r,JHe=G1r,QHe=V1r,ZHe=$1r,XHe=Y1r,eje=J1r,tje=Q1r,rje=Z1r,nje=X1r,aje=egr,ije=tgr,sje=rgr,oje=ngr,cje=agr,uje=igr,lje=sgr,dje=ogr,pje=cgr,hje=ugr,fje=lgr,mje=dgr,yje=pgr,gje=hgr,bje=fgr,vje=mgr,wje=ygr,_je=ggr,xje=bgr,Tje=vgr,Eje=wgr,Cje=_gr,Ije=xgr,kje=Tgr,Aje=Egr,Sje=Cgr,Pje=Igr,Rje=kgr,Mje=Agr,Nje=Sgr,Bje=Pgr,Dje=Rgr,Oje=Mgr,Lje=Ngr,Fje=Bgr,qje=Dgr,Wje=Ogr,Uje=Lgr,Hje=Fgr,jje=qgr,zje=Wgr,Kje=Ugr,Gje=Hgr,Vje=jgr,$je=zgr,Yje=Kgr,Jje=Ggr,Qje=Vgr,Zje=$gr,Xje=Ygr,eze=Jgr,tze=Qgr,rze=Zgr,nze=Xgr,aze=ebr,ize=tbr,sze=rbr,oze=nbr,cze=abr,uze=ibr,lze=sbr,dze=obr,pze=cbr,hze=ubr,fze=lbr,mze=dbr,yze=pbr,gze=hbr,bze=fbr,vze=mbr,wze=ybr,_ze=gbr,xze=bbr,Tze=vbr,Eze=wbr,Cze=_br,Ize=xbr,kze=Tbr,Aze=Ebr,Sze=Cbr,Pze=Ibr,Rze=kbr,Mze=Abr,Nze=Sbr,Bze=Pbr,Dze=Rbr,Oze=Mbr,Lze=Nbr,Fze=Bbr,qze=Dbr,Wze=Obr,Uze=Lbr,Hze=Fbr,jze=qbr,zze=Wbr,Kze=Ubr,Gze=Hbr,Vze=jbr,$ze=zbr,Yze=Kbr,Jze=Gbr,Qze=Vbr,Zze=$br,Xze=Ybr,eKe=Jbr,tKe=Qbr,rKe=Zbr,nKe=Xbr,aKe=evr,iKe=tvr,sKe=rvr,oKe=nvr,cKe=avr,uKe=ivr,lKe=svr,dKe=ovr,pKe=cvr,hKe=uvr,fKe=lvr,mKe=dvr,yKe=pvr,gKe=hvr,bKe=fvr,vKe=mvr,wKe=yvr,_Ke=gvr,xKe=bvr,TKe=vvr,EKe=wvr,CKe=_vr,IKe=xvr,kKe=Tvr,AKe=Evr,SKe=Cvr,PKe=Ivr,RKe=kvr,MKe=Avr,NKe=Svr,BKe=Pvr,DKe=Rvr,OKe=Mvr,LKe=Nvr,FKe=Bvr,qKe=Dvr,WKe=Ovr,UKe=Lvr,HKe=Fvr,jKe=qvr,zKe=Wvr,KKe=Uvr,GKe=Hvr,VKe=jvr,$Ke=zvr,YKe=Kvr,JKe=Gvr,QKe=Vvr,ZKe=$vr,TQ=Yvr,XKe=Jvr,eGe=Qvr,tGe=Zvr,rGe=Xvr,nGe=e2r,aGe=t2r,iGe=r2r,sGe=n2r,oGe=a2r,cGe=i2r,uGe=s2r,lGe=o2r,dGe=c2r,pGe=u2r,hGe=l2r,fGe=d2r,mGe=p2r,yGe=h2r,gGe=f2r,bGe=m2r,vGe=y2r,wGe=g2r,_Ge=b2r,xGe=v2r,TGe=w2r,EGe=_2r,CGe=x2r,IGe=T2r,kGe=E2r,AGe=C2r,SGe=I2r,PGe=k2r,RGe=A2r,MGe=S2r,NGe=P2r,BGe=R2r,DGe=M2r,OGe=N2r,LGe=B2r,FGe=D2r,qGe=O2r,WGe=L2r,UGe=F2r,HGe=q2r,jGe=W2r,zGe=U2r,KGe=H2r,GGe=j2r,VGe=z2r,$Ge=K2r,YGe=G2r,JGe=V2r,QGe=$2r,ZGe=Y2r,XGe=J2r,eVe=Q2r,tVe=Z2r,rVe=X2r,nVe=ewr,aVe=twr,iVe=rwr,sVe=nwr,oVe=awr,cVe=iwr,uVe=swr,lVe=owr,dVe=cwr,pVe=uwr,hVe=lwr,fVe=dwr,mVe=pwr,yVe=hwr,gVe=fwr,bVe=mwr,vVe=ywr,wVe=gwr,_Ve=bwr,xVe=vwr,TVe=wwr,EVe=_wr,CVe=xwr,IVe=Twr,kVe=Ewr,AVe=Cwr,SVe=Iwr,PVe=kwr,RVe=Awr,MVe=Swr,NVe=Pwr,BVe=Rwr,DVe=Mwr,OVe=Nwr,LVe=Bwr,FVe=Dwr,qVe=Owr,WVe=Lwr,UVe=Fwr,HVe=qwr,jVe=Wwr,zVe=Uwr,KVe=Hwr,GVe=jwr,VVe=zwr,$Ve=Kwr,YVe=Gwr,JVe=Vwr,QVe=$wr,ZVe=Ywr,XVe=Jwr,e$e=Qwr,t$e=Zwr,r$e=Xwr,n$e=e5r,a$e=t5r,i$e=r5r,s$e=n5r,o$e=a5r,c$e=i5r,u$e=s5r,l$e=o5r,d$e=c5r,p$e=u5r,h$e=l5r,f$e=d5r,m$e=p5r,y$e=h5r,g$e=f5r,b$e=m5r,v$e=y5r,w$e=g5r,_$e=b5r,x$e=v5r,T$e=w5r,E$e=_5r,C$e=x5r,I$e=T5r,k$e=E5r,A$e=C5r,S$e=I5r,P$e=k5r,R$e=A5r,M$e=S5r,N$e=P5r,B$e=R5r,D$e=M5r,O$e=N5r,L$e=B5r,F$e=D5r,q$e=O5r,W$e=L5r,U$e=F5r,H$e=q5r,j$e=W5r,z$e=U5r,K$e=H5r,G$e=j5r,V$e=z5r,$$e=K5r,Y$e=G5r,J$e=V5r,Q$e=$5r,Z$e=Y5r,X$e=J5r,EQ=Q5r,eYe=Z5r,tYe=X5r,rYe=e3r,nYe=t3r,aYe=r3r,CQ=n3r,IQ=a3r,iYe=i3r,sYe=s3r,oYe=o3r,cYe=c3r,uYe=u3r,lYe=l3r,dYe=d3r,pYe=p3r,hYe=h3r,fYe=f3r,mYe=m3r,yYe=y3r,gYe=g3r,bYe=b3r,vYe=v3r,wYe=w3r,_Ye=_3r,xYe=x3r,TYe=T3r,EYe=E3r,CYe=C3r,IYe=I3r,kYe=k3r,AYe=A3r,SYe=S3r,PYe=P3r,RYe=R3r,MYe=M3r,NYe=N3r,BYe=B3r,DYe=D3r,OYe=O3r,LYe=L3r,FYe=F3r,qYe=q3r,WYe=W3r,UYe=U3r,HYe=H3r,jYe=j3r,zYe=z3r,KYe=K3r,GYe=G3r,VYe=V3r,kQ=$3r,$Ye=Y3r,YYe=J3r,JYe=Q3r,QYe=Z3r,ZYe=X3r,XYe=e_r,eJe=t_r,tJe=r_r,rJe=n_r,nJe=a_r,aJe=i_r,iJe=s_r,sJe=o_r,oJe=c_r,cJe=u_r,uJe=l_r,lJe=d_r,dJe=p_r,pJe=h_r,hJe=f_r,fJe=m_r,mJe=y_r,yJe=g_r,gJe=b_r,bJe=v_r,vJe=w_r,wJe=__r,_Je=x_r,xJe=T_r,TJe=E_r,EJe=C_r,CJe=I_r,IJe=k_r,kJe=A_r,AJe=S_r,SJe=P_r,PJe=R_r,RJe=M_r,MJe=N_r,NJe=B_r,BJe=D_r,DJe=O_r,OJe=L_r,LJe=F_r,FJe=q_r,qJe=W_r,WJe=U_r,UJe=H_r,HJe=j_r,jJe=z_r,zJe=K_r,KJe=G_r,GJe=V_r,VJe=$_r,$Je=Y_r,YJe=J_r,JJe=Q_r,QJe=Z_r,ZJe=X_r,XJe=exr,eQe=txr,AQ=rxr,tQe=nxr,rQe=axr,nQe=ixr,aQe=sxr,iQe=oxr,sQe=cxr,oQe=uxr,cQe=lxr,uQe=dxr,lQe=pxr,dQe=hxr,pQe=fxr,hQe=mxr,fQe=yxr,mQe=gxr,yQe=bxr,gQe=vxr,bQe=wxr,vQe=_xr,wQe=xxr,_Qe=Txr,xQe=Exr,TQe=Cxr,EQe=Ixr,CQe=kxr,IQe=Axr,kQe=Sxr,AQe=Pxr,SQe=Rxr,PQe=Mxr,RQe=Nxr,MQe=Bxr,NQe=Dxr,BQe=Oxr,DQe=Lxr,OQe=Fxr,LQe=qxr,FQe=Wxr,qQe=Uxr,WQe=Hxr,UQe=jxr,HQe=zxr,jQe=Kxr,zQe=Gxr,KQe=Vxr,GQe=$xr,VQe=Yxr,$Qe=Jxr,YQe=Qxr,JQe=Zxr,QQe=Xxr,ZQe=eTr,XQe=tTr,eZe=rTr,tZe=nTr,rZe=aTr,nZe=iTr,aZe=sTr,iZe=oTr,sZe=cTr,oZe=uTr,cZe=lTr,uZe=dTr,lZe=pTr,dZe=hTr,pZe=fTr,hZe=mTr,fZe=yTr,mZe=gTr,yZe=bTr,gZe=vTr,bZe=wTr,vZe=_Tr,wZe=xTr,_Ze=TTr,xZe=ETr,TZe=CTr,EZe=ITr,CZe=kTr,IZe=ATr,kZe=STr,AZe=PTr,SZe=RTr,PZe=MTr,RZe=NTr,MZe=BTr,NZe=DTr,BZe=OTr,DZe=LTr,OZe=FTr,LZe=qTr,FZe=WTr,qZe=UTr,WZe=HTr,UZe=jTr,HZe=zTr,jZe=KTr,SQ=GTr,QTr=[mQ,yQ,wQ,kQ,EQ,AQ,gQ,xQ,bQ,vQ,_Q,TQ,IQ,CQ,SQ],PQ=[mQ,NFe,BFe,DFe,yQ,OFe,LFe,FFe,qFe,gQ,WFe,UFe,HFe,jFe,zFe,KFe,GFe,VFe,$Fe,YFe,JFe,QFe,ZFe,XFe,eqe,tqe,rqe,nqe,aqe,iqe,sqe,oqe,cqe,uqe,lqe,dqe,pqe,hqe,fqe,mqe,yqe,gqe,bqe,vqe,wqe,_qe,xqe,Tqe,Eqe,Cqe,Iqe,kqe,Aqe,Sqe,bQ,Pqe,Rqe,Mqe,Nqe,Bqe,Dqe,Oqe,Lqe,Fqe,qqe,Wqe,Uqe,Hqe,jqe,zqe,Kqe,Gqe,Vqe,$qe,Yqe,Jqe,Qqe,Zqe,Xqe,eWe,tWe,rWe,nWe,aWe,iWe,sWe,oWe,cWe,uWe,lWe,dWe,pWe,hWe,vQ,fWe,mWe,yWe,gWe,bWe,vWe,wWe,_We,xWe,TWe,EWe,CWe,IWe,kWe,AWe,SWe,PWe,RWe,MWe,NWe,BWe,DWe,OWe,LWe,FWe,qWe,WWe,UWe,wQ,HWe,jWe,zWe,KWe,GWe,VWe,$We,YWe,JWe,QWe,ZWe,XWe,eUe,tUe,rUe,nUe,aUe,iUe,sUe,oUe,cUe,uUe,lUe,dUe,pUe,hUe,fUe,mUe,_Q,yUe,gUe,bUe,vUe,wUe,_Ue,xUe,TUe,EUe,CUe,IUe,kUe,AUe,SUe,PUe,RUe,MUe,NUe,BUe,DUe,OUe,LUe,FUe,qUe,WUe,UUe,HUe,jUe,zUe,KUe,GUe,xQ,VUe,$Ue,YUe,JUe,QUe,ZUe,XUe,eHe,tHe,rHe,nHe,aHe,iHe,sHe,oHe,cHe,uHe,lHe,dHe,pHe,hHe,fHe,mHe,yHe,gHe,bHe,vHe,wHe,_He,xHe,THe,EHe,CHe,IHe,kHe,AHe,SHe,PHe,RHe,MHe,NHe,BHe,DHe,OHe,LHe,FHe,qHe,WHe,UHe,HHe,jHe,zHe,KHe,GHe,VHe,$He,YHe,JHe,QHe,ZHe,XHe,eje,tje,rje,nje,aje,ije,sje,oje,cje,uje,lje,dje,pje,hje,fje,mje,yje,gje,bje,vje,wje,_je,xje,Tje,Eje,Cje,Ije,kje,Aje,Sje,Pje,Rje,Mje,Nje,Bje,Dje,Oje,Lje,Fje,qje,Wje,Uje,Hje,jje,zje,Kje,Gje,Vje,$je,Yje,Jje,Qje,Zje,Xje,eze,tze,rze,nze,aze,ize,sze,oze,cze,uze,lze,dze,pze,hze,fze,mze,yze,gze,bze,vze,wze,_ze,xze,Tze,Eze,Cze,Ize,kze,Aze,Sze,Pze,Rze,Mze,Nze,Bze,Dze,Oze,Lze,Fze,qze,Wze,Uze,Hze,jze,zze,Kze,Gze,Vze,$ze,Yze,Jze,Qze,Zze,Xze,eKe,tKe,rKe,nKe,aKe,iKe,sKe,oKe,cKe,uKe,lKe,dKe,pKe,hKe,fKe,mKe,yKe,gKe,bKe,vKe,wKe,_Ke,xKe,TKe,EKe,CKe,IKe,kKe,AKe,SKe,PKe,RKe,MKe,NKe,BKe,DKe,OKe,LKe,FKe,qKe,WKe,UKe,HKe,jKe,zKe,KKe,GKe,VKe,$Ke,YKe,JKe,QKe,ZKe,TQ,XKe,eGe,tGe,rGe,nGe,aGe,iGe,sGe,oGe,cGe,uGe,lGe,dGe,pGe,hGe,fGe,mGe,yGe,gGe,bGe,vGe,wGe,_Ge,xGe,TGe,EGe,CGe,IGe,kGe,AGe,SGe,PGe,RGe,MGe,NGe,BGe,DGe,OGe,LGe,FGe,qGe,WGe,UGe,HGe,jGe,zGe,KGe,GGe,VGe,$Ge,YGe,JGe,QGe,ZGe,XGe,eVe,tVe,rVe,nVe,aVe,iVe,sVe,oVe,cVe,uVe,lVe,dVe,pVe,hVe,fVe,mVe,yVe,gVe,bVe,vVe,wVe,_Ve,xVe,TVe,EVe,CVe,IVe,kVe,AVe,SVe,PVe,RVe,MVe,NVe,BVe,DVe,OVe,LVe,FVe,qVe,WVe,UVe,HVe,jVe,zVe,KVe,GVe,VVe,$Ve,YVe,JVe,QVe,ZVe,XVe,e$e,t$e,r$e,n$e,a$e,i$e,s$e,o$e,c$e,u$e,l$e,d$e,p$e,h$e,f$e,m$e,y$e,g$e,b$e,v$e,w$e,_$e,x$e,T$e,E$e,C$e,I$e,k$e,A$e,S$e,P$e,R$e,M$e,N$e,B$e,D$e,O$e,L$e,F$e,q$e,W$e,U$e,H$e,j$e,z$e,K$e,G$e,V$e,$$e,Y$e,J$e,Q$e,Z$e,X$e,EQ,eYe,tYe,rYe,nYe,aYe,CQ,IQ,iYe,sYe,oYe,cYe,uYe,lYe,dYe,pYe,hYe,fYe,mYe,yYe,gYe,bYe,vYe,wYe,_Ye,xYe,TYe,EYe,CYe,IYe,kYe,AYe,SYe,PYe,RYe,MYe,NYe,BYe,DYe,OYe,LYe,FYe,qYe,WYe,UYe,HYe,jYe,zYe,KYe,GYe,VYe,kQ,$Ye,YYe,JYe,QYe,ZYe,XYe,eJe,tJe,rJe,nJe,aJe,iJe,sJe,oJe,cJe,uJe,lJe,dJe,pJe,hJe,fJe,mJe,yJe,gJe,bJe,vJe,wJe,_Je,xJe,TJe,EJe,CJe,IJe,kJe,AJe,SJe,PJe,RJe,MJe,NJe,BJe,DJe,OJe,LJe,FJe,qJe,WJe,UJe,HJe,jJe,zJe,KJe,GJe,VJe,$Je,YJe,JJe,QJe,ZJe,XJe,eQe,AQ,tQe,rQe,nQe,aQe,iQe,sQe,oQe,cQe,uQe,lQe,dQe,pQe,hQe,fQe,mQe,yQe,gQe,bQe,vQe,wQe,_Qe,xQe,TQe,EQe,CQe,IQe,kQe,AQe,SQe,PQe,RQe,MQe,NQe,BQe,DQe,OQe,LQe,FQe,qQe,WQe,UQe,HQe,jQe,zQe,KQe,GQe,VQe,$Qe,YQe,JQe,QQe,ZQe,XQe,eZe,tZe,rZe,nZe,aZe,iZe,sZe,oZe,cZe,uZe,lZe,dZe,pZe,hZe,fZe,mZe,yZe,gZe,bZe,vZe,wZe,_Ze,xZe,TZe,EZe,CZe,IZe,kZe,AZe,SZe,PZe,RZe,MZe,NZe,BZe,DZe,OZe,LZe,FZe,qZe,WZe,UZe,HZe,jZe,SQ];function ZTr(r){let e=PQ.find(t=>t.chainId===r);if(!e)throw new Error(`Chain with chainId "${r}" not found`);return e}function XTr(r){let e=PQ.find(t=>t.slug===r);if(!e)throw new Error(`Chain with slug "${r}" not found`);return e}M.AcalaMandalaTestnet=uHe;M.AcalaNetwork=AHe;M.AcalaNetworkTestnet=dHe;M.AerochainTestnet=SHe;M.AiozNetwork=JWe;M.AiozNetworkTestnet=aGe;M.Airdao=f$e;M.AirdaoTestnet=C$e;M.Aitd=rze;M.AitdTestnet=nze;M.Akroma=SJe;M.Alaya=PJe;M.AlayaDevTestnet=RJe;M.AlphNetwork=uVe;M.Altcoinchain=vKe;M.Alyx=tze;M.AlyxChainTestnet=UWe;M.AmbrosChain=UHe;M.AmeChain=XWe;M.Amstar=oze;M.AmstarTestnet=Mje;M.Anduschain=zQe;M.AnytypeEvmChain=vze;M.Aquachain=nZe;M.Arbitrum=EQ;M.ArbitrumGoerli=AQ;M.ArbitrumNova=eYe;M.ArbitrumOnXdai=oUe;M.ArbitrumRinkeby=eQe;M.ArcologyTestnet=SWe;M.Arevia=bKe;M.ArmoniaEvaChain=KWe;M.ArmoniaEvaChainTestnet=GWe;M.ArtisSigma1=FJe;M.ArtisTestnetTau1=qJe;M.Astar=cHe;M.Astra=KVe;M.AstraTestnet=VVe;M.Atelier=Dze;M.Atheios=mze;M.Athereum=aYe;M.AtoshiTestnet=YWe;M.Aurora=vZe;M.AuroraBetanet=_Ze;M.AuroraTestnet=wZe;M.AutobahnNetwork=cYe;M.AutonityBakerlooThamesTestnet=aZe;M.AutonityPiccadillyThamesTestnet=iZe;M.AuxiliumNetwork=ZQe;M.Avalanche=IQ;M.AvalancheFuji=CQ;M.Aves=G$e;M.BandaiNamcoResearchVerse=qHe;M.Base=aVe;M.BaseGoerli=$Ye;M.BeagleMessagingChain=hze;M.BeanecoSmartchain=dQe;M.BearNetworkChain=pQe;M.BearNetworkChainTestnet=fQe;M.BeoneChainTestnet=XGe;M.BeresheetBereevmTestnet=Qze;M.Berylbit=EVe;M.BeverlyHills=QYe;M.Bifrost=BKe;M.BifrostTestnet=pYe;M.Binance=bQ;M.BinanceTestnet=vQ;M.Bitcichain=Pze;M.BitcichainTestnet=Rze;M.BitcoinEvm=pKe;M.Bitgert=j$e;M.Bitindi=nGe;M.BitindiTestnet=rGe;M.BitkubChain=hWe;M.BitkubChainTestnet=N$e;M.Bittex=GKe;M.BittorrentChain=sUe;M.BittorrentChainTestnet=bje;M.Bityuan=PKe;M.BlackfortExchangeNetwork=fGe;M.BlackfortExchangeNetworkTestnet=dGe;M.BlgTestnet=r$e;M.BlockchainGenesis=LVe;M.BlockchainStation=wHe;M.BlockchainStationTestnet=_He;M.BlocktonBlockchain=tVe;M.Bloxberg=_Ve;M.Bmc=tUe;M.BmcTestnet=rUe;M.BobaAvax=iYe;M.BobaBnb=_Ye;M.BobaBnbTestnet=PVe;M.BobaNetwork=_Ue;M.BobaNetworkGoerliTestnet=SKe;M.BobaNetworkRinkebyTestnet=nqe;M.BobabaseTestnet=Xje;M.Bobabeam=Zje;M.BobafujiTestnet=oGe;M.Bobaopera=kUe;M.BobaoperaTestnet=XKe;M.BombChain=gKe;M.BombChainTestnet=wKe;M.BonNetwork=Sze;M.Bosagora=cKe;M.Brochain=fJe;M.Bronos=xje;M.BronosTestnet=_je;M.Btachain=yze;M.BtcixNetwork=v$e;M.Callisto=BHe;M.CallistoTestnet=w$e;M.CalypsoNftHubSkale=TZe;M.CalypsoNftHubSkaleTestnet=pZe;M.CaminoCChain=JUe;M.Candle=aHe;M.Canto=HGe;M.CantoTestnet=THe;M.CatecoinChain=fze;M.Celo=tYe;M.CeloAlfajoresTestnet=oYe;M.CeloBaklavaTestnet=SYe;M.CennznetAzalea=x$e;M.CennznetNikau=MKe;M.CennznetRata=RKe;M.ChainVerse=TGe;M.Cheapeth=kHe;M.ChiadoTestnet=FVe;M.ChilizScovilleTestnet=YYe;M.CicChain=sze;M.CicChainTestnet=Gje;M.Cloudtx=q$e;M.CloudtxTestnet=W$e;M.Cloudwalk=Kze;M.CloudwalkTestnet=zze;M.CloverTestnet=yje;M.ClvParachain=gje;M.Cmp=UJe;M.CmpTestnet=sQe;M.CoinexSmartChain=Iqe;M.CoinexSmartChainTestnet=kqe;M.ColumbusTestNetwork=QUe;M.CondorTestNetwork=IJe;M.Condrieu=BYe;M.ConfluxEspace=vje;M.ConfluxEspaceTestnet=zqe;M.ConstaTestnet=HUe;M.CoreBlockchain=Aje;M.CoreBlockchainTestnet=kje;M.CreditSmartchain=s$e;M.CronosBeta=eqe;M.CronosTestnet=OUe;M.Crossbell=$Ke;M.CryptoEmergency=nUe;M.Cryptocoinpay=HVe;M.CryptokylinTestnet=pWe;M.Crystaleum=hJe;M.CtexScanBlockchain=lze;M.CubeChain=Cze;M.CubeChainTestnet=Ize;M.Cyberdecknet=gZe;M.DChain=Nze;M.DarwiniaCrabNetwork=vqe;M.DarwiniaNetwork=_qe;M.DarwiniaPangolinTestnet=bqe;M.DarwiniaPangoroTestnet=wqe;M.Datahopper=NZe;M.DaxChain=jWe;M.DbchainTestnet=Wqe;M.Debank=AWe;M.DebankTestnet=kWe;M.DebounceSubnetTestnet=OKe;M.DecentralizedWeb=DWe;M.DecimalSmartChain=$qe;M.DecimalSmartChainTestnet=NJe;M.DefichainEvmNetwork=Pje;M.DefichainEvmNetworkTestnet=Rje;M.Dehvo=CWe;M.DexalotSubnet=nQe;M.DexalotSubnetTestnet=rQe;M.DexitNetwork=WHe;M.DfkChain=gYe;M.DfkChainTest=BUe;M.DiodePrenet=zFe;M.DiodeTestnetStaging=HFe;M.DithereumTestnet=uqe;M.Dogcoin=Sje;M.DogcoinTestnet=IVe;M.Dogechain=Uze;M.DogechainTestnet=oHe;M.DokenSuperChain=AYe;M.DosFujiSubnet=eze;M.DoubleAChain=ZUe;M.DoubleAChainTestnet=XUe;M.DracNetwork=YKe;M.DraconesFinancialServices=nVe;M.Dxchain=dqe;M.DxchainTestnet=Kqe;M.Dyno=JKe;M.DynoTestnet=QKe;M.Ecoball=aKe;M.EcoballTestnetEspuma=iKe;M.Ecredits=RYe;M.EcreditsTestnet=MYe;M.EdexaTestnet=Wze;M.EdgewareEdgeevm=Jze;M.Ekta=qze;M.ElaDidSidechain=QFe;M.ElaDidSidechainTestnet=ZFe;M.ElastosSmartChain=YFe;M.ElastosSmartChainTestnet=JFe;M.Eleanor=Bze;M.EllaTheHeart=FGe;M.Ellaism=Lqe;M.EluvioContentFabric=TQe;M.Elysium=ize;M.ElysiumTestnet=aze;M.EmpireNetwork=VKe;M.EnduranceSmartChain=yHe;M.Energi=J$e;M.EnergiTestnet=hYe;M.EnergyWebChain=fUe;M.EnergyWebVoltaTestnet=HYe;M.EnnothemProterozoic=xqe;M.EnnothemTestnetPioneer=Tqe;M.Enterchain=Wje;M.Enuls=PWe;M.EnulsTestnet=RWe;M.Eos=Mqe;M.Eraswap=bGe;M.Ethereum=mQ;M.EthereumClassic=Bqe;M.EthereumClassicTestnetKotti=OFe;M.EthereumClassicTestnetMorden=Dqe;M.EthereumClassicTestnetMordor=Oqe;M.EthereumFair=oQe;M.Ethergem=Fze;M.Etherinc=yWe;M.EtherliteChain=EWe;M.EthersocialNetwork=F$e;M.EthoProtocol=EQe;M.Etica=kYe;M.EtndChainS=CJe;M.EuropaSkaleChain=BZe;M.Eurus=pje;M.EurusTestnet=Lze;M.Evanesco=hKe;M.EvanescoTestnet=Lje;M.Evmos=TVe;M.EvmosTestnet=xVe;M.EvriceNetwork=hje;M.Excelon=YQe;M.ExcoincialChain=QQe;M.ExcoincialChainVoltaTestnet=JQe;M.ExosamaNetwork=sKe;M.ExpanseNetwork=NFe;M.ExzoNetwork=Uje;M.EzchainCChain=kKe;M.EzchainCChainTestnet=AKe;M.FXCoreNetwork=nHe;M.Factory127=FWe;M.FantasiaChain=FHe;M.Fantom=_Q;M.FantomTestnet=TQ;M.FastexChainTestnet=tQe;M.Fibonacci=t$e;M.Filecoin=SUe;M.FilecoinButterflyTestnet=RQe;M.FilecoinCalibrationTestnet=zJe;M.FilecoinHyperspaceTestnet=DKe;M.FilecoinLocalTestnet=eZe;M.FilecoinWallabyTestnet=H$e;M.Findora=uKe;M.FindoraForge=dKe;M.FindoraTestnet=lKe;M.Firechain=rHe;M.FirenzeTestNetwork=GYe;M.Flachain=XQe;M.Flare=jFe;M.FlareTestnetCoston=KFe;M.FlareTestnetCoston2=IWe;M.Floripa=dYe;M.Fncy=Gqe;M.FncyTestnet=xQe;M.FreightTrustNetwork=uUe;M.Frenchain=sYe;M.FrenchainTestnet=$Ue;M.FrontierOfDreamsTestnet=y$e;M.Fuse=NWe;M.FuseSparknet=BWe;M.Fusion=z$e;M.FusionTestnet=uYe;M.Ganache=IGe;M.GarizonStage0=cWe;M.GarizonStage1=uWe;M.GarizonStage2=lWe;M.GarizonStage3=dWe;M.GarizonTestnetStage0=jHe;M.GarizonTestnetStage1=zHe;M.GarizonTestnetStage2=KHe;M.GarizonTestnetStage3=GHe;M.Gatechain=aWe;M.GatechainTestnet=nWe;M.GatherDevnetNetwork=fZe;M.GatherNetwork=oZe;M.GatherTestnetNetwork=hZe;M.GearZeroNetwork=eHe;M.GearZeroNetworkTestnet=HJe;M.Genechain=Xqe;M.GenesisCoin=CVe;M.GenesisL1=aqe;M.GenesisL1Testnet=tqe;M.GiantMammoth=wVe;M.GitshockCartenzTestnet=Aze;M.Gnosis=mWe;M.Gochain=Nqe;M.GochainTestnet=U$e;M.Godwoken=UYe;M.GodwokenTestnetV1=WYe;M.Goerli=yQ;M.GoldSmartChain=NGe;M.GoldSmartChainTestnet=VYe;M.GonChain=DVe;M.Gooddata=cqe;M.GooddataTestnet=oqe;M.GraphlinqBlockchain=fHe;M.Gton=cje;M.GtonTestnet=mYe;M.Haic=RHe;M.Halo=Vje;M.HammerChain=M$e;M.Hapchain=qQe;M.HapchainTestnet=$Je;M.HaqqChainTestnet=bYe;M.HaqqNetwork=YVe;M.HaradevTestnet=WZe;M.HarmonyDevnetShard0=MZe;M.HarmonyShard0=EZe;M.HarmonyShard1=CZe;M.HarmonyShard2=IZe;M.HarmonyShard3=kZe;M.HarmonyTestnetShard0=AZe;M.HarmonyTestnetShard1=SZe;M.HarmonyTestnetShard2=PZe;M.HarmonyTestnetShard3=RZe;M.Hashbit=$Ve;M.HaymoTestnet=LJe;M.HazlorTestnet=zGe;M.Hedera=xUe;M.HederaLocalnet=CUe;M.HederaPreviewnet=EUe;M.HederaTestnet=TUe;M.HertzNetwork=B$e;M.HighPerformanceBlockchain=vUe;M.HikaNetworkTestnet=CGe;M.HomeVerse=b$e;M.HooSmartChain=jqe;M.HooSmartChainTestnet=QWe;M.HorizenYumaTestnet=gze;M.Htmlcoin=cGe;M.HumanProtocol=bZe;M.Humanode=vGe;M.HuobiEcoChain=qWe;M.HuobiEcoChainTestnet=yUe;M.HyperonchainTestnet=zUe;M.Idchain=Vqe;M.IexecSidechain=WWe;M.Imversed=MQe;M.ImversedTestnet=NQe;M.Iolite=GQe;M.IoraChain=Oje;M.IotexNetwork=uGe;M.IotexNetworkTestnet=lGe;M.IposNetwork=yZe;M.IvarChain=JYe;M.IvarChainTestnet=m$e;M.J2oTaro=V$e;M.Jellie=BJe;M.JfinChain=HKe;M.JibchainL1=vVe;M.JoysDigital=tZe;M.JoysDigitalTestnet=sZe;M.KaibaLightningChainTestnet=bWe;M.Kardiachain=XFe;M.KaruraNetwork=bHe;M.KaruraNetworkTestnet=lHe;M.KavaEvm=mKe;M.KavaEvmTestnet=fKe;M.Kcc=PUe;M.KccTestnet=RUe;M.Kekchain=ZJe;M.KekchainKektest=XJe;M.Kerleano=Tze;M.Kiln=kQe;M.Kintsugi=IQe;M.KlaytnCypress=eVe;M.KlaytnTestnetBaobab=uje;M.Klyntar=WGe;M.Kortho=TKe;M.Korthotest=rVe;M.Kovan=gqe;M.LaTestnet=GUe;M.Lachain=pUe;M.LachainTestnet=hUe;M.LambdaTestnet=ZYe;M.LatamBlockchainResilTestnet=ZWe;M.Lightstreams=$We;M.LightstreamsTestnet=VWe;M.Lisinski=jUe;M.LiveplexOracleevm=fYe;M.Localhost=SQ;M.Loopnetwork=l$e;M.LucidBlockchain=PHe;M.LuckyNetwork=sje;M.Ludan=bze;M.LycanChain=xHe;M.Maistestsubnet=rZe;M.Mammoth=bVe;M.Mantle=mGe;M.MantleTestnet=yGe;M.Map=I$e;M.MapMakalu=lUe;M.MaroBlockchain=dVe;M.Mas=OJe;M.Mathchain=Nje;M.MathchainTestnet=Bje;M.MdglTestnet=VGe;M.MemoSmartChain=aje;M.MeshnyanTestnet=hHe;M.Metacodechain=KKe;M.Metadium=WFe;M.MetadiumTestnet=UFe;M.Metadot=p$e;M.MetadotTestnet=h$e;M.MetalCChain=YJe;M.MetalTahoeCChain=JJe;M.Metaplayerone=oKe;M.Meter=tWe;M.MeterTestnet=rWe;M.MetisAndromeda=Tje;M.MetisGoerliTestnet=pHe;M.MilkomedaA1=jze;M.MilkomedaA1Testnet=AJe;M.MilkomedaC1=Hze;M.MilkomedaC1Testnet=kJe;M.MintmeComCoin=R$e;M.Mix=Yqe;M.MixinVirtualMachine=jYe;M.Moac=Eje;M.MoacTestnet=cUe;M.MolereumNetwork=jZe;M.MoonbaseAlpha=Jje;M.Moonbeam=$je;M.Moonriver=Yje;M.Moonrock=Qje;M.Multivac=PYe;M.Mumbai=kQ;M.MunodeTestnet=ZHe;M.Musicoin=LQe;M.MyownTestnet=MVe;M.MythicalChain=MJe;M.Nahmii=_Ge;M.Nahmii3=eGe;M.Nahmii3Testnet=tGe;M.NahmiiTestnet=xGe;M.Nebula=xZe;M.NebulaStaging=mZe;M.NebulaTestnet=_We;M.NeonEvm=uZe;M.NeonEvmDevnet=cZe;M.NeonEvmTestnet=lZe;M.NepalBlockchainNetwork=rje;M.Newton=fje;M.NewtonTestnet=dje;M.NovaNetwork=iWe;M.Ntity=qZe;M.Numbers=WVe;M.NumbersTestnet=UVe;M.OasisEmerald=nYe;M.OasisEmeraldTestnet=rYe;M.OasisSapphire=A$e;M.OasisSapphireTestnet=S$e;M.Oasischain=D$e;M.Oasys=mUe;M.Octaspace=mQe;M.Oho=Q$e;M.Okbchain=iUe;M.OkbchainTestnet=aUe;M.OkexchainTestnet=Fqe;M.Okxchain=qqe;M.OmPlatform=Kje;M.Omax=AUe;M.Omchain=T$e;M.Oneledger=dZe;M.OneledgerTestnetFrankenstein=OZe;M.Ontology=Rqe;M.OntologyTestnet=kGe;M.OnusChain=Oze;M.OnusChainTestnet=Mze;M.OoneChainTestnet=KJe;M.Oort=XHe;M.OortAscraeus=tje;M.OortDev=SVe;M.OortHuygens=eje;M.OpalTestnetByUnique=fVe;M.Openchain=iQe;M.OpenchainTestnet=IHe;M.Openpiece=Aqe;M.OpenpieceTestnet=HWe;M.Openvessel=DQe;M.OpsideTestnet=k$e;M.Optimism=gQ;M.OptimismBedrockGoerliAlphaTestnet=O$e;M.OptimismGoerli=xQ;M.OptimismKovan=Hqe;M.OptimismOnGnosis=IUe;M.OpulentXBeta=Z$e;M.OrigintrailParachain=eKe;M.OrlandoChain=NKe;M.Oychain=LWe;M.OychainTestnet=OWe;M.P12Chain=_$e;M.PaletteChain=xze;M.Palm=FZe;M.PalmTestnet=LZe;M.Pandoproject=jKe;M.PandoprojectTestnet=zKe;M.ParibuNet=WKe;M.ParibuNetTestnet=UKe;M.Pdc=HZe;M.Pegglecoin=X$e;M.PepchainChurchill=jQe;M.PhiNetworkV1=sGe;M.PhiNetworkV2=zWe;M.Phoenix=o$e;M.PieceTestnet=L$e;M.Pirl=DZe;M.PixieChain=MGe;M.PixieChainTestnet=gHe;M.Planq=qGe;M.Platon=DJe;M.PlatonDevTestnet2=PQe;M.PlianMain=SQe;M.PlianSubchain1=FQe;M.PlianTestnetMain=KQe;M.PlianTestnetSubchain1=WQe;M.PoaNetworkCore=fWe;M.PoaNetworkSokol=Jqe;M.Pocrnet=CKe;M.Polis=VJe;M.PolisTestnet=GJe;M.Polygon=wQ;M.PolygonZkevmTestnet=uze;M.PolyjuiceTestnet=qYe;M.Polysmartchain=DGe;M.Popcateum=qje;M.PortalFantasyChain=VHe;M.PortalFantasyChainTest=MHe;M.PosichainDevnetShard0=wQe;M.PosichainDevnetShard1=_Qe;M.PosichainShard0=bQe;M.PosichainTestnetShard0=vQe;M.Primuschain=Qqe;M.ProofOfMemes=g$e;M.ProtonTestnet=TWe;M.ProxyNetworkTestnet=wje;M.Publicmint=Yze;M.PublicmintDevnet=Vze;M.PublicmintTestnet=$ze;M.Pulsechain=UUe;M.PulsechainTestnet=YHe;M.PulsechainTestnetV2b=JHe;M.PulsechainTestnetV3=QHe;M.Q=$$e;M.QTestnet=Y$e;M.Qeasyweb3Testnet=AVe;M.Qitmeer=NHe;M.QitmeerNetworkTestnet=ZGe;M.Ql1=CHe;M.Ql1Testnet=OQe;M.QuadransBlockchain=jVe;M.QuadransBlockchainTestnet=zVe;M.Quarkblockchain=$Qe;M.QuarkchainDevnetRoot=mJe;M.QuarkchainDevnetShard0=yJe;M.QuarkchainDevnetShard1=gJe;M.QuarkchainDevnetShard2=bJe;M.QuarkchainDevnetShard3=vJe;M.QuarkchainDevnetShard4=wJe;M.QuarkchainDevnetShard5=_Je;M.QuarkchainDevnetShard6=xJe;M.QuarkchainDevnetShard7=TJe;M.QuarkchainRoot=tJe;M.QuarkchainShard0=rJe;M.QuarkchainShard1=nJe;M.QuarkchainShard2=aJe;M.QuarkchainShard3=iJe;M.QuarkchainShard4=sJe;M.QuarkchainShard5=oJe;M.QuarkchainShard6=cJe;M.QuarkchainShard7=uJe;M.QuartzByUnique=hVe;M.Quokkacoin=nKe;M.RabbitAnalogTestnetChain=Eze;M.RangersProtocol=Xze;M.RangersProtocolTestnetRobin=kVe;M.Realchain=MWe;M.RedlightChain=IKe;M.ReiChain=vYe;M.ReiChainTestnet=wYe;M.ReiNetwork=lYe;M.Resincoin=zYe;M.RikezaNetwork=cze;M.RikezaNetworkTestnet=a$e;M.RiniaTestnet=$He;M.Rinkeby=DFe;M.RiseOfTheWarbotsTestnet=jGe;M.Ropsten=BFe;M.Rsk=iqe;M.RskTestnet=sqe;M.Rupaya=YUe;M.Saakuru=BQe;M.SaakuruTestnet=WJe;M.Sakura=mje;M.SanrChain=ZVe;M.SapphireByUnique=mVe;M.Sardis=yYe;M.SardisTestnet=QVe;M.Scolcoin=NYe;M.ScolcoinWeichainTestnet=RGe;M.Scroll=cQe;M.ScrollAlphaTestnet=uQe;M.ScrollPreAlphaTestnet=lQe;M.SeedcoinNetwork=pqe;M.Seele=eUe;M.Sepolia=HQe;M.Setheum=gUe;M.ShardeumLiberty1X=$Ge;M.ShardeumLiberty2X=YGe;M.ShardeumSphinx1X=JGe;M.Sherpax=dze;M.SherpaxTestnet=pze;M.Shibachain=rqe;M.Shiden=DUe;M.Shyft=UGe;M.ShyftTestnet=JVe;M.SiberiumNetwork=EJe;M.SingularityZero=e$e;M.SingularityZeroTestnet=XVe;M.SiriusnetV2=dUe;M.Sjatsh=OVe;M.SmartBitcoinCash=NVe;M.SmartBitcoinCashTestnet=BVe;M.SmartHostTeknolojiTestnet=Dje;M.Smartmesh=VQe;M.SocialSmartChain=jJe;M.SongbirdCanaryNetwork=$Fe;M.Soterone=Uqe;M.Soverun=UQe;M.SoverunTestnet=pJe;M.Sps=i$e;M.SpsTestnet=u$e;M.StarSocialTestnet=vHe;M.StepNetwork=zje;M.StepTestnet=n$e;M.Stratos=rKe;M.StratosTestnet=tKe;M.StreamuxBlockchain=QGe;M.SurBlockchainNetwork=bUe;M.Susono=c$e;M.SxNetwork=KUe;M.SxNetworkTestnet=mHe;M.Syscoin=Pqe;M.SyscoinRolluxTestnet=xYe;M.SyscoinTanenbaumTestnet=EGe;M.TEkta=lje;M.TaoNetwork=sHe;M.Taraxa=DHe;M.TaraxaTestnet=OHe;M.Taycan=E$e;M.TaycanTestnet=Zze;M.Tbsi=wze;M.TbsiTestnet=_ze;M.TbwgChain=lqe;M.TcgVerse=_Ke;M.Techpay=EKe;M.Teleport=KGe;M.TeleportTestnet=GGe;M.TelosEvm=mqe;M.TelosEvmTestnet=yqe;M.Teslafunds=kze;M.Thaichain=LFe;M.Thaichain20Thaifi=GFe;M.Theta=LUe;M.ThetaAmberTestnet=qUe;M.ThetaSapphireTestnet=FUe;M.ThetaTestnet=WUe;M.ThinkiumChain0=DYe;M.ThinkiumChain1=OYe;M.ThinkiumChain103=FYe;M.ThinkiumChain2=LYe;M.ThinkiumTestnetChain0=TYe;M.ThinkiumTestnetChain1=EYe;M.ThinkiumTestnetChain103=IYe;M.ThinkiumTestnetChain2=CYe;M.Thundercore=xWe;M.ThundercoreTestnet=VFe;M.Tipboxcoin=QJe;M.TipboxcoinTestnet=iGe;M.TlchainNetwork=gGe;M.TmyChain=lVe;M.TokiNetwork=iVe;M.TokiTestnet=sVe;M.TombChain=BGe;M.Tomochain=sWe;M.TomochainTestnet=oWe;M.ToolGlobal=oVe;M.ToolGlobalTestnet=cVe;M.Top=ije;M.TopEvm=nje;M.Tres=PGe;M.TresTestnet=SGe;M.TrustEvmTestnet=d$e;M.UbSmartChain=eJe;M.UbSmartChainTestnet=XYe;M.Ubiq=FFe;M.UbiqNetworkTestnet=qFe;M.Ultron=jje;M.UltronTestnet=Hje;M.UnicornUltraTestnet=fqe;M.Unique=pVe;M.UzmiNetwork=wGe;M.Valorbit=hqe;M.Vchain=yKe;M.Vechain=lJe;M.VechainTestnet=dJe;M.Vela1Chain=iHe;M.VelasEvm=wWe;M.Venidium=hGe;M.VenidiumTestnet=pGe;M.VentionSmartChain=KYe;M.VentionSmartChainTestnet=EHe;M.Vision=gQe;M.VisionVpioneerTestChain=hQe;M.VyvoSmartChain=gVe;M.Wagmi=GVe;M.Wanchain=HHe;M.WanchainTestnet=oje;M.Web3gamesDevnet=vWe;M.Web3gamesTestnet=gWe;M.Web3q=NUe;M.Web3qGalileo=qKe;M.Web3qTestnet=FKe;M.Webchain=P$e;M.WeelinkTestnet=aQe;M.WegochainRubidium=AGe;M.Wemix30=Cje;M.Wemix30Testnet=Ije;M.WorldTradeTechnicalChain=Fje;M.Xanachain=yVe;M.XdcApothemNetwork=Cqe;M.Xerom=CQe;M.XinfinXdcNetwork=Eqe;M.Xodex=xKe;M.XtSmartChain=tHe;M.Yuanchain=ZKe;M.ZMainnet=Gze;M.ZTestnet=RVe;M.ZcoreTestnet=LKe;M.ZeethChain=VUe;M.ZeethChainDev=LHe;M.Zeniq=UZe;M.Zenith=Zqe;M.ZenithTestnetVilnius=eWe;M.Zetachain=OGe;M.ZetachainAthensTestnet=LGe;M.Zhejiang=AQe;M.ZilliqaEvmTestnet=K$e;M.ZksyncEra=MUe;M.ZksyncEraTestnet=wUe;M.Zyx=Sqe;M._0xtade=qVe;M._4goodnetwork=yQe;M.allChains=PQ;M.configureChain=JTr;M.defaultChains=QTr;M.getChainByChainId=ZTr;M.getChainBySlug=XTr;M.getChainRPC=$Tr;M.getChainRPCs=MFe;M.minimizeChain=YTr});var vt=x((dBn,RQ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?RQ.exports=RFe():RQ.exports=zZe()});var GZe=x((fBn,KZe)=>{"use strict";d();p();function e6r(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,q=new Uint8Array(L);I!==S;){for(var W=m[I],V=0,K=L-1;(W!==0||V>>0,q[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");E=V,I++}for(var H=L-E;H!==L&&q[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(S);m[y];){var q=e[m.charCodeAt(y)];if(q===255)return;for(var W=0,V=S-1;(q!==0||W>>0,L[V]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");I=W,y++}for(var K=S-I;K!==S&&L[K]===0;)K++;for(var H=new Uint8Array(E+(S-K)),G=E;K!==S;)H[G++]=L[K++];return H}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}KZe.exports=e6r});var ha=x((gBn,VZe)=>{d();p();var t6r=GZe(),r6r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";VZe.exports=t6r(r6r)});var tn=x((T0,YZe)=>{d();p();var $Ze=typeof self<"u"?self:T0,BN=function(){function r(){this.fetch=!1,this.DOMException=$Ze.DOMException}return r.prototype=$Ze,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(F){return F&&DataView.prototype.isPrototypeOf(F)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(F){return F&&i.indexOf(Object.prototype.toString.call(F))>-1};function o(F){if(typeof F!="string"&&(F=String(F)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(F))throw new TypeError("Invalid character in header field name");return F.toLowerCase()}function c(F){return typeof F!="string"&&(F=String(F)),F}function u(F){var T={next:function(){var P=F.shift();return{done:P===void 0,value:P}}};return n.iterable&&(T[Symbol.iterator]=function(){return T}),T}function l(F){this.map={},F instanceof l?F.forEach(function(T,P){this.append(P,T)},this):Array.isArray(F)?F.forEach(function(T){this.append(T[0],T[1])},this):F&&Object.getOwnPropertyNames(F).forEach(function(T){this.append(T,F[T])},this)}l.prototype.append=function(F,T){F=o(F),T=c(T);var P=this.map[F];this.map[F]=P?P+", "+T:T},l.prototype.delete=function(F){delete this.map[o(F)]},l.prototype.get=function(F){return F=o(F),this.has(F)?this.map[F]:null},l.prototype.has=function(F){return this.map.hasOwnProperty(o(F))},l.prototype.set=function(F,T){this.map[o(F)]=c(T)},l.prototype.forEach=function(F,T){for(var P in this.map)this.map.hasOwnProperty(P)&&F.call(T,this.map[P],P,this)},l.prototype.keys=function(){var F=[];return this.forEach(function(T,P){F.push(P)}),u(F)},l.prototype.values=function(){var F=[];return this.forEach(function(T){F.push(T)}),u(F)},l.prototype.entries=function(){var F=[];return this.forEach(function(T,P){F.push([P,T])}),u(F)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function h(F){if(F.bodyUsed)return Promise.reject(new TypeError("Already read"));F.bodyUsed=!0}function f(F){return new Promise(function(T,P){F.onload=function(){T(F.result)},F.onerror=function(){P(F.error)}})}function m(F){var T=new FileReader,P=f(T);return T.readAsArrayBuffer(F),P}function y(F){var T=new FileReader,P=f(T);return T.readAsText(F),P}function E(F){for(var T=new Uint8Array(F),P=new Array(T.length),A=0;A-1?T:F}function W(F,T){T=T||{};var P=T.body;if(F instanceof W){if(F.bodyUsed)throw new TypeError("Already read");this.url=F.url,this.credentials=F.credentials,T.headers||(this.headers=new l(F.headers)),this.method=F.method,this.mode=F.mode,this.signal=F.signal,!P&&F._bodyInit!=null&&(P=F._bodyInit,F.bodyUsed=!0)}else this.url=String(F);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new l(T.headers)),this.method=q(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function V(F){var T=new FormData;return F.trim().split("&").forEach(function(P){if(P){var A=P.split("="),v=A.shift().replace(/\+/g," "),k=A.join("=").replace(/\+/g," ");T.append(decodeURIComponent(v),decodeURIComponent(k))}}),T}function K(F){var T=new l,P=F.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(A){var v=A.split(":"),k=v.shift().trim();if(k){var O=v.join(":").trim();T.append(k,O)}}),T}S.call(W.prototype);function H(F,T){T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in T?T.statusText:"OK",this.headers=new l(T.headers),this.url=T.url||"",this._initBody(F)}S.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},H.error=function(){var F=new H(null,{status:0,statusText:""});return F.type="error",F};var G=[301,302,303,307,308];H.redirect=function(F,T){if(G.indexOf(T)===-1)throw new RangeError("Invalid status code");return new H(null,{status:T,headers:{location:F}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(T,P){this.message=T,this.name=P;var A=Error(T);this.stack=A.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function J(F,T){return new Promise(function(P,A){var v=new W(F,T);if(v.signal&&v.signal.aborted)return A(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function O(){k.abort()}k.onload=function(){var D={status:k.status,statusText:k.statusText,headers:K(k.getAllResponseHeaders()||"")};D.url="responseURL"in k?k.responseURL:D.headers.get("X-Request-URL");var B="response"in k?k.response:k.responseText;P(new H(B,D))},k.onerror=function(){A(new TypeError("Network request failed"))},k.ontimeout=function(){A(new TypeError("Network request failed"))},k.onabort=function(){A(new t.DOMException("Aborted","AbortError"))},k.open(v.method,v.url,!0),v.credentials==="include"?k.withCredentials=!0:v.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&n.blob&&(k.responseType="blob"),v.headers.forEach(function(D,B){k.setRequestHeader(B,D)}),v.signal&&(v.signal.addEventListener("abort",O),k.onreadystatechange=function(){k.readyState===4&&v.signal.removeEventListener("abort",O)}),k.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return J.polyfill=!0,r.fetch||(r.fetch=J,r.Headers=l,r.Request=W,r.Response=H),t.Headers=l,t.Request=W,t.Response=H,t.fetch=J,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(BN);BN.fetch.ponyfill=!0;delete BN.fetch.polyfill;var u_=BN;T0=u_.fetch;T0.default=u_.fetch;T0.fetch=u_.fetch;T0.Headers=u_.Headers;T0.Request=u_.Request;T0.Response=u_.Response;YZe.exports=T0});var Qe=x((xBn,MQ)=>{"use strict";d();p();var n6r=Object.prototype.hasOwnProperty,Hu="~";function S4(){}Object.create&&(S4.prototype=Object.create(null),new S4().__proto__||(Hu=!1));function a6r(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function JZe(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new a6r(t,n||r,a),s=Hu?Hu+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function DN(r,e){--r._eventsCount===0?r._events=new S4:delete r._events[e]}function fu(){this._events=new S4,this._eventsCount=0}fu.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)n6r.call(t,n)&&e.push(Hu?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};fu.prototype.listeners=function(e){var t=Hu?Hu+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{i6r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ON=x((IBn,QZe)=>{"use strict";d();p();async function*s6r(r,e=1){let t=[];e<1&&(e=1);for await(let n of r)for(t.push(n);t.length>=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}QZe.exports=s6r});var NQ=x((SBn,ZZe)=>{"use strict";d();p();var o6r=ON();async function*c6r(r,e=1){for await(let t of o6r(r,e)){let n=t.map(a=>a().then(i=>({ok:!0,value:i}),i=>({ok:!1,err:i})));for(let a=0;a{"use strict";d();p();XZe.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}});var sXe=x((aXe,iXe)=>{"use strict";d();p();var LN=eXe(),{hasOwnProperty:rXe}=Object.prototype,{propertyIsEnumerable:u6r}=Object,l_=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),l6r=aXe,tXe={concatArrays:!1,ignoreUndefined:!1},FN=r=>{let e=[];for(let t in r)rXe.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){let t=Object.getOwnPropertySymbols(r);for(let n of t)u6r.call(r,n)&&e.push(n)}return e};function d_(r){return Array.isArray(r)?d6r(r):LN(r)?p6r(r):r}function d6r(r){let e=r.slice(0,0);return FN(r).forEach(t=>{l_(e,t,d_(r[t]))}),e}function p6r(r){let e=Object.getPrototypeOf(r)===null?Object.create(null):{};return FN(r).forEach(t=>{l_(e,t,d_(r[t]))}),e}var nXe=(r,e,t,n)=>(t.forEach(a=>{typeof e[a]>"u"&&n.ignoreUndefined||(a in r&&r[a]!==Object.getPrototypeOf(r)?l_(r,a,BQ(r[a],e[a],n)):l_(r,a,d_(e[a])))}),r),h6r=(r,e,t)=>{let n=r.slice(0,0),a=0;return[r,e].forEach(i=>{let s=[];for(let o=0;o!s.includes(o)),t)}),n};function BQ(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?h6r(r,e,t):!LN(e)||!LN(r)?d_(e):nXe(r,e,FN(e),t)}iXe.exports=function(...r){let e=BQ(d_(tXe),this!==l6r&&this||{},tXe),t={_:{}};for(let n of r)if(n!==void 0){if(!LN(n))throw new TypeError("`"+n+"` is not an Option Object");t=BQ(t,{_:n},e)}return t._}});var hv=x((LBn,cXe)=>{"use strict";d();p();function oXe(r,e){for(let t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function f6r(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return oXe(r,t)}catch{t.message=r.message,t.stack=r.stack;let a=function(){};return a.prototype=Object.create(Object.getPrototypeOf(r)),oXe(new a,t)}}cXe.exports=f6r});var lXe=x((WBn,uXe)=>{"use strict";d();p();function m6r(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,q=new Uint8Array(L);I!==S;){for(var W=m[I],V=0,K=L-1;(W!==0||V>>0,q[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");E=V,I++}for(var H=L-E;H!==L&&q[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(S);m[y];){var q=e[m.charCodeAt(y)];if(q===255)return;for(var W=0,V=S-1;(q!==0||W>>0,L[V]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");I=W,y++}if(m[y]!==" "){for(var K=S-I;K!==S&&L[K]===0;)K++;for(var H=new Uint8Array(E+(S-K)),G=E;K!==S;)H[G++]=L[K++];return H}}}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}uXe.exports=m6r});var qN=x((jBn,dXe)=>{"use strict";d();p();var y6r=new TextDecoder,g6r=r=>y6r.decode(r),b6r=new TextEncoder,v6r=r=>b6r.encode(r);function w6r(r,e){let t=new Uint8Array(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return t}dXe.exports={decodeText:g6r,encodeText:v6r,concat:w6r}});var hXe=x((GBn,pXe)=>{"use strict";d();p();var{encodeText:_6r}=qN(),DQ=class{constructor(e,t,n,a){this.name=e,this.code=t,this.codeBuf=_6r(this.code),this.alphabet=a,this.codec=n(a)}encode(e){return this.codec.encode(e)}decode(e){for(let t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}};pXe.exports=DQ});var mXe=x((YBn,fXe)=>{"use strict";d();p();var x6r=(r,e,t)=>{let n={};for(let u=0;u=8&&(s-=8,i[c++]=255&o>>s)}if(s>=t||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return i},T6r=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<e=>({encode(t){return T6r(t,e,r)},decode(t){return x6r(t,e,r)}});fXe.exports={rfc4648:E6r}});var vXe=x((ZBn,bXe)=>{"use strict";d();p();var P4=lXe(),C6r=hXe(),{rfc4648:wc}=mXe(),{decodeText:I6r,encodeText:k6r}=qN(),A6r=()=>({encode:I6r,decode:k6r}),yXe=[["identity","\0",A6r,""],["base2","0",wc(1),"01"],["base8","7",wc(3),"01234567"],["base10","9",P4,"0123456789"],["base16","f",wc(4),"0123456789abcdef"],["base16upper","F",wc(4),"0123456789ABCDEF"],["base32hex","v",wc(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",wc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",wc(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",wc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",wc(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",wc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",wc(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",wc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",wc(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",P4,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",P4,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",P4,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",P4,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],gXe=yXe.reduce((r,e)=>(r[e[0]]=new C6r(e[0],e[1],e[2],e[3]),r),{}),S6r=yXe.reduce((r,e)=>(r[e[1]]=gXe[e[0]],r),{});bXe.exports={names:gXe,codes:S6r}});var OQ=x((E0,_Xe)=>{"use strict";d();p();var p_=vXe(),{encodeText:P6r,decodeText:WN,concat:wXe}=qN();function R6r(r,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:t,codeBuf:n}=fv(r);return D6r(t,e),wXe([n,e],n.length+e.length)}function M6r(r,e){let t=fv(r),n=P6r(t.encode(e));return wXe([t.codeBuf,n],t.codeBuf.length+n.length)}function N6r(r){r instanceof Uint8Array&&(r=WN(r));let e=r[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(r=r.toLowerCase()),fv(r[0]).decode(r.substring(1))}function B6r(r){if(r instanceof Uint8Array&&(r=WN(r)),Object.prototype.toString.call(r)!=="[object String]")return!1;try{return fv(r[0]).name}catch{return!1}}function D6r(r,e){fv(r).decode(WN(e))}function fv(r){if(Object.prototype.hasOwnProperty.call(p_.names,r))return p_.names[r];if(Object.prototype.hasOwnProperty.call(p_.codes,r))return p_.codes[r];throw new Error(`Unsupported encoding: ${r}`)}function O6r(r){return r instanceof Uint8Array&&(r=WN(r)),fv(r[0])}E0=_Xe.exports=R6r;E0.encode=M6r;E0.decode=N6r;E0.isEncoded=B6r;E0.encoding=fv;E0.encodingFromData=O6r;var L6r=Object.freeze(p_.names),F6r=Object.freeze(p_.codes);E0.names=L6r;E0.codes=F6r});var CXe=x((nDn,EXe)=>{d();p();EXe.exports=TXe;var xXe=128,q6r=127,W6r=~q6r,U6r=Math.pow(2,31);function TXe(r,e,t){e=e||[],t=t||0;for(var n=t;r>=U6r;)e[t++]=r&255|xXe,r/=128;for(;r&W6r;)e[t++]=r&255|xXe,r>>>=7;return e[t]=r|0,TXe.bytes=t-n+1,e}});var AXe=x((sDn,kXe)=>{d();p();kXe.exports=LQ;var H6r=128,IXe=127;function LQ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw LQ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&IXe)<=H6r);return LQ.bytes=i-n,t}});var PXe=x((uDn,SXe)=>{d();p();var j6r=Math.pow(2,7),z6r=Math.pow(2,14),K6r=Math.pow(2,21),G6r=Math.pow(2,28),V6r=Math.pow(2,35),$6r=Math.pow(2,42),Y6r=Math.pow(2,49),J6r=Math.pow(2,56),Q6r=Math.pow(2,63);SXe.exports=function(r){return r{d();p();RXe.exports={encode:CXe(),decode:AXe(),encodingLength:PXe()}});var BXe=x((mDn,NXe)=>{"use strict";d();p();var Z6r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});NXe.exports={names:Z6r}});function X6r(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(q);S!==L;){for(var V=y[S],K=0,H=q-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");I=K,S++}for(var G=q-I;G!==q&&W[G]===0;)G++;for(var J=c.repeat(E);G>>0,q=new Uint8Array(L);y[E];){var W=t[y.charCodeAt(E)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,q[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=V,E++}if(y[E]!==" "){for(var H=L-S;H!==L&&q[H]===0;)H++;for(var G=new Uint8Array(I+(L-H)),J=I;H!==L;)G[J++]=q[H++];return G}}}function m(y){var E=f(y);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var eEr,tEr,DXe,OXe=ce(()=>{d();p();eEr=X6r,tEr=eEr,DXe=tEr});var UN={};cr(UN,{coerce:()=>up,empty:()=>LXe,equals:()=>FQ,fromHex:()=>nEr,fromString:()=>qQ,isBinary:()=>aEr,toHex:()=>rEr,toString:()=>WQ});var LXe,rEr,nEr,FQ,up,aEr,qQ,WQ,v1=ce(()=>{d();p();LXe=new Uint8Array(0),rEr=r=>r.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),nEr=r=>{let e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):LXe},FQ=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},aEr=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),qQ=r=>new TextEncoder().encode(r),WQ=r=>new TextDecoder().decode(r)});var UQ,HQ,jQ,FXe,zQ,h_,w1,iEr,sEr,us,Th=ce(()=>{d();p();OXe();v1();UQ=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},HQ=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return FXe(this,e)}},jQ=class{constructor(e){this.decoders=e}or(e){return FXe(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},FXe=(r,e)=>new jQ({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),zQ=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new UQ(e,t,n),this.decoder=new HQ(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},h_=({name:r,prefix:e,encode:t,decode:n})=>new zQ(r,e,t,n),w1=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=DXe(t,e);return h_({prefix:r,name:e,encode:n,decode:i=>up(a(i))})},iEr=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},sEr=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<h_({prefix:e,name:r,encode(a){return sEr(a,n,t)},decode(a){return iEr(a,n,t,r)}})});var KQ={};cr(KQ,{identity:()=>oEr});var oEr,qXe=ce(()=>{d();p();Th();v1();oEr=h_({prefix:"\0",name:"identity",encode:r=>WQ(r),decode:r=>qQ(r)})});var GQ={};cr(GQ,{base2:()=>cEr});var cEr,WXe=ce(()=>{d();p();Th();cEr=us({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var VQ={};cr(VQ,{base8:()=>uEr});var uEr,UXe=ce(()=>{d();p();Th();uEr=us({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var $Q={};cr($Q,{base10:()=>lEr});var lEr,HXe=ce(()=>{d();p();Th();lEr=w1({prefix:"9",name:"base10",alphabet:"0123456789"})});var YQ={};cr(YQ,{base16:()=>dEr,base16upper:()=>pEr});var dEr,pEr,jXe=ce(()=>{d();p();Th();dEr=us({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),pEr=us({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var JQ={};cr(JQ,{base32:()=>f_,base32hex:()=>yEr,base32hexpad:()=>bEr,base32hexpadupper:()=>vEr,base32hexupper:()=>gEr,base32pad:()=>fEr,base32padupper:()=>mEr,base32upper:()=>hEr,base32z:()=>wEr});var f_,hEr,fEr,mEr,yEr,gEr,bEr,vEr,wEr,QQ=ce(()=>{d();p();Th();f_=us({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),hEr=us({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),fEr=us({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),mEr=us({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),yEr=us({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),gEr=us({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),bEr=us({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),vEr=us({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),wEr=us({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var ZQ={};cr(ZQ,{base36:()=>_Er,base36upper:()=>xEr});var _Er,xEr,zXe=ce(()=>{d();p();Th();_Er=w1({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),xEr=w1({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var XQ={};cr(XQ,{base58btc:()=>em,base58flickr:()=>TEr});var em,TEr,eZ=ce(()=>{d();p();Th();em=w1({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),TEr=w1({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var tZ={};cr(tZ,{base64:()=>EEr,base64pad:()=>CEr,base64url:()=>IEr,base64urlpad:()=>kEr});var EEr,CEr,IEr,kEr,KXe=ce(()=>{d();p();Th();EEr=us({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),CEr=us({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),IEr=us({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),kEr=us({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var rZ={};cr(rZ,{base256emoji:()=>MEr});function PEr(r){return r.reduce((e,t)=>(e+=AEr[t],e),"")}function REr(r){let e=[];for(let t of r){let n=SEr[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var GXe,AEr,SEr,MEr,VXe=ce(()=>{d();p();Th();GXe=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),AEr=GXe.reduce((r,e,t)=>(r[t]=e,r),[]),SEr=GXe.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);MEr=h_({prefix:"\u{1F680}",name:"base256emoji",encode:PEr,decode:REr})});function JXe(r,e,t){e=e||[],t=t||0;for(var n=t;r>=OEr;)e[t++]=r&255|$Xe,r/=128;for(;r&DEr;)e[t++]=r&255|$Xe,r>>>=7;return e[t]=r|0,JXe.bytes=t-n+1,e}function nZ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw nZ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&YXe)<=FEr);return nZ.bytes=i-n,t}var NEr,$Xe,BEr,DEr,OEr,LEr,FEr,YXe,qEr,WEr,UEr,HEr,jEr,zEr,KEr,GEr,VEr,$Er,YEr,JEr,R4,QXe=ce(()=>{d();p();NEr=JXe,$Xe=128,BEr=127,DEr=~BEr,OEr=Math.pow(2,31);LEr=nZ,FEr=128,YXe=127;qEr=Math.pow(2,7),WEr=Math.pow(2,14),UEr=Math.pow(2,21),HEr=Math.pow(2,28),jEr=Math.pow(2,35),zEr=Math.pow(2,42),KEr=Math.pow(2,49),GEr=Math.pow(2,56),VEr=Math.pow(2,63),$Er=function(r){return rm_,encodeTo:()=>mv,encodingLength:()=>yv});var m_,mv,yv,HN=ce(()=>{d();p();QXe();m_=(r,e=0)=>[R4.decode(r,e),R4.decode.bytes],mv=(r,e,t=0)=>(R4.encode(r,e,t),e),yv=r=>R4.encodingLength(r)});var bv={};cr(bv,{Digest:()=>gv,create:()=>_1,decode:()=>aZ,equals:()=>iZ});var _1,aZ,iZ,gv,M4=ce(()=>{d();p();v1();HN();_1=(r,e)=>{let t=e.byteLength,n=yv(r),a=n+yv(t),i=new Uint8Array(a+t);return mv(r,i,0),mv(t,i,n),i.set(e,a),new gv(r,t,e,i)},aZ=r=>{let e=up(r),[t,n]=m_(e),[a,i]=m_(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==a)throw new Error("Incorrect length");return new gv(t,a,s,e)},iZ=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&FQ(r.bytes,e.bytes),gv=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}});var KN={};cr(KN,{Hasher:()=>jN,from:()=>zN});var zN,jN,sZ=ce(()=>{d();p();M4();zN=({name:r,code:e,encode:t})=>new jN(r,e,t),jN=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?_1(this.code,t):t.then(n=>_1(this.code,n))}else throw Error("Unknown type, must be binary type")}}});var oZ={};cr(oZ,{sha256:()=>QEr,sha512:()=>ZEr});var ZXe,QEr,ZEr,XXe=ce(()=>{d();p();sZ();ZXe=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),QEr=zN({name:"sha2-256",code:18,encode:ZXe("SHA-256")}),ZEr=zN({name:"sha2-512",code:19,encode:ZXe("SHA-512")})});var cZ={};cr(cZ,{identity:()=>tCr});var eet,XEr,tet,eCr,tCr,ret=ce(()=>{d();p();v1();M4();eet=0,XEr="identity",tet=up,eCr=r=>_1(eet,tet(r)),tCr={code:eet,name:XEr,encode:tet,digest:eCr}});var uZ={};cr(uZ,{code:()=>nCr,decode:()=>iCr,encode:()=>aCr,name:()=>rCr});var rCr,nCr,aCr,iCr,net=ce(()=>{d();p();v1();rCr="raw",nCr=85,aCr=r=>up(r),iCr=r=>up(r)});var lZ={};cr(lZ,{code:()=>uCr,decode:()=>dCr,encode:()=>lCr,name:()=>cCr});var sCr,oCr,cCr,uCr,lCr,dCr,aet=ce(()=>{d();p();sCr=new TextEncoder,oCr=new TextDecoder,cCr="json",uCr=512,lCr=r=>sCr.encode(JSON.stringify(r)),dCr=r=>JSON.parse(oCr.decode(r))});var $s,pCr,hCr,fCr,N4,mCr,iet,set,GN,VN,yCr,gCr,bCr,oet=ce(()=>{d();p();HN();M4();eZ();QQ();v1();$s=class{constructor(e,t,n,a){this.code=t,this.version=e,this.multihash=n,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:VN,byteLength:VN,code:GN,version:GN,multihash:GN,bytes:GN,_baseCache:VN,asCID:VN})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:t}=this;if(e!==N4)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==mCr)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return $s.createV0(t)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=_1(e,t);return $s.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&iZ(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:a}=this;switch(n){case 0:return hCr(t,a,e||em.encoder);default:return fCr(t,a,e||f_.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return gCr(/^0\.0/,bCr),!!(e&&(e[set]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof $s)return e;if(e!=null&&e.asCID===e){let{version:t,code:n,multihash:a,bytes:i}=e;return new $s(t,n,a,i||iet(t,n,a.bytes))}else if(e!=null&&e[set]===!0){let{version:t,multihash:n,code:a}=e,i=aZ(n);return $s.create(t,a,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==N4)throw new Error(`Version 0 CID must use dag-pb (code: ${N4}) block encoding`);return new $s(e,t,n,n.bytes)}case 1:{let a=iet(e,t,n.bytes);return new $s(e,t,n,a)}default:throw new Error("Invalid version")}}static createV0(e){return $s.create(0,N4,e)}static createV1(e,t){return $s.create(1,e,t)}static decode(e){let[t,n]=$s.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=$s.inspectBytes(e),n=t.size-t.multihashSize,a=up(e.subarray(n,n+t.multihashSize));if(a.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=a.subarray(t.multihashSize-t.digestSize),s=new gv(t.multihashCode,t.digestSize,i,a);return[t.version===0?$s.createV0(s):$s.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[h,f]=m_(e.subarray(t));return t+=f,h},a=n(),i=N4;if(a===18?(a=0,t=0):a===1&&(i=n()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);let s=t,o=n(),c=n(),u=t+c,l=u-s;return{version:a,codec:i,multihashCode:o,digestSize:c,multihashSize:l,size:u}}static parse(e,t){let[n,a]=pCr(e,t),i=$s.decode(a);return i._baseCache.set(n,e),i}},pCr=(r,e)=>{switch(r[0]){case"Q":{let t=e||em;return[em.prefix,t.decode(`${em.prefix}${r}`)]}case em.prefix:{let t=e||em;return[em.prefix,t.decode(r)]}case f_.prefix:{let t=e||f_;return[f_.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},hCr=(r,e,t)=>{let{prefix:n}=t;if(n!==em.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let a=e.get(n);if(a==null){let i=t.encode(r).slice(1);return e.set(n,i),i}else return a},fCr=(r,e,t)=>{let{prefix:n}=t,a=e.get(n);if(a==null){let i=t.encode(r);return e.set(n,i),i}else return a},N4=112,mCr=18,iet=(r,e,t)=>{let n=yv(r),a=n+yv(e),i=new Uint8Array(a+t.byteLength);return mv(r,i,0),mv(e,i,n),i.set(t,a),i},set=Symbol.for("@ipld/js-cid/CID"),GN={writable:!1,configurable:!1,enumerable:!0},VN={writable:!1,enumerable:!1,configurable:!1},yCr="0.0.0-dev",gCr=(r,e)=>{if(r.test(yCr))console.warn(e);else throw new Error(e)},bCr=`CID.isCID(v) is deprecated and will be removed in the next major release. +`)}};gl.AccountTypeSchema=AXe;gl.AddressSchema=TXt;gl.AuthenticateOptionsSchema=BXe;gl.AuthenticationPayloadDataSchema=u_e;gl.AuthenticationPayloadSchema=EXt;gl.GenerateOptionsSchema=NXe;gl.LoginOptionsSchema=PXe;gl.LoginPayloadDataSchema=sle;gl.LoginPayloadOutputSchema=CXt;gl.LoginPayloadSchema=SXe;gl.RawDateSchema=ale;gl.ThirdwebAuth=c_e;gl.VerifyOptionsSchema=MXe});var LXe=_(Fu=>{"use strict";d();p();Object.defineProperty(Fu,"__esModule",{value:!0});var ed=DXe();je();Fr();kr();Fu.AccountTypeSchema=ed.AccountTypeSchema;Fu.AddressSchema=ed.AddressSchema;Fu.AuthenticateOptionsSchema=ed.AuthenticateOptionsSchema;Fu.AuthenticationPayloadDataSchema=ed.AuthenticationPayloadDataSchema;Fu.AuthenticationPayloadSchema=ed.AuthenticationPayloadSchema;Fu.GenerateOptionsSchema=ed.GenerateOptionsSchema;Fu.LoginOptionsSchema=ed.LoginOptionsSchema;Fu.LoginPayloadDataSchema=ed.LoginPayloadDataSchema;Fu.LoginPayloadOutputSchema=ed.LoginPayloadOutputSchema;Fu.LoginPayloadSchema=ed.LoginPayloadSchema;Fu.RawDateSchema=ed.RawDateSchema;Fu.ThirdwebAuth=ed.ThirdwebAuth;Fu.VerifyOptionsSchema=ed.VerifyOptionsSchema});var OXe=_((ZDn,l_e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?l_e.exports=IXe():l_e.exports=LXe()});var qXe=_((tLn,p_e)=>{d();p();var d_e=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(D,B,x){D[B]=x.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(D,B,x){return Object.defineProperty(D,B,{value:x,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{u({},"")}catch{u=function(B,x,N){return B[x]=N}}function l(D,B,x,N){var U=B&&B.prototype instanceof R?B:R,E=Object.create(U.prototype),z=new v(N||[]);return n(E,"_invoke",{value:q(D,x,z)}),E}r.wrap=l;function h(D,B,x){try{return{type:"normal",arg:D.call(B,x)}}catch(N){return{type:"throw",arg:N}}}var f="suspendedStart",m="suspendedYield",y="executing",I="completed",C={};function R(){}function L(){}function F(){}var W={};u(W,s,function(){return this});var V=Object.getPrototypeOf,K=V&&V(V(k([])));K&&K!==e&&t.call(K,s)&&(W=K);var H=F.prototype=R.prototype=Object.create(W);L.prototype=F,n(H,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:L,configurable:!0}),L.displayName=u(F,c,"GeneratorFunction");function G(D){["next","throw","return"].forEach(function(B){u(D,B,function(x){return this._invoke(B,x)})})}r.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return B?B===L||(B.displayName||B.name)==="GeneratorFunction":!1},r.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,u(D,c,"GeneratorFunction")),D.prototype=Object.create(H),D},r.awrap=function(D){return{__await:D}};function Q(D,B){function x(E,z,ee,j){var X=h(D[E],D,z);if(X.type==="throw")j(X.arg);else{var ie=X.arg,ue=ie.value;return ue&&typeof ue=="object"&&t.call(ue,"__await")?B.resolve(ue.__await).then(function(he){x("next",he,ee,j)},function(he){x("throw",he,ee,j)}):B.resolve(ue).then(function(he){ie.value=he,ee(ie)},function(he){return x("throw",he,ee,j)})}}var N;function U(E,z){function ee(){return new B(function(j,X){x(E,z,j,X)})}return N=N?N.then(ee,ee):ee()}n(this,"_invoke",{value:U})}G(Q.prototype),u(Q.prototype,o,function(){return this}),r.AsyncIterator=Q,r.async=function(D,B,x,N,U){U===void 0&&(U=Promise);var E=new Q(l(D,B,x,N),U);return r.isGeneratorFunction(B)?E:E.next().then(function(z){return z.done?z.value:E.next()})};function q(D,B,x){var N=f;return function(E,z){if(N===y)throw new Error("Generator is already running");if(N===I){if(E==="throw")throw z;return O()}for(x.method=E,x.arg=z;;){var ee=x.delegate;if(ee){var j=T(ee,x);if(j){if(j===C)continue;return j}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(N===f)throw N=I,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);N=y;var X=h(D,B,x);if(X.type==="normal"){if(N=x.done?I:m,X.arg===C)continue;return{value:X.arg,done:x.done}}else X.type==="throw"&&(N=I,x.method="throw",x.arg=X.arg)}}}function T(D,B){var x=B.method,N=D.iterator[x];if(N===a)return B.delegate=null,x==="throw"&&D.iterator.return&&(B.method="return",B.arg=a,T(D,B),B.method==="throw")||x!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+x+"' method")),C;var U=h(N,D.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,C;var E=U.arg;if(!E)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,C;if(E.done)B[D.resultName]=E.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=a);else return E;return B.delegate=null,C}G(H),u(H,c,"Generator"),u(H,s,function(){return this}),u(H,"toString",function(){return"[object Generator]"});function M(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function A(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function v(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(M,this),this.reset(!0)}r.keys=function(D){var B=Object(D),x=[];for(var N in B)x.push(N);return x.reverse(),function U(){for(;x.length;){var E=x.pop();if(E in B)return U.value=E,U.done=!1,U}return U.done=!0,U}};function k(D){if(D){var B=D[s];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var x=-1,N=function U(){for(;++x=0;--N){var U=this.tryEntries[N],E=U.completion;if(U.tryLoc==="root")return x("end");if(U.tryLoc<=this.prev){var z=t.call(U,"catchLoc"),ee=t.call(U,"finallyLoc");if(z&&ee){if(this.prev=0;--x){var N=this.tryEntries[x];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev=0;--B){var x=this.tryEntries[B];if(x.finallyLoc===D)return this.complete(x.completion,x.afterLoc),A(x),C}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var x=this.tryEntries[B];if(x.tryLoc===D){var N=x.completion;if(N.type==="throw"){var U=N.arg;A(x)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,x){return this.delegate={iterator:k(D),resultName:B,nextLoc:x},this.method==="next"&&(this.arg=a),C}},r}(typeof p_e=="object"?p_e.exports:{});try{regeneratorRuntime=d_e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=d_e:Function("r","regeneratorRuntime = r")(d_e)}});var QZ=_(Jf=>{"use strict";d();p();Object.defineProperty(Jf,"__esModule",{value:!0});var FXe=SXt(qXe());function h_e(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function BXt(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function KXe(r){return kXt(r)||RXt(r)||LXt(r)||MXt()}var DXt=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function LXt(r,e){if(!!r){if(typeof r=="string")return h_e(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h_e(r,e)}}Object.defineProperty(Jf,"__esModule",{value:!0});function _n(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":DXt(e))!=="symbol"?e+"":e,t),t},VXe="https://pay.coinbase.com",YXe=en(function(r){var e=r.host,t=e===void 0?VXe:e,n=r.destinationWallets,a=zXe(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var o=a[s];o!==void 0&&i.searchParams.append(s,o.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),$Xe="cbpay-embedded-onramp",qXt=en(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,o=s===void 0?"fixed":s,c=r.top,u=c===void 0?"0px":c,l=document.createElement("iframe");return l.style.border="unset",l.style.borderWidth="0",l.style.width=n.toString(),l.style.height=i.toString(),l.style.position=o,l.style.top=u,l.id=$Xe,l.src=e,l},"createEmbeddedContent"),UXe;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(UXe||(UXe={}));var QXe=en(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,o=s===void 0?en(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,c=en(function(u){var l=UXt(u.data),h=l.eventName,f=l.data,m=!i||u.origin===i;h===r&&AXt(FXe.default.mark(function y(){return FXe.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(C.t0=m,!C.t0){C.next=5;break}return C.next=4,o(u.origin);case 4:C.t0=C.sent;case 5:if(!C.t0){C.next=7;break}t(f),a&&window.removeEventListener("message",c);case 7:case"end":return C.stop()}},y)}))()},"onMessage");return window.addEventListener("message",c),function(){window.removeEventListener("message",c)}},"onBroadcastedPostMessage"),FXt=en(function(r){return r!==window?r:WXt(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),WXt=en(function(r){try{return _n([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),y_e=en(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=HXt(e,i);r.postMessage(s,a)},"broadcastPostMessage"),UXt=en(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),HXt=en(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),jXt="/embed",zXt=5e3,f_e="coinbase-sdk-connect",yg={signin:{width:460,height:730},widget:{width:430,height:600}},JXe=function r(e){var t=e.host,n=t===void 0?VXe:t,a=e.appId,i=e.appParams,s=e.onReady,o=e.onFallbackOpen,c=e.debug,u=this;HXe(this,r),_s(this,"state","loading"),_s(this,"nonce",""),_s(this,"eventStreamListeners",{}),_s(this,"unsubs",[]),_s(this,"isLoggedIn",!1),_s(this,"openExperience",en(function(l){if(u.log("Attempting to open experience",{state:u.state}),u.state!=="waiting_for_response"&&u.state!=="loading"){if(u.state==="failed"){_n([u,"access",function(V){return V.onFallbackOpen},"optionalCall",function(V){return V()}]);return}if(!u.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var h=u.nonce;u.nonce="",u.setupExperienceListeners(l);var f=l.path,m=l.experienceLoggedIn,y=l.experienceLoggedOut,I=l.embeddedContentStyles,C=new URL("".concat(u.host).concat(f));C.searchParams.append("appId",u.appId),C.searchParams.append("type","secure_standalone");var R=u.isLoggedIn?m:y||m;C.searchParams.append("nonce",h);var L=C.toString();if(u.log("Opening experience",{experience:R,isLoggedIn:u.isLoggedIn}),R==="embedded"){var F=en(function(){var V=qXt(Lx({url:L},I));_n([I,"optionalAccess",function(K){return K.target}])?_n([document,"access",function(K){return K.querySelector},"call",function(K){return K(_n([I,"optionalAccess",function(H){return H.target}]))},"optionalAccess",function(K){return K.replaceChildren},"call",function(K){return K(V)}]):document.body.appendChild(V)},"openEmbeddedExperience");u.isLoggedIn?F():u.startDirectSignin(F)}else R==="popup"&&_n([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.windows},"optionalAccess",function(V){return V.create}])?window.chrome.windows.create({url:L,setSelfAsOpener:!0,type:"popup",focused:!0,width:yg.signin.width,height:yg.signin.height,left:window.screenLeft-yg.signin.width-10,top:window.screenTop},function(V){u.addEventStreamListener("open",function(){_n([V,"optionalAccess",function(K){return K.id}])&&chrome.windows.update(V.id,{width:yg.widget.width,height:yg.widget.height,left:window.screenLeft-yg.widget.width-10,top:window.screenTop})})}):R==="new_tab"&&_n([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.tabs},"optionalAccess",function(V){return V.create}])?window.chrome.tabs.create({url:L}):m_e(L,R);var W=en(function(){u.sendAppParams(),u.removeEventStreamListener("open",W)},"onOpen");u.addEventStreamListener("open",W)}},"openExperience")),_s(this,"endExperience",en(function(){_n([document,"access",function(l){return l.getElementById},"call",function(l){return l($Xe)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}])},"endExperience")),_s(this,"destroy",en(function(){_n([document,"access",function(l){return l.getElementById},"call",function(l){return l(f_e)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}]),u.unsubs.forEach(function(l){return l()})},"destroy")),_s(this,"addPixelReadyListener",en(function(){u.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(l){u.log("Received message: pixel_ready"),u.isLoggedIn=!!_n([l,"optionalAccess",function(h){return h.isLoggedIn}]),_n([u,"access",function(h){return h.removeErrorListener},"optionalCall",function(h){return h()}]),u.sendAppParams(function(){_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}])})}})},"addPixelReadyListener")),_s(this,"addErrorListener",en(function(){u.removeErrorListener=u.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(l){if(u.log("Received message: error"),l){var h=typeof l=="string"?l:JSON.stringify(l);_n([u,"access",function(f){return f.onReadyCallback},"optionalCall",function(f){return f(new Error(h))}])}}})},"addErrorListener")),_s(this,"embedPixel",en(function(){_n([document,"access",function(h){return h.getElementById},"call",function(h){return h(f_e)},"optionalAccess",function(h){return h.remove},"call",function(h){return h()}]);var l=ZXe({host:u.host,appId:u.appId});l.onerror=u.onFailedToLoad,u.pixelIframe=l,document.body.appendChild(l)},"embedPixel")),_s(this,"onFailedToLoad",en(function(){if(u.state="failed",u.onFallbackOpen)u.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}]);else{var l=new Error("Failed to load CB Pay pixel");u.debug&&console.error(l),_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h(l)}])}},"onFailedToLoad")),_s(this,"sendAppParams",en(function(l){_n([u,"access",function(h){return h.pixelIframe},"optionalAccess",function(h){return h.contentWindow}])?(u.log("Sending message: app_params"),u.onMessage("on_app_params_nonce",{onMessage:function(h){u.state="ready",u.nonce=_n([h,"optionalAccess",function(f){return f.nonce}])||"",_n([l,"optionalCall",function(f){return f()}])}}),u.state="waiting_for_response",y_e(u.pixelIframe.contentWindow,"app_params",{data:u.appParams})):(console.error("Failed to find pixel content window"),u.state="failed",_n([u,"access",function(h){return h.onFallbackOpen},"optionalCall",function(h){return h()}]))},"sendAppParams")),_s(this,"setupExperienceListeners",en(function(l){var h=l.onSuccess,f=l.onExit,m=l.onEvent;u.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(y){var I=y;_n([u,"access",function(C){return C.eventStreamListeners},"access",function(C){return C[I.eventName]},"optionalAccess",function(C){return C.forEach},"call",function(C){return C(function(R){return _n([R,"optionalCall",function(L){return L()}])})}]),I.eventName==="success"&&_n([h,"optionalCall",function(C){return C()}]),I.eventName==="exit"&&_n([f,"optionalCall",function(C){return C(I.error)}]),_n([m,"optionalCall",function(C){return C(y)}])}})},"setupExperienceListeners")),_s(this,"startDirectSignin",en(function(l){var h=new URLSearchParams;h.set("appId",u.appId),h.set("type","direct");var f="".concat(u.host,"/signin?").concat(h.toString()),m=m_e(f,"popup");u.onMessage("signin_success",{onMessage:function(){_n([m,"optionalAccess",function(y){return y.close},"call",function(y){return y()}]),l()}})},"startDirectSignin")),_s(this,"addEventStreamListener",en(function(l,h){u.eventStreamListeners[l]?_n([u,"access",function(f){return f.eventStreamListeners},"access",function(f){return f[l]},"optionalAccess",function(f){return f.push},"call",function(f){return f(h)}]):u.eventStreamListeners[l]=[h]},"addEventStreamListener")),_s(this,"removeEventStreamListener",en(function(l,h){if(u.eventStreamListeners[l]){var f=_n([u,"access",function(m){return m.eventStreamListeners},"access",function(m){return m[l]},"optionalAccess",function(m){return m.filter},"call",function(m){return m(function(y){return y!==h})}]);u.eventStreamListeners[l]=f}},"removeEventStreamListener")),_s(this,"onMessage",en(function(){for(var l=arguments.length,h=new Array(l),f=0;f{"use strict";d();p();Object.defineProperty(w_e,"__esModule",{value:!0});var VXt=QZ();function YXt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $Xt(r,e,t){YXt(r,e),e.set(r,t)}function QXt(r,e){return e.get?e.get.call(r):e.value}function eet(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function JXt(r,e){var t=eet(r,e,"get");return QXt(r,t)}function ZXt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function XXt(r,e,t){var n=eet(r,e,"set");return ZXt(r,n,t),t}var eer={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},b_e=new WeakMap,v_e=class{constructor(e){$Xt(this,b_e,{writable:!0,value:void 0}),XXt(this,b_e,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{VXt.initOnRamp({appId:JXt(this,b_e),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[eer[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};w_e.CoinbasePayIntegration=v_e});var ret=_(x_e=>{"use strict";d();p();Object.defineProperty(x_e,"__esModule",{value:!0});var ter=tet();QZ();x_e.CoinbasePayIntegration=ter.CoinbasePayIntegration});var aet=_(I_e=>{"use strict";d();p();Object.defineProperty(I_e,"__esModule",{value:!0});var rer=QZ();function ner(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function aer(r,e,t){ner(r,e),e.set(r,t)}function ier(r,e){return e.get?e.get.call(r):e.value}function net(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function ser(r,e){var t=net(r,e,"get");return ier(r,t)}function oer(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function cer(r,e,t){var n=net(r,e,"set");return oer(r,n,t),t}var uer={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},__e=new WeakMap,T_e=class{constructor(e){aer(this,__e,{writable:!0,value:void 0}),cer(this,__e,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{rer.initOnRamp({appId:ser(this,__e),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[uer[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};I_e.CoinbasePayIntegration=T_e});var iet=_(E_e=>{"use strict";d();p();Object.defineProperty(E_e,"__esModule",{value:!0});var ler=aet();QZ();E_e.CoinbasePayIntegration=ler.CoinbasePayIntegration});var set=_((vLn,C_e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?C_e.exports=ret():C_e.exports=iet()});var bi=_(hu=>{"use strict";d();p();var der=Cr(),Ox=je(),ct=kr();function per(r){return r&&r.__esModule?r:{default:r}}var qx=per(der),det="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function her(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:det;return`https://${r}.rpc.thirdweb.com/${e}`}var fer=()=>typeof window<"u",oet=fer()?ct.z.instanceof(File):ct.z.instanceof(b.Buffer),mer=ct.z.union([oet,ct.z.object({data:ct.z.union([oet,ct.z.string()]),name:ct.z.string()})]),ole=ct.z.union([mer,ct.z.string()]),pet=1e4,yer=ct.z.union([ct.z.array(ct.z.number()),ct.z.string()]),ger=ct.z.union([ct.z.string(),ct.z.number(),ct.z.bigint(),ct.z.custom(r=>Ox.BigNumber.isBigNumber(r)),ct.z.custom(r=>qx.default.isBN(r))]).transform(r=>{let e=qx.default.isBN(r)?new qx.default(r).toString():Ox.BigNumber.from(r).toString();return Ox.BigNumber.from(e)});ger.transform(r=>r.toString());var het=ct.z.union([ct.z.bigint(),ct.z.custom(r=>Ox.BigNumber.isBigNumber(r)),ct.z.custom(r=>qx.default.isBN(r))]).transform(r=>qx.default.isBN(r)?new qx.default(r).toString():Ox.BigNumber.from(r).toString()),ber=ct.z.number().max(pet,"Cannot exceed 100%").min(0,"Cannot be below 0%"),ver=ct.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),wer=ct.z.union([ct.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),ct.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),ct.z.string().length(0)]),fet=ct.z.union([ct.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),ct.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),xer=ct.z.union([fet,ct.z.literal("unlimited")]).default("unlimited"),met=ct.z.date().transform(r=>Ox.BigNumber.from(Math.floor(r.getTime()/1e3)));met.default(new Date(0));met.default(new Date(Date.now()+1e3*60*60*24*365*10));function _er(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ter(r){var e=_er(r,"string");return typeof e=="symbol"?e:String(e)}function Ier(r,e,t){return e=Ter(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var cet=ct.z.object({}).catchall(ct.z.union([het,ct.z.unknown()])),uet=ct.z.union([ct.z.array(cet),cet]).optional().nullable(),A_e=ct.z.object({name:ct.z.union([ct.z.string(),ct.z.number()]).optional().nullable(),description:ct.z.string().nullable().optional().nullable(),image:ole.nullable().optional(),external_url:ole.nullable().optional(),animation_url:ole.optional().nullable(),background_color:wer.optional().nullable(),properties:uet,attributes:uet}).catchall(ct.z.union([het,ct.z.unknown()])),Eer=ct.z.union([A_e,ct.z.string()]),Cer=A_e.extend({id:ct.z.string(),uri:ct.z.string(),image:ct.z.string().nullable().optional(),external_url:ct.z.string().nullable().optional(),animation_url:ct.z.string().nullable().optional()}),k_e=100,ker=ct.z.object({start:ct.z.number().default(0),count:ct.z.number().default(k_e)}).default({start:0,count:k_e});hu.AmountSchema=fet;hu.BasisPointsSchema=ber;hu.BytesLikeSchema=yer;hu.CommonNFTInput=A_e;hu.CommonNFTOutput=Cer;hu.DEFAULT_API_KEY=det;hu.DEFAULT_QUERY_ALL_COUNT=k_e;hu.FileOrBufferOrStringSchema=ole;hu.MAX_BPS=pet;hu.NFTInputOrUriSchema=Eer;hu.PercentSchema=ver;hu.QuantitySchema=xer;hu.QueryAllParamsSchema=ker;hu._defineProperty=Ier;hu.getRpcUrl=her});var Tn=_((ELn,Aer)=>{Aer.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var In=_((CLn,Per)=>{Per.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var En=_((kLn,Ser)=>{Ser.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Cn=_((ALn,Rer)=>{Rer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var kn=_((PLn,Mer)=>{Mer.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var An=_((SLn,Ner)=>{Ner.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Pn=_((RLn,Ber)=>{Ber.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Sn=_((MLn,Der)=>{Der.exports=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Rn=_((NLn,Ler)=>{Ler.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Mn=_((BLn,Oer)=>{Oer.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Nn=_((DLn,qer)=>{qer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Bn=_((LLn,Fer)=>{Fer.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Dn=_((OLn,Wer)=>{Wer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Ln=_((qLn,Uer)=>{Uer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var On=_((FLn,Her)=>{Her.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var pn=_((WLn,jer)=>{jer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var qn=_((ULn,zer)=>{zer.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Fn=_((HLn,Ker)=>{Ker.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Wn=_((jLn,Ger)=>{Ger.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Un=_((zLn,Ver)=>{Ver.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Hn=_((KLn,Yer)=>{Yer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var jn=_((GLn,$er)=>{$er.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var zn=_((VLn,Qer)=>{Qer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Kn=_((YLn,Jer)=>{Jer.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Gn=_(($Ln,Zer)=>{Zer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Vn=_((QLn,Xer)=>{Xer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Yn=_((JLn,etr)=>{etr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var $n=_((ZLn,ttr)=>{ttr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Qn=_((XLn,rtr)=>{rtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var hn=_((eOn,ntr)=>{ntr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Jn=_((tOn,atr)=>{atr.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Zn=_((rOn,itr)=>{itr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Xn=_((nOn,str)=>{str.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var ea=_((aOn,otr)=>{otr.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ta=_((iOn,ctr)=>{ctr.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ra=_((sOn,utr)=>{utr.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=_((oOn,ltr)=>{ltr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var aa=_((cOn,dtr)=>{dtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ia=_((uOn,ptr)=>{ptr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var sa=_((lOn,htr)=>{htr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var oa=_((dOn,ftr)=>{ftr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ca=_((pOn,mtr)=>{mtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ua=_((hOn,ytr)=>{ytr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var la=_((fOn,gtr)=>{gtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var da=_((mOn,btr)=>{btr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var pa=_((yOn,vtr)=>{vtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var bet=_(P=>{"use strict";d();p();Object.defineProperty(P,"__esModule",{value:!0});var wtr={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},xtr={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},_tr={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},Ttr={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},Itr={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"goerli"},Etr={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},Ctr={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},ktr={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},Atr={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Ptr={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"optimism"},Str={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},Rtr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},Mtr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},Ntr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},Btr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},Dtr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},Ltr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},Otr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},qtr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},Ftr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},Wtr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},Utr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},Htr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},jtr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},ztr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},Ktr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},Gtr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},Vtr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},Ytr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},$tr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},Qtr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},Jtr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},Ztr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},Xtr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},err={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},trr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},rrr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},nrr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},arr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},irr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},testnet:!1,slug:"telos-evm"},srr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},slug:"telos-evm-testnet"},orr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},crr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},urr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},lrr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},drr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},prr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},hrr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},frr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},mrr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},yrr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},grr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},brr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},vrr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},wrr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"binance"},xrr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},_rr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Trr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Irr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Err={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},Crr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},krr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},Arr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Prr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Srr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Rrr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Mrr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},Nrr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},Brr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Drr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},Lrr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},Orr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy"},qrr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},Frr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},Wrr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},Urr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},Hrr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},jrr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},zrr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},Krr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},Grr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},Vrr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},Yrr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},$rr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},Qrr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},Jrr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},Zrr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},Xrr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},enr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},tnr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},rnr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},nnr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},anr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},inr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"binance-testnet"},snr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},onr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"gnosis"},cnr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},unr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},lnr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},dnr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},pnr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},hnr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},fnr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},mnr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},ynr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},gnr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},bnr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},vnr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},wnr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},xnr={name:"Uptick Mainnet",chain:"Uptick",rpc:["https://uptick.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.uptick.network"],faucets:[],nativeCurrency:{name:"Uptick",symbol:"UPTICK",decimals:18},infoURL:"https://www.uptick.network",shortName:"auptick",chainId:117,networkId:117,icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},explorers:[{name:"Uptick Explorer",url:"https://evm-explorer.uptick.network",icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"uptick"},_nr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Tnr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"enuls"},Inr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},Enr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},Cnr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},knr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Anr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},Pnr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Snr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},Rnr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},Mnr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},Nnr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},Bnr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},Dnr={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},Lnr={name:"WoopChain Mainnet",chain:"WOOP",icon:{url:"ipfs://Qma7LpnkGjAN1dwL6VTXUYqzySNxjLg4br7J8UE4yZWYec",width:310,height:310,format:"png"},rpc:["https://woopchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.woop.ai/rpc"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"WoopCoin",symbol:"WOOC",decimals:18},infoURL:"https://wikiwoop.com",shortName:"woop",chainId:139,networkId:139,explorers:[{name:"wikiwoop",url:"https://explorer.wikiwoop.com",standard:"EIP3091"}],testnet:!1,slug:"woopchain"},Onr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},qnr={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},Fnr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v2"},Wnr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},Unr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},Hnr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},jnr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},znr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},Knr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},Gnr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},Vnr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},Ynr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},$nr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},Qnr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},Jnr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},Znr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},Xnr={name:"OKBChain Testnet",chain:"okbchain",rpc:["https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://okbtestrpc.okbchain.org"],faucets:["https://www.oklink.com/okbc-test"],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",shortName:"tokb",chainId:195,networkId:195,explorers:[{name:"OKLink",url:"https://www.oklink.com/okbc-test",standard:"EIP3091"}],status:"active",testnet:!0,slug:"okbchain-testnet"},ear={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},tar={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},rar={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},nar={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},aar={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},iar={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},sar={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},oar={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},car={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},uar={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},lar={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},dar={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"fantom"},par={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},har={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},far={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},mar={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},yar={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.era.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},gar={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},bar={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},war={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},xar={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},_ar={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},Tar={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},Iar={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},Ear={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"omax"},Car={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},kar={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Aar={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},Par={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.era.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zksync.io/"}]},testnet:!1,slug:"zksync-era"},Sar={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},Rar={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Mar={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"shiden"},Nar={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Bar={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Dar={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Lar={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},Oar={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},qar={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},Far={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},War={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},Uar={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},Har={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},jar={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},zar={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"optimism-goerli"},Kar={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},Gar={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},Var={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},Yar={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},$ar={name:"Columbus Test Network",chain:"CAM",rpc:["https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://columbus.camino.network/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},Qar={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},Jar={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},Zar={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},Xar={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},eir={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},tir={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},rir={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},nir={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},air={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},iir={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},sir={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"astar"},oir={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},cir={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},uir={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},lir={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!0,slug:"metis-goerli-testnet"},dir={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},pir={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},hir={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},fir={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},mir={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},yir={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},gir={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},bir={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},vir={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},wir={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},xir={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"https://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},_ir={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},Tir={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ql1"},Iir={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Eir={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},Cir={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},kir={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},Air={name:"Lucid Blockchain",chain:"Lucid",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},Pir={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Sir={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},Rir={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},Mir={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},Nir={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Bir={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Dir={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Lir={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},Oir={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},qir={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},Fir={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},Wir={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},Uir={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},Hir={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},jir={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},zir={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},Kir={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},Gir={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},Vir={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},Yir={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},$ir={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},Qir={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},Jir={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},Zir={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},Xir={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},esr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},tsr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},rsr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},nsr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},asr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},isr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},ssr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},osr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},csr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},usr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},lsr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!1,slug:"eurus"},dsr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},psr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},hsr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},fsr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},msr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},ysr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},gsr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},bsr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},vsr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!0,slug:"bronos-testnet"},wsr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!1,slug:"bronos"},xsr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!1,slug:"metis-andromeda"},_sr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Tsr={name:"Polygon zkEVM",title:"Polygon zkEVM",chain:"Polygon",rpc:["https://polygon-zkevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zkevm-rpc.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/polygon-zkevm",shortName:"zkevm",chainId:1101,networkId:1101,icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},explorers:[{name:"blockscout",url:"https://zkevm.polygonscan.com",icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zkevm-rpc.com"}]},testnet:!1,slug:"polygon-zkevm"},Isr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},Esr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Csr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},ksr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Asr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Psr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Ssr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Rsr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},Msr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},Nsr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},Bsr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Dsr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Lsr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},Osr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},qsr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},Fsr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"enterchain"},Wsr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},Usr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!0,slug:"ultron-testnet"},Hsr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"ultron"},jsr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},zsr={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},Ksr={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},Gsr={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},Vsr={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},Ysr={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},$sr={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},Qsr={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},Jsr={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},Zsr={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},Xsr={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"TDOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},eor={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},tor={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},ror={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},nor={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},aor={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},ior={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},sor={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},oor={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},cor={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},testnet:!0,slug:"polygon-zkevm-testnet"},uor={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},lor={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},dor={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},por={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},hor={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},mor={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},yor={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},gor={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},bor={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},vor={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},wor={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},xor={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},_or={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!1,slug:"palette-chain"},Tor={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},Ior={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},Eor={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},Cor={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},kor={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},Aor={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Por={name:"Lightlink Phoenix Mainnet",chain:"Lightlink Phoenix Mainnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.phoenix.lightlink.io/rpc/v1","https://replicator-02.phoenix.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_phoenix",chainId:1890,networkId:1890,explorers:[{name:"phoenix",url:"https://phoenix.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"lightlink-phoenix"},Sor={name:"Lightlink Pegasus Testnet",chain:"Lightlink Pegasus Testnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-pegasus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.pegasus.lightlink.io/rpc/v1","https://replicator-02.pegasus.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:["https://pegasus-faucet-react.vercel.app"],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_pegasus",chainId:1891,networkId:1891,explorers:[{name:"pegasus",url:"https://pegasus.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"lightlink-pegasus-testnet"},Ror={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},Mor={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},Nor={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},Bor={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},Dor={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},Lor={name:"Dexilla Testnet",chain:"Dexilla",rpc:["https://dexilla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dexilla.com"],faucets:[],icon:{url:"ipfs://QmUBveetVibvSEWQrjyxySgUphLuoMGSVLGmYnobt5FgEZ",width:512,height:512,format:"png"},nativeCurrency:{name:"Dexilla Native Token",symbol:"DXZ",decimals:18},infoURL:"https://dexilla.com",shortName:"Dexilla",chainId:1954,networkId:1954,explorers:[{name:"dos-mainnet",url:"https://exp.dexilla.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.dexilla.com"}]},testnet:!0,slug:"dexilla-testnet"},Oor={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},qor={name:"Super Smart Chain Testnet",chain:"TSCS",rpc:["https://super-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.superexchain.com:8544"],faucets:["https://testnet.superexchain.com"],nativeCurrency:{name:"Super Chain Native Token",symbol:"TSCS",decimals:18},infoURL:"https://testnet.superexchain.com",shortName:"tscs",chainId:1969,networkId:1969,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://testnetscan.superexchain.com",standard:"EIP3091"}],testnet:!0,slug:"super-smart-chain-testnet"},For={name:"Super Smart Chain Mainnet",chain:"SCS",rpc:["https://super-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://superexchain.com:8545"],faucets:[],nativeCurrency:{name:"Super Chain Native Token",symbol:"SCS",decimals:18},infoURL:"https://superexchain.com",shortName:"scs",chainId:1970,networkId:1970,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://scan.superexchain.com",standard:"EIP3091"}],testnet:!1,slug:"super-smart-chain"},Wor={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Uor={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Hor={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!0,slug:"eurus-testnet"},jor={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},zor={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ekta"},Kor={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},Gor={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},Vor={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},Yor={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},$or={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},Qor={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},Jor={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},Zor={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},Xor={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},ecr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},tcr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"edgeware-edgeevm"},rcr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},ncr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!0,slug:"taycan-testnet"},acr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},icr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},scr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},ocr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},ccr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},ucr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},lcr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},dcr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},pcr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},hcr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bosagora"},fcr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},mcr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ycr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},gcr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},standard:"none"}],testnet:!1,slug:"bitcoin-evm"},bcr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},vcr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!0,slug:"kava-evm-testnet"},wcr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!1,slug:"kava-evm"},xcr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},_cr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},Tcr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Icr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},standard:"none"}],testnet:!1,slug:"altcoinchain"},Ecr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Ccr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},kcr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"}}],testnet:!1,slug:"xodex"},Acr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},Pcr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"techpay"},Scr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Rcr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Mcr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},Ncr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},Bcr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},Dcr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},Lcr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},Ocr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},qcr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},Fcr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Wcr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Ucr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Hcr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},jcr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},zcr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},Kcr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},Gcr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},Vcr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},Ycr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},$cr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},Qcr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},Jcr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},Zcr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},Xcr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},eur={name:"AlveyChain Mainnet",chain:"ALV",icon:{url:"ipfs://QmSwczpPLBG6ob1a8WLoujthiCPzwEyJNp7WdKRi52qbWX",width:310,height:310,format:"png"},rpc:["https://alveychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alveychain.com/rpc","https://rpc2.alvey.io/rpc"],faucets:[],nativeCurrency:{name:"AlveyCoin",symbol:"ALV",decimals:18},infoURL:"https://alveyscan.com/rpc",shortName:"alv",chainId:3797,networkId:3797,explorers:[{name:"AlveyScan",url:"https://alveyscan.com",standard:"EIP3091"}],testnet:!1,slug:"alveychain"},tur={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},rur={name:"DOS Tesnet",chain:"DOS",rpc:["https://dos-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"dost",chainId:3939,networkId:3939,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan-Test",url:"https://test.doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"dos-tesnet"},nur={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},aur={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},iur={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},sur={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},our={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},cur={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},uur={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},lur={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitindi.org","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},dur={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}"," https://rpc-mainnet.bitindi.org","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},pur={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},hur={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},fur={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v1"},mur={name:"Nexi Mainnet",chain:"Nexi",icon:{url:"ipfs://bafybeifxqd7zel2m237kq5enavnh2s6cshaavswigogyvae2wevxy5k2ti",width:512,height:578,format:"png"},rpc:["https://nexi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chain.nexi.technology/","https://chain.nexilix.com","https://chain.nexi.evmnode.online"],faucets:[],nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},infoURL:"https://www.nexi.technology/",shortName:"nexi",chainId:4242,networkId:4242,slip44:2500,explorers:[{name:"nexiscan",url:"https://www.nexiscan.com",standard:"EIP3091"}],testnet:!1,slug:"nexi"},yur={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},gur={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},standard:"none"}],testnet:!1,slug:"htmlcoin"},bur={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},vur={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},wur={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},xur={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},_ur={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},Tur={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},Iur={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},Eur={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},Cur={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},kur={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},Aur={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},Pur={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},Sur={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},Rur={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},Mur={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},Nur={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},Bur={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},Dur={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},Lur={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},Our={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},qur={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},Fur={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"tres"},Wur={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},Uur={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},Hur={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},jur={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},zur={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},Kur={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},Gur={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},Vur={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},Yur={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},$ur={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},Qur={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},Jur={name:"ADIL Testnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.adilchain-rpc.io"],faucets:["https://testnet-faucet.adil-scan.io"],nativeCurrency:{name:"Testnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"tadil",chainId:7575,networkId:7575,explorers:[{name:"ADIL Testnet Explorer",url:"https://testnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!0,slug:"adil-testnet"},Zur={name:"The Root Network - Mainnet",chain:"TRN",rpc:["https://the-root-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://root.rootnet.live/archive","wss://root.rootnet.live/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-mainnet",chainId:7668,networkId:7668,explorers:[{name:"rootnet",url:"https://explorer.rootnet.live",standard:"none"}],testnet:!1,slug:"the-root-network"},Xur={name:"The Root Network - Porcini Testnet",chain:"TRN",rpc:["https://the-root-network-porcini-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://porcini.rootnet.app/archive","wss://porcini.rootnet.app/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-porcini",chainId:7672,networkId:7672,explorers:[{name:"rootnet",url:"https://explorer.rootnet.cloud",standard:"none"}],testnet:!0,slug:"the-root-network-porcini-testnet"},elr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},tlr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},rlr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},nlr={name:"DOS Chain",chain:"DOS",rpc:["https://dos-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"https://doschain.io",shortName:"dos",chainId:7979,networkId:7979,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan",url:"https://doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"dos-chain"},alr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!1,slug:"teleport"},ilr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!0,slug:"teleport-testnet"},slr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},olr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},clr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},ulr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},llr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},dlr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},plr={name:"Qitmeer Network Mixnext",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meermix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8132,networkId:8132,status:"incubating",testnet:!1,slug:"qitmeer-network-mixnext"},hlr={name:"Qitmeer Network Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meerpriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8133,networkId:8133,status:"incubating",testnet:!1,slug:"qitmeer-network-privnet"},flr={name:"Amana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8134,networkId:8134,status:"incubating",testnet:!1,slug:"amana"},mlr={name:"Flana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8135,networkId:8135,status:"incubating",testnet:!1,slug:"flana"},ylr={name:"Mizana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8136,networkId:8136,status:"incubating",testnet:!1,slug:"mizana"},glr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},blr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},vlr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},wlr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},xlr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},_lr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},Tlr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},Ilr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},Elr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},Clr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},klr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},Alr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},Plr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},Slr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Rlr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},Mlr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},Nlr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},Blr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},Dlr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},Llr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"}}],testnet:!1,slug:"mammoth"},Olr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},qlr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"}}],testnet:!1,slug:"giant-mammoth"},Flr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},Wlr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!0,slug:"evmos-testnet"},Ulr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!1,slug:"evmos"},Hlr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},jlr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},zlr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},Klr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},Glr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Vlr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},Ylr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},$lr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},Qlr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Jlr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Zlr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Xlr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},edr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},tdr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},rdr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},ndr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},adr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},idr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},sdr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},odr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},cdr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},udr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!1,slug:"astra"},ldr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},ddr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!0,slug:"astra-testnet"},pdr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},hdr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},fdr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},mdr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},ydr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},gdr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},bdr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},vdr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},wdr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},xdr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},_dr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},Tdr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},Idr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Edr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Cdr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},kdr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},Adr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},Pdr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Sdr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Rdr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Mdr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},Ndr={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},Bdr={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},Ddr={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},Ldr={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},Odr={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},qdr={name:"Camelark Mainnet",chainId:20001,shortName:"Camelark",chain:"ETHW",icon:{url:"ipfs://QmbXDcCWHh8jExE1tAUkUKzXyTb8srpC75ogZq1QYkMMRW",width:128,height:128,format:"svg"},networkId:20001,nativeCurrency:{name:"EthereumPoW",symbol:"ETHW",decimals:18},rpc:["https://camelark.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-http-rpc.camelark.com"],faucets:[],explorers:[{name:"CamelarkScan",url:"https://scan.camelark.com",standard:"EIP3091"}],infoURL:"https://www.camelark.com",testnet:!1,slug:"camelark"},Fdr={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},Wdr={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},Udr={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},Hdr={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},jdr={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!1,slug:"taycan"},zdr={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},Kdr={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},Gdr={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},Vdr={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},Ydr={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},$dr={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},Qdr={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},Jdr={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},Zdr={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],testnet:!0,slug:"bitkub-chain-testnet"},Xdr={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},epr={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},tpr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},rpr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},npr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},apr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},ipr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},spr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},opr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},cpr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bitgert"},upr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"fusion"},lpr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},dpr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"aves"},ppr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:{url:"ipfs://QmdUYi8fjnvdM9iFQ7dwE2YvmhDtavSB3bKhCD2GhPxPks",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},hpr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"q"},fpr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},mpr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},ypr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"oho"},gpr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},bpr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},vpr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"arbitrum"},wpr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},xpr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},_pr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},Tpr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},Ipr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},Epr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax.network/","https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},Cpr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},kpr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},Apr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"frenchain"},Ppr={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},Spr={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Rpr={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},Mpr={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},Npr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},Bpr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},Dpr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},Lpr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},Opr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},qpr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},Fpr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!1,slug:"dfk-chain"},Wpr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},Upr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},Hpr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},jpr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},zpr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},Kpr={name:"Linea Testnet",title:"Linea Testnet",chain:"ETH",rpc:["https://linea-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goerli.linea.build"],faucets:["https://faucetlink.to/goerli"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://linea.build",shortName:"linea-testnet",chainId:59140,networkId:59140,icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"},parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea"}]},explorers:[{name:"Linea Testnet Explorer",url:"https://explorer.goerli.linea.build",standard:"EIP3091",icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"}}],status:"active",testnet:!0,slug:"linea-testnet"},Gpr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},Vpr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},Ypr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},$pr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},Qpr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},Jpr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},Zpr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},Xpr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},ehr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ecredits"},thr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},rhr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},nhr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},ahr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},ihr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},shr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},ohr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},chr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},uhr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},lhr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},dhr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},phr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},hhr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},fhr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},mhr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},yhr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},ghr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},bhr={name:"Amana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81341,networkId:81341,status:"incubating",testnet:!0,slug:"amana-testnet"},vhr={name:"Amana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81342,networkId:81342,status:"incubating",testnet:!1,slug:"amana-mixnet"},whr={name:"Amana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81343,networkId:81343,status:"incubating",testnet:!1,slug:"amana-privnet"},xhr={name:"Flana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81351,networkId:81351,status:"incubating",testnet:!0,slug:"flana-testnet"},_hr={name:"Flana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81352,networkId:81352,status:"incubating",testnet:!1,slug:"flana-mixnet"},Thr={name:"Flana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81353,networkId:81353,status:"incubating",testnet:!1,slug:"flana-privnet"},Ihr={name:"Mizana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81361,networkId:81361,status:"incubating",testnet:!0,slug:"mizana-testnet"},Ehr={name:"Mizana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81362,networkId:81362,status:"incubating",testnet:!1,slug:"mizana-mixnet"},Chr={name:"Mizana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81363,networkId:81363,status:"incubating",testnet:!1,slug:"mizana-privnet"},khr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},Ahr={name:"CYBERTRUST",chain:"CYBER",rpc:["https://cybertrust.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cybertrust.space:48501"],faucets:[],nativeCurrency:{name:"Cyber Trust",symbol:"CYBER",decimals:18},infoURL:"https://cybertrust.space",shortName:"Cyber",chainId:85449,networkId:48501,testnet:!0,slug:"cybertrust"},Phr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},Shr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},Rhr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},Mhr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"}}],testnet:!0,slug:"lambda-testnet"},Nhr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},Bhr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},Dhr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},Lhr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},Ohr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},qhr={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},Fhr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},Whr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},Uhr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},Hhr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},jhr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},zhr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},Khr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},Ghr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},Vhr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},Yhr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},$hr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},Qhr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},Jhr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},Zhr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},Xhr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},efr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},tfr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},rfr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},nfr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},afr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},ifr={name:"ADIL Devnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"Devnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"dadil",chainId:123456,networkId:123456,explorers:[{name:"ADIL Devnet Explorer",url:"https://devnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-devnet"},sfr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},standard:"none"}],testnet:!1,slug:"etnd-chain-s"},ofr={name:"Taiko (Alpha-2 Testnet)",chain:"ETH",icon:{url:"ipfs://QmWMUDmNHzCtism9dYK1JooerZJ4da6kGt67HAQmLiEykc",width:1001,height:1001,format:"png"},rpc:["https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.a2.taiko.xyz"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://taiko.xyz",shortName:"taiko-a2",chainId:167004,networkId:167004,explorers:[{name:"blockscout",url:"https://explorer.a2.taiko.xyz",standard:"EIP3091"}],testnet:!0,slug:"taiko-alpha-2-testnet"},cfr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},ufr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},lfr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},dfr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},pfr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},hfr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},ffr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},mfr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},yfr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"}}],testnet:!0,slug:"jellie"},gfr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},bfr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},vfr={name:"HashKey Chain Testnet",chain:"HashKey",rpc:["https://hashkey-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashkeychain/rpc"],faucets:["https://testnet.hashkeychain/faucet"],nativeCurrency:{name:"HashKey Token",symbol:"tHSK",decimals:18},infoURL:"https://www.hashkey.com",shortName:"hsktest",chainId:230315,networkId:230315,icon:{url:"ipfs://QmNU11AqYB2htrrSyBSP9ct7bPtuZTP7Hrz21PrEcB9nYE",width:1440,height:448,format:"png"},explorers:[{name:"HashKey Chain Testnet Explorer",url:"https://testnet.hashkeyscan.io",standard:"none"}],testnet:!0,slug:"hashkey-chain-testnet"},wfr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},xfr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},_fr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},Tfr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},Ifr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},Efr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},Cfr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},kfr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},Afr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},Pfr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},Sfr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},Rfr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!0,slug:"hapchain-testnet"},Mfr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},Nfr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},Bfr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},Dfr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"kekchain"},Lfr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},Ofr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},qfr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"arbitrum-goerli"},Ffr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},Wfr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},Ufr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},Hfr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},jfr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},zfr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},Kfr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"ethf",chain:"ETHF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://www.oklink.com/ethf",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},Gfr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},Vfr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},Yfr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},$fr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},Qfr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},Jfr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},Zfr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},Xfr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"octaspace"},emr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},tmr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},rmr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},nmr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},amr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},imr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},smr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},omr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},cmr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},umr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},lmr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},dmr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kiln"},pmr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},hmr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},fmr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},mmr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},ymr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"imversed"},gmr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!0,slug:"imversed-testnet"},bmr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},vmr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},wmr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},xmr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},_mr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Tmr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!1,slug:"hapchain"},Imr={name:"Quarix Testnet",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix-testnet",chainId:8888881,networkId:8888881,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!0,slug:"quarix-testnet"},Emr={name:"Quarix",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix",chainId:8888888,networkId:8888888,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"quarix"},Cmr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},kmr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},Amr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},Pmr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},Smr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:{url:"ipfs://bafkreiapaxokh2p4j7hg43ug2inomixiwrdhni4kpqazvqifssnez7efze",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"anduschain"},Rmr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},Mmr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},Nmr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},Bmr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},Dmr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},Lmr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},Omr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},qmr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},Fmr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},Wmr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},Umr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},Hmr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},jmr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},zmr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},Kmr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},Gmr={name:"T.E.A.M Blockchain",chain:"TEAM",icon:{url:"ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",width:248,height:248,format:"png"},rpc:["https://t-e-a-m-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.teamblockchain.team"],faucets:[],nativeCurrency:{name:"TEAM",symbol:"$TEAM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://teamblockchain.team",shortName:"team",chainId:88888888,networkId:88888888,explorers:[{name:"teamscan",url:"https://teamblockchain.team",standard:"EIP3091"}],testnet:!1,slug:"t-e-a-m-blockchain"},Vmr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},Ymr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},$mr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},Qmr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},Jmr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},Zmr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},Xmr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},e0r={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},t0r={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},r0r={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},n0r={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},a0r={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},standard:"none"}],testnet:!1,slug:"cyberdecknet"},i0r={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmT5KKrpNt6duU8QfwaYw3xf4ifTBPtjahpWsMi3gsFmcS",width:440,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},s0r={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},o0r={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},c0r={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},u0r={name:"RaptorChain",chain:"RPTR",rpc:["https://raptorchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.raptorchain.io/web3"],faucets:[],nativeCurrency:{name:"Raptor",symbol:"RPTR",decimals:18},features:[{name:"EIP155"}],infoURL:"https://raptorchain.io",shortName:"rptr",chainId:1380996178,networkId:1380996178,icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},explorers:[{name:"RaptorChain Explorer",url:"https://explorer.raptorchain.io",icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"raptorchain"},l0r={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula"},d0r={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},p0r={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},h0r={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},f0r={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},m0r={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},y0r={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},g0r={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},b0r={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},v0r={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},w0r={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},x0r={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},_0r={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},T0r={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},I0r={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},E0r={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},C0r={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},k0r={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"ntity"},A0r={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},P0r={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},S0r={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},R0r={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},M0r={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},N0r={mode:"http"};function yet(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...N0r,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function B0r(r,e){return yet(r,e)[0]}function D0r(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function L0r(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var mv=wtr,Fx=xtr,Wx=_tr,Ux=Ttr,yv=Itr,Hx=Etr,jx=Ctr,zx=ktr,Kx=Atr,gv=Ptr,Gx=Str,Vx=Rtr,Yx=Mtr,$x=Ntr,Qx=Btr,Jx=Dtr,Zx=Ltr,Xx=Otr,e_=qtr,t_=Ftr,r_=Wtr,n_=Utr,a_=Htr,i_=jtr,s_=ztr,o_=Ktr,c_=Gtr,u_=Vtr,l_=Ytr,d_=$tr,p_=Qtr,h_=Jtr,f_=Ztr,m_=Xtr,y_=err,g_=trr,b_=rrr,v_=nrr,w_=arr,x_=irr,__=srr,T_=orr,I_=crr,E_=urr,C_=lrr,k_=drr,A_=prr,P_=hrr,S_=frr,R_=mrr,M_=yrr,N_=grr,B_=brr,D_=vrr,bv=wrr,L_=xrr,O_=_rr,q_=Trr,F_=Irr,W_=Err,U_=Crr,H_=krr,j_=Arr,z_=Prr,K_=Srr,G_=Rrr,V_=Mrr,Y_=Nrr,$_=Brr,Q_=Drr,J_=Lrr,Z_=Orr,X_=qrr,eT=Frr,tT=Wrr,rT=Urr,nT=Hrr,aT=jrr,iT=zrr,sT=Krr,oT=Grr,cT=Vrr,uT=Yrr,lT=$rr,dT=Qrr,pT=Jrr,hT=Zrr,fT=Xrr,mT=enr,yT=tnr,gT=rnr,bT=nnr,vT=anr,vv=inr,wT=snr,xT=onr,_T=cnr,TT=unr,IT=lnr,ET=dnr,CT=pnr,kT=hnr,AT=fnr,PT=mnr,ST=ynr,RT=gnr,MT=bnr,NT=vnr,BT=wnr,DT=xnr,LT=_nr,OT=Tnr,qT=Inr,FT=Enr,WT=Cnr,UT=knr,HT=Anr,jT=Pnr,zT=Snr,KT=Rnr,GT=Mnr,VT=Nnr,YT=Bnr,wv=Dnr,$T=Lnr,QT=Onr,JT=qnr,ZT=Fnr,XT=Wnr,e6=Unr,t6=Hnr,r6=jnr,n6=znr,a6=Knr,i6=Gnr,s6=Vnr,o6=Ynr,c6=$nr,u6=Qnr,l6=Jnr,d6=Znr,p6=Xnr,h6=ear,f6=tar,m6=rar,y6=nar,g6=aar,b6=iar,v6=sar,w6=oar,x6=car,_6=uar,T6=lar,xv=dar,I6=par,E6=har,C6=far,k6=mar,A6=yar,P6=gar,S6=bar,R6=war,M6=xar,N6=_ar,B6=Tar,D6=Iar,L6=Ear,O6=Car,q6=kar,F6=Aar,W6=Par,U6=Sar,H6=Rar,j6=Mar,z6=Nar,K6=Bar,G6=Dar,V6=Lar,Y6=Oar,$6=qar,Q6=Far,J6=War,Z6=Uar,X6=Har,eI=jar,_v=zar,tI=Kar,rI=Gar,nI=Var,aI=Yar,iI=$ar,sI=Qar,oI=Jar,cI=Zar,uI=Xar,lI=eir,dI=tir,pI=rir,hI=nir,fI=air,mI=iir,yI=sir,gI=oir,bI=cir,vI=uir,wI=lir,xI=dir,_I=pir,TI=hir,II=fir,EI=mir,CI=yir,kI=gir,AI=bir,PI=vir,SI=wir,RI=xir,MI=_ir,NI=Tir,BI=Iir,DI=Eir,LI=Cir,OI=kir,qI=Air,FI=Pir,WI=Sir,UI=Rir,HI=Mir,jI=Nir,zI=Bir,KI=Dir,GI=Lir,VI=Oir,YI=qir,$I=Fir,QI=Wir,JI=Uir,ZI=Hir,XI=jir,eE=zir,tE=Kir,rE=Gir,nE=Vir,aE=Yir,iE=$ir,sE=Qir,oE=Jir,cE=Zir,uE=Xir,lE=esr,dE=tsr,pE=rsr,hE=nsr,fE=asr,mE=isr,yE=ssr,gE=osr,bE=csr,vE=usr,wE=lsr,xE=dsr,_E=psr,TE=hsr,IE=fsr,EE=msr,CE=ysr,kE=gsr,AE=bsr,PE=vsr,SE=wsr,RE=xsr,ME=_sr,NE=Tsr,BE=Isr,DE=Esr,LE=Csr,OE=ksr,qE=Asr,FE=Psr,WE=Ssr,UE=Rsr,HE=Msr,jE=Nsr,zE=Bsr,KE=Dsr,GE=Lsr,VE=Osr,YE=qsr,$E=Fsr,QE=Wsr,JE=Usr,ZE=Hsr,XE=jsr,eC=zsr,tC=Ksr,rC=Gsr,nC=Vsr,aC=Ysr,iC=$sr,sC=Qsr,oC=Jsr,cC=Zsr,uC=Xsr,lC=eor,dC=tor,pC=ror,hC=nor,fC=aor,mC=ior,yC=sor,gC=oor,bC=cor,vC=uor,wC=lor,xC=dor,_C=por,TC=hor,IC=mor,EC=yor,CC=gor,kC=bor,AC=vor,PC=wor,SC=xor,RC=_or,MC=Tor,NC=Ior,BC=Eor,DC=Cor,LC=kor,OC=Aor,qC=Por,FC=Sor,WC=Ror,UC=Mor,HC=Nor,jC=Bor,zC=Dor,KC=Lor,GC=Oor,VC=qor,YC=For,$C=Wor,QC=Uor,JC=Hor,ZC=jor,XC=zor,e8=Kor,t8=Gor,r8=Vor,n8=Yor,a8=$or,i8=Qor,s8=Jor,o8=Zor,c8=Xor,u8=ecr,l8=tcr,d8=rcr,p8=ncr,h8=acr,f8=icr,m8=scr,y8=ocr,g8=ccr,b8=ucr,v8=lcr,w8=dcr,x8=pcr,_8=hcr,T8=fcr,I8=mcr,E8=ycr,C8=gcr,k8=bcr,A8=vcr,P8=wcr,S8=xcr,R8=_cr,M8=Tcr,N8=Icr,B8=Ecr,D8=Ccr,L8=kcr,O8=Acr,q8=Pcr,F8=Scr,W8=Rcr,U8=Mcr,H8=Ncr,j8=Bcr,z8=Dcr,K8=Lcr,G8=Ocr,V8=qcr,Y8=Fcr,$8=Wcr,Q8=Ucr,J8=Hcr,Z8=jcr,X8=zcr,e4=Kcr,t4=Gcr,r4=Vcr,n4=Ycr,a4=$cr,i4=Qcr,s4=Jcr,o4=Zcr,c4=Xcr,u4=eur,l4=tur,d4=rur,p4=nur,h4=aur,f4=iur,Tv=sur,m4=our,y4=cur,g4=uur,b4=lur,v4=dur,w4=pur,x4=hur,_4=fur,T4=mur,I4=yur,E4=gur,C4=bur,k4=vur,A4=wur,P4=xur,S4=_ur,R4=Tur,M4=Iur,N4=Eur,B4=Cur,D4=kur,L4=Aur,O4=Pur,q4=Sur,F4=Rur,W4=Mur,U4=Nur,H4=Bur,j4=Dur,z4=Lur,K4=Our,G4=qur,V4=Fur,Y4=Wur,$4=Uur,Q4=Hur,J4=jur,Z4=zur,X4=Kur,ek=Gur,tk=Vur,rk=Yur,nk=$ur,ak=Qur,ik=Jur,sk=Zur,ok=Xur,ck=elr,uk=tlr,lk=rlr,dk=nlr,pk=alr,hk=ilr,fk=slr,mk=olr,yk=clr,gk=ulr,bk=llr,vk=dlr,wk=plr,xk=hlr,_k=flr,Tk=mlr,Ik=ylr,Ek=glr,Ck=blr,kk=vlr,Ak=wlr,Pk=xlr,Sk=_lr,Rk=Tlr,Mk=Ilr,Nk=Elr,Bk=Clr,Dk=klr,Lk=Alr,Ok=Plr,qk=Slr,Fk=Rlr,Wk=Mlr,Uk=Nlr,Hk=Blr,jk=Dlr,zk=Llr,Kk=Olr,Gk=qlr,Vk=Flr,Yk=Wlr,$k=Ulr,Qk=Hlr,Jk=jlr,Zk=zlr,Xk=Klr,eA=Glr,tA=Vlr,rA=Ylr,nA=$lr,aA=Qlr,iA=Jlr,sA=Zlr,oA=Xlr,cA=edr,uA=tdr,lA=rdr,dA=ndr,pA=adr,hA=idr,fA=sdr,mA=odr,yA=cdr,gA=udr,bA=ldr,vA=ddr,wA=pdr,xA=hdr,_A=fdr,TA=mdr,IA=ydr,EA=gdr,CA=bdr,kA=vdr,AA=wdr,PA=xdr,SA=_dr,RA=Tdr,MA=Idr,NA=Edr,BA=Cdr,DA=kdr,LA=Adr,OA=Pdr,qA=Sdr,FA=Rdr,WA=Mdr,UA=Ndr,HA=Bdr,jA=Ddr,zA=Ldr,KA=Odr,GA=qdr,VA=Fdr,YA=Wdr,$A=Udr,QA=Hdr,JA=jdr,ZA=zdr,XA=Kdr,eP=Gdr,tP=Vdr,rP=Ydr,nP=$dr,aP=Qdr,iP=Jdr,sP=Zdr,oP=Xdr,cP=epr,uP=tpr,lP=rpr,dP=npr,pP=apr,hP=ipr,fP=spr,mP=opr,yP=cpr,gP=upr,bP=lpr,vP=dpr,wP=ppr,xP=hpr,_P=fpr,TP=mpr,IP=ypr,EP=gpr,CP=bpr,Iv=vpr,kP=wpr,AP=xpr,PP=_pr,SP=Tpr,RP=Ipr,Ev=Epr,Cv=Cpr,MP=kpr,NP=Apr,BP=Ppr,DP=Spr,LP=Rpr,OP=Mpr,qP=Npr,FP=Bpr,WP=Dpr,UP=Lpr,HP=Opr,jP=qpr,zP=Fpr,KP=Wpr,GP=Upr,VP=Hpr,YP=jpr,$P=zpr,QP=Kpr,JP=Gpr,ZP=Vpr,XP=Ypr,eS=$pr,tS=Qpr,rS=Jpr,nS=Zpr,aS=Xpr,iS=ehr,sS=thr,oS=rhr,cS=nhr,uS=ahr,lS=ihr,dS=shr,pS=ohr,hS=chr,fS=uhr,mS=lhr,yS=dhr,gS=phr,bS=hhr,vS=fhr,wS=mhr,xS=yhr,kv=ghr,_S=bhr,TS=vhr,IS=whr,ES=xhr,CS=_hr,kS=Thr,AS=Ihr,PS=Ehr,SS=Chr,RS=khr,MS=Ahr,NS=Phr,BS=Shr,DS=Rhr,LS=Mhr,OS=Nhr,qS=Bhr,FS=Dhr,WS=Lhr,US=Ohr,HS=qhr,jS=Fhr,zS=Whr,KS=Uhr,GS=Hhr,VS=jhr,YS=zhr,$S=Khr,QS=Ghr,JS=Vhr,ZS=Yhr,XS=$hr,e7=Qhr,t7=Jhr,r7=Zhr,n7=Xhr,a7=efr,i7=tfr,s7=rfr,o7=nfr,c7=afr,u7=ifr,l7=sfr,d7=ofr,p7=cfr,h7=ufr,f7=lfr,m7=dfr,y7=pfr,g7=hfr,b7=ffr,v7=mfr,w7=yfr,x7=gfr,_7=bfr,T7=vfr,I7=wfr,E7=xfr,C7=_fr,k7=Tfr,A7=Ifr,P7=Efr,S7=Cfr,R7=kfr,M7=Afr,N7=Pfr,B7=Sfr,D7=Rfr,L7=Mfr,O7=Nfr,q7=Bfr,F7=Dfr,W7=Lfr,U7=Ofr,Av=qfr,H7=Ffr,j7=Wfr,z7=Ufr,K7=Hfr,G7=jfr,V7=zfr,Y7=Kfr,$7=Gfr,Q7=Vfr,J7=Yfr,Z7=$fr,X7=Qfr,eR=Jfr,tR=Zfr,rR=Xfr,nR=emr,aR=tmr,iR=rmr,sR=nmr,oR=amr,cR=imr,uR=smr,lR=omr,dR=cmr,pR=umr,hR=lmr,fR=dmr,mR=pmr,yR=hmr,gR=fmr,bR=mmr,vR=ymr,wR=gmr,xR=bmr,_R=vmr,TR=wmr,IR=xmr,ER=_mr,CR=Tmr,kR=Imr,AR=Emr,PR=Cmr,SR=kmr,RR=Amr,MR=Pmr,NR=Smr,BR=Rmr,DR=Mmr,LR=Nmr,OR=Bmr,qR=Dmr,FR=Lmr,WR=Omr,UR=qmr,HR=Fmr,jR=Wmr,zR=Umr,KR=Hmr,GR=jmr,VR=zmr,YR=Kmr,$R=Gmr,QR=Vmr,JR=Ymr,ZR=$mr,XR=Qmr,e9=Jmr,t9=Zmr,r9=Xmr,n9=e0r,a9=t0r,i9=r0r,s9=n0r,o9=a0r,c9=i0r,u9=s0r,l9=o0r,d9=c0r,p9=u0r,h9=l0r,f9=d0r,m9=p0r,y9=h0r,g9=f0r,b9=m0r,v9=y0r,w9=g0r,x9=b0r,_9=v0r,T9=w0r,I9=x0r,E9=_0r,C9=T0r,k9=I0r,A9=E0r,P9=C0r,S9=k0r,R9=A0r,M9=P0r,N9=S0r,B9=R0r,Pv=M0r,O0r=[mv,yv,wv,kv,Iv,Av,gv,_v,bv,vv,xv,Tv,Cv,Ev,Pv],q0r=[mv,Fx,Wx,Ux,yv,Hx,jx,zx,Kx,gv,Gx,Vx,Yx,$x,Qx,Jx,Zx,Xx,e_,t_,r_,n_,a_,i_,s_,o_,c_,u_,l_,d_,p_,h_,f_,m_,y_,g_,b_,v_,w_,x_,__,T_,I_,E_,C_,k_,A_,P_,S_,R_,M_,N_,B_,D_,bv,L_,O_,q_,F_,W_,U_,H_,j_,z_,K_,G_,V_,Y_,$_,Q_,J_,Z_,X_,eT,tT,rT,nT,aT,iT,sT,oT,cT,uT,lT,dT,pT,hT,fT,mT,yT,gT,bT,vT,vv,wT,xT,_T,TT,IT,ET,CT,kT,AT,PT,ST,RT,MT,NT,BT,DT,LT,OT,qT,FT,WT,UT,HT,jT,zT,KT,GT,VT,YT,wv,$T,QT,JT,ZT,XT,e6,t6,r6,n6,a6,i6,s6,o6,c6,u6,l6,d6,p6,h6,f6,m6,y6,g6,b6,v6,w6,x6,_6,T6,xv,I6,E6,C6,k6,A6,P6,S6,R6,M6,N6,B6,D6,L6,O6,q6,F6,W6,U6,H6,j6,z6,K6,G6,V6,Y6,$6,Q6,J6,Z6,X6,eI,_v,tI,rI,nI,aI,iI,sI,oI,cI,uI,lI,dI,pI,hI,fI,mI,yI,gI,bI,vI,wI,xI,_I,TI,II,EI,CI,kI,AI,PI,SI,RI,MI,NI,BI,DI,LI,OI,qI,FI,WI,UI,HI,jI,zI,KI,GI,VI,YI,$I,QI,JI,ZI,XI,eE,tE,rE,nE,aE,iE,sE,oE,cE,uE,lE,dE,pE,hE,fE,mE,yE,gE,bE,vE,wE,xE,_E,TE,IE,EE,CE,kE,AE,PE,SE,RE,ME,NE,BE,DE,LE,OE,qE,FE,WE,UE,HE,jE,zE,KE,GE,VE,YE,$E,QE,JE,ZE,XE,eC,tC,rC,nC,aC,iC,sC,oC,cC,uC,lC,dC,pC,hC,fC,mC,yC,gC,bC,vC,wC,xC,_C,TC,IC,EC,CC,kC,AC,PC,SC,RC,MC,NC,BC,DC,LC,OC,qC,FC,WC,UC,HC,jC,zC,KC,GC,VC,YC,$C,QC,JC,ZC,XC,e8,t8,r8,n8,a8,i8,s8,o8,c8,u8,l8,d8,p8,h8,f8,m8,y8,g8,b8,v8,w8,x8,_8,T8,I8,E8,C8,k8,A8,P8,S8,R8,M8,N8,B8,D8,L8,O8,q8,F8,W8,U8,H8,j8,z8,K8,G8,V8,Y8,$8,Q8,J8,Z8,X8,e4,t4,r4,n4,a4,i4,s4,o4,c4,u4,l4,d4,p4,h4,f4,Tv,m4,y4,g4,b4,v4,w4,x4,_4,T4,I4,E4,C4,k4,A4,P4,S4,R4,M4,N4,B4,D4,L4,O4,q4,F4,W4,U4,H4,j4,z4,K4,G4,V4,Y4,$4,Q4,J4,Z4,X4,ek,tk,rk,nk,ak,ik,sk,ok,ck,uk,lk,dk,pk,hk,fk,mk,yk,gk,bk,vk,wk,xk,_k,Tk,Ik,Ek,Ck,kk,Ak,Pk,Sk,Rk,Mk,Nk,Bk,Dk,Lk,Ok,qk,Fk,Wk,Uk,Hk,jk,zk,Kk,Gk,Vk,Yk,$k,Qk,Jk,Zk,Xk,eA,tA,rA,nA,aA,iA,sA,oA,cA,uA,lA,dA,pA,hA,fA,mA,yA,gA,bA,vA,wA,xA,_A,TA,IA,EA,CA,kA,AA,PA,SA,RA,MA,NA,BA,DA,LA,OA,qA,FA,WA,UA,HA,jA,zA,KA,GA,VA,YA,$A,QA,JA,ZA,XA,eP,tP,rP,nP,aP,iP,sP,oP,cP,uP,lP,dP,pP,hP,fP,mP,yP,gP,bP,vP,wP,xP,_P,TP,IP,EP,CP,Iv,kP,AP,PP,SP,RP,Ev,Cv,MP,NP,BP,DP,LP,OP,qP,FP,WP,UP,HP,jP,zP,KP,GP,VP,YP,$P,QP,JP,ZP,XP,eS,tS,rS,nS,aS,iS,sS,oS,cS,uS,lS,dS,pS,hS,fS,mS,yS,gS,bS,vS,wS,xS,kv,_S,TS,IS,ES,CS,kS,AS,PS,SS,RS,MS,NS,BS,DS,LS,OS,qS,FS,WS,US,HS,jS,zS,KS,GS,VS,YS,$S,QS,JS,ZS,XS,e7,t7,r7,n7,a7,i7,s7,o7,c7,u7,l7,d7,p7,h7,f7,m7,y7,g7,b7,v7,w7,x7,_7,T7,I7,E7,C7,k7,A7,P7,S7,R7,M7,N7,B7,D7,L7,O7,q7,F7,W7,U7,Av,H7,j7,z7,K7,G7,V7,Y7,$7,Q7,J7,Z7,X7,eR,tR,rR,nR,aR,iR,sR,oR,cR,uR,lR,dR,pR,hR,fR,mR,yR,gR,bR,vR,wR,xR,_R,TR,IR,ER,CR,kR,AR,PR,SR,RR,MR,NR,BR,DR,LR,OR,qR,FR,WR,UR,HR,jR,zR,KR,GR,VR,YR,$R,QR,JR,ZR,XR,e9,t9,r9,n9,a9,i9,s9,o9,c9,u9,l9,d9,p9,h9,f9,m9,y9,g9,b9,v9,w9,x9,_9,T9,I9,E9,C9,k9,A9,P9,S9,R9,M9,N9,B9,Pv],P_e={[mv.chainId]:mv,[Fx.chainId]:Fx,[Wx.chainId]:Wx,[Ux.chainId]:Ux,[yv.chainId]:yv,[Hx.chainId]:Hx,[jx.chainId]:jx,[zx.chainId]:zx,[Kx.chainId]:Kx,[gv.chainId]:gv,[Gx.chainId]:Gx,[Vx.chainId]:Vx,[Yx.chainId]:Yx,[$x.chainId]:$x,[Qx.chainId]:Qx,[Jx.chainId]:Jx,[Zx.chainId]:Zx,[Xx.chainId]:Xx,[e_.chainId]:e_,[t_.chainId]:t_,[r_.chainId]:r_,[n_.chainId]:n_,[a_.chainId]:a_,[i_.chainId]:i_,[s_.chainId]:s_,[o_.chainId]:o_,[c_.chainId]:c_,[u_.chainId]:u_,[l_.chainId]:l_,[d_.chainId]:d_,[p_.chainId]:p_,[h_.chainId]:h_,[f_.chainId]:f_,[m_.chainId]:m_,[y_.chainId]:y_,[g_.chainId]:g_,[b_.chainId]:b_,[v_.chainId]:v_,[w_.chainId]:w_,[x_.chainId]:x_,[__.chainId]:__,[T_.chainId]:T_,[I_.chainId]:I_,[E_.chainId]:E_,[C_.chainId]:C_,[k_.chainId]:k_,[A_.chainId]:A_,[P_.chainId]:P_,[S_.chainId]:S_,[R_.chainId]:R_,[M_.chainId]:M_,[N_.chainId]:N_,[B_.chainId]:B_,[D_.chainId]:D_,[bv.chainId]:bv,[L_.chainId]:L_,[O_.chainId]:O_,[q_.chainId]:q_,[F_.chainId]:F_,[W_.chainId]:W_,[U_.chainId]:U_,[H_.chainId]:H_,[j_.chainId]:j_,[z_.chainId]:z_,[K_.chainId]:K_,[G_.chainId]:G_,[V_.chainId]:V_,[Y_.chainId]:Y_,[$_.chainId]:$_,[Q_.chainId]:Q_,[J_.chainId]:J_,[Z_.chainId]:Z_,[X_.chainId]:X_,[eT.chainId]:eT,[tT.chainId]:tT,[rT.chainId]:rT,[nT.chainId]:nT,[aT.chainId]:aT,[iT.chainId]:iT,[sT.chainId]:sT,[oT.chainId]:oT,[cT.chainId]:cT,[uT.chainId]:uT,[lT.chainId]:lT,[dT.chainId]:dT,[pT.chainId]:pT,[hT.chainId]:hT,[fT.chainId]:fT,[mT.chainId]:mT,[yT.chainId]:yT,[gT.chainId]:gT,[bT.chainId]:bT,[vT.chainId]:vT,[vv.chainId]:vv,[wT.chainId]:wT,[xT.chainId]:xT,[_T.chainId]:_T,[TT.chainId]:TT,[IT.chainId]:IT,[ET.chainId]:ET,[CT.chainId]:CT,[kT.chainId]:kT,[AT.chainId]:AT,[PT.chainId]:PT,[ST.chainId]:ST,[RT.chainId]:RT,[MT.chainId]:MT,[NT.chainId]:NT,[BT.chainId]:BT,[DT.chainId]:DT,[LT.chainId]:LT,[OT.chainId]:OT,[qT.chainId]:qT,[FT.chainId]:FT,[WT.chainId]:WT,[UT.chainId]:UT,[HT.chainId]:HT,[jT.chainId]:jT,[zT.chainId]:zT,[KT.chainId]:KT,[GT.chainId]:GT,[VT.chainId]:VT,[YT.chainId]:YT,[wv.chainId]:wv,[$T.chainId]:$T,[QT.chainId]:QT,[JT.chainId]:JT,[ZT.chainId]:ZT,[XT.chainId]:XT,[e6.chainId]:e6,[t6.chainId]:t6,[r6.chainId]:r6,[n6.chainId]:n6,[a6.chainId]:a6,[i6.chainId]:i6,[s6.chainId]:s6,[o6.chainId]:o6,[c6.chainId]:c6,[u6.chainId]:u6,[l6.chainId]:l6,[d6.chainId]:d6,[p6.chainId]:p6,[h6.chainId]:h6,[f6.chainId]:f6,[m6.chainId]:m6,[y6.chainId]:y6,[g6.chainId]:g6,[b6.chainId]:b6,[v6.chainId]:v6,[w6.chainId]:w6,[x6.chainId]:x6,[_6.chainId]:_6,[T6.chainId]:T6,[xv.chainId]:xv,[I6.chainId]:I6,[E6.chainId]:E6,[C6.chainId]:C6,[k6.chainId]:k6,[A6.chainId]:A6,[P6.chainId]:P6,[S6.chainId]:S6,[R6.chainId]:R6,[M6.chainId]:M6,[N6.chainId]:N6,[B6.chainId]:B6,[D6.chainId]:D6,[L6.chainId]:L6,[O6.chainId]:O6,[q6.chainId]:q6,[F6.chainId]:F6,[W6.chainId]:W6,[U6.chainId]:U6,[H6.chainId]:H6,[j6.chainId]:j6,[z6.chainId]:z6,[K6.chainId]:K6,[G6.chainId]:G6,[V6.chainId]:V6,[Y6.chainId]:Y6,[$6.chainId]:$6,[Q6.chainId]:Q6,[J6.chainId]:J6,[Z6.chainId]:Z6,[X6.chainId]:X6,[eI.chainId]:eI,[_v.chainId]:_v,[tI.chainId]:tI,[rI.chainId]:rI,[nI.chainId]:nI,[aI.chainId]:aI,[iI.chainId]:iI,[sI.chainId]:sI,[oI.chainId]:oI,[cI.chainId]:cI,[uI.chainId]:uI,[lI.chainId]:lI,[dI.chainId]:dI,[pI.chainId]:pI,[hI.chainId]:hI,[fI.chainId]:fI,[mI.chainId]:mI,[yI.chainId]:yI,[gI.chainId]:gI,[bI.chainId]:bI,[vI.chainId]:vI,[wI.chainId]:wI,[xI.chainId]:xI,[_I.chainId]:_I,[TI.chainId]:TI,[II.chainId]:II,[EI.chainId]:EI,[CI.chainId]:CI,[kI.chainId]:kI,[AI.chainId]:AI,[PI.chainId]:PI,[SI.chainId]:SI,[RI.chainId]:RI,[MI.chainId]:MI,[NI.chainId]:NI,[BI.chainId]:BI,[DI.chainId]:DI,[LI.chainId]:LI,[OI.chainId]:OI,[qI.chainId]:qI,[FI.chainId]:FI,[WI.chainId]:WI,[UI.chainId]:UI,[HI.chainId]:HI,[jI.chainId]:jI,[zI.chainId]:zI,[KI.chainId]:KI,[GI.chainId]:GI,[VI.chainId]:VI,[YI.chainId]:YI,[$I.chainId]:$I,[QI.chainId]:QI,[JI.chainId]:JI,[ZI.chainId]:ZI,[XI.chainId]:XI,[eE.chainId]:eE,[tE.chainId]:tE,[rE.chainId]:rE,[nE.chainId]:nE,[aE.chainId]:aE,[iE.chainId]:iE,[sE.chainId]:sE,[oE.chainId]:oE,[cE.chainId]:cE,[uE.chainId]:uE,[lE.chainId]:lE,[dE.chainId]:dE,[pE.chainId]:pE,[hE.chainId]:hE,[fE.chainId]:fE,[mE.chainId]:mE,[yE.chainId]:yE,[gE.chainId]:gE,[bE.chainId]:bE,[vE.chainId]:vE,[wE.chainId]:wE,[xE.chainId]:xE,[_E.chainId]:_E,[TE.chainId]:TE,[IE.chainId]:IE,[EE.chainId]:EE,[CE.chainId]:CE,[kE.chainId]:kE,[AE.chainId]:AE,[PE.chainId]:PE,[SE.chainId]:SE,[RE.chainId]:RE,[ME.chainId]:ME,[NE.chainId]:NE,[BE.chainId]:BE,[DE.chainId]:DE,[LE.chainId]:LE,[OE.chainId]:OE,[qE.chainId]:qE,[FE.chainId]:FE,[WE.chainId]:WE,[UE.chainId]:UE,[HE.chainId]:HE,[jE.chainId]:jE,[zE.chainId]:zE,[KE.chainId]:KE,[GE.chainId]:GE,[VE.chainId]:VE,[YE.chainId]:YE,[$E.chainId]:$E,[QE.chainId]:QE,[JE.chainId]:JE,[ZE.chainId]:ZE,[XE.chainId]:XE,[eC.chainId]:eC,[tC.chainId]:tC,[rC.chainId]:rC,[nC.chainId]:nC,[aC.chainId]:aC,[iC.chainId]:iC,[sC.chainId]:sC,[oC.chainId]:oC,[cC.chainId]:cC,[uC.chainId]:uC,[lC.chainId]:lC,[dC.chainId]:dC,[pC.chainId]:pC,[hC.chainId]:hC,[fC.chainId]:fC,[mC.chainId]:mC,[yC.chainId]:yC,[gC.chainId]:gC,[bC.chainId]:bC,[vC.chainId]:vC,[wC.chainId]:wC,[xC.chainId]:xC,[_C.chainId]:_C,[TC.chainId]:TC,[IC.chainId]:IC,[EC.chainId]:EC,[CC.chainId]:CC,[kC.chainId]:kC,[AC.chainId]:AC,[PC.chainId]:PC,[SC.chainId]:SC,[RC.chainId]:RC,[MC.chainId]:MC,[NC.chainId]:NC,[BC.chainId]:BC,[DC.chainId]:DC,[LC.chainId]:LC,[OC.chainId]:OC,[qC.chainId]:qC,[FC.chainId]:FC,[WC.chainId]:WC,[UC.chainId]:UC,[HC.chainId]:HC,[jC.chainId]:jC,[zC.chainId]:zC,[KC.chainId]:KC,[GC.chainId]:GC,[VC.chainId]:VC,[YC.chainId]:YC,[$C.chainId]:$C,[QC.chainId]:QC,[JC.chainId]:JC,[ZC.chainId]:ZC,[XC.chainId]:XC,[e8.chainId]:e8,[t8.chainId]:t8,[r8.chainId]:r8,[n8.chainId]:n8,[a8.chainId]:a8,[i8.chainId]:i8,[s8.chainId]:s8,[o8.chainId]:o8,[c8.chainId]:c8,[u8.chainId]:u8,[l8.chainId]:l8,[d8.chainId]:d8,[p8.chainId]:p8,[h8.chainId]:h8,[f8.chainId]:f8,[m8.chainId]:m8,[y8.chainId]:y8,[g8.chainId]:g8,[b8.chainId]:b8,[v8.chainId]:v8,[w8.chainId]:w8,[x8.chainId]:x8,[_8.chainId]:_8,[T8.chainId]:T8,[I8.chainId]:I8,[E8.chainId]:E8,[C8.chainId]:C8,[k8.chainId]:k8,[A8.chainId]:A8,[P8.chainId]:P8,[S8.chainId]:S8,[R8.chainId]:R8,[M8.chainId]:M8,[N8.chainId]:N8,[B8.chainId]:B8,[D8.chainId]:D8,[L8.chainId]:L8,[O8.chainId]:O8,[q8.chainId]:q8,[F8.chainId]:F8,[W8.chainId]:W8,[U8.chainId]:U8,[H8.chainId]:H8,[j8.chainId]:j8,[z8.chainId]:z8,[K8.chainId]:K8,[G8.chainId]:G8,[V8.chainId]:V8,[Y8.chainId]:Y8,[$8.chainId]:$8,[Q8.chainId]:Q8,[J8.chainId]:J8,[Z8.chainId]:Z8,[X8.chainId]:X8,[e4.chainId]:e4,[t4.chainId]:t4,[r4.chainId]:r4,[n4.chainId]:n4,[a4.chainId]:a4,[i4.chainId]:i4,[s4.chainId]:s4,[o4.chainId]:o4,[c4.chainId]:c4,[u4.chainId]:u4,[l4.chainId]:l4,[d4.chainId]:d4,[p4.chainId]:p4,[h4.chainId]:h4,[f4.chainId]:f4,[Tv.chainId]:Tv,[m4.chainId]:m4,[y4.chainId]:y4,[g4.chainId]:g4,[b4.chainId]:b4,[v4.chainId]:v4,[w4.chainId]:w4,[x4.chainId]:x4,[_4.chainId]:_4,[T4.chainId]:T4,[I4.chainId]:I4,[E4.chainId]:E4,[C4.chainId]:C4,[k4.chainId]:k4,[A4.chainId]:A4,[P4.chainId]:P4,[S4.chainId]:S4,[R4.chainId]:R4,[M4.chainId]:M4,[N4.chainId]:N4,[B4.chainId]:B4,[D4.chainId]:D4,[L4.chainId]:L4,[O4.chainId]:O4,[q4.chainId]:q4,[F4.chainId]:F4,[W4.chainId]:W4,[U4.chainId]:U4,[H4.chainId]:H4,[j4.chainId]:j4,[z4.chainId]:z4,[K4.chainId]:K4,[G4.chainId]:G4,[V4.chainId]:V4,[Y4.chainId]:Y4,[$4.chainId]:$4,[Q4.chainId]:Q4,[J4.chainId]:J4,[Z4.chainId]:Z4,[X4.chainId]:X4,[ek.chainId]:ek,[tk.chainId]:tk,[rk.chainId]:rk,[nk.chainId]:nk,[ak.chainId]:ak,[ik.chainId]:ik,[sk.chainId]:sk,[ok.chainId]:ok,[ck.chainId]:ck,[uk.chainId]:uk,[lk.chainId]:lk,[dk.chainId]:dk,[pk.chainId]:pk,[hk.chainId]:hk,[fk.chainId]:fk,[mk.chainId]:mk,[yk.chainId]:yk,[gk.chainId]:gk,[bk.chainId]:bk,[vk.chainId]:vk,[wk.chainId]:wk,[xk.chainId]:xk,[_k.chainId]:_k,[Tk.chainId]:Tk,[Ik.chainId]:Ik,[Ek.chainId]:Ek,[Ck.chainId]:Ck,[kk.chainId]:kk,[Ak.chainId]:Ak,[Pk.chainId]:Pk,[Sk.chainId]:Sk,[Rk.chainId]:Rk,[Mk.chainId]:Mk,[Nk.chainId]:Nk,[Bk.chainId]:Bk,[Dk.chainId]:Dk,[Lk.chainId]:Lk,[Ok.chainId]:Ok,[qk.chainId]:qk,[Fk.chainId]:Fk,[Wk.chainId]:Wk,[Uk.chainId]:Uk,[Hk.chainId]:Hk,[jk.chainId]:jk,[zk.chainId]:zk,[Kk.chainId]:Kk,[Gk.chainId]:Gk,[Vk.chainId]:Vk,[Yk.chainId]:Yk,[$k.chainId]:$k,[Qk.chainId]:Qk,[Jk.chainId]:Jk,[Zk.chainId]:Zk,[Xk.chainId]:Xk,[eA.chainId]:eA,[tA.chainId]:tA,[rA.chainId]:rA,[nA.chainId]:nA,[aA.chainId]:aA,[iA.chainId]:iA,[sA.chainId]:sA,[oA.chainId]:oA,[cA.chainId]:cA,[uA.chainId]:uA,[lA.chainId]:lA,[dA.chainId]:dA,[pA.chainId]:pA,[hA.chainId]:hA,[fA.chainId]:fA,[mA.chainId]:mA,[yA.chainId]:yA,[gA.chainId]:gA,[bA.chainId]:bA,[vA.chainId]:vA,[wA.chainId]:wA,[xA.chainId]:xA,[_A.chainId]:_A,[TA.chainId]:TA,[IA.chainId]:IA,[EA.chainId]:EA,[CA.chainId]:CA,[kA.chainId]:kA,[AA.chainId]:AA,[PA.chainId]:PA,[SA.chainId]:SA,[RA.chainId]:RA,[MA.chainId]:MA,[NA.chainId]:NA,[BA.chainId]:BA,[DA.chainId]:DA,[LA.chainId]:LA,[OA.chainId]:OA,[qA.chainId]:qA,[FA.chainId]:FA,[WA.chainId]:WA,[UA.chainId]:UA,[HA.chainId]:HA,[jA.chainId]:jA,[zA.chainId]:zA,[KA.chainId]:KA,[GA.chainId]:GA,[VA.chainId]:VA,[YA.chainId]:YA,[$A.chainId]:$A,[QA.chainId]:QA,[JA.chainId]:JA,[ZA.chainId]:ZA,[XA.chainId]:XA,[eP.chainId]:eP,[tP.chainId]:tP,[rP.chainId]:rP,[nP.chainId]:nP,[aP.chainId]:aP,[iP.chainId]:iP,[sP.chainId]:sP,[oP.chainId]:oP,[cP.chainId]:cP,[uP.chainId]:uP,[lP.chainId]:lP,[dP.chainId]:dP,[pP.chainId]:pP,[hP.chainId]:hP,[fP.chainId]:fP,[mP.chainId]:mP,[yP.chainId]:yP,[gP.chainId]:gP,[bP.chainId]:bP,[vP.chainId]:vP,[wP.chainId]:wP,[xP.chainId]:xP,[_P.chainId]:_P,[TP.chainId]:TP,[IP.chainId]:IP,[EP.chainId]:EP,[CP.chainId]:CP,[Iv.chainId]:Iv,[kP.chainId]:kP,[AP.chainId]:AP,[PP.chainId]:PP,[SP.chainId]:SP,[RP.chainId]:RP,[Ev.chainId]:Ev,[Cv.chainId]:Cv,[MP.chainId]:MP,[NP.chainId]:NP,[BP.chainId]:BP,[DP.chainId]:DP,[LP.chainId]:LP,[OP.chainId]:OP,[qP.chainId]:qP,[FP.chainId]:FP,[WP.chainId]:WP,[UP.chainId]:UP,[HP.chainId]:HP,[jP.chainId]:jP,[zP.chainId]:zP,[KP.chainId]:KP,[GP.chainId]:GP,[VP.chainId]:VP,[YP.chainId]:YP,[$P.chainId]:$P,[QP.chainId]:QP,[JP.chainId]:JP,[ZP.chainId]:ZP,[XP.chainId]:XP,[eS.chainId]:eS,[tS.chainId]:tS,[rS.chainId]:rS,[nS.chainId]:nS,[aS.chainId]:aS,[iS.chainId]:iS,[sS.chainId]:sS,[oS.chainId]:oS,[cS.chainId]:cS,[uS.chainId]:uS,[lS.chainId]:lS,[dS.chainId]:dS,[pS.chainId]:pS,[hS.chainId]:hS,[fS.chainId]:fS,[mS.chainId]:mS,[yS.chainId]:yS,[gS.chainId]:gS,[bS.chainId]:bS,[vS.chainId]:vS,[wS.chainId]:wS,[xS.chainId]:xS,[kv.chainId]:kv,[_S.chainId]:_S,[TS.chainId]:TS,[IS.chainId]:IS,[ES.chainId]:ES,[CS.chainId]:CS,[kS.chainId]:kS,[AS.chainId]:AS,[PS.chainId]:PS,[SS.chainId]:SS,[RS.chainId]:RS,[MS.chainId]:MS,[NS.chainId]:NS,[BS.chainId]:BS,[DS.chainId]:DS,[LS.chainId]:LS,[OS.chainId]:OS,[qS.chainId]:qS,[FS.chainId]:FS,[WS.chainId]:WS,[US.chainId]:US,[HS.chainId]:HS,[jS.chainId]:jS,[zS.chainId]:zS,[KS.chainId]:KS,[GS.chainId]:GS,[VS.chainId]:VS,[YS.chainId]:YS,[$S.chainId]:$S,[QS.chainId]:QS,[JS.chainId]:JS,[ZS.chainId]:ZS,[XS.chainId]:XS,[e7.chainId]:e7,[t7.chainId]:t7,[r7.chainId]:r7,[n7.chainId]:n7,[a7.chainId]:a7,[i7.chainId]:i7,[s7.chainId]:s7,[o7.chainId]:o7,[c7.chainId]:c7,[u7.chainId]:u7,[l7.chainId]:l7,[d7.chainId]:d7,[p7.chainId]:p7,[h7.chainId]:h7,[f7.chainId]:f7,[m7.chainId]:m7,[y7.chainId]:y7,[g7.chainId]:g7,[b7.chainId]:b7,[v7.chainId]:v7,[w7.chainId]:w7,[x7.chainId]:x7,[_7.chainId]:_7,[T7.chainId]:T7,[I7.chainId]:I7,[E7.chainId]:E7,[C7.chainId]:C7,[k7.chainId]:k7,[A7.chainId]:A7,[P7.chainId]:P7,[S7.chainId]:S7,[R7.chainId]:R7,[M7.chainId]:M7,[N7.chainId]:N7,[B7.chainId]:B7,[D7.chainId]:D7,[L7.chainId]:L7,[O7.chainId]:O7,[q7.chainId]:q7,[F7.chainId]:F7,[W7.chainId]:W7,[U7.chainId]:U7,[Av.chainId]:Av,[H7.chainId]:H7,[j7.chainId]:j7,[z7.chainId]:z7,[K7.chainId]:K7,[G7.chainId]:G7,[V7.chainId]:V7,[Y7.chainId]:Y7,[$7.chainId]:$7,[Q7.chainId]:Q7,[J7.chainId]:J7,[Z7.chainId]:Z7,[X7.chainId]:X7,[eR.chainId]:eR,[tR.chainId]:tR,[rR.chainId]:rR,[nR.chainId]:nR,[aR.chainId]:aR,[iR.chainId]:iR,[sR.chainId]:sR,[oR.chainId]:oR,[cR.chainId]:cR,[uR.chainId]:uR,[lR.chainId]:lR,[dR.chainId]:dR,[pR.chainId]:pR,[hR.chainId]:hR,[fR.chainId]:fR,[mR.chainId]:mR,[yR.chainId]:yR,[gR.chainId]:gR,[bR.chainId]:bR,[vR.chainId]:vR,[wR.chainId]:wR,[xR.chainId]:xR,[_R.chainId]:_R,[TR.chainId]:TR,[IR.chainId]:IR,[ER.chainId]:ER,[CR.chainId]:CR,[kR.chainId]:kR,[AR.chainId]:AR,[PR.chainId]:PR,[SR.chainId]:SR,[RR.chainId]:RR,[MR.chainId]:MR,[NR.chainId]:NR,[BR.chainId]:BR,[DR.chainId]:DR,[LR.chainId]:LR,[OR.chainId]:OR,[qR.chainId]:qR,[FR.chainId]:FR,[WR.chainId]:WR,[UR.chainId]:UR,[HR.chainId]:HR,[jR.chainId]:jR,[zR.chainId]:zR,[KR.chainId]:KR,[GR.chainId]:GR,[VR.chainId]:VR,[YR.chainId]:YR,[$R.chainId]:$R,[QR.chainId]:QR,[JR.chainId]:JR,[ZR.chainId]:ZR,[XR.chainId]:XR,[e9.chainId]:e9,[t9.chainId]:t9,[r9.chainId]:r9,[n9.chainId]:n9,[a9.chainId]:a9,[i9.chainId]:i9,[s9.chainId]:s9,[o9.chainId]:o9,[c9.chainId]:c9,[u9.chainId]:u9,[l9.chainId]:l9,[d9.chainId]:d9,[p9.chainId]:p9,[h9.chainId]:h9,[f9.chainId]:f9,[m9.chainId]:m9,[y9.chainId]:y9,[g9.chainId]:g9,[b9.chainId]:b9,[v9.chainId]:v9,[w9.chainId]:w9,[x9.chainId]:x9,[_9.chainId]:_9,[T9.chainId]:T9,[I9.chainId]:I9,[E9.chainId]:E9,[C9.chainId]:C9,[k9.chainId]:k9,[A9.chainId]:A9,[P9.chainId]:P9,[S9.chainId]:S9,[R9.chainId]:R9,[M9.chainId]:M9,[N9.chainId]:N9,[B9.chainId]:B9,[Pv.chainId]:Pv},get={[mv.slug]:mv.chainId,[Fx.slug]:Fx.chainId,[Wx.slug]:Wx.chainId,[Ux.slug]:Ux.chainId,[yv.slug]:yv.chainId,[Hx.slug]:Hx.chainId,[jx.slug]:jx.chainId,[zx.slug]:zx.chainId,[Kx.slug]:Kx.chainId,[gv.slug]:gv.chainId,[Gx.slug]:Gx.chainId,[Vx.slug]:Vx.chainId,[Yx.slug]:Yx.chainId,[$x.slug]:$x.chainId,[Qx.slug]:Qx.chainId,[Jx.slug]:Jx.chainId,[Zx.slug]:Zx.chainId,[Xx.slug]:Xx.chainId,[e_.slug]:e_.chainId,[t_.slug]:t_.chainId,[r_.slug]:r_.chainId,[n_.slug]:n_.chainId,[a_.slug]:a_.chainId,[i_.slug]:i_.chainId,[s_.slug]:s_.chainId,[o_.slug]:o_.chainId,[c_.slug]:c_.chainId,[u_.slug]:u_.chainId,[l_.slug]:l_.chainId,[d_.slug]:d_.chainId,[p_.slug]:p_.chainId,[h_.slug]:h_.chainId,[f_.slug]:f_.chainId,[m_.slug]:m_.chainId,[y_.slug]:y_.chainId,[g_.slug]:g_.chainId,[b_.slug]:b_.chainId,[v_.slug]:v_.chainId,[w_.slug]:w_.chainId,[x_.slug]:x_.chainId,[__.slug]:__.chainId,[T_.slug]:T_.chainId,[I_.slug]:I_.chainId,[E_.slug]:E_.chainId,[C_.slug]:C_.chainId,[k_.slug]:k_.chainId,[A_.slug]:A_.chainId,[P_.slug]:P_.chainId,[S_.slug]:S_.chainId,[R_.slug]:R_.chainId,[M_.slug]:M_.chainId,[N_.slug]:N_.chainId,[B_.slug]:B_.chainId,[D_.slug]:D_.chainId,[bv.slug]:bv.chainId,[L_.slug]:L_.chainId,[O_.slug]:O_.chainId,[q_.slug]:q_.chainId,[F_.slug]:F_.chainId,[W_.slug]:W_.chainId,[U_.slug]:U_.chainId,[H_.slug]:H_.chainId,[j_.slug]:j_.chainId,[z_.slug]:z_.chainId,[K_.slug]:K_.chainId,[G_.slug]:G_.chainId,[V_.slug]:V_.chainId,[Y_.slug]:Y_.chainId,[$_.slug]:$_.chainId,[Q_.slug]:Q_.chainId,[J_.slug]:J_.chainId,[Z_.slug]:Z_.chainId,[X_.slug]:X_.chainId,[eT.slug]:eT.chainId,[tT.slug]:tT.chainId,[rT.slug]:rT.chainId,[nT.slug]:nT.chainId,[aT.slug]:aT.chainId,[iT.slug]:iT.chainId,[sT.slug]:sT.chainId,[oT.slug]:oT.chainId,[cT.slug]:cT.chainId,[uT.slug]:uT.chainId,[lT.slug]:lT.chainId,[dT.slug]:dT.chainId,[pT.slug]:pT.chainId,[hT.slug]:hT.chainId,[fT.slug]:fT.chainId,[mT.slug]:mT.chainId,[yT.slug]:yT.chainId,[gT.slug]:gT.chainId,[bT.slug]:bT.chainId,[vT.slug]:vT.chainId,[vv.slug]:vv.chainId,[wT.slug]:wT.chainId,[xT.slug]:xT.chainId,[_T.slug]:_T.chainId,[TT.slug]:TT.chainId,[IT.slug]:IT.chainId,[ET.slug]:ET.chainId,[CT.slug]:CT.chainId,[kT.slug]:kT.chainId,[AT.slug]:AT.chainId,[PT.slug]:PT.chainId,[ST.slug]:ST.chainId,[RT.slug]:RT.chainId,[MT.slug]:MT.chainId,[NT.slug]:NT.chainId,[BT.slug]:BT.chainId,[DT.slug]:DT.chainId,[LT.slug]:LT.chainId,[OT.slug]:OT.chainId,[qT.slug]:qT.chainId,[FT.slug]:FT.chainId,[WT.slug]:WT.chainId,[UT.slug]:UT.chainId,[HT.slug]:HT.chainId,[jT.slug]:jT.chainId,[zT.slug]:zT.chainId,[KT.slug]:KT.chainId,[GT.slug]:GT.chainId,[VT.slug]:VT.chainId,[YT.slug]:YT.chainId,[wv.slug]:wv.chainId,[$T.slug]:$T.chainId,[QT.slug]:QT.chainId,[JT.slug]:JT.chainId,[ZT.slug]:ZT.chainId,[XT.slug]:XT.chainId,[e6.slug]:e6.chainId,[t6.slug]:t6.chainId,[r6.slug]:r6.chainId,[n6.slug]:n6.chainId,[a6.slug]:a6.chainId,[i6.slug]:i6.chainId,[s6.slug]:s6.chainId,[o6.slug]:o6.chainId,[c6.slug]:c6.chainId,[u6.slug]:u6.chainId,[l6.slug]:l6.chainId,[d6.slug]:d6.chainId,[p6.slug]:p6.chainId,[h6.slug]:h6.chainId,[f6.slug]:f6.chainId,[m6.slug]:m6.chainId,[y6.slug]:y6.chainId,[g6.slug]:g6.chainId,[b6.slug]:b6.chainId,[v6.slug]:v6.chainId,[w6.slug]:w6.chainId,[x6.slug]:x6.chainId,[_6.slug]:_6.chainId,[T6.slug]:T6.chainId,[xv.slug]:xv.chainId,[I6.slug]:I6.chainId,[E6.slug]:E6.chainId,[C6.slug]:C6.chainId,[k6.slug]:k6.chainId,[A6.slug]:A6.chainId,[P6.slug]:P6.chainId,[S6.slug]:S6.chainId,[R6.slug]:R6.chainId,[M6.slug]:M6.chainId,[N6.slug]:N6.chainId,[B6.slug]:B6.chainId,[D6.slug]:D6.chainId,[L6.slug]:L6.chainId,[O6.slug]:O6.chainId,[q6.slug]:q6.chainId,[F6.slug]:F6.chainId,[W6.slug]:W6.chainId,[U6.slug]:U6.chainId,[H6.slug]:H6.chainId,[j6.slug]:j6.chainId,[z6.slug]:z6.chainId,[K6.slug]:K6.chainId,[G6.slug]:G6.chainId,[V6.slug]:V6.chainId,[Y6.slug]:Y6.chainId,[$6.slug]:$6.chainId,[Q6.slug]:Q6.chainId,[J6.slug]:J6.chainId,[Z6.slug]:Z6.chainId,[X6.slug]:X6.chainId,[eI.slug]:eI.chainId,[_v.slug]:_v.chainId,[tI.slug]:tI.chainId,[rI.slug]:rI.chainId,[nI.slug]:nI.chainId,[aI.slug]:aI.chainId,[iI.slug]:iI.chainId,[sI.slug]:sI.chainId,[oI.slug]:oI.chainId,[cI.slug]:cI.chainId,[uI.slug]:uI.chainId,[lI.slug]:lI.chainId,[dI.slug]:dI.chainId,[pI.slug]:pI.chainId,[hI.slug]:hI.chainId,[fI.slug]:fI.chainId,[mI.slug]:mI.chainId,[yI.slug]:yI.chainId,[gI.slug]:gI.chainId,[bI.slug]:bI.chainId,[vI.slug]:vI.chainId,[wI.slug]:wI.chainId,[xI.slug]:xI.chainId,[_I.slug]:_I.chainId,[TI.slug]:TI.chainId,[II.slug]:II.chainId,[EI.slug]:EI.chainId,[CI.slug]:CI.chainId,[kI.slug]:kI.chainId,[AI.slug]:AI.chainId,[PI.slug]:PI.chainId,[SI.slug]:SI.chainId,[RI.slug]:RI.chainId,[MI.slug]:MI.chainId,[NI.slug]:NI.chainId,[BI.slug]:BI.chainId,[DI.slug]:DI.chainId,[LI.slug]:LI.chainId,[OI.slug]:OI.chainId,[qI.slug]:qI.chainId,[FI.slug]:FI.chainId,[WI.slug]:WI.chainId,[UI.slug]:UI.chainId,[HI.slug]:HI.chainId,[jI.slug]:jI.chainId,[zI.slug]:zI.chainId,[KI.slug]:KI.chainId,[GI.slug]:GI.chainId,[VI.slug]:VI.chainId,[YI.slug]:YI.chainId,[$I.slug]:$I.chainId,[QI.slug]:QI.chainId,[JI.slug]:JI.chainId,[ZI.slug]:ZI.chainId,[XI.slug]:XI.chainId,[eE.slug]:eE.chainId,[tE.slug]:tE.chainId,[rE.slug]:rE.chainId,[nE.slug]:nE.chainId,[aE.slug]:aE.chainId,[iE.slug]:iE.chainId,[sE.slug]:sE.chainId,[oE.slug]:oE.chainId,[cE.slug]:cE.chainId,[uE.slug]:uE.chainId,[lE.slug]:lE.chainId,[dE.slug]:dE.chainId,[pE.slug]:pE.chainId,[hE.slug]:hE.chainId,[fE.slug]:fE.chainId,[mE.slug]:mE.chainId,[yE.slug]:yE.chainId,[gE.slug]:gE.chainId,[bE.slug]:bE.chainId,[vE.slug]:vE.chainId,[wE.slug]:wE.chainId,[xE.slug]:xE.chainId,[_E.slug]:_E.chainId,[TE.slug]:TE.chainId,[IE.slug]:IE.chainId,[EE.slug]:EE.chainId,[CE.slug]:CE.chainId,[kE.slug]:kE.chainId,[AE.slug]:AE.chainId,[PE.slug]:PE.chainId,[SE.slug]:SE.chainId,[RE.slug]:RE.chainId,[ME.slug]:ME.chainId,[NE.slug]:NE.chainId,[BE.slug]:BE.chainId,[DE.slug]:DE.chainId,[LE.slug]:LE.chainId,[OE.slug]:OE.chainId,[qE.slug]:qE.chainId,[FE.slug]:FE.chainId,[WE.slug]:WE.chainId,[UE.slug]:UE.chainId,[HE.slug]:HE.chainId,[jE.slug]:jE.chainId,[zE.slug]:zE.chainId,[KE.slug]:KE.chainId,[GE.slug]:GE.chainId,[VE.slug]:VE.chainId,[YE.slug]:YE.chainId,[$E.slug]:$E.chainId,[QE.slug]:QE.chainId,[JE.slug]:JE.chainId,[ZE.slug]:ZE.chainId,[XE.slug]:XE.chainId,[eC.slug]:eC.chainId,[tC.slug]:tC.chainId,[rC.slug]:rC.chainId,[nC.slug]:nC.chainId,[aC.slug]:aC.chainId,[iC.slug]:iC.chainId,[sC.slug]:sC.chainId,[oC.slug]:oC.chainId,[cC.slug]:cC.chainId,[uC.slug]:uC.chainId,[lC.slug]:lC.chainId,[dC.slug]:dC.chainId,[pC.slug]:pC.chainId,[hC.slug]:hC.chainId,[fC.slug]:fC.chainId,[mC.slug]:mC.chainId,[yC.slug]:yC.chainId,[gC.slug]:gC.chainId,[bC.slug]:bC.chainId,[vC.slug]:vC.chainId,[wC.slug]:wC.chainId,[xC.slug]:xC.chainId,[_C.slug]:_C.chainId,[TC.slug]:TC.chainId,[IC.slug]:IC.chainId,[EC.slug]:EC.chainId,[CC.slug]:CC.chainId,[kC.slug]:kC.chainId,[AC.slug]:AC.chainId,[PC.slug]:PC.chainId,[SC.slug]:SC.chainId,[RC.slug]:RC.chainId,[MC.slug]:MC.chainId,[NC.slug]:NC.chainId,[BC.slug]:BC.chainId,[DC.slug]:DC.chainId,[LC.slug]:LC.chainId,[OC.slug]:OC.chainId,[qC.slug]:qC.chainId,[FC.slug]:FC.chainId,[WC.slug]:WC.chainId,[UC.slug]:UC.chainId,[HC.slug]:HC.chainId,[jC.slug]:jC.chainId,[zC.slug]:zC.chainId,[KC.slug]:KC.chainId,[GC.slug]:GC.chainId,[VC.slug]:VC.chainId,[YC.slug]:YC.chainId,[$C.slug]:$C.chainId,[QC.slug]:QC.chainId,[JC.slug]:JC.chainId,[ZC.slug]:ZC.chainId,[XC.slug]:XC.chainId,[e8.slug]:e8.chainId,[t8.slug]:t8.chainId,[r8.slug]:r8.chainId,[n8.slug]:n8.chainId,[a8.slug]:a8.chainId,[i8.slug]:i8.chainId,[s8.slug]:s8.chainId,[o8.slug]:o8.chainId,[c8.slug]:c8.chainId,[u8.slug]:u8.chainId,[l8.slug]:l8.chainId,[d8.slug]:d8.chainId,[p8.slug]:p8.chainId,[h8.slug]:h8.chainId,[f8.slug]:f8.chainId,[m8.slug]:m8.chainId,[y8.slug]:y8.chainId,[g8.slug]:g8.chainId,[b8.slug]:b8.chainId,[v8.slug]:v8.chainId,[w8.slug]:w8.chainId,[x8.slug]:x8.chainId,[_8.slug]:_8.chainId,[T8.slug]:T8.chainId,[I8.slug]:I8.chainId,[E8.slug]:E8.chainId,[C8.slug]:C8.chainId,[k8.slug]:k8.chainId,[A8.slug]:A8.chainId,[P8.slug]:P8.chainId,[S8.slug]:S8.chainId,[R8.slug]:R8.chainId,[M8.slug]:M8.chainId,[N8.slug]:N8.chainId,[B8.slug]:B8.chainId,[D8.slug]:D8.chainId,[L8.slug]:L8.chainId,[O8.slug]:O8.chainId,[q8.slug]:q8.chainId,[F8.slug]:F8.chainId,[W8.slug]:W8.chainId,[U8.slug]:U8.chainId,[H8.slug]:H8.chainId,[j8.slug]:j8.chainId,[z8.slug]:z8.chainId,[K8.slug]:K8.chainId,[G8.slug]:G8.chainId,[V8.slug]:V8.chainId,[Y8.slug]:Y8.chainId,[$8.slug]:$8.chainId,[Q8.slug]:Q8.chainId,[J8.slug]:J8.chainId,[Z8.slug]:Z8.chainId,[X8.slug]:X8.chainId,[e4.slug]:e4.chainId,[t4.slug]:t4.chainId,[r4.slug]:r4.chainId,[n4.slug]:n4.chainId,[a4.slug]:a4.chainId,[i4.slug]:i4.chainId,[s4.slug]:s4.chainId,[o4.slug]:o4.chainId,[c4.slug]:c4.chainId,[u4.slug]:u4.chainId,[l4.slug]:l4.chainId,[d4.slug]:d4.chainId,[p4.slug]:p4.chainId,[h4.slug]:h4.chainId,[f4.slug]:f4.chainId,[Tv.slug]:Tv.chainId,[m4.slug]:m4.chainId,[y4.slug]:y4.chainId,[g4.slug]:g4.chainId,[b4.slug]:b4.chainId,[v4.slug]:v4.chainId,[w4.slug]:w4.chainId,[x4.slug]:x4.chainId,[_4.slug]:_4.chainId,[T4.slug]:T4.chainId,[I4.slug]:I4.chainId,[E4.slug]:E4.chainId,[C4.slug]:C4.chainId,[k4.slug]:k4.chainId,[A4.slug]:A4.chainId,[P4.slug]:P4.chainId,[S4.slug]:S4.chainId,[R4.slug]:R4.chainId,[M4.slug]:M4.chainId,[N4.slug]:N4.chainId,[B4.slug]:B4.chainId,[D4.slug]:D4.chainId,[L4.slug]:L4.chainId,[O4.slug]:O4.chainId,[q4.slug]:q4.chainId,[F4.slug]:F4.chainId,[W4.slug]:W4.chainId,[U4.slug]:U4.chainId,[H4.slug]:H4.chainId,[j4.slug]:j4.chainId,[z4.slug]:z4.chainId,[K4.slug]:K4.chainId,[G4.slug]:G4.chainId,[V4.slug]:V4.chainId,[Y4.slug]:Y4.chainId,[$4.slug]:$4.chainId,[Q4.slug]:Q4.chainId,[J4.slug]:J4.chainId,[Z4.slug]:Z4.chainId,[X4.slug]:X4.chainId,[ek.slug]:ek.chainId,[tk.slug]:tk.chainId,[rk.slug]:rk.chainId,[nk.slug]:nk.chainId,[ak.slug]:ak.chainId,[ik.slug]:ik.chainId,[sk.slug]:sk.chainId,[ok.slug]:ok.chainId,[ck.slug]:ck.chainId,[uk.slug]:uk.chainId,[lk.slug]:lk.chainId,[dk.slug]:dk.chainId,[pk.slug]:pk.chainId,[hk.slug]:hk.chainId,[fk.slug]:fk.chainId,[mk.slug]:mk.chainId,[yk.slug]:yk.chainId,[gk.slug]:gk.chainId,[bk.slug]:bk.chainId,[vk.slug]:vk.chainId,[wk.slug]:wk.chainId,[xk.slug]:xk.chainId,[_k.slug]:_k.chainId,[Tk.slug]:Tk.chainId,[Ik.slug]:Ik.chainId,[Ek.slug]:Ek.chainId,[Ck.slug]:Ck.chainId,[kk.slug]:kk.chainId,[Ak.slug]:Ak.chainId,[Pk.slug]:Pk.chainId,[Sk.slug]:Sk.chainId,[Rk.slug]:Rk.chainId,[Mk.slug]:Mk.chainId,[Nk.slug]:Nk.chainId,[Bk.slug]:Bk.chainId,[Dk.slug]:Dk.chainId,[Lk.slug]:Lk.chainId,[Ok.slug]:Ok.chainId,[qk.slug]:qk.chainId,[Fk.slug]:Fk.chainId,[Wk.slug]:Wk.chainId,[Uk.slug]:Uk.chainId,[Hk.slug]:Hk.chainId,[jk.slug]:jk.chainId,[zk.slug]:zk.chainId,[Kk.slug]:Kk.chainId,[Gk.slug]:Gk.chainId,[Vk.slug]:Vk.chainId,[Yk.slug]:Yk.chainId,[$k.slug]:$k.chainId,[Qk.slug]:Qk.chainId,[Jk.slug]:Jk.chainId,[Zk.slug]:Zk.chainId,[Xk.slug]:Xk.chainId,[eA.slug]:eA.chainId,[tA.slug]:tA.chainId,[rA.slug]:rA.chainId,[nA.slug]:nA.chainId,[aA.slug]:aA.chainId,[iA.slug]:iA.chainId,[sA.slug]:sA.chainId,[oA.slug]:oA.chainId,[cA.slug]:cA.chainId,[uA.slug]:uA.chainId,[lA.slug]:lA.chainId,[dA.slug]:dA.chainId,[pA.slug]:pA.chainId,[hA.slug]:hA.chainId,[fA.slug]:fA.chainId,[mA.slug]:mA.chainId,[yA.slug]:yA.chainId,[gA.slug]:gA.chainId,[bA.slug]:bA.chainId,[vA.slug]:vA.chainId,[wA.slug]:wA.chainId,[xA.slug]:xA.chainId,[_A.slug]:_A.chainId,[TA.slug]:TA.chainId,[IA.slug]:IA.chainId,[EA.slug]:EA.chainId,[CA.slug]:CA.chainId,[kA.slug]:kA.chainId,[AA.slug]:AA.chainId,[PA.slug]:PA.chainId,[SA.slug]:SA.chainId,[RA.slug]:RA.chainId,[MA.slug]:MA.chainId,[NA.slug]:NA.chainId,[BA.slug]:BA.chainId,[DA.slug]:DA.chainId,[LA.slug]:LA.chainId,[OA.slug]:OA.chainId,[qA.slug]:qA.chainId,[FA.slug]:FA.chainId,[WA.slug]:WA.chainId,[UA.slug]:UA.chainId,[HA.slug]:HA.chainId,[jA.slug]:jA.chainId,[zA.slug]:zA.chainId,[KA.slug]:KA.chainId,[GA.slug]:GA.chainId,[VA.slug]:VA.chainId,[YA.slug]:YA.chainId,[$A.slug]:$A.chainId,[QA.slug]:QA.chainId,[JA.slug]:JA.chainId,[ZA.slug]:ZA.chainId,[XA.slug]:XA.chainId,[eP.slug]:eP.chainId,[tP.slug]:tP.chainId,[rP.slug]:rP.chainId,[nP.slug]:nP.chainId,[aP.slug]:aP.chainId,[iP.slug]:iP.chainId,[sP.slug]:sP.chainId,[oP.slug]:oP.chainId,[cP.slug]:cP.chainId,[uP.slug]:uP.chainId,[lP.slug]:lP.chainId,[dP.slug]:dP.chainId,[pP.slug]:pP.chainId,[hP.slug]:hP.chainId,[fP.slug]:fP.chainId,[mP.slug]:mP.chainId,[yP.slug]:yP.chainId,[gP.slug]:gP.chainId,[bP.slug]:bP.chainId,[vP.slug]:vP.chainId,[wP.slug]:wP.chainId,[xP.slug]:xP.chainId,[_P.slug]:_P.chainId,[TP.slug]:TP.chainId,[IP.slug]:IP.chainId,[EP.slug]:EP.chainId,[CP.slug]:CP.chainId,[Iv.slug]:Iv.chainId,[kP.slug]:kP.chainId,[AP.slug]:AP.chainId,[PP.slug]:PP.chainId,[SP.slug]:SP.chainId,[RP.slug]:RP.chainId,[Ev.slug]:Ev.chainId,[Cv.slug]:Cv.chainId,[MP.slug]:MP.chainId,[NP.slug]:NP.chainId,[BP.slug]:BP.chainId,[DP.slug]:DP.chainId,[LP.slug]:LP.chainId,[OP.slug]:OP.chainId,[qP.slug]:qP.chainId,[FP.slug]:FP.chainId,[WP.slug]:WP.chainId,[UP.slug]:UP.chainId,[HP.slug]:HP.chainId,[jP.slug]:jP.chainId,[zP.slug]:zP.chainId,[KP.slug]:KP.chainId,[GP.slug]:GP.chainId,[VP.slug]:VP.chainId,[YP.slug]:YP.chainId,[$P.slug]:$P.chainId,[QP.slug]:QP.chainId,[JP.slug]:JP.chainId,[ZP.slug]:ZP.chainId,[XP.slug]:XP.chainId,[eS.slug]:eS.chainId,[tS.slug]:tS.chainId,[rS.slug]:rS.chainId,[nS.slug]:nS.chainId,[aS.slug]:aS.chainId,[iS.slug]:iS.chainId,[sS.slug]:sS.chainId,[oS.slug]:oS.chainId,[cS.slug]:cS.chainId,[uS.slug]:uS.chainId,[lS.slug]:lS.chainId,[dS.slug]:dS.chainId,[pS.slug]:pS.chainId,[hS.slug]:hS.chainId,[fS.slug]:fS.chainId,[mS.slug]:mS.chainId,[yS.slug]:yS.chainId,[gS.slug]:gS.chainId,[bS.slug]:bS.chainId,[vS.slug]:vS.chainId,[wS.slug]:wS.chainId,[xS.slug]:xS.chainId,[kv.slug]:kv.chainId,[_S.slug]:_S.chainId,[TS.slug]:TS.chainId,[IS.slug]:IS.chainId,[ES.slug]:ES.chainId,[CS.slug]:CS.chainId,[kS.slug]:kS.chainId,[AS.slug]:AS.chainId,[PS.slug]:PS.chainId,[SS.slug]:SS.chainId,[RS.slug]:RS.chainId,[MS.slug]:MS.chainId,[NS.slug]:NS.chainId,[BS.slug]:BS.chainId,[DS.slug]:DS.chainId,[LS.slug]:LS.chainId,[OS.slug]:OS.chainId,[qS.slug]:qS.chainId,[FS.slug]:FS.chainId,[WS.slug]:WS.chainId,[US.slug]:US.chainId,[HS.slug]:HS.chainId,[jS.slug]:jS.chainId,[zS.slug]:zS.chainId,[KS.slug]:KS.chainId,[GS.slug]:GS.chainId,[VS.slug]:VS.chainId,[YS.slug]:YS.chainId,[$S.slug]:$S.chainId,[QS.slug]:QS.chainId,[JS.slug]:JS.chainId,[ZS.slug]:ZS.chainId,[XS.slug]:XS.chainId,[e7.slug]:e7.chainId,[t7.slug]:t7.chainId,[r7.slug]:r7.chainId,[n7.slug]:n7.chainId,[a7.slug]:a7.chainId,[i7.slug]:i7.chainId,[s7.slug]:s7.chainId,[o7.slug]:o7.chainId,[c7.slug]:c7.chainId,[u7.slug]:u7.chainId,[l7.slug]:l7.chainId,[d7.slug]:d7.chainId,[p7.slug]:p7.chainId,[h7.slug]:h7.chainId,[f7.slug]:f7.chainId,[m7.slug]:m7.chainId,[y7.slug]:y7.chainId,[g7.slug]:g7.chainId,[b7.slug]:b7.chainId,[v7.slug]:v7.chainId,[w7.slug]:w7.chainId,[x7.slug]:x7.chainId,[_7.slug]:_7.chainId,[T7.slug]:T7.chainId,[I7.slug]:I7.chainId,[E7.slug]:E7.chainId,[C7.slug]:C7.chainId,[k7.slug]:k7.chainId,[A7.slug]:A7.chainId,[P7.slug]:P7.chainId,[S7.slug]:S7.chainId,[R7.slug]:R7.chainId,[M7.slug]:M7.chainId,[N7.slug]:N7.chainId,[B7.slug]:B7.chainId,[D7.slug]:D7.chainId,[L7.slug]:L7.chainId,[O7.slug]:O7.chainId,[q7.slug]:q7.chainId,[F7.slug]:F7.chainId,[W7.slug]:W7.chainId,[U7.slug]:U7.chainId,[Av.slug]:Av.chainId,[H7.slug]:H7.chainId,[j7.slug]:j7.chainId,[z7.slug]:z7.chainId,[K7.slug]:K7.chainId,[G7.slug]:G7.chainId,[V7.slug]:V7.chainId,[Y7.slug]:Y7.chainId,[$7.slug]:$7.chainId,[Q7.slug]:Q7.chainId,[J7.slug]:J7.chainId,[Z7.slug]:Z7.chainId,[X7.slug]:X7.chainId,[eR.slug]:eR.chainId,[tR.slug]:tR.chainId,[rR.slug]:rR.chainId,[nR.slug]:nR.chainId,[aR.slug]:aR.chainId,[iR.slug]:iR.chainId,[sR.slug]:sR.chainId,[oR.slug]:oR.chainId,[cR.slug]:cR.chainId,[uR.slug]:uR.chainId,[lR.slug]:lR.chainId,[dR.slug]:dR.chainId,[pR.slug]:pR.chainId,[hR.slug]:hR.chainId,[fR.slug]:fR.chainId,[mR.slug]:mR.chainId,[yR.slug]:yR.chainId,[gR.slug]:gR.chainId,[bR.slug]:bR.chainId,[vR.slug]:vR.chainId,[wR.slug]:wR.chainId,[xR.slug]:xR.chainId,[_R.slug]:_R.chainId,[TR.slug]:TR.chainId,[IR.slug]:IR.chainId,[ER.slug]:ER.chainId,[CR.slug]:CR.chainId,[kR.slug]:kR.chainId,[AR.slug]:AR.chainId,[PR.slug]:PR.chainId,[SR.slug]:SR.chainId,[RR.slug]:RR.chainId,[MR.slug]:MR.chainId,[NR.slug]:NR.chainId,[BR.slug]:BR.chainId,[DR.slug]:DR.chainId,[LR.slug]:LR.chainId,[OR.slug]:OR.chainId,[qR.slug]:qR.chainId,[FR.slug]:FR.chainId,[WR.slug]:WR.chainId,[UR.slug]:UR.chainId,[HR.slug]:HR.chainId,[jR.slug]:jR.chainId,[zR.slug]:zR.chainId,[KR.slug]:KR.chainId,[GR.slug]:GR.chainId,[VR.slug]:VR.chainId,[YR.slug]:YR.chainId,[$R.slug]:$R.chainId,[QR.slug]:QR.chainId,[JR.slug]:JR.chainId,[ZR.slug]:ZR.chainId,[XR.slug]:XR.chainId,[e9.slug]:e9.chainId,[t9.slug]:t9.chainId,[r9.slug]:r9.chainId,[n9.slug]:n9.chainId,[a9.slug]:a9.chainId,[i9.slug]:i9.chainId,[s9.slug]:s9.chainId,[o9.slug]:o9.chainId,[c9.slug]:c9.chainId,[u9.slug]:u9.chainId,[l9.slug]:l9.chainId,[d9.slug]:d9.chainId,[p9.slug]:p9.chainId,[h9.slug]:h9.chainId,[f9.slug]:f9.chainId,[m9.slug]:m9.chainId,[y9.slug]:y9.chainId,[g9.slug]:g9.chainId,[b9.slug]:b9.chainId,[v9.slug]:v9.chainId,[w9.slug]:w9.chainId,[x9.slug]:x9.chainId,[_9.slug]:_9.chainId,[T9.slug]:T9.chainId,[I9.slug]:I9.chainId,[E9.slug]:E9.chainId,[C9.slug]:C9.chainId,[k9.slug]:k9.chainId,[A9.slug]:A9.chainId,[P9.slug]:P9.chainId,[S9.slug]:S9.chainId,[R9.slug]:R9.chainId,[M9.slug]:M9.chainId,[N9.slug]:N9.chainId,[B9.slug]:B9.chainId,[Pv.slug]:Pv.chainId};function F0r(r){return r in P_e}function W0r(r){return r in get}function U0r(r){if(F0r(r))return P_e[r];throw new Error(`Chain with chainId "${r}" not found`)}function H0r(r){if(W0r(r))return P_e[get[r]];throw new Error(`Chain with slug "${r}" not found`)}P.AcalaMandalaTestnet=gI;P.AcalaNetwork=LI;P.AcalaNetworkTestnet=vI;P.AdilDevnet=u7;P.AdilTestnet=ik;P.AerochainTestnet=OI;P.AiozNetwork=a6;P.AiozNetworkTestnet=w4;P.Airdao=WA;P.AirdaoTestnet=ZA;P.Aitd=dC;P.AitdTestnet=pC;P.Akroma=m7;P.Alaya=y7;P.AlayaDevTestnet=g7;P.AlphNetwork=Dk;P.Altcoinchain=N8;P.Alveychain=u4;P.Alyx=lC;P.AlyxChainTestnet=YT;P.Amana=_k;P.AmanaMixnet=TS;P.AmanaPrivnet=IS;P.AmanaTestnet=_S;P.AmbrosChain=$I;P.AmeChain=o6;P.Amstar=yC;P.AmstarTestnet=UE;P.Anduschain=NR;P.AnytypeEvmChain=AC;P.Aquachain=GR;P.Arbitrum=Iv;P.ArbitrumGoerli=Av;P.ArbitrumNova=kP;P.ArbitrumOnXdai=m6;P.ArbitrumRinkeby=U7;P.ArcologyTestnet=LT;P.Arevia=M8;P.ArmoniaEvaChain=XT;P.ArmoniaEvaChainTestnet=e6;P.ArtisSigma1=E7;P.ArtisTestnetTau1=C7;P.Astar=yI;P.Astra=gA;P.AstraTestnet=vA;P.Atelier=$C;P.Atheios=IC;P.Athereum=RP;P.AtoshiTestnet=n6;P.Aurora=u9;P.AuroraBetanet=d9;P.AuroraTestnet=l9;P.AutobahnNetwork=DP;P.AutonityBakerlooThamesTestnet=VR;P.AutonityPiccadillyThamesTestnet=YR;P.AuxiliumNetwork=UR;P.Avalanche=Cv;P.AvalancheFuji=Ev;P.Aves=vP;P.BandaiNamcoResearchVerse=VI;P.Base=Sk;P.BaseGoerli=RS;P.BeagleMessagingChain=_C;P.BeanecoSmartchain=Z7;P.BearNetworkChain=X7;P.BearNetworkChainTestnet=tR;P.BeoneChainTestnet=Ek;P.BeresheetBereevmTestnet=d8;P.Berylbit=Qk;P.BeverlyHills=DS;P.Bifrost=Y8;P.BifrostTestnet=FP;P.Binance=bv;P.BinanceTestnet=vv;P.Bitcichain=UC;P.BitcichainTestnet=HC;P.BitcoinEvm=C8;P.Bitgert=yP;P.Bitindi=v4;P.BitindiTestnet=b4;P.BitkubChain=vT;P.BitkubChainTestnet=sP;P.Bittex=s4;P.BittorrentChain=f6;P.BittorrentChainTestnet=CE;P.Bityuan=z8;P.BlackfortExchangeNetwork=R4;P.BlackfortExchangeNetworkTestnet=A4;P.BlgTestnet=AA;P.BlockchainGenesis=uA;P.BlockchainStation=AI;P.BlockchainStationTestnet=PI;P.BlocktonBlockchain=kk;P.Bloxberg=Vk;P.Bmc=u6;P.BmcTestnet=l6;P.BobaAvax=MP;P.BobaBnb=YP;P.BobaBnbTestnet=rA;P.BobaNetwork=P6;P.BobaNetworkGoerliTestnet=j8;P.BobaNetworkRinkebyTestnet=u_;P.BobabaseTestnet=cC;P.Bobabeam=oC;P.BobafujiTestnet=I4;P.Bobaopera=D6;P.BobaoperaTestnet=m4;P.BombChain=R8;P.BombChainTestnet=B8;P.BonNetwork=WC;P.Bosagora=_8;P.Brochain=ZS;P.Bronos=SE;P.BronosTestnet=PE;P.Btachain=EC;P.BtcixNetwork=KA;P.Callisto=HI;P.CallistoTestnet=VA;P.CalypsoNftHubSkale=f9;P.CalypsoNftHubSkaleTestnet=r9;P.Camelark=GA;P.CaminoCChain=aI;P.Candle=pI;P.Canto=ck;P.CantoTestnet=RI;P.CatecoinChain=TC;P.Celo=AP;P.CeloAlfajoresTestnet=BP;P.CeloBaklavaTestnet=nS;P.CennznetAzalea=$A;P.CennznetNikau=G8;P.CennznetRata=K8;P.ChainVerse=W4;P.Cheapeth=DI;P.ChiadoTestnet=lA;P.ChilizScovilleTestnet=NS;P.CicChain=mC;P.CicChainTestnet=tC;P.Cloudtx=pP;P.CloudtxTestnet=hP;P.Cloudwalk=i8;P.CloudwalkTestnet=a8;P.CloverTestnet=IE;P.ClvParachain=EE;P.Cmp=A7;P.CmpTestnet=V7;P.CoinexSmartChain=M_;P.CoinexSmartChainTestnet=N_;P.ColumbusTestNetwork=iI;P.CondorTestNetwork=p7;P.Condrieu=cS;P.ConfluxEspace=kE;P.ConfluxEspaceTestnet=Q_;P.ConstaTestnet=Q6;P.CoreBlockchain=OE;P.CoreBlockchainTestnet=LE;P.CreditSmartchain=MA;P.CronosBeta=s_;P.CronosTestnet=z6;P.Crossbell=c4;P.CryptoEmergency=d6;P.Cryptocoinpay=fA;P.CryptokylinTestnet=bT;P.Crystaleum=JS;P.CtexScanBlockchain=vC;P.CubeChain=BC;P.CubeChainTestnet=DC;P.Cyberdecknet=o9;P.Cybertrust=MS;P.DChain=zC;P.DarwiniaCrabNetwork=E_;P.DarwiniaNetwork=k_;P.DarwiniaPangolinTestnet=I_;P.DarwiniaPangoroTestnet=C_;P.Datahopper=I9;P.DaxChain=JT;P.DbchainTestnet=G_;P.Debank=BT;P.DebankTestnet=NT;P.DebounceSubnetTestnet=Q8;P.DecentralizedWeb=HT;P.DecimalSmartChain=eT;P.DecimalSmartChainTestnet=v7;P.DefichainEvmNetwork=FE;P.DefichainEvmNetworkTestnet=WE;P.Dehvo=RT;P.DexalotSubnet=z7;P.DexalotSubnetTestnet=j7;P.DexillaTestnet=KC;P.DexitNetwork=YI;P.DfkChain=zP;P.DfkChainTest=H6;P.DiodePrenet=Qx;P.DiodeTestnetStaging=Yx;P.DithereumTestnet=m_;P.Dogcoin=qE;P.DogcoinTestnet=Zk;P.Dogechain=t8;P.DogechainTestnet=mI;P.DokenSuperChain=rS;P.DosChain=dk;P.DosFujiSubnet=uC;P.DosTesnet=d4;P.DoubleAChain=sI;P.DoubleAChainTestnet=oI;P.DracNetwork=l4;P.DraconesFinancialServices=Pk;P.Dxchain=g_;P.DxchainTestnet=J_;P.Dyno=p4;P.DynoTestnet=h4;P.Ecoball=b8;P.EcoballTestnetEspuma=v8;P.Ecredits=iS;P.EcreditsTestnet=sS;P.EdexaTestnet=e8;P.EdgewareEdgeevm=l8;P.Ekta=XC;P.ElaDidSidechain=n_;P.ElaDidSidechainTestnet=a_;P.ElastosSmartChain=t_;P.ElastosSmartChainTestnet=r_;P.Eleanor=GC;P.EllaTheHeart=tk;P.Ellaism=j_;P.EluvioContentFabric=lR;P.Elysium=fC;P.ElysiumTestnet=hC;P.EmpireNetwork=o4;P.EnduranceSmartChain=II;P.Energi=TP;P.EnergiTestnet=WP;P.EnergyWebChain=_6;P.EnergyWebVoltaTestnet=yS;P.EnnothemProterozoic=A_;P.EnnothemTestnetPioneer=P_;P.Enterchain=$E;P.Enuls=OT;P.EnulsTestnet=qT;P.Eos=q_;P.Eraswap=D4;P.Ethereum=mv;P.EthereumClassic=W_;P.EthereumClassicTestnetKotti=Hx;P.EthereumClassicTestnetMorden=U_;P.EthereumClassicTestnetMordor=H_;P.EthereumFair=Y7;P.Ethergem=ZC;P.Etherinc=_T;P.EtherliteChain=ST;P.EthersocialNetwork=dP;P.EthoProtocol=dR;P.Etica=tS;P.EtndChainS=l7;P.EuropaSkaleChain=E9;P.Eurus=wE;P.EurusTestnet=JC;P.Evanesco=k8;P.EvanescoTestnet=GE;P.Evmos=$k;P.EvmosTestnet=Yk;P.EvriceNetwork=xE;P.Excelon=qR;P.ExcoincialChain=WR;P.ExcoincialChainVoltaTestnet=FR;P.ExosamaNetwork=w8;P.ExpanseNetwork=Fx;P.ExzoNetwork=QE;P.EzchainCChain=U8;P.EzchainCChainTestnet=H8;P.FXCoreNetwork=dI;P.Factory127=KT;P.FantasiaChain=GI;P.Fantom=xv;P.FantomTestnet=Tv;P.FastexChainTestnet=H7;P.Fibonacci=kA;P.Filecoin=O6;P.FilecoinButterflyTestnet=bR;P.FilecoinCalibrationTestnet=R7;P.FilecoinHyperspaceTestnet=$8;P.FilecoinLocalTestnet=jR;P.FilecoinWallabyTestnet=mP;P.Findora=T8;P.FindoraForge=E8;P.FindoraTestnet=I8;P.Firechain=lI;P.FirenzeTestNetwork=wS;P.Flachain=HR;P.Flana=Tk;P.FlanaMixnet=CS;P.FlanaPrivnet=kS;P.FlanaTestnet=ES;P.Flare=$x;P.FlareTestnetCoston=Jx;P.FlareTestnetCoston2=MT;P.Floripa=qP;P.Fncy=Z_;P.FncyTestnet=uR;P.FreightTrustNetwork=g6;P.Frenchain=NP;P.FrenchainTestnet=rI;P.FrontierOfDreamsTestnet=HA;P.Fuse=WT;P.FuseSparknet=UT;P.Fusion=gP;P.FusionTestnet=LP;P.Ganache=j4;P.GarizonStage0=fT;P.GarizonStage1=mT;P.GarizonStage2=yT;P.GarizonStage3=gT;P.GarizonTestnetStage0=JI;P.GarizonTestnetStage1=ZI;P.GarizonTestnetStage2=XI;P.GarizonTestnetStage3=eE;P.Gatechain=lT;P.GatechainTestnet=uT;P.GatherDevnetNetwork=a9;P.GatherNetwork=JR;P.GatherTestnetNetwork=n9;P.GearZeroNetwork=cI;P.GearZeroNetworkTestnet=P7;P.Genechain=iT;P.GenesisCoin=Jk;P.GenesisL1=l_;P.GenesisL1Testnet=o_;P.GiantMammoth=Gk;P.GitshockCartenzTestnet=OC;P.Gnosis=xT;P.Gochain=F_;P.GochainTestnet=fP;P.Godwoken=mS;P.GodwokenTestnetV1=fS;P.Goerli=yv;P.GoldSmartChain=Q4;P.GoldSmartChainTestnet=xS;P.GonChain=oA;P.Gooddata=f_;P.GooddataTestnet=h_;P.GraphlinqBlockchain=_I;P.Gton=yE;P.GtonTestnet=HP;P.Haic=FI;P.Halo=rC;P.HammerChain=iP;P.Hapchain=CR;P.HapchainTestnet=D7;P.HaqqChainTestnet=KP;P.HaqqNetwork=xA;P.HaradevTestnet=R9;P.HarmonyDevnetShard0=T9;P.HarmonyShard0=m9;P.HarmonyShard1=y9;P.HarmonyShard2=g9;P.HarmonyShard3=b9;P.HarmonyTestnetShard0=v9;P.HarmonyTestnetShard1=w9;P.HarmonyTestnetShard2=x9;P.HarmonyTestnetShard3=_9;P.Hashbit=wA;P.HashkeyChainTestnet=T7;P.HaymoTestnet=I7;P.HazlorTestnet=lk;P.Hedera=S6;P.HederaLocalnet=N6;P.HederaPreviewnet=M6;P.HederaTestnet=R6;P.HertzNetwork=oP;P.HighPerformanceBlockchain=k6;P.HikaNetworkTestnet=H4;P.HomeVerse=zA;P.HooSmartChain=$_;P.HooSmartChainTestnet=i6;P.HorizenYumaTestnet=CC;P.Htmlcoin=E4;P.HumanProtocol=c9;P.Humanode=L4;P.HuobiEcoChain=GT;P.HuobiEcoChainTestnet=I6;P.HyperonchainTestnet=Z6;P.Idchain=X_;P.IexecSidechain=VT;P.Imversed=vR;P.ImversedTestnet=wR;P.Iolite=DR;P.IoraChain=KE;P.IotexNetwork=C4;P.IotexNetworkTestnet=k4;P.IposNetwork=s9;P.IvarChain=BS;P.IvarChainTestnet=UA;P.J2oTaro=wP;P.Jellie=w7;P.JfinChain=r4;P.JibchainL1=Kk;P.JoysDigital=zR;P.JoysDigitalTestnet=QR;P.KaibaLightningChainTestnet=IT;P.Kardiachain=i_;P.KaruraNetwork=CI;P.KaruraNetworkTestnet=bI;P.KavaEvm=P8;P.KavaEvmTestnet=A8;P.Kcc=q6;P.KccTestnet=F6;P.Kekchain=F7;P.KekchainKektest=W7;P.Kerleano=MC;P.Kiln=fR;P.Kintsugi=hR;P.KlaytnCypress=Ck;P.KlaytnTestnetBaobab=gE;P.Klyntar=nk;P.Kortho=O8;P.Korthotest=Ak;P.Kovan=T_;P.LaTestnet=eI;P.Lachain=w6;P.LachainTestnet=x6;P.LambdaTestnet=LS;P.LatamBlockchainResilTestnet=s6;P.LightlinkPegasusTestnet=FC;P.LightlinkPhoenix=qC;P.Lightstreams=r6;P.LightstreamsTestnet=t6;P.LineaTestnet=QP;P.Lisinski=J6;P.LiveplexOracleevm=UP;P.Localhost=Pv;P.Loopnetwork=LA;P.LucidBlockchain=qI;P.LuckyNetwork=fE;P.Ludan=kC;P.LycanChain=SI;P.Maistestsubnet=KR;P.Mammoth=zk;P.Mantle=M4;P.MantleTestnet=N4;P.Map=XA;P.MapMakalu=b6;P.MaroBlockchain=Ok;P.Mas=_7;P.Mathchain=HE;P.MathchainTestnet=jE;P.MdglTestnet=fk;P.MemoSmartChain=pE;P.MeshnyanTestnet=xI;P.Metacodechain=i4;P.Metadium=Gx;P.MetadiumTestnet=Vx;P.Metadot=qA;P.MetadotTestnet=FA;P.MetalCChain=L7;P.MetalTahoeCChain=O7;P.Metaplayerone=x8;P.Meter=oT;P.MeterTestnet=cT;P.MetisAndromeda=RE;P.MetisGoerliTestnet=wI;P.MilkomedaA1=n8;P.MilkomedaA1Testnet=f7;P.MilkomedaC1=r8;P.MilkomedaC1Testnet=h7;P.MintmeComCoin=aP;P.Mix=tT;P.MixinVirtualMachine=gS;P.Mizana=Ik;P.MizanaMixnet=PS;P.MizanaPrivnet=SS;P.MizanaTestnet=AS;P.Moac=ME;P.MoacTestnet=y6;P.MolereumNetwork=B9;P.MoonbaseAlpha=iC;P.Moonbeam=nC;P.Moonriver=aC;P.Moonrock=sC;P.Multivac=aS;P.Mumbai=kv;P.MunodeTestnet=sE;P.Musicoin=IR;P.MyownTestnet=aA;P.MythicalChain=b7;P.Nahmii=q4;P.Nahmii3=y4;P.Nahmii3Testnet=g4;P.NahmiiTestnet=F4;P.Nebula=h9;P.NebulaStaging=i9;P.NebulaTestnet=kT;P.NeonEvm=XR;P.NeonEvmDevnet=ZR;P.NeonEvmTestnet=e9;P.NepalBlockchainNetwork=lE;P.Newton=_E;P.NewtonTestnet=vE;P.Nexi=T4;P.NovaNetwork=dT;P.Ntity=S9;P.Numbers=pA;P.NumbersTestnet=hA;P.OasisEmerald=SP;P.OasisEmeraldTestnet=PP;P.OasisSapphire=tP;P.OasisSapphireTestnet=rP;P.Oasischain=cP;P.Oasys=T6;P.Octaspace=rR;P.Oho=IP;P.Okbchain=h6;P.OkbchainTestnet=p6;P.OkexchainTestnet=z_;P.Okxchain=K_;P.OmPlatform=eC;P.Omax=L6;P.Omchain=QA;P.Oneledger=t9;P.OneledgerTestnetFrankenstein=k9;P.Ontology=O_;P.OntologyTestnet=z4;P.OnusChain=QC;P.OnusChainTestnet=jC;P.OoneChainTestnet=M7;P.Oort=oE;P.OortAscraeus=uE;P.OortDev=tA;P.OortHuygens=cE;P.OpalTestnetByUnique=Wk;P.Openchain=G7;P.OpenchainTestnet=BI;P.Openpiece=B_;P.OpenpieceTestnet=QT;P.Openvessel=_R;P.OpsideTestnet=eP;P.Optimism=gv;P.OptimismBedrockGoerliAlphaTestnet=uP;P.OptimismGoerli=_v;P.OptimismKovan=Y_;P.OptimismOnGnosis=B6;P.OpulentXBeta=EP;P.OrigintrailParachain=f8;P.OrlandoChain=V8;P.Oychain=zT;P.OychainTestnet=jT;P.P12Chain=YA;P.PaletteChain=RC;P.Palm=P9;P.PalmTestnet=A9;P.Pandoproject=n4;P.PandoprojectTestnet=a4;P.ParibuNet=e4;P.ParibuNetTestnet=t4;P.Pdc=N9;P.Pegglecoin=CP;P.PepchainChurchill=MR;P.PhiNetworkV1=_4;P.PhiNetworkV2=ZT;P.Phoenix=NA;P.PieceTestnet=lP;P.Pirl=C9;P.PixieChain=$4;P.PixieChainTestnet=EI;P.Planq=rk;P.Platon=x7;P.PlatonDevTestnet2=gR;P.PlianMain=yR;P.PlianSubchain1=ER;P.PlianTestnetMain=BR;P.PlianTestnetSubchain1=PR;P.PoaNetworkCore=wT;P.PoaNetworkSokol=rT;P.Pocrnet=F8;P.Polis=B7;P.PolisTestnet=N7;P.Polygon=wv;P.PolygonZkevm=NE;P.PolygonZkevmTestnet=bC;P.PolyjuiceTestnet=hS;P.Polysmartchain=Z4;P.Popcateum=YE;P.PortalFantasyChain=tE;P.PortalFantasyChainTest=WI;P.PosichainDevnetShard0=oR;P.PosichainDevnetShard1=cR;P.PosichainShard0=iR;P.PosichainTestnetShard0=sR;P.Primuschain=nT;P.ProofOfMemes=jA;P.ProtonTestnet=PT;P.ProxyNetworkTestnet=AE;P.Publicmint=u8;P.PublicmintDevnet=o8;P.PublicmintTestnet=c8;P.Pulsechain=$6;P.PulsechainTestnet=nE;P.PulsechainTestnetV2b=aE;P.PulsechainTestnetV3=iE;P.Q=xP;P.QTestnet=_P;P.Qeasyweb3Testnet=eA;P.Qitmeer=UI;P.QitmeerNetworkMixnext=wk;P.QitmeerNetworkPrivnet=xk;P.QitmeerNetworkTestnet=vk;P.Ql1=NI;P.Ql1Testnet=TR;P.QuadransBlockchain=mA;P.QuadransBlockchainTestnet=yA;P.Quarix=AR;P.QuarixTestnet=kR;P.Quarkblockchain=OR;P.QuarkchainDevnetRoot=XS;P.QuarkchainDevnetShard0=e7;P.QuarkchainDevnetShard1=t7;P.QuarkchainDevnetShard2=r7;P.QuarkchainDevnetShard3=n7;P.QuarkchainDevnetShard4=a7;P.QuarkchainDevnetShard5=i7;P.QuarkchainDevnetShard6=s7;P.QuarkchainDevnetShard7=o7;P.QuarkchainRoot=FS;P.QuarkchainShard0=WS;P.QuarkchainShard1=US;P.QuarkchainShard2=HS;P.QuarkchainShard3=jS;P.QuarkchainShard4=zS;P.QuarkchainShard5=KS;P.QuarkchainShard6=GS;P.QuarkchainShard7=VS;P.QuartzByUnique=Fk;P.Quokkacoin=g8;P.RabbitAnalogTestnetChain=NC;P.RangersProtocol=h8;P.RangersProtocolTestnetRobin=Xk;P.Raptorchain=p9;P.Realchain=FT;P.RedlightChain=W8;P.ReiChain=GP;P.ReiChainTestnet=VP;P.ReiNetwork=OP;P.Resincoin=bS;P.RikezaNetwork=gC;P.RikezaNetworkTestnet=SA;P.RiniaTestnet=rE;P.Rinkeby=Ux;P.RiseOfTheWarbotsTestnet=uk;P.Ropsten=Wx;P.Rsk=d_;P.RskTestnet=p_;P.Rupaya=nI;P.Saakuru=xR;P.SaakuruTestnet=k7;P.Sakura=TE;P.SanrChain=IA;P.SapphireByUnique=Uk;P.Sardis=jP;P.SardisTestnet=TA;P.Scolcoin=oS;P.ScolcoinWeichainTestnet=Y4;P.Scroll=$7;P.ScrollAlphaTestnet=Q7;P.ScrollPreAlphaTestnet=J7;P.SeedcoinNetwork=b_;P.Seele=c6;P.Sepolia=RR;P.Setheum=E6;P.ShardeumLiberty1X=mk;P.ShardeumLiberty2X=yk;P.ShardeumSphinx1X=gk;P.Sherpax=wC;P.SherpaxTestnet=xC;P.Shibachain=c_;P.Shiden=j6;P.Shyft=ak;P.ShyftTestnet=_A;P.SiberiumNetwork=c7;P.SingularityZero=CA;P.SingularityZeroTestnet=EA;P.SiriusnetV2=v6;P.Sjatsh=cA;P.SmartBitcoinCash=iA;P.SmartBitcoinCashTestnet=sA;P.SmartHostTeknolojiTestnet=zE;P.Smartmesh=LR;P.SocialSmartChain=S7;P.SongbirdCanaryNetwork=e_;P.Soterone=V_;P.Soverun=SR;P.SoverunTestnet=QS;P.Sps=RA;P.SpsTestnet=DA;P.StarSocialTestnet=kI;P.StepNetwork=XE;P.StepTestnet=PA;P.Stratos=y8;P.StratosTestnet=m8;P.StreamuxBlockchain=bk;P.SuperSmartChain=YC;P.SuperSmartChainTestnet=VC;P.SurBlockchainNetwork=C6;P.Susono=BA;P.SxNetwork=X6;P.SxNetworkTestnet=TI;P.Syscoin=L_;P.SyscoinRolluxTestnet=$P;P.SyscoinTanenbaumTestnet=U4;P.TEAMBlockchain=$R;P.TEkta=bE;P.TaikoAlpha2Testnet=d7;P.TaoNetwork=fI;P.Taraxa=jI;P.TaraxaTestnet=zI;P.Taycan=JA;P.TaycanTestnet=p8;P.Tbsi=PC;P.TbsiTestnet=SC;P.TbwgChain=y_;P.TcgVerse=D8;P.Techpay=q8;P.Teleport=pk;P.TeleportTestnet=hk;P.TelosEvm=x_;P.TelosEvmTestnet=__;P.Teslafunds=LC;P.Thaichain=jx;P.Thaichain20Thaifi=Zx;P.TheRootNetwork=sk;P.TheRootNetworkPorciniTestnet=ok;P.Theta=K6;P.ThetaAmberTestnet=V6;P.ThetaSapphireTestnet=G6;P.ThetaTestnet=Y6;P.ThinkiumChain0=uS;P.ThinkiumChain1=lS;P.ThinkiumChain103=pS;P.ThinkiumChain2=dS;P.ThinkiumTestnetChain0=JP;P.ThinkiumTestnetChain1=ZP;P.ThinkiumTestnetChain103=eS;P.ThinkiumTestnetChain2=XP;P.Thundercore=AT;P.ThundercoreTestnet=Xx;P.Tipboxcoin=q7;P.TipboxcoinTestnet=x4;P.TlchainNetwork=B4;P.TmyChain=Lk;P.TokiNetwork=Rk;P.TokiTestnet=Mk;P.TombChain=J4;P.Tomochain=pT;P.TomochainTestnet=hT;P.ToolGlobal=Nk;P.ToolGlobalTestnet=Bk;P.Top=hE;P.TopEvm=dE;P.Tres=V4;P.TresTestnet=G4;P.TrustEvmTestnet=OA;P.UbSmartChain=qS;P.UbSmartChainTestnet=OS;P.Ubiq=zx;P.UbiqNetworkTestnet=Kx;P.Ultron=ZE;P.UltronTestnet=JE;P.UnicornUltraTestnet=w_;P.Unique=qk;P.Uptick=DT;P.UzmiNetwork=O4;P.Valorbit=v_;P.Vchain=S8;P.Vechain=YS;P.VechainTestnet=$S;P.Vela1Chain=hI;P.VelasEvm=CT;P.Venidium=S4;P.VenidiumTestnet=P4;P.VentionSmartChain=vS;P.VentionSmartChainTestnet=MI;P.Vision=aR;P.VisionVpioneerTestChain=eR;P.VyvoSmartChain=jk;P.Wagmi=bA;P.Wanchain=QI;P.WanchainTestnet=mE;P.Web3gamesDevnet=ET;P.Web3gamesTestnet=TT;P.Web3q=U6;P.Web3qGalileo=X8;P.Web3qTestnet=Z8;P.Webchain=nP;P.WeelinkTestnet=K7;P.WegochainRubidium=K4;P.Wemix30=BE;P.Wemix30Testnet=DE;P.Woopchain=$T;P.WorldTradeTechnicalChain=VE;P.Xanachain=Hk;P.XdcApothemNetwork=R_;P.Xerom=pR;P.XinfinXdcNetwork=S_;P.Xodex=L8;P.XtSmartChain=uI;P.Yuanchain=f4;P.ZMainnet=s8;P.ZTestnet=nA;P.ZcoreTestnet=J8;P.ZeethChain=tI;P.ZeethChainDev=KI;P.Zeniq=M9;P.Zenith=aT;P.ZenithTestnetVilnius=sT;P.Zetachain=X4;P.ZetachainAthensTestnet=ek;P.Zhejiang=mR;P.ZilliqaEvmTestnet=bP;P.ZksyncEra=W6;P.ZksyncEraTestnet=A6;P.Zyx=D_;P._0xtade=dA;P._4goodnetwork=nR;P.allChains=q0r;P.configureChain=L0r;P.defaultChains=O0r;P.getChainByChainId=U0r;P.getChainBySlug=H0r;P.getChainRPC=B0r;P.getChainRPCs=yet;P.minimizeChain=D0r});var xet=_(S=>{"use strict";d();p();Object.defineProperty(S,"__esModule",{value:!0});var j0r={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},z0r={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},K0r={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},G0r={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},V0r={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"goerli"},Y0r={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},$0r={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},Q0r={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},J0r={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Z0r={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"optimism"},X0r={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},eyr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},tyr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},ryr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},nyr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},ayr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},iyr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},syr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},oyr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},cyr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},uyr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},lyr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},dyr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},pyr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},hyr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},fyr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},myr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},yyr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},gyr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},byr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},vyr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},wyr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},xyr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},_yr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},Tyr={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},Iyr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},Eyr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},Cyr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},kyr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},Ayr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},testnet:!1,slug:"telos-evm"},Pyr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},slug:"telos-evm-testnet"},Syr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},Ryr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},Myr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},Nyr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},Byr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},Dyr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},Lyr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},Oyr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},qyr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},Fyr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},Wyr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},Uyr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},Hyr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},jyr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"binance"},zyr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},Kyr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Gyr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Vyr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Yyr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},$yr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Qyr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},Jyr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Zyr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Xyr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},egr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},tgr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},rgr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},ngr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},agr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},igr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},sgr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy"},ogr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},cgr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},ugr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},lgr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},dgr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},pgr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},hgr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},fgr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},mgr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},ygr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},ggr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},bgr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},vgr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},wgr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},xgr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},_gr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},Tgr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},Igr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},Egr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},Cgr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},kgr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},Agr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"binance-testnet"},Pgr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},Sgr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"gnosis"},Rgr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},Mgr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},Ngr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},Bgr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},Dgr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},Lgr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},Ogr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},qgr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},Fgr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},Wgr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},Ugr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},Hgr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},jgr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},zgr={name:"Uptick Mainnet",chain:"Uptick",rpc:["https://uptick.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.uptick.network"],faucets:[],nativeCurrency:{name:"Uptick",symbol:"UPTICK",decimals:18},infoURL:"https://www.uptick.network",shortName:"auptick",chainId:117,networkId:117,icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},explorers:[{name:"Uptick Explorer",url:"https://evm-explorer.uptick.network",icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"uptick"},Kgr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Ggr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"enuls"},Vgr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},Ygr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},$gr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},Qgr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Jgr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},Zgr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Xgr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},e1r={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},t1r={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},r1r={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},n1r={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},a1r={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},i1r={name:"WoopChain Mainnet",chain:"WOOP",icon:{url:"ipfs://Qma7LpnkGjAN1dwL6VTXUYqzySNxjLg4br7J8UE4yZWYec",width:310,height:310,format:"png"},rpc:["https://woopchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.woop.ai/rpc"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"WoopCoin",symbol:"WOOC",decimals:18},infoURL:"https://wikiwoop.com",shortName:"woop",chainId:139,networkId:139,explorers:[{name:"wikiwoop",url:"https://explorer.wikiwoop.com",standard:"EIP3091"}],testnet:!1,slug:"woopchain"},s1r={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},o1r={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},c1r={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v2"},u1r={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},l1r={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},d1r={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},p1r={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},h1r={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},f1r={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},m1r={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},y1r={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},g1r={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},b1r={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},v1r={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},w1r={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},x1r={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},_1r={name:"OKBChain Testnet",chain:"okbchain",rpc:["https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://okbtestrpc.okbchain.org"],faucets:["https://www.oklink.com/okbc-test"],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",shortName:"tokb",chainId:195,networkId:195,explorers:[{name:"OKLink",url:"https://www.oklink.com/okbc-test",standard:"EIP3091"}],status:"active",testnet:!0,slug:"okbchain-testnet"},T1r={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},I1r={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},E1r={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},C1r={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},k1r={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},A1r={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},P1r={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},S1r={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},R1r={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},M1r={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},N1r={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},B1r={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"fantom"},D1r={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},L1r={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},O1r={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},q1r={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},F1r={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.era.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},W1r={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},U1r={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},H1r={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},j1r={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},z1r={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},K1r={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},G1r={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},V1r={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"omax"},Y1r={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},$1r={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Q1r={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},J1r={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.era.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zksync.io/"}]},testnet:!1,slug:"zksync-era"},Z1r={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},X1r={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!0,slug:"dfk-chain-test"},ebr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"shiden"},tbr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},rbr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},nbr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},abr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},ibr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},sbr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},obr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},cbr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},ubr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},lbr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},dbr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},pbr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"optimism-goerli"},hbr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},fbr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},mbr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},ybr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},gbr={name:"Columbus Test Network",chain:"CAM",rpc:["https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://columbus.camino.network/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},bbr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},vbr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},wbr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},xbr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},_br={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},Tbr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},Ibr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},Ebr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},Cbr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},kbr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},Abr={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"astar"},Pbr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},Sbr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},Rbr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},Mbr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!0,slug:"metis-goerli-testnet"},Nbr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},Bbr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},Dbr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},Lbr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},Obr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},qbr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},Fbr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},Wbr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},Ubr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},Hbr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},jbr={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"https://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},zbr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},Kbr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ql1"},Gbr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Vbr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},Ybr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},$br={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},Qbr={name:"Lucid Blockchain",chain:"Lucid",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},Jbr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Zbr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},Xbr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},evr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},tvr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},rvr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},nvr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},avr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},ivr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},svr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},ovr={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},cvr={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},uvr={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},lvr={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},dvr={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},pvr={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},hvr={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},fvr={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},mvr={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},yvr={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},gvr={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},bvr={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},vvr={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},wvr={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},xvr={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},_vr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},Tvr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},Ivr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},Evr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},Cvr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},kvr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},Avr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Pvr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},Svr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},Rvr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},Mvr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!1,slug:"eurus"},Nvr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},Bvr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},Dvr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},Lvr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},Ovr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},qvr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},Fvr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},Wvr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},Uvr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!0,slug:"bronos-testnet"},Hvr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!1,slug:"bronos"},jvr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!1,slug:"metis-andromeda"},zvr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Kvr={name:"Polygon zkEVM",title:"Polygon zkEVM",chain:"Polygon",rpc:["https://polygon-zkevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zkevm-rpc.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/polygon-zkevm",shortName:"zkevm",chainId:1101,networkId:1101,icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},explorers:[{name:"blockscout",url:"https://zkevm.polygonscan.com",icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zkevm-rpc.com"}]},testnet:!1,slug:"polygon-zkevm"},Gvr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},Vvr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Yvr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},$vr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Qvr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Jvr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Zvr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Xvr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},e2r={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},t2r={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},r2r={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},n2r={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},a2r={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},i2r={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},s2r={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},o2r={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"enterchain"},c2r={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},u2r={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!0,slug:"ultron-testnet"},l2r={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"ultron"},d2r={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},p2r={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},h2r={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},f2r={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},m2r={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},y2r={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},g2r={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},b2r={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},v2r={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},w2r={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},x2r={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"TDOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},_2r={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},T2r={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},I2r={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},E2r={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},C2r={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},k2r={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},A2r={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},P2r={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},S2r={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},testnet:!0,slug:"polygon-zkevm-testnet"},R2r={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},M2r={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},N2r={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},B2r={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},D2r={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},L2r={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},O2r={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},q2r={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},F2r={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},W2r={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},U2r={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},H2r={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},j2r={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!1,slug:"palette-chain"},z2r={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},K2r={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},G2r={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},V2r={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},Y2r={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},$2r={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Q2r={name:"Lightlink Phoenix Mainnet",chain:"Lightlink Phoenix Mainnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.phoenix.lightlink.io/rpc/v1","https://replicator-02.phoenix.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_phoenix",chainId:1890,networkId:1890,explorers:[{name:"phoenix",url:"https://phoenix.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"lightlink-phoenix"},J2r={name:"Lightlink Pegasus Testnet",chain:"Lightlink Pegasus Testnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-pegasus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.pegasus.lightlink.io/rpc/v1","https://replicator-02.pegasus.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:["https://pegasus-faucet-react.vercel.app"],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_pegasus",chainId:1891,networkId:1891,explorers:[{name:"pegasus",url:"https://pegasus.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"lightlink-pegasus-testnet"},Z2r={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},X2r={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},ewr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},twr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},rwr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},nwr={name:"Dexilla Testnet",chain:"Dexilla",rpc:["https://dexilla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dexilla.com"],faucets:[],icon:{url:"ipfs://QmUBveetVibvSEWQrjyxySgUphLuoMGSVLGmYnobt5FgEZ",width:512,height:512,format:"png"},nativeCurrency:{name:"Dexilla Native Token",symbol:"DXZ",decimals:18},infoURL:"https://dexilla.com",shortName:"Dexilla",chainId:1954,networkId:1954,explorers:[{name:"dos-mainnet",url:"https://exp.dexilla.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.dexilla.com"}]},testnet:!0,slug:"dexilla-testnet"},awr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},iwr={name:"Super Smart Chain Testnet",chain:"TSCS",rpc:["https://super-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.superexchain.com:8544"],faucets:["https://testnet.superexchain.com"],nativeCurrency:{name:"Super Chain Native Token",symbol:"TSCS",decimals:18},infoURL:"https://testnet.superexchain.com",shortName:"tscs",chainId:1969,networkId:1969,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://testnetscan.superexchain.com",standard:"EIP3091"}],testnet:!0,slug:"super-smart-chain-testnet"},swr={name:"Super Smart Chain Mainnet",chain:"SCS",rpc:["https://super-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://superexchain.com:8545"],faucets:[],nativeCurrency:{name:"Super Chain Native Token",symbol:"SCS",decimals:18},infoURL:"https://superexchain.com",shortName:"scs",chainId:1970,networkId:1970,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://scan.superexchain.com",standard:"EIP3091"}],testnet:!1,slug:"super-smart-chain"},owr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},cwr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},uwr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!0,slug:"eurus-testnet"},lwr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},dwr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ekta"},pwr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},hwr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},fwr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},mwr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},ywr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},gwr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},bwr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},vwr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},wwr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},xwr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},_wr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"edgeware-edgeevm"},Twr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},Iwr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!0,slug:"taycan-testnet"},Ewr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},Cwr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},kwr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},Awr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},Pwr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},Swr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},Rwr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},Mwr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},Nwr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},Bwr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bosagora"},Dwr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},Lwr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},Owr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},qwr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},standard:"none"}],testnet:!1,slug:"bitcoin-evm"},Fwr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},Wwr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!0,slug:"kava-evm-testnet"},Uwr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!1,slug:"kava-evm"},Hwr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},jwr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},zwr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Kwr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},standard:"none"}],testnet:!1,slug:"altcoinchain"},Gwr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Vwr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},Ywr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"}}],testnet:!1,slug:"xodex"},$wr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},Qwr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"techpay"},Jwr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Zwr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Xwr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},e5r={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},t5r={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},r5r={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},n5r={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},a5r={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},i5r={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},s5r={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},o5r={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},c5r={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},u5r={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},l5r={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},d5r={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},p5r={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},h5r={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},f5r={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},m5r={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},y5r={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},g5r={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},b5r={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},v5r={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},w5r={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},x5r={name:"AlveyChain Mainnet",chain:"ALV",icon:{url:"ipfs://QmSwczpPLBG6ob1a8WLoujthiCPzwEyJNp7WdKRi52qbWX",width:310,height:310,format:"png"},rpc:["https://alveychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alveychain.com/rpc","https://rpc2.alvey.io/rpc"],faucets:[],nativeCurrency:{name:"AlveyCoin",symbol:"ALV",decimals:18},infoURL:"https://alveyscan.com/rpc",shortName:"alv",chainId:3797,networkId:3797,explorers:[{name:"AlveyScan",url:"https://alveyscan.com",standard:"EIP3091"}],testnet:!1,slug:"alveychain"},_5r={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},T5r={name:"DOS Tesnet",chain:"DOS",rpc:["https://dos-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"dost",chainId:3939,networkId:3939,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan-Test",url:"https://test.doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"dos-tesnet"},I5r={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},E5r={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},C5r={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},k5r={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},A5r={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},P5r={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},S5r={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},R5r={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitindi.org","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},M5r={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}"," https://rpc-mainnet.bitindi.org","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},N5r={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},B5r={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},D5r={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v1"},L5r={name:"Nexi Mainnet",chain:"Nexi",icon:{url:"ipfs://bafybeifxqd7zel2m237kq5enavnh2s6cshaavswigogyvae2wevxy5k2ti",width:512,height:578,format:"png"},rpc:["https://nexi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chain.nexi.technology/","https://chain.nexilix.com","https://chain.nexi.evmnode.online"],faucets:[],nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},infoURL:"https://www.nexi.technology/",shortName:"nexi",chainId:4242,networkId:4242,slip44:2500,explorers:[{name:"nexiscan",url:"https://www.nexiscan.com",standard:"EIP3091"}],testnet:!1,slug:"nexi"},O5r={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},q5r={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},standard:"none"}],testnet:!1,slug:"htmlcoin"},F5r={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},W5r={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},U5r={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},H5r={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},j5r={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},z5r={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},K5r={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},G5r={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},V5r={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},Y5r={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},$5r={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},Q5r={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},J5r={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},Z5r={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},X5r={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},e3r={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},t3r={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},r3r={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},n3r={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},a3r={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},i3r={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},s3r={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"tres"},o3r={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},c3r={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},u3r={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},l3r={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},d3r={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},p3r={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},h3r={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},f3r={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},m3r={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},y3r={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},g3r={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},b3r={name:"ADIL Testnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.adilchain-rpc.io"],faucets:["https://testnet-faucet.adil-scan.io"],nativeCurrency:{name:"Testnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"tadil",chainId:7575,networkId:7575,explorers:[{name:"ADIL Testnet Explorer",url:"https://testnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!0,slug:"adil-testnet"},v3r={name:"The Root Network - Mainnet",chain:"TRN",rpc:["https://the-root-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://root.rootnet.live/archive","wss://root.rootnet.live/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-mainnet",chainId:7668,networkId:7668,explorers:[{name:"rootnet",url:"https://explorer.rootnet.live",standard:"none"}],testnet:!1,slug:"the-root-network"},w3r={name:"The Root Network - Porcini Testnet",chain:"TRN",rpc:["https://the-root-network-porcini-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://porcini.rootnet.app/archive","wss://porcini.rootnet.app/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-porcini",chainId:7672,networkId:7672,explorers:[{name:"rootnet",url:"https://explorer.rootnet.cloud",standard:"none"}],testnet:!0,slug:"the-root-network-porcini-testnet"},x3r={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},_3r={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},T3r={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},I3r={name:"DOS Chain",chain:"DOS",rpc:["https://dos-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"https://doschain.io",shortName:"dos",chainId:7979,networkId:7979,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan",url:"https://doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"dos-chain"},E3r={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!1,slug:"teleport"},C3r={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!0,slug:"teleport-testnet"},k3r={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},A3r={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},P3r={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},S3r={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},R3r={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},M3r={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},N3r={name:"Qitmeer Network Mixnext",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meermix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8132,networkId:8132,status:"incubating",testnet:!1,slug:"qitmeer-network-mixnext"},B3r={name:"Qitmeer Network Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meerpriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8133,networkId:8133,status:"incubating",testnet:!1,slug:"qitmeer-network-privnet"},D3r={name:"Amana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8134,networkId:8134,status:"incubating",testnet:!1,slug:"amana"},L3r={name:"Flana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8135,networkId:8135,status:"incubating",testnet:!1,slug:"flana"},O3r={name:"Mizana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8136,networkId:8136,status:"incubating",testnet:!1,slug:"mizana"},q3r={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},F3r={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},W3r={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},U3r={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},H3r={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},j3r={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},z3r={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},K3r={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},G3r={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},V3r={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},Y3r={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},$3r={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},Q3r={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},J3r={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Z3r={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},X3r={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},exr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},txr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},rxr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},nxr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"}}],testnet:!1,slug:"mammoth"},axr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},ixr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"}}],testnet:!1,slug:"giant-mammoth"},sxr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},oxr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!0,slug:"evmos-testnet"},cxr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!1,slug:"evmos"},uxr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},lxr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},dxr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},pxr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},hxr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},fxr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},mxr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},yxr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},gxr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},bxr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},vxr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},wxr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},xxr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},_xr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},Txr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},Ixr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},Exr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},Cxr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},kxr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},Axr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},Pxr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},Sxr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!1,slug:"astra"},Rxr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},Mxr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!0,slug:"astra-testnet"},Nxr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},Bxr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},Dxr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},Lxr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},Oxr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},qxr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},Fxr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},Wxr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},Uxr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},Hxr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},jxr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},zxr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},Kxr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Gxr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Vxr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},Yxr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},$xr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},Qxr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Jxr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Zxr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Xxr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},e_r={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},t_r={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},r_r={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},n_r={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},a_r={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},i_r={name:"Camelark Mainnet",chainId:20001,shortName:"Camelark",chain:"ETHW",icon:{url:"ipfs://QmbXDcCWHh8jExE1tAUkUKzXyTb8srpC75ogZq1QYkMMRW",width:128,height:128,format:"svg"},networkId:20001,nativeCurrency:{name:"EthereumPoW",symbol:"ETHW",decimals:18},rpc:["https://camelark.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-http-rpc.camelark.com"],faucets:[],explorers:[{name:"CamelarkScan",url:"https://scan.camelark.com",standard:"EIP3091"}],infoURL:"https://www.camelark.com",testnet:!1,slug:"camelark"},s_r={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},o_r={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},c_r={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},u_r={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},l_r={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!1,slug:"taycan"},d_r={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},p_r={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},h_r={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},f_r={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},m_r={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},y_r={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},g_r={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},b_r={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},v_r={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],testnet:!0,slug:"bitkub-chain-testnet"},w_r={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},x_r={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},__r={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},T_r={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},I_r={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},E_r={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},C_r={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},k_r={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},A_r={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},P_r={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bitgert"},S_r={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"fusion"},R_r={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},M_r={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"aves"},N_r={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:{url:"ipfs://QmdUYi8fjnvdM9iFQ7dwE2YvmhDtavSB3bKhCD2GhPxPks",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},B_r={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"q"},D_r={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},L_r={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},O_r={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"oho"},q_r={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},F_r={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},W_r={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"arbitrum"},U_r={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},H_r={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},j_r={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},z_r={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},K_r={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},G_r={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax.network/","https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},V_r={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},Y_r={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},$_r={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"frenchain"},Q_r={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},J_r={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Z_r={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},X_r={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},eTr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},tTr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},rTr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},nTr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},aTr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},iTr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},sTr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!1,slug:"dfk-chain"},oTr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},cTr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},uTr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},lTr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},dTr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},pTr={name:"Linea Testnet",title:"Linea Testnet",chain:"ETH",rpc:["https://linea-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goerli.linea.build"],faucets:["https://faucetlink.to/goerli"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://linea.build",shortName:"linea-testnet",chainId:59140,networkId:59140,icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"},parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea"}]},explorers:[{name:"Linea Testnet Explorer",url:"https://explorer.goerli.linea.build",standard:"EIP3091",icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"}}],status:"active",testnet:!0,slug:"linea-testnet"},hTr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},fTr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},mTr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},yTr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},gTr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},bTr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},vTr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},wTr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},xTr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ecredits"},_Tr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},TTr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},ITr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},ETr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},CTr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},kTr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},ATr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},PTr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},STr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},RTr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},MTr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},NTr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},BTr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},DTr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},LTr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},OTr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},qTr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},FTr={name:"Amana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81341,networkId:81341,status:"incubating",testnet:!0,slug:"amana-testnet"},WTr={name:"Amana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81342,networkId:81342,status:"incubating",testnet:!1,slug:"amana-mixnet"},UTr={name:"Amana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81343,networkId:81343,status:"incubating",testnet:!1,slug:"amana-privnet"},HTr={name:"Flana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81351,networkId:81351,status:"incubating",testnet:!0,slug:"flana-testnet"},jTr={name:"Flana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81352,networkId:81352,status:"incubating",testnet:!1,slug:"flana-mixnet"},zTr={name:"Flana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81353,networkId:81353,status:"incubating",testnet:!1,slug:"flana-privnet"},KTr={name:"Mizana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81361,networkId:81361,status:"incubating",testnet:!0,slug:"mizana-testnet"},GTr={name:"Mizana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81362,networkId:81362,status:"incubating",testnet:!1,slug:"mizana-mixnet"},VTr={name:"Mizana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81363,networkId:81363,status:"incubating",testnet:!1,slug:"mizana-privnet"},YTr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},$Tr={name:"CYBERTRUST",chain:"CYBER",rpc:["https://cybertrust.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cybertrust.space:48501"],faucets:[],nativeCurrency:{name:"Cyber Trust",symbol:"CYBER",decimals:18},infoURL:"https://cybertrust.space",shortName:"Cyber",chainId:85449,networkId:48501,testnet:!0,slug:"cybertrust"},QTr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},JTr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},ZTr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},XTr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"}}],testnet:!0,slug:"lambda-testnet"},e6r={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},t6r={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},r6r={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},n6r={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},a6r={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},i6r={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},s6r={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},o6r={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},c6r={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},u6r={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},l6r={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},d6r={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},p6r={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},h6r={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},f6r={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},m6r={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},y6r={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},g6r={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},b6r={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},v6r={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},w6r={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},x6r={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},_6r={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},T6r={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},I6r={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},E6r={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},C6r={name:"ADIL Devnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"Devnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"dadil",chainId:123456,networkId:123456,explorers:[{name:"ADIL Devnet Explorer",url:"https://devnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-devnet"},k6r={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},standard:"none"}],testnet:!1,slug:"etnd-chain-s"},A6r={name:"Taiko (Alpha-2 Testnet)",chain:"ETH",icon:{url:"ipfs://QmWMUDmNHzCtism9dYK1JooerZJ4da6kGt67HAQmLiEykc",width:1001,height:1001,format:"png"},rpc:["https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.a2.taiko.xyz"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://taiko.xyz",shortName:"taiko-a2",chainId:167004,networkId:167004,explorers:[{name:"blockscout",url:"https://explorer.a2.taiko.xyz",standard:"EIP3091"}],testnet:!0,slug:"taiko-alpha-2-testnet"},P6r={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},S6r={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},R6r={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},M6r={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},N6r={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},B6r={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},D6r={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},L6r={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},O6r={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"}}],testnet:!0,slug:"jellie"},q6r={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},F6r={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},W6r={name:"HashKey Chain Testnet",chain:"HashKey",rpc:["https://hashkey-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashkeychain/rpc"],faucets:["https://testnet.hashkeychain/faucet"],nativeCurrency:{name:"HashKey Token",symbol:"tHSK",decimals:18},infoURL:"https://www.hashkey.com",shortName:"hsktest",chainId:230315,networkId:230315,icon:{url:"ipfs://QmNU11AqYB2htrrSyBSP9ct7bPtuZTP7Hrz21PrEcB9nYE",width:1440,height:448,format:"png"},explorers:[{name:"HashKey Chain Testnet Explorer",url:"https://testnet.hashkeyscan.io",standard:"none"}],testnet:!0,slug:"hashkey-chain-testnet"},U6r={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},H6r={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},j6r={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},z6r={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},K6r={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},G6r={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},V6r={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},Y6r={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},$6r={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},Q6r={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},J6r={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},Z6r={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!0,slug:"hapchain-testnet"},X6r={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},eIr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},tIr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},rIr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"kekchain"},nIr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},aIr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},iIr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"arbitrum-goerli"},sIr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},oIr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},cIr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},uIr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},lIr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},dIr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},pIr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"ethf",chain:"ETHF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://www.oklink.com/ethf",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},hIr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},fIr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},mIr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},yIr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},gIr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},bIr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},vIr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},wIr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"octaspace"},xIr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},_Ir={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},TIr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},IIr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},EIr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},CIr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},kIr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},AIr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},PIr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},SIr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},RIr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},MIr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kiln"},NIr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},BIr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},DIr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},LIr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},OIr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"imversed"},qIr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!0,slug:"imversed-testnet"},FIr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},WIr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},UIr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},HIr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},jIr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},zIr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!1,slug:"hapchain"},KIr={name:"Quarix Testnet",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix-testnet",chainId:8888881,networkId:8888881,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!0,slug:"quarix-testnet"},GIr={name:"Quarix",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix",chainId:8888888,networkId:8888888,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"quarix"},VIr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},YIr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},$Ir={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},QIr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},JIr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:{url:"ipfs://bafkreiapaxokh2p4j7hg43ug2inomixiwrdhni4kpqazvqifssnez7efze",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"anduschain"},ZIr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},XIr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},eEr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},tEr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},rEr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},nEr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},aEr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},iEr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},sEr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},oEr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},cEr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},uEr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},lEr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},dEr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},pEr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},hEr={name:"T.E.A.M Blockchain",chain:"TEAM",icon:{url:"ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",width:248,height:248,format:"png"},rpc:["https://t-e-a-m-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.teamblockchain.team"],faucets:[],nativeCurrency:{name:"TEAM",symbol:"$TEAM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://teamblockchain.team",shortName:"team",chainId:88888888,networkId:88888888,explorers:[{name:"teamscan",url:"https://teamblockchain.team",standard:"EIP3091"}],testnet:!1,slug:"t-e-a-m-blockchain"},fEr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},mEr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},yEr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},gEr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},bEr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},vEr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},wEr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},xEr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},_Er={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},TEr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},IEr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},EEr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},standard:"none"}],testnet:!1,slug:"cyberdecknet"},CEr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmT5KKrpNt6duU8QfwaYw3xf4ifTBPtjahpWsMi3gsFmcS",width:440,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},kEr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},AEr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},PEr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},SEr={name:"RaptorChain",chain:"RPTR",rpc:["https://raptorchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.raptorchain.io/web3"],faucets:[],nativeCurrency:{name:"Raptor",symbol:"RPTR",decimals:18},features:[{name:"EIP155"}],infoURL:"https://raptorchain.io",shortName:"rptr",chainId:1380996178,networkId:1380996178,icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},explorers:[{name:"RaptorChain Explorer",url:"https://explorer.raptorchain.io",icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"raptorchain"},REr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula"},MEr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},NEr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},BEr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},DEr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},LEr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},OEr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},qEr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},FEr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},WEr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},UEr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},HEr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},jEr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},zEr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},KEr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},GEr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},VEr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},YEr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"ntity"},$Er={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},QEr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},JEr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},ZEr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},XEr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},eCr={mode:"http"};function vet(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...eCr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function tCr(r,e){return vet(r,e)[0]}function rCr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function nCr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var Sv=j0r,D9=z0r,L9=K0r,O9=G0r,Rv=V0r,q9=Y0r,F9=$0r,W9=Q0r,U9=J0r,Mv=Z0r,H9=X0r,j9=eyr,z9=tyr,K9=ryr,G9=nyr,V9=ayr,Y9=iyr,$9=syr,Q9=oyr,J9=cyr,Z9=uyr,X9=lyr,eM=dyr,tM=pyr,rM=hyr,nM=fyr,aM=myr,iM=yyr,sM=gyr,oM=byr,cM=vyr,uM=wyr,lM=xyr,dM=_yr,pM=Tyr,hM=Iyr,fM=Eyr,mM=Cyr,yM=kyr,gM=Ayr,bM=Pyr,vM=Syr,wM=Ryr,xM=Myr,_M=Nyr,TM=Byr,IM=Dyr,EM=Lyr,CM=Oyr,kM=qyr,AM=Fyr,PM=Wyr,SM=Uyr,RM=Hyr,Nv=jyr,MM=zyr,NM=Kyr,BM=Gyr,DM=Vyr,LM=Yyr,OM=$yr,qM=Qyr,FM=Jyr,WM=Zyr,UM=Xyr,HM=egr,jM=tgr,zM=rgr,KM=ngr,GM=agr,VM=igr,YM=sgr,$M=ogr,QM=cgr,JM=ugr,ZM=lgr,XM=dgr,eN=pgr,tN=hgr,rN=fgr,nN=mgr,aN=ygr,iN=ggr,sN=bgr,oN=vgr,cN=wgr,uN=xgr,lN=_gr,dN=Tgr,pN=Igr,hN=Egr,fN=Cgr,mN=kgr,Bv=Agr,yN=Pgr,gN=Sgr,bN=Rgr,vN=Mgr,wN=Ngr,xN=Bgr,_N=Dgr,TN=Lgr,IN=Ogr,EN=qgr,CN=Fgr,kN=Wgr,AN=Ugr,PN=Hgr,SN=jgr,RN=zgr,MN=Kgr,NN=Ggr,BN=Vgr,DN=Ygr,LN=$gr,ON=Qgr,qN=Jgr,FN=Zgr,WN=Xgr,UN=e1r,HN=t1r,jN=r1r,zN=n1r,Dv=a1r,KN=i1r,GN=s1r,VN=o1r,YN=c1r,$N=u1r,QN=l1r,JN=d1r,ZN=p1r,XN=h1r,eB=f1r,tB=m1r,rB=y1r,nB=g1r,aB=b1r,iB=v1r,sB=w1r,oB=x1r,cB=_1r,uB=T1r,lB=I1r,dB=E1r,pB=C1r,hB=k1r,fB=A1r,mB=P1r,yB=S1r,gB=R1r,bB=M1r,vB=N1r,Lv=B1r,wB=D1r,xB=L1r,_B=O1r,TB=q1r,IB=F1r,EB=W1r,CB=U1r,kB=H1r,AB=j1r,PB=z1r,SB=K1r,RB=G1r,MB=V1r,NB=Y1r,BB=$1r,DB=Q1r,LB=J1r,OB=Z1r,qB=X1r,FB=ebr,WB=tbr,UB=rbr,HB=nbr,jB=abr,zB=ibr,KB=sbr,GB=obr,VB=cbr,YB=ubr,$B=lbr,QB=dbr,Ov=pbr,JB=hbr,ZB=fbr,XB=mbr,eD=ybr,tD=gbr,rD=bbr,nD=vbr,aD=wbr,iD=xbr,sD=_br,oD=Tbr,cD=Ibr,uD=Ebr,lD=Cbr,dD=kbr,pD=Abr,hD=Pbr,fD=Sbr,mD=Rbr,yD=Mbr,gD=Nbr,bD=Bbr,vD=Dbr,wD=Lbr,xD=Obr,_D=qbr,TD=Fbr,ID=Wbr,ED=Ubr,CD=Hbr,kD=jbr,AD=zbr,PD=Kbr,SD=Gbr,RD=Vbr,MD=Ybr,ND=$br,BD=Qbr,DD=Jbr,LD=Zbr,OD=Xbr,qD=evr,FD=tvr,WD=rvr,UD=nvr,HD=avr,jD=ivr,zD=svr,KD=ovr,GD=cvr,VD=uvr,YD=lvr,$D=dvr,QD=pvr,JD=hvr,ZD=fvr,XD=mvr,eL=yvr,tL=gvr,rL=bvr,nL=vvr,aL=wvr,iL=xvr,sL=_vr,oL=Tvr,cL=Ivr,uL=Evr,lL=Cvr,dL=kvr,pL=Avr,hL=Pvr,fL=Svr,mL=Rvr,yL=Mvr,gL=Nvr,bL=Bvr,vL=Dvr,wL=Lvr,xL=Ovr,_L=qvr,TL=Fvr,IL=Wvr,EL=Uvr,CL=Hvr,kL=jvr,AL=zvr,PL=Kvr,SL=Gvr,RL=Vvr,ML=Yvr,NL=$vr,BL=Qvr,DL=Jvr,LL=Zvr,OL=Xvr,qL=e2r,FL=t2r,WL=r2r,UL=n2r,HL=a2r,jL=i2r,zL=s2r,KL=o2r,GL=c2r,VL=u2r,YL=l2r,$L=d2r,QL=p2r,JL=h2r,ZL=f2r,XL=m2r,eO=y2r,tO=g2r,rO=b2r,nO=v2r,aO=w2r,iO=x2r,sO=_2r,oO=T2r,cO=I2r,uO=E2r,lO=C2r,dO=k2r,pO=A2r,hO=P2r,fO=S2r,mO=R2r,yO=M2r,gO=N2r,bO=B2r,vO=D2r,wO=L2r,xO=O2r,_O=q2r,TO=F2r,IO=W2r,EO=U2r,CO=H2r,kO=j2r,AO=z2r,PO=K2r,SO=G2r,RO=V2r,MO=Y2r,NO=$2r,BO=Q2r,DO=J2r,LO=Z2r,OO=X2r,qO=ewr,FO=twr,WO=rwr,UO=nwr,HO=awr,jO=iwr,zO=swr,KO=owr,GO=cwr,VO=uwr,YO=lwr,$O=dwr,QO=pwr,JO=hwr,ZO=fwr,XO=mwr,eq=ywr,tq=gwr,rq=bwr,nq=vwr,aq=wwr,iq=xwr,sq=_wr,oq=Twr,cq=Iwr,uq=Ewr,lq=Cwr,dq=kwr,pq=Awr,hq=Pwr,fq=Swr,mq=Rwr,yq=Mwr,gq=Nwr,bq=Bwr,vq=Dwr,wq=Lwr,xq=Owr,_q=qwr,Tq=Fwr,Iq=Wwr,Eq=Uwr,Cq=Hwr,kq=jwr,Aq=zwr,Pq=Kwr,Sq=Gwr,Rq=Vwr,Mq=Ywr,Nq=$wr,Bq=Qwr,Dq=Jwr,Lq=Zwr,Oq=Xwr,qq=e5r,Fq=t5r,Wq=r5r,Uq=n5r,Hq=a5r,jq=i5r,zq=s5r,Kq=o5r,Gq=c5r,Vq=u5r,Yq=l5r,$q=d5r,Qq=p5r,Jq=h5r,Zq=f5r,Xq=m5r,eF=y5r,tF=g5r,rF=b5r,nF=v5r,aF=w5r,iF=x5r,sF=_5r,oF=T5r,cF=I5r,uF=E5r,lF=C5r,qv=k5r,dF=A5r,pF=P5r,hF=S5r,fF=R5r,mF=M5r,yF=N5r,gF=B5r,bF=D5r,vF=L5r,wF=O5r,xF=q5r,_F=F5r,TF=W5r,IF=U5r,EF=H5r,CF=j5r,kF=z5r,AF=K5r,PF=G5r,SF=V5r,RF=Y5r,MF=$5r,NF=Q5r,BF=J5r,DF=Z5r,LF=X5r,OF=e3r,qF=t3r,FF=r3r,WF=n3r,UF=a3r,HF=i3r,jF=s3r,zF=o3r,KF=c3r,GF=u3r,VF=l3r,YF=d3r,$F=p3r,QF=h3r,JF=f3r,ZF=m3r,XF=y3r,eW=g3r,tW=b3r,rW=v3r,nW=w3r,aW=x3r,iW=_3r,sW=T3r,oW=I3r,cW=E3r,uW=C3r,lW=k3r,dW=A3r,pW=P3r,hW=S3r,fW=R3r,mW=M3r,yW=N3r,gW=B3r,bW=D3r,vW=L3r,wW=O3r,xW=q3r,_W=F3r,TW=W3r,IW=U3r,EW=H3r,CW=j3r,kW=z3r,AW=K3r,PW=G3r,SW=V3r,RW=Y3r,MW=$3r,NW=Q3r,BW=J3r,DW=Z3r,LW=X3r,OW=exr,qW=txr,FW=rxr,WW=nxr,UW=axr,HW=ixr,jW=sxr,zW=oxr,KW=cxr,GW=uxr,VW=lxr,YW=dxr,$W=pxr,QW=hxr,JW=fxr,ZW=mxr,XW=yxr,eU=gxr,tU=bxr,rU=vxr,nU=wxr,aU=xxr,iU=_xr,sU=Txr,oU=Ixr,cU=Exr,uU=Cxr,lU=kxr,dU=Axr,pU=Pxr,hU=Sxr,fU=Rxr,mU=Mxr,yU=Nxr,gU=Bxr,bU=Dxr,vU=Lxr,wU=Oxr,xU=qxr,_U=Fxr,TU=Wxr,IU=Uxr,EU=Hxr,CU=jxr,kU=zxr,AU=Kxr,PU=Gxr,SU=Vxr,RU=Yxr,MU=$xr,NU=Qxr,BU=Jxr,DU=Zxr,LU=Xxr,OU=e_r,qU=t_r,FU=r_r,WU=n_r,UU=a_r,HU=i_r,jU=s_r,zU=o_r,KU=c_r,GU=u_r,VU=l_r,YU=d_r,$U=p_r,QU=h_r,JU=f_r,ZU=m_r,XU=y_r,eH=g_r,tH=b_r,rH=v_r,nH=w_r,aH=x_r,iH=__r,sH=T_r,oH=I_r,cH=E_r,uH=C_r,lH=k_r,dH=A_r,pH=P_r,hH=S_r,fH=R_r,mH=M_r,yH=N_r,gH=B_r,bH=D_r,vH=L_r,wH=O_r,xH=q_r,_H=F_r,Fv=W_r,TH=U_r,IH=H_r,EH=j_r,CH=z_r,kH=K_r,Wv=G_r,Uv=V_r,AH=Y_r,PH=$_r,SH=Q_r,RH=J_r,MH=Z_r,NH=X_r,BH=eTr,DH=tTr,LH=rTr,OH=nTr,qH=aTr,FH=iTr,WH=sTr,UH=oTr,HH=cTr,jH=uTr,zH=lTr,KH=dTr,GH=pTr,VH=hTr,YH=fTr,$H=mTr,QH=yTr,JH=gTr,ZH=bTr,XH=vTr,ej=wTr,tj=xTr,rj=_Tr,nj=TTr,aj=ITr,ij=ETr,sj=CTr,oj=kTr,cj=ATr,uj=PTr,lj=STr,dj=RTr,pj=MTr,hj=NTr,fj=BTr,mj=DTr,yj=LTr,gj=OTr,Hv=qTr,bj=FTr,vj=WTr,wj=UTr,xj=HTr,_j=jTr,Tj=zTr,Ij=KTr,Ej=GTr,Cj=VTr,kj=YTr,Aj=$Tr,Pj=QTr,Sj=JTr,Rj=ZTr,Mj=XTr,Nj=e6r,Bj=t6r,Dj=r6r,Lj=n6r,Oj=a6r,qj=i6r,Fj=s6r,Wj=o6r,Uj=c6r,Hj=u6r,jj=l6r,zj=d6r,Kj=p6r,Gj=h6r,Vj=f6r,Yj=m6r,$j=y6r,Qj=g6r,Jj=b6r,Zj=v6r,Xj=w6r,ez=x6r,tz=_6r,rz=T6r,nz=I6r,az=E6r,iz=C6r,sz=k6r,oz=A6r,cz=P6r,uz=S6r,lz=R6r,dz=M6r,pz=N6r,hz=B6r,fz=D6r,mz=L6r,yz=O6r,gz=q6r,bz=F6r,vz=W6r,wz=U6r,xz=H6r,_z=j6r,Tz=z6r,Iz=K6r,Ez=G6r,Cz=V6r,kz=Y6r,Az=$6r,Pz=Q6r,Sz=J6r,Rz=Z6r,Mz=X6r,Nz=eIr,Bz=tIr,Dz=rIr,Lz=nIr,Oz=aIr,jv=iIr,qz=sIr,Fz=oIr,Wz=cIr,Uz=uIr,Hz=lIr,jz=dIr,zz=pIr,Kz=hIr,Gz=fIr,Vz=mIr,Yz=yIr,$z=gIr,Qz=bIr,Jz=vIr,Zz=wIr,Xz=xIr,eK=_Ir,tK=TIr,rK=IIr,nK=EIr,aK=CIr,iK=kIr,sK=AIr,oK=PIr,cK=SIr,uK=RIr,lK=MIr,dK=NIr,pK=BIr,hK=DIr,fK=LIr,mK=OIr,yK=qIr,gK=FIr,bK=WIr,vK=UIr,wK=HIr,xK=jIr,_K=zIr,TK=KIr,IK=GIr,EK=VIr,CK=YIr,kK=$Ir,AK=QIr,PK=JIr,SK=ZIr,RK=XIr,MK=eEr,NK=tEr,BK=rEr,DK=nEr,LK=aEr,OK=iEr,qK=sEr,FK=oEr,WK=cEr,UK=uEr,HK=lEr,jK=dEr,zK=pEr,KK=hEr,GK=fEr,VK=mEr,YK=yEr,$K=gEr,QK=bEr,JK=vEr,ZK=wEr,XK=xEr,eG=_Er,tG=TEr,rG=IEr,nG=EEr,aG=CEr,iG=kEr,sG=AEr,oG=PEr,cG=SEr,uG=REr,lG=MEr,dG=NEr,pG=BEr,hG=DEr,fG=LEr,mG=OEr,yG=qEr,gG=FEr,bG=WEr,vG=UEr,wG=HEr,xG=jEr,_G=zEr,TG=KEr,IG=GEr,EG=VEr,CG=YEr,kG=$Er,AG=QEr,PG=JEr,SG=ZEr,zv=XEr,aCr=[Sv,Rv,Dv,Hv,Fv,jv,Mv,Ov,Nv,Bv,Lv,qv,Uv,Wv,zv],iCr=[Sv,D9,L9,O9,Rv,q9,F9,W9,U9,Mv,H9,j9,z9,K9,G9,V9,Y9,$9,Q9,J9,Z9,X9,eM,tM,rM,nM,aM,iM,sM,oM,cM,uM,lM,dM,pM,hM,fM,mM,yM,gM,bM,vM,wM,xM,_M,TM,IM,EM,CM,kM,AM,PM,SM,RM,Nv,MM,NM,BM,DM,LM,OM,qM,FM,WM,UM,HM,jM,zM,KM,GM,VM,YM,$M,QM,JM,ZM,XM,eN,tN,rN,nN,aN,iN,sN,oN,cN,uN,lN,dN,pN,hN,fN,mN,Bv,yN,gN,bN,vN,wN,xN,_N,TN,IN,EN,CN,kN,AN,PN,SN,RN,MN,NN,BN,DN,LN,ON,qN,FN,WN,UN,HN,jN,zN,Dv,KN,GN,VN,YN,$N,QN,JN,ZN,XN,eB,tB,rB,nB,aB,iB,sB,oB,cB,uB,lB,dB,pB,hB,fB,mB,yB,gB,bB,vB,Lv,wB,xB,_B,TB,IB,EB,CB,kB,AB,PB,SB,RB,MB,NB,BB,DB,LB,OB,qB,FB,WB,UB,HB,jB,zB,KB,GB,VB,YB,$B,QB,Ov,JB,ZB,XB,eD,tD,rD,nD,aD,iD,sD,oD,cD,uD,lD,dD,pD,hD,fD,mD,yD,gD,bD,vD,wD,xD,_D,TD,ID,ED,CD,kD,AD,PD,SD,RD,MD,ND,BD,DD,LD,OD,qD,FD,WD,UD,HD,jD,zD,KD,GD,VD,YD,$D,QD,JD,ZD,XD,eL,tL,rL,nL,aL,iL,sL,oL,cL,uL,lL,dL,pL,hL,fL,mL,yL,gL,bL,vL,wL,xL,_L,TL,IL,EL,CL,kL,AL,PL,SL,RL,ML,NL,BL,DL,LL,OL,qL,FL,WL,UL,HL,jL,zL,KL,GL,VL,YL,$L,QL,JL,ZL,XL,eO,tO,rO,nO,aO,iO,sO,oO,cO,uO,lO,dO,pO,hO,fO,mO,yO,gO,bO,vO,wO,xO,_O,TO,IO,EO,CO,kO,AO,PO,SO,RO,MO,NO,BO,DO,LO,OO,qO,FO,WO,UO,HO,jO,zO,KO,GO,VO,YO,$O,QO,JO,ZO,XO,eq,tq,rq,nq,aq,iq,sq,oq,cq,uq,lq,dq,pq,hq,fq,mq,yq,gq,bq,vq,wq,xq,_q,Tq,Iq,Eq,Cq,kq,Aq,Pq,Sq,Rq,Mq,Nq,Bq,Dq,Lq,Oq,qq,Fq,Wq,Uq,Hq,jq,zq,Kq,Gq,Vq,Yq,$q,Qq,Jq,Zq,Xq,eF,tF,rF,nF,aF,iF,sF,oF,cF,uF,lF,qv,dF,pF,hF,fF,mF,yF,gF,bF,vF,wF,xF,_F,TF,IF,EF,CF,kF,AF,PF,SF,RF,MF,NF,BF,DF,LF,OF,qF,FF,WF,UF,HF,jF,zF,KF,GF,VF,YF,$F,QF,JF,ZF,XF,eW,tW,rW,nW,aW,iW,sW,oW,cW,uW,lW,dW,pW,hW,fW,mW,yW,gW,bW,vW,wW,xW,_W,TW,IW,EW,CW,kW,AW,PW,SW,RW,MW,NW,BW,DW,LW,OW,qW,FW,WW,UW,HW,jW,zW,KW,GW,VW,YW,$W,QW,JW,ZW,XW,eU,tU,rU,nU,aU,iU,sU,oU,cU,uU,lU,dU,pU,hU,fU,mU,yU,gU,bU,vU,wU,xU,_U,TU,IU,EU,CU,kU,AU,PU,SU,RU,MU,NU,BU,DU,LU,OU,qU,FU,WU,UU,HU,jU,zU,KU,GU,VU,YU,$U,QU,JU,ZU,XU,eH,tH,rH,nH,aH,iH,sH,oH,cH,uH,lH,dH,pH,hH,fH,mH,yH,gH,bH,vH,wH,xH,_H,Fv,TH,IH,EH,CH,kH,Wv,Uv,AH,PH,SH,RH,MH,NH,BH,DH,LH,OH,qH,FH,WH,UH,HH,jH,zH,KH,GH,VH,YH,$H,QH,JH,ZH,XH,ej,tj,rj,nj,aj,ij,sj,oj,cj,uj,lj,dj,pj,hj,fj,mj,yj,gj,Hv,bj,vj,wj,xj,_j,Tj,Ij,Ej,Cj,kj,Aj,Pj,Sj,Rj,Mj,Nj,Bj,Dj,Lj,Oj,qj,Fj,Wj,Uj,Hj,jj,zj,Kj,Gj,Vj,Yj,$j,Qj,Jj,Zj,Xj,ez,tz,rz,nz,az,iz,sz,oz,cz,uz,lz,dz,pz,hz,fz,mz,yz,gz,bz,vz,wz,xz,_z,Tz,Iz,Ez,Cz,kz,Az,Pz,Sz,Rz,Mz,Nz,Bz,Dz,Lz,Oz,jv,qz,Fz,Wz,Uz,Hz,jz,zz,Kz,Gz,Vz,Yz,$z,Qz,Jz,Zz,Xz,eK,tK,rK,nK,aK,iK,sK,oK,cK,uK,lK,dK,pK,hK,fK,mK,yK,gK,bK,vK,wK,xK,_K,TK,IK,EK,CK,kK,AK,PK,SK,RK,MK,NK,BK,DK,LK,OK,qK,FK,WK,UK,HK,jK,zK,KK,GK,VK,YK,$K,QK,JK,ZK,XK,eG,tG,rG,nG,aG,iG,sG,oG,cG,uG,lG,dG,pG,hG,fG,mG,yG,gG,bG,vG,wG,xG,_G,TG,IG,EG,CG,kG,AG,PG,SG,zv],S_e={[Sv.chainId]:Sv,[D9.chainId]:D9,[L9.chainId]:L9,[O9.chainId]:O9,[Rv.chainId]:Rv,[q9.chainId]:q9,[F9.chainId]:F9,[W9.chainId]:W9,[U9.chainId]:U9,[Mv.chainId]:Mv,[H9.chainId]:H9,[j9.chainId]:j9,[z9.chainId]:z9,[K9.chainId]:K9,[G9.chainId]:G9,[V9.chainId]:V9,[Y9.chainId]:Y9,[$9.chainId]:$9,[Q9.chainId]:Q9,[J9.chainId]:J9,[Z9.chainId]:Z9,[X9.chainId]:X9,[eM.chainId]:eM,[tM.chainId]:tM,[rM.chainId]:rM,[nM.chainId]:nM,[aM.chainId]:aM,[iM.chainId]:iM,[sM.chainId]:sM,[oM.chainId]:oM,[cM.chainId]:cM,[uM.chainId]:uM,[lM.chainId]:lM,[dM.chainId]:dM,[pM.chainId]:pM,[hM.chainId]:hM,[fM.chainId]:fM,[mM.chainId]:mM,[yM.chainId]:yM,[gM.chainId]:gM,[bM.chainId]:bM,[vM.chainId]:vM,[wM.chainId]:wM,[xM.chainId]:xM,[_M.chainId]:_M,[TM.chainId]:TM,[IM.chainId]:IM,[EM.chainId]:EM,[CM.chainId]:CM,[kM.chainId]:kM,[AM.chainId]:AM,[PM.chainId]:PM,[SM.chainId]:SM,[RM.chainId]:RM,[Nv.chainId]:Nv,[MM.chainId]:MM,[NM.chainId]:NM,[BM.chainId]:BM,[DM.chainId]:DM,[LM.chainId]:LM,[OM.chainId]:OM,[qM.chainId]:qM,[FM.chainId]:FM,[WM.chainId]:WM,[UM.chainId]:UM,[HM.chainId]:HM,[jM.chainId]:jM,[zM.chainId]:zM,[KM.chainId]:KM,[GM.chainId]:GM,[VM.chainId]:VM,[YM.chainId]:YM,[$M.chainId]:$M,[QM.chainId]:QM,[JM.chainId]:JM,[ZM.chainId]:ZM,[XM.chainId]:XM,[eN.chainId]:eN,[tN.chainId]:tN,[rN.chainId]:rN,[nN.chainId]:nN,[aN.chainId]:aN,[iN.chainId]:iN,[sN.chainId]:sN,[oN.chainId]:oN,[cN.chainId]:cN,[uN.chainId]:uN,[lN.chainId]:lN,[dN.chainId]:dN,[pN.chainId]:pN,[hN.chainId]:hN,[fN.chainId]:fN,[mN.chainId]:mN,[Bv.chainId]:Bv,[yN.chainId]:yN,[gN.chainId]:gN,[bN.chainId]:bN,[vN.chainId]:vN,[wN.chainId]:wN,[xN.chainId]:xN,[_N.chainId]:_N,[TN.chainId]:TN,[IN.chainId]:IN,[EN.chainId]:EN,[CN.chainId]:CN,[kN.chainId]:kN,[AN.chainId]:AN,[PN.chainId]:PN,[SN.chainId]:SN,[RN.chainId]:RN,[MN.chainId]:MN,[NN.chainId]:NN,[BN.chainId]:BN,[DN.chainId]:DN,[LN.chainId]:LN,[ON.chainId]:ON,[qN.chainId]:qN,[FN.chainId]:FN,[WN.chainId]:WN,[UN.chainId]:UN,[HN.chainId]:HN,[jN.chainId]:jN,[zN.chainId]:zN,[Dv.chainId]:Dv,[KN.chainId]:KN,[GN.chainId]:GN,[VN.chainId]:VN,[YN.chainId]:YN,[$N.chainId]:$N,[QN.chainId]:QN,[JN.chainId]:JN,[ZN.chainId]:ZN,[XN.chainId]:XN,[eB.chainId]:eB,[tB.chainId]:tB,[rB.chainId]:rB,[nB.chainId]:nB,[aB.chainId]:aB,[iB.chainId]:iB,[sB.chainId]:sB,[oB.chainId]:oB,[cB.chainId]:cB,[uB.chainId]:uB,[lB.chainId]:lB,[dB.chainId]:dB,[pB.chainId]:pB,[hB.chainId]:hB,[fB.chainId]:fB,[mB.chainId]:mB,[yB.chainId]:yB,[gB.chainId]:gB,[bB.chainId]:bB,[vB.chainId]:vB,[Lv.chainId]:Lv,[wB.chainId]:wB,[xB.chainId]:xB,[_B.chainId]:_B,[TB.chainId]:TB,[IB.chainId]:IB,[EB.chainId]:EB,[CB.chainId]:CB,[kB.chainId]:kB,[AB.chainId]:AB,[PB.chainId]:PB,[SB.chainId]:SB,[RB.chainId]:RB,[MB.chainId]:MB,[NB.chainId]:NB,[BB.chainId]:BB,[DB.chainId]:DB,[LB.chainId]:LB,[OB.chainId]:OB,[qB.chainId]:qB,[FB.chainId]:FB,[WB.chainId]:WB,[UB.chainId]:UB,[HB.chainId]:HB,[jB.chainId]:jB,[zB.chainId]:zB,[KB.chainId]:KB,[GB.chainId]:GB,[VB.chainId]:VB,[YB.chainId]:YB,[$B.chainId]:$B,[QB.chainId]:QB,[Ov.chainId]:Ov,[JB.chainId]:JB,[ZB.chainId]:ZB,[XB.chainId]:XB,[eD.chainId]:eD,[tD.chainId]:tD,[rD.chainId]:rD,[nD.chainId]:nD,[aD.chainId]:aD,[iD.chainId]:iD,[sD.chainId]:sD,[oD.chainId]:oD,[cD.chainId]:cD,[uD.chainId]:uD,[lD.chainId]:lD,[dD.chainId]:dD,[pD.chainId]:pD,[hD.chainId]:hD,[fD.chainId]:fD,[mD.chainId]:mD,[yD.chainId]:yD,[gD.chainId]:gD,[bD.chainId]:bD,[vD.chainId]:vD,[wD.chainId]:wD,[xD.chainId]:xD,[_D.chainId]:_D,[TD.chainId]:TD,[ID.chainId]:ID,[ED.chainId]:ED,[CD.chainId]:CD,[kD.chainId]:kD,[AD.chainId]:AD,[PD.chainId]:PD,[SD.chainId]:SD,[RD.chainId]:RD,[MD.chainId]:MD,[ND.chainId]:ND,[BD.chainId]:BD,[DD.chainId]:DD,[LD.chainId]:LD,[OD.chainId]:OD,[qD.chainId]:qD,[FD.chainId]:FD,[WD.chainId]:WD,[UD.chainId]:UD,[HD.chainId]:HD,[jD.chainId]:jD,[zD.chainId]:zD,[KD.chainId]:KD,[GD.chainId]:GD,[VD.chainId]:VD,[YD.chainId]:YD,[$D.chainId]:$D,[QD.chainId]:QD,[JD.chainId]:JD,[ZD.chainId]:ZD,[XD.chainId]:XD,[eL.chainId]:eL,[tL.chainId]:tL,[rL.chainId]:rL,[nL.chainId]:nL,[aL.chainId]:aL,[iL.chainId]:iL,[sL.chainId]:sL,[oL.chainId]:oL,[cL.chainId]:cL,[uL.chainId]:uL,[lL.chainId]:lL,[dL.chainId]:dL,[pL.chainId]:pL,[hL.chainId]:hL,[fL.chainId]:fL,[mL.chainId]:mL,[yL.chainId]:yL,[gL.chainId]:gL,[bL.chainId]:bL,[vL.chainId]:vL,[wL.chainId]:wL,[xL.chainId]:xL,[_L.chainId]:_L,[TL.chainId]:TL,[IL.chainId]:IL,[EL.chainId]:EL,[CL.chainId]:CL,[kL.chainId]:kL,[AL.chainId]:AL,[PL.chainId]:PL,[SL.chainId]:SL,[RL.chainId]:RL,[ML.chainId]:ML,[NL.chainId]:NL,[BL.chainId]:BL,[DL.chainId]:DL,[LL.chainId]:LL,[OL.chainId]:OL,[qL.chainId]:qL,[FL.chainId]:FL,[WL.chainId]:WL,[UL.chainId]:UL,[HL.chainId]:HL,[jL.chainId]:jL,[zL.chainId]:zL,[KL.chainId]:KL,[GL.chainId]:GL,[VL.chainId]:VL,[YL.chainId]:YL,[$L.chainId]:$L,[QL.chainId]:QL,[JL.chainId]:JL,[ZL.chainId]:ZL,[XL.chainId]:XL,[eO.chainId]:eO,[tO.chainId]:tO,[rO.chainId]:rO,[nO.chainId]:nO,[aO.chainId]:aO,[iO.chainId]:iO,[sO.chainId]:sO,[oO.chainId]:oO,[cO.chainId]:cO,[uO.chainId]:uO,[lO.chainId]:lO,[dO.chainId]:dO,[pO.chainId]:pO,[hO.chainId]:hO,[fO.chainId]:fO,[mO.chainId]:mO,[yO.chainId]:yO,[gO.chainId]:gO,[bO.chainId]:bO,[vO.chainId]:vO,[wO.chainId]:wO,[xO.chainId]:xO,[_O.chainId]:_O,[TO.chainId]:TO,[IO.chainId]:IO,[EO.chainId]:EO,[CO.chainId]:CO,[kO.chainId]:kO,[AO.chainId]:AO,[PO.chainId]:PO,[SO.chainId]:SO,[RO.chainId]:RO,[MO.chainId]:MO,[NO.chainId]:NO,[BO.chainId]:BO,[DO.chainId]:DO,[LO.chainId]:LO,[OO.chainId]:OO,[qO.chainId]:qO,[FO.chainId]:FO,[WO.chainId]:WO,[UO.chainId]:UO,[HO.chainId]:HO,[jO.chainId]:jO,[zO.chainId]:zO,[KO.chainId]:KO,[GO.chainId]:GO,[VO.chainId]:VO,[YO.chainId]:YO,[$O.chainId]:$O,[QO.chainId]:QO,[JO.chainId]:JO,[ZO.chainId]:ZO,[XO.chainId]:XO,[eq.chainId]:eq,[tq.chainId]:tq,[rq.chainId]:rq,[nq.chainId]:nq,[aq.chainId]:aq,[iq.chainId]:iq,[sq.chainId]:sq,[oq.chainId]:oq,[cq.chainId]:cq,[uq.chainId]:uq,[lq.chainId]:lq,[dq.chainId]:dq,[pq.chainId]:pq,[hq.chainId]:hq,[fq.chainId]:fq,[mq.chainId]:mq,[yq.chainId]:yq,[gq.chainId]:gq,[bq.chainId]:bq,[vq.chainId]:vq,[wq.chainId]:wq,[xq.chainId]:xq,[_q.chainId]:_q,[Tq.chainId]:Tq,[Iq.chainId]:Iq,[Eq.chainId]:Eq,[Cq.chainId]:Cq,[kq.chainId]:kq,[Aq.chainId]:Aq,[Pq.chainId]:Pq,[Sq.chainId]:Sq,[Rq.chainId]:Rq,[Mq.chainId]:Mq,[Nq.chainId]:Nq,[Bq.chainId]:Bq,[Dq.chainId]:Dq,[Lq.chainId]:Lq,[Oq.chainId]:Oq,[qq.chainId]:qq,[Fq.chainId]:Fq,[Wq.chainId]:Wq,[Uq.chainId]:Uq,[Hq.chainId]:Hq,[jq.chainId]:jq,[zq.chainId]:zq,[Kq.chainId]:Kq,[Gq.chainId]:Gq,[Vq.chainId]:Vq,[Yq.chainId]:Yq,[$q.chainId]:$q,[Qq.chainId]:Qq,[Jq.chainId]:Jq,[Zq.chainId]:Zq,[Xq.chainId]:Xq,[eF.chainId]:eF,[tF.chainId]:tF,[rF.chainId]:rF,[nF.chainId]:nF,[aF.chainId]:aF,[iF.chainId]:iF,[sF.chainId]:sF,[oF.chainId]:oF,[cF.chainId]:cF,[uF.chainId]:uF,[lF.chainId]:lF,[qv.chainId]:qv,[dF.chainId]:dF,[pF.chainId]:pF,[hF.chainId]:hF,[fF.chainId]:fF,[mF.chainId]:mF,[yF.chainId]:yF,[gF.chainId]:gF,[bF.chainId]:bF,[vF.chainId]:vF,[wF.chainId]:wF,[xF.chainId]:xF,[_F.chainId]:_F,[TF.chainId]:TF,[IF.chainId]:IF,[EF.chainId]:EF,[CF.chainId]:CF,[kF.chainId]:kF,[AF.chainId]:AF,[PF.chainId]:PF,[SF.chainId]:SF,[RF.chainId]:RF,[MF.chainId]:MF,[NF.chainId]:NF,[BF.chainId]:BF,[DF.chainId]:DF,[LF.chainId]:LF,[OF.chainId]:OF,[qF.chainId]:qF,[FF.chainId]:FF,[WF.chainId]:WF,[UF.chainId]:UF,[HF.chainId]:HF,[jF.chainId]:jF,[zF.chainId]:zF,[KF.chainId]:KF,[GF.chainId]:GF,[VF.chainId]:VF,[YF.chainId]:YF,[$F.chainId]:$F,[QF.chainId]:QF,[JF.chainId]:JF,[ZF.chainId]:ZF,[XF.chainId]:XF,[eW.chainId]:eW,[tW.chainId]:tW,[rW.chainId]:rW,[nW.chainId]:nW,[aW.chainId]:aW,[iW.chainId]:iW,[sW.chainId]:sW,[oW.chainId]:oW,[cW.chainId]:cW,[uW.chainId]:uW,[lW.chainId]:lW,[dW.chainId]:dW,[pW.chainId]:pW,[hW.chainId]:hW,[fW.chainId]:fW,[mW.chainId]:mW,[yW.chainId]:yW,[gW.chainId]:gW,[bW.chainId]:bW,[vW.chainId]:vW,[wW.chainId]:wW,[xW.chainId]:xW,[_W.chainId]:_W,[TW.chainId]:TW,[IW.chainId]:IW,[EW.chainId]:EW,[CW.chainId]:CW,[kW.chainId]:kW,[AW.chainId]:AW,[PW.chainId]:PW,[SW.chainId]:SW,[RW.chainId]:RW,[MW.chainId]:MW,[NW.chainId]:NW,[BW.chainId]:BW,[DW.chainId]:DW,[LW.chainId]:LW,[OW.chainId]:OW,[qW.chainId]:qW,[FW.chainId]:FW,[WW.chainId]:WW,[UW.chainId]:UW,[HW.chainId]:HW,[jW.chainId]:jW,[zW.chainId]:zW,[KW.chainId]:KW,[GW.chainId]:GW,[VW.chainId]:VW,[YW.chainId]:YW,[$W.chainId]:$W,[QW.chainId]:QW,[JW.chainId]:JW,[ZW.chainId]:ZW,[XW.chainId]:XW,[eU.chainId]:eU,[tU.chainId]:tU,[rU.chainId]:rU,[nU.chainId]:nU,[aU.chainId]:aU,[iU.chainId]:iU,[sU.chainId]:sU,[oU.chainId]:oU,[cU.chainId]:cU,[uU.chainId]:uU,[lU.chainId]:lU,[dU.chainId]:dU,[pU.chainId]:pU,[hU.chainId]:hU,[fU.chainId]:fU,[mU.chainId]:mU,[yU.chainId]:yU,[gU.chainId]:gU,[bU.chainId]:bU,[vU.chainId]:vU,[wU.chainId]:wU,[xU.chainId]:xU,[_U.chainId]:_U,[TU.chainId]:TU,[IU.chainId]:IU,[EU.chainId]:EU,[CU.chainId]:CU,[kU.chainId]:kU,[AU.chainId]:AU,[PU.chainId]:PU,[SU.chainId]:SU,[RU.chainId]:RU,[MU.chainId]:MU,[NU.chainId]:NU,[BU.chainId]:BU,[DU.chainId]:DU,[LU.chainId]:LU,[OU.chainId]:OU,[qU.chainId]:qU,[FU.chainId]:FU,[WU.chainId]:WU,[UU.chainId]:UU,[HU.chainId]:HU,[jU.chainId]:jU,[zU.chainId]:zU,[KU.chainId]:KU,[GU.chainId]:GU,[VU.chainId]:VU,[YU.chainId]:YU,[$U.chainId]:$U,[QU.chainId]:QU,[JU.chainId]:JU,[ZU.chainId]:ZU,[XU.chainId]:XU,[eH.chainId]:eH,[tH.chainId]:tH,[rH.chainId]:rH,[nH.chainId]:nH,[aH.chainId]:aH,[iH.chainId]:iH,[sH.chainId]:sH,[oH.chainId]:oH,[cH.chainId]:cH,[uH.chainId]:uH,[lH.chainId]:lH,[dH.chainId]:dH,[pH.chainId]:pH,[hH.chainId]:hH,[fH.chainId]:fH,[mH.chainId]:mH,[yH.chainId]:yH,[gH.chainId]:gH,[bH.chainId]:bH,[vH.chainId]:vH,[wH.chainId]:wH,[xH.chainId]:xH,[_H.chainId]:_H,[Fv.chainId]:Fv,[TH.chainId]:TH,[IH.chainId]:IH,[EH.chainId]:EH,[CH.chainId]:CH,[kH.chainId]:kH,[Wv.chainId]:Wv,[Uv.chainId]:Uv,[AH.chainId]:AH,[PH.chainId]:PH,[SH.chainId]:SH,[RH.chainId]:RH,[MH.chainId]:MH,[NH.chainId]:NH,[BH.chainId]:BH,[DH.chainId]:DH,[LH.chainId]:LH,[OH.chainId]:OH,[qH.chainId]:qH,[FH.chainId]:FH,[WH.chainId]:WH,[UH.chainId]:UH,[HH.chainId]:HH,[jH.chainId]:jH,[zH.chainId]:zH,[KH.chainId]:KH,[GH.chainId]:GH,[VH.chainId]:VH,[YH.chainId]:YH,[$H.chainId]:$H,[QH.chainId]:QH,[JH.chainId]:JH,[ZH.chainId]:ZH,[XH.chainId]:XH,[ej.chainId]:ej,[tj.chainId]:tj,[rj.chainId]:rj,[nj.chainId]:nj,[aj.chainId]:aj,[ij.chainId]:ij,[sj.chainId]:sj,[oj.chainId]:oj,[cj.chainId]:cj,[uj.chainId]:uj,[lj.chainId]:lj,[dj.chainId]:dj,[pj.chainId]:pj,[hj.chainId]:hj,[fj.chainId]:fj,[mj.chainId]:mj,[yj.chainId]:yj,[gj.chainId]:gj,[Hv.chainId]:Hv,[bj.chainId]:bj,[vj.chainId]:vj,[wj.chainId]:wj,[xj.chainId]:xj,[_j.chainId]:_j,[Tj.chainId]:Tj,[Ij.chainId]:Ij,[Ej.chainId]:Ej,[Cj.chainId]:Cj,[kj.chainId]:kj,[Aj.chainId]:Aj,[Pj.chainId]:Pj,[Sj.chainId]:Sj,[Rj.chainId]:Rj,[Mj.chainId]:Mj,[Nj.chainId]:Nj,[Bj.chainId]:Bj,[Dj.chainId]:Dj,[Lj.chainId]:Lj,[Oj.chainId]:Oj,[qj.chainId]:qj,[Fj.chainId]:Fj,[Wj.chainId]:Wj,[Uj.chainId]:Uj,[Hj.chainId]:Hj,[jj.chainId]:jj,[zj.chainId]:zj,[Kj.chainId]:Kj,[Gj.chainId]:Gj,[Vj.chainId]:Vj,[Yj.chainId]:Yj,[$j.chainId]:$j,[Qj.chainId]:Qj,[Jj.chainId]:Jj,[Zj.chainId]:Zj,[Xj.chainId]:Xj,[ez.chainId]:ez,[tz.chainId]:tz,[rz.chainId]:rz,[nz.chainId]:nz,[az.chainId]:az,[iz.chainId]:iz,[sz.chainId]:sz,[oz.chainId]:oz,[cz.chainId]:cz,[uz.chainId]:uz,[lz.chainId]:lz,[dz.chainId]:dz,[pz.chainId]:pz,[hz.chainId]:hz,[fz.chainId]:fz,[mz.chainId]:mz,[yz.chainId]:yz,[gz.chainId]:gz,[bz.chainId]:bz,[vz.chainId]:vz,[wz.chainId]:wz,[xz.chainId]:xz,[_z.chainId]:_z,[Tz.chainId]:Tz,[Iz.chainId]:Iz,[Ez.chainId]:Ez,[Cz.chainId]:Cz,[kz.chainId]:kz,[Az.chainId]:Az,[Pz.chainId]:Pz,[Sz.chainId]:Sz,[Rz.chainId]:Rz,[Mz.chainId]:Mz,[Nz.chainId]:Nz,[Bz.chainId]:Bz,[Dz.chainId]:Dz,[Lz.chainId]:Lz,[Oz.chainId]:Oz,[jv.chainId]:jv,[qz.chainId]:qz,[Fz.chainId]:Fz,[Wz.chainId]:Wz,[Uz.chainId]:Uz,[Hz.chainId]:Hz,[jz.chainId]:jz,[zz.chainId]:zz,[Kz.chainId]:Kz,[Gz.chainId]:Gz,[Vz.chainId]:Vz,[Yz.chainId]:Yz,[$z.chainId]:$z,[Qz.chainId]:Qz,[Jz.chainId]:Jz,[Zz.chainId]:Zz,[Xz.chainId]:Xz,[eK.chainId]:eK,[tK.chainId]:tK,[rK.chainId]:rK,[nK.chainId]:nK,[aK.chainId]:aK,[iK.chainId]:iK,[sK.chainId]:sK,[oK.chainId]:oK,[cK.chainId]:cK,[uK.chainId]:uK,[lK.chainId]:lK,[dK.chainId]:dK,[pK.chainId]:pK,[hK.chainId]:hK,[fK.chainId]:fK,[mK.chainId]:mK,[yK.chainId]:yK,[gK.chainId]:gK,[bK.chainId]:bK,[vK.chainId]:vK,[wK.chainId]:wK,[xK.chainId]:xK,[_K.chainId]:_K,[TK.chainId]:TK,[IK.chainId]:IK,[EK.chainId]:EK,[CK.chainId]:CK,[kK.chainId]:kK,[AK.chainId]:AK,[PK.chainId]:PK,[SK.chainId]:SK,[RK.chainId]:RK,[MK.chainId]:MK,[NK.chainId]:NK,[BK.chainId]:BK,[DK.chainId]:DK,[LK.chainId]:LK,[OK.chainId]:OK,[qK.chainId]:qK,[FK.chainId]:FK,[WK.chainId]:WK,[UK.chainId]:UK,[HK.chainId]:HK,[jK.chainId]:jK,[zK.chainId]:zK,[KK.chainId]:KK,[GK.chainId]:GK,[VK.chainId]:VK,[YK.chainId]:YK,[$K.chainId]:$K,[QK.chainId]:QK,[JK.chainId]:JK,[ZK.chainId]:ZK,[XK.chainId]:XK,[eG.chainId]:eG,[tG.chainId]:tG,[rG.chainId]:rG,[nG.chainId]:nG,[aG.chainId]:aG,[iG.chainId]:iG,[sG.chainId]:sG,[oG.chainId]:oG,[cG.chainId]:cG,[uG.chainId]:uG,[lG.chainId]:lG,[dG.chainId]:dG,[pG.chainId]:pG,[hG.chainId]:hG,[fG.chainId]:fG,[mG.chainId]:mG,[yG.chainId]:yG,[gG.chainId]:gG,[bG.chainId]:bG,[vG.chainId]:vG,[wG.chainId]:wG,[xG.chainId]:xG,[_G.chainId]:_G,[TG.chainId]:TG,[IG.chainId]:IG,[EG.chainId]:EG,[CG.chainId]:CG,[kG.chainId]:kG,[AG.chainId]:AG,[PG.chainId]:PG,[SG.chainId]:SG,[zv.chainId]:zv},wet={[Sv.slug]:Sv.chainId,[D9.slug]:D9.chainId,[L9.slug]:L9.chainId,[O9.slug]:O9.chainId,[Rv.slug]:Rv.chainId,[q9.slug]:q9.chainId,[F9.slug]:F9.chainId,[W9.slug]:W9.chainId,[U9.slug]:U9.chainId,[Mv.slug]:Mv.chainId,[H9.slug]:H9.chainId,[j9.slug]:j9.chainId,[z9.slug]:z9.chainId,[K9.slug]:K9.chainId,[G9.slug]:G9.chainId,[V9.slug]:V9.chainId,[Y9.slug]:Y9.chainId,[$9.slug]:$9.chainId,[Q9.slug]:Q9.chainId,[J9.slug]:J9.chainId,[Z9.slug]:Z9.chainId,[X9.slug]:X9.chainId,[eM.slug]:eM.chainId,[tM.slug]:tM.chainId,[rM.slug]:rM.chainId,[nM.slug]:nM.chainId,[aM.slug]:aM.chainId,[iM.slug]:iM.chainId,[sM.slug]:sM.chainId,[oM.slug]:oM.chainId,[cM.slug]:cM.chainId,[uM.slug]:uM.chainId,[lM.slug]:lM.chainId,[dM.slug]:dM.chainId,[pM.slug]:pM.chainId,[hM.slug]:hM.chainId,[fM.slug]:fM.chainId,[mM.slug]:mM.chainId,[yM.slug]:yM.chainId,[gM.slug]:gM.chainId,[bM.slug]:bM.chainId,[vM.slug]:vM.chainId,[wM.slug]:wM.chainId,[xM.slug]:xM.chainId,[_M.slug]:_M.chainId,[TM.slug]:TM.chainId,[IM.slug]:IM.chainId,[EM.slug]:EM.chainId,[CM.slug]:CM.chainId,[kM.slug]:kM.chainId,[AM.slug]:AM.chainId,[PM.slug]:PM.chainId,[SM.slug]:SM.chainId,[RM.slug]:RM.chainId,[Nv.slug]:Nv.chainId,[MM.slug]:MM.chainId,[NM.slug]:NM.chainId,[BM.slug]:BM.chainId,[DM.slug]:DM.chainId,[LM.slug]:LM.chainId,[OM.slug]:OM.chainId,[qM.slug]:qM.chainId,[FM.slug]:FM.chainId,[WM.slug]:WM.chainId,[UM.slug]:UM.chainId,[HM.slug]:HM.chainId,[jM.slug]:jM.chainId,[zM.slug]:zM.chainId,[KM.slug]:KM.chainId,[GM.slug]:GM.chainId,[VM.slug]:VM.chainId,[YM.slug]:YM.chainId,[$M.slug]:$M.chainId,[QM.slug]:QM.chainId,[JM.slug]:JM.chainId,[ZM.slug]:ZM.chainId,[XM.slug]:XM.chainId,[eN.slug]:eN.chainId,[tN.slug]:tN.chainId,[rN.slug]:rN.chainId,[nN.slug]:nN.chainId,[aN.slug]:aN.chainId,[iN.slug]:iN.chainId,[sN.slug]:sN.chainId,[oN.slug]:oN.chainId,[cN.slug]:cN.chainId,[uN.slug]:uN.chainId,[lN.slug]:lN.chainId,[dN.slug]:dN.chainId,[pN.slug]:pN.chainId,[hN.slug]:hN.chainId,[fN.slug]:fN.chainId,[mN.slug]:mN.chainId,[Bv.slug]:Bv.chainId,[yN.slug]:yN.chainId,[gN.slug]:gN.chainId,[bN.slug]:bN.chainId,[vN.slug]:vN.chainId,[wN.slug]:wN.chainId,[xN.slug]:xN.chainId,[_N.slug]:_N.chainId,[TN.slug]:TN.chainId,[IN.slug]:IN.chainId,[EN.slug]:EN.chainId,[CN.slug]:CN.chainId,[kN.slug]:kN.chainId,[AN.slug]:AN.chainId,[PN.slug]:PN.chainId,[SN.slug]:SN.chainId,[RN.slug]:RN.chainId,[MN.slug]:MN.chainId,[NN.slug]:NN.chainId,[BN.slug]:BN.chainId,[DN.slug]:DN.chainId,[LN.slug]:LN.chainId,[ON.slug]:ON.chainId,[qN.slug]:qN.chainId,[FN.slug]:FN.chainId,[WN.slug]:WN.chainId,[UN.slug]:UN.chainId,[HN.slug]:HN.chainId,[jN.slug]:jN.chainId,[zN.slug]:zN.chainId,[Dv.slug]:Dv.chainId,[KN.slug]:KN.chainId,[GN.slug]:GN.chainId,[VN.slug]:VN.chainId,[YN.slug]:YN.chainId,[$N.slug]:$N.chainId,[QN.slug]:QN.chainId,[JN.slug]:JN.chainId,[ZN.slug]:ZN.chainId,[XN.slug]:XN.chainId,[eB.slug]:eB.chainId,[tB.slug]:tB.chainId,[rB.slug]:rB.chainId,[nB.slug]:nB.chainId,[aB.slug]:aB.chainId,[iB.slug]:iB.chainId,[sB.slug]:sB.chainId,[oB.slug]:oB.chainId,[cB.slug]:cB.chainId,[uB.slug]:uB.chainId,[lB.slug]:lB.chainId,[dB.slug]:dB.chainId,[pB.slug]:pB.chainId,[hB.slug]:hB.chainId,[fB.slug]:fB.chainId,[mB.slug]:mB.chainId,[yB.slug]:yB.chainId,[gB.slug]:gB.chainId,[bB.slug]:bB.chainId,[vB.slug]:vB.chainId,[Lv.slug]:Lv.chainId,[wB.slug]:wB.chainId,[xB.slug]:xB.chainId,[_B.slug]:_B.chainId,[TB.slug]:TB.chainId,[IB.slug]:IB.chainId,[EB.slug]:EB.chainId,[CB.slug]:CB.chainId,[kB.slug]:kB.chainId,[AB.slug]:AB.chainId,[PB.slug]:PB.chainId,[SB.slug]:SB.chainId,[RB.slug]:RB.chainId,[MB.slug]:MB.chainId,[NB.slug]:NB.chainId,[BB.slug]:BB.chainId,[DB.slug]:DB.chainId,[LB.slug]:LB.chainId,[OB.slug]:OB.chainId,[qB.slug]:qB.chainId,[FB.slug]:FB.chainId,[WB.slug]:WB.chainId,[UB.slug]:UB.chainId,[HB.slug]:HB.chainId,[jB.slug]:jB.chainId,[zB.slug]:zB.chainId,[KB.slug]:KB.chainId,[GB.slug]:GB.chainId,[VB.slug]:VB.chainId,[YB.slug]:YB.chainId,[$B.slug]:$B.chainId,[QB.slug]:QB.chainId,[Ov.slug]:Ov.chainId,[JB.slug]:JB.chainId,[ZB.slug]:ZB.chainId,[XB.slug]:XB.chainId,[eD.slug]:eD.chainId,[tD.slug]:tD.chainId,[rD.slug]:rD.chainId,[nD.slug]:nD.chainId,[aD.slug]:aD.chainId,[iD.slug]:iD.chainId,[sD.slug]:sD.chainId,[oD.slug]:oD.chainId,[cD.slug]:cD.chainId,[uD.slug]:uD.chainId,[lD.slug]:lD.chainId,[dD.slug]:dD.chainId,[pD.slug]:pD.chainId,[hD.slug]:hD.chainId,[fD.slug]:fD.chainId,[mD.slug]:mD.chainId,[yD.slug]:yD.chainId,[gD.slug]:gD.chainId,[bD.slug]:bD.chainId,[vD.slug]:vD.chainId,[wD.slug]:wD.chainId,[xD.slug]:xD.chainId,[_D.slug]:_D.chainId,[TD.slug]:TD.chainId,[ID.slug]:ID.chainId,[ED.slug]:ED.chainId,[CD.slug]:CD.chainId,[kD.slug]:kD.chainId,[AD.slug]:AD.chainId,[PD.slug]:PD.chainId,[SD.slug]:SD.chainId,[RD.slug]:RD.chainId,[MD.slug]:MD.chainId,[ND.slug]:ND.chainId,[BD.slug]:BD.chainId,[DD.slug]:DD.chainId,[LD.slug]:LD.chainId,[OD.slug]:OD.chainId,[qD.slug]:qD.chainId,[FD.slug]:FD.chainId,[WD.slug]:WD.chainId,[UD.slug]:UD.chainId,[HD.slug]:HD.chainId,[jD.slug]:jD.chainId,[zD.slug]:zD.chainId,[KD.slug]:KD.chainId,[GD.slug]:GD.chainId,[VD.slug]:VD.chainId,[YD.slug]:YD.chainId,[$D.slug]:$D.chainId,[QD.slug]:QD.chainId,[JD.slug]:JD.chainId,[ZD.slug]:ZD.chainId,[XD.slug]:XD.chainId,[eL.slug]:eL.chainId,[tL.slug]:tL.chainId,[rL.slug]:rL.chainId,[nL.slug]:nL.chainId,[aL.slug]:aL.chainId,[iL.slug]:iL.chainId,[sL.slug]:sL.chainId,[oL.slug]:oL.chainId,[cL.slug]:cL.chainId,[uL.slug]:uL.chainId,[lL.slug]:lL.chainId,[dL.slug]:dL.chainId,[pL.slug]:pL.chainId,[hL.slug]:hL.chainId,[fL.slug]:fL.chainId,[mL.slug]:mL.chainId,[yL.slug]:yL.chainId,[gL.slug]:gL.chainId,[bL.slug]:bL.chainId,[vL.slug]:vL.chainId,[wL.slug]:wL.chainId,[xL.slug]:xL.chainId,[_L.slug]:_L.chainId,[TL.slug]:TL.chainId,[IL.slug]:IL.chainId,[EL.slug]:EL.chainId,[CL.slug]:CL.chainId,[kL.slug]:kL.chainId,[AL.slug]:AL.chainId,[PL.slug]:PL.chainId,[SL.slug]:SL.chainId,[RL.slug]:RL.chainId,[ML.slug]:ML.chainId,[NL.slug]:NL.chainId,[BL.slug]:BL.chainId,[DL.slug]:DL.chainId,[LL.slug]:LL.chainId,[OL.slug]:OL.chainId,[qL.slug]:qL.chainId,[FL.slug]:FL.chainId,[WL.slug]:WL.chainId,[UL.slug]:UL.chainId,[HL.slug]:HL.chainId,[jL.slug]:jL.chainId,[zL.slug]:zL.chainId,[KL.slug]:KL.chainId,[GL.slug]:GL.chainId,[VL.slug]:VL.chainId,[YL.slug]:YL.chainId,[$L.slug]:$L.chainId,[QL.slug]:QL.chainId,[JL.slug]:JL.chainId,[ZL.slug]:ZL.chainId,[XL.slug]:XL.chainId,[eO.slug]:eO.chainId,[tO.slug]:tO.chainId,[rO.slug]:rO.chainId,[nO.slug]:nO.chainId,[aO.slug]:aO.chainId,[iO.slug]:iO.chainId,[sO.slug]:sO.chainId,[oO.slug]:oO.chainId,[cO.slug]:cO.chainId,[uO.slug]:uO.chainId,[lO.slug]:lO.chainId,[dO.slug]:dO.chainId,[pO.slug]:pO.chainId,[hO.slug]:hO.chainId,[fO.slug]:fO.chainId,[mO.slug]:mO.chainId,[yO.slug]:yO.chainId,[gO.slug]:gO.chainId,[bO.slug]:bO.chainId,[vO.slug]:vO.chainId,[wO.slug]:wO.chainId,[xO.slug]:xO.chainId,[_O.slug]:_O.chainId,[TO.slug]:TO.chainId,[IO.slug]:IO.chainId,[EO.slug]:EO.chainId,[CO.slug]:CO.chainId,[kO.slug]:kO.chainId,[AO.slug]:AO.chainId,[PO.slug]:PO.chainId,[SO.slug]:SO.chainId,[RO.slug]:RO.chainId,[MO.slug]:MO.chainId,[NO.slug]:NO.chainId,[BO.slug]:BO.chainId,[DO.slug]:DO.chainId,[LO.slug]:LO.chainId,[OO.slug]:OO.chainId,[qO.slug]:qO.chainId,[FO.slug]:FO.chainId,[WO.slug]:WO.chainId,[UO.slug]:UO.chainId,[HO.slug]:HO.chainId,[jO.slug]:jO.chainId,[zO.slug]:zO.chainId,[KO.slug]:KO.chainId,[GO.slug]:GO.chainId,[VO.slug]:VO.chainId,[YO.slug]:YO.chainId,[$O.slug]:$O.chainId,[QO.slug]:QO.chainId,[JO.slug]:JO.chainId,[ZO.slug]:ZO.chainId,[XO.slug]:XO.chainId,[eq.slug]:eq.chainId,[tq.slug]:tq.chainId,[rq.slug]:rq.chainId,[nq.slug]:nq.chainId,[aq.slug]:aq.chainId,[iq.slug]:iq.chainId,[sq.slug]:sq.chainId,[oq.slug]:oq.chainId,[cq.slug]:cq.chainId,[uq.slug]:uq.chainId,[lq.slug]:lq.chainId,[dq.slug]:dq.chainId,[pq.slug]:pq.chainId,[hq.slug]:hq.chainId,[fq.slug]:fq.chainId,[mq.slug]:mq.chainId,[yq.slug]:yq.chainId,[gq.slug]:gq.chainId,[bq.slug]:bq.chainId,[vq.slug]:vq.chainId,[wq.slug]:wq.chainId,[xq.slug]:xq.chainId,[_q.slug]:_q.chainId,[Tq.slug]:Tq.chainId,[Iq.slug]:Iq.chainId,[Eq.slug]:Eq.chainId,[Cq.slug]:Cq.chainId,[kq.slug]:kq.chainId,[Aq.slug]:Aq.chainId,[Pq.slug]:Pq.chainId,[Sq.slug]:Sq.chainId,[Rq.slug]:Rq.chainId,[Mq.slug]:Mq.chainId,[Nq.slug]:Nq.chainId,[Bq.slug]:Bq.chainId,[Dq.slug]:Dq.chainId,[Lq.slug]:Lq.chainId,[Oq.slug]:Oq.chainId,[qq.slug]:qq.chainId,[Fq.slug]:Fq.chainId,[Wq.slug]:Wq.chainId,[Uq.slug]:Uq.chainId,[Hq.slug]:Hq.chainId,[jq.slug]:jq.chainId,[zq.slug]:zq.chainId,[Kq.slug]:Kq.chainId,[Gq.slug]:Gq.chainId,[Vq.slug]:Vq.chainId,[Yq.slug]:Yq.chainId,[$q.slug]:$q.chainId,[Qq.slug]:Qq.chainId,[Jq.slug]:Jq.chainId,[Zq.slug]:Zq.chainId,[Xq.slug]:Xq.chainId,[eF.slug]:eF.chainId,[tF.slug]:tF.chainId,[rF.slug]:rF.chainId,[nF.slug]:nF.chainId,[aF.slug]:aF.chainId,[iF.slug]:iF.chainId,[sF.slug]:sF.chainId,[oF.slug]:oF.chainId,[cF.slug]:cF.chainId,[uF.slug]:uF.chainId,[lF.slug]:lF.chainId,[qv.slug]:qv.chainId,[dF.slug]:dF.chainId,[pF.slug]:pF.chainId,[hF.slug]:hF.chainId,[fF.slug]:fF.chainId,[mF.slug]:mF.chainId,[yF.slug]:yF.chainId,[gF.slug]:gF.chainId,[bF.slug]:bF.chainId,[vF.slug]:vF.chainId,[wF.slug]:wF.chainId,[xF.slug]:xF.chainId,[_F.slug]:_F.chainId,[TF.slug]:TF.chainId,[IF.slug]:IF.chainId,[EF.slug]:EF.chainId,[CF.slug]:CF.chainId,[kF.slug]:kF.chainId,[AF.slug]:AF.chainId,[PF.slug]:PF.chainId,[SF.slug]:SF.chainId,[RF.slug]:RF.chainId,[MF.slug]:MF.chainId,[NF.slug]:NF.chainId,[BF.slug]:BF.chainId,[DF.slug]:DF.chainId,[LF.slug]:LF.chainId,[OF.slug]:OF.chainId,[qF.slug]:qF.chainId,[FF.slug]:FF.chainId,[WF.slug]:WF.chainId,[UF.slug]:UF.chainId,[HF.slug]:HF.chainId,[jF.slug]:jF.chainId,[zF.slug]:zF.chainId,[KF.slug]:KF.chainId,[GF.slug]:GF.chainId,[VF.slug]:VF.chainId,[YF.slug]:YF.chainId,[$F.slug]:$F.chainId,[QF.slug]:QF.chainId,[JF.slug]:JF.chainId,[ZF.slug]:ZF.chainId,[XF.slug]:XF.chainId,[eW.slug]:eW.chainId,[tW.slug]:tW.chainId,[rW.slug]:rW.chainId,[nW.slug]:nW.chainId,[aW.slug]:aW.chainId,[iW.slug]:iW.chainId,[sW.slug]:sW.chainId,[oW.slug]:oW.chainId,[cW.slug]:cW.chainId,[uW.slug]:uW.chainId,[lW.slug]:lW.chainId,[dW.slug]:dW.chainId,[pW.slug]:pW.chainId,[hW.slug]:hW.chainId,[fW.slug]:fW.chainId,[mW.slug]:mW.chainId,[yW.slug]:yW.chainId,[gW.slug]:gW.chainId,[bW.slug]:bW.chainId,[vW.slug]:vW.chainId,[wW.slug]:wW.chainId,[xW.slug]:xW.chainId,[_W.slug]:_W.chainId,[TW.slug]:TW.chainId,[IW.slug]:IW.chainId,[EW.slug]:EW.chainId,[CW.slug]:CW.chainId,[kW.slug]:kW.chainId,[AW.slug]:AW.chainId,[PW.slug]:PW.chainId,[SW.slug]:SW.chainId,[RW.slug]:RW.chainId,[MW.slug]:MW.chainId,[NW.slug]:NW.chainId,[BW.slug]:BW.chainId,[DW.slug]:DW.chainId,[LW.slug]:LW.chainId,[OW.slug]:OW.chainId,[qW.slug]:qW.chainId,[FW.slug]:FW.chainId,[WW.slug]:WW.chainId,[UW.slug]:UW.chainId,[HW.slug]:HW.chainId,[jW.slug]:jW.chainId,[zW.slug]:zW.chainId,[KW.slug]:KW.chainId,[GW.slug]:GW.chainId,[VW.slug]:VW.chainId,[YW.slug]:YW.chainId,[$W.slug]:$W.chainId,[QW.slug]:QW.chainId,[JW.slug]:JW.chainId,[ZW.slug]:ZW.chainId,[XW.slug]:XW.chainId,[eU.slug]:eU.chainId,[tU.slug]:tU.chainId,[rU.slug]:rU.chainId,[nU.slug]:nU.chainId,[aU.slug]:aU.chainId,[iU.slug]:iU.chainId,[sU.slug]:sU.chainId,[oU.slug]:oU.chainId,[cU.slug]:cU.chainId,[uU.slug]:uU.chainId,[lU.slug]:lU.chainId,[dU.slug]:dU.chainId,[pU.slug]:pU.chainId,[hU.slug]:hU.chainId,[fU.slug]:fU.chainId,[mU.slug]:mU.chainId,[yU.slug]:yU.chainId,[gU.slug]:gU.chainId,[bU.slug]:bU.chainId,[vU.slug]:vU.chainId,[wU.slug]:wU.chainId,[xU.slug]:xU.chainId,[_U.slug]:_U.chainId,[TU.slug]:TU.chainId,[IU.slug]:IU.chainId,[EU.slug]:EU.chainId,[CU.slug]:CU.chainId,[kU.slug]:kU.chainId,[AU.slug]:AU.chainId,[PU.slug]:PU.chainId,[SU.slug]:SU.chainId,[RU.slug]:RU.chainId,[MU.slug]:MU.chainId,[NU.slug]:NU.chainId,[BU.slug]:BU.chainId,[DU.slug]:DU.chainId,[LU.slug]:LU.chainId,[OU.slug]:OU.chainId,[qU.slug]:qU.chainId,[FU.slug]:FU.chainId,[WU.slug]:WU.chainId,[UU.slug]:UU.chainId,[HU.slug]:HU.chainId,[jU.slug]:jU.chainId,[zU.slug]:zU.chainId,[KU.slug]:KU.chainId,[GU.slug]:GU.chainId,[VU.slug]:VU.chainId,[YU.slug]:YU.chainId,[$U.slug]:$U.chainId,[QU.slug]:QU.chainId,[JU.slug]:JU.chainId,[ZU.slug]:ZU.chainId,[XU.slug]:XU.chainId,[eH.slug]:eH.chainId,[tH.slug]:tH.chainId,[rH.slug]:rH.chainId,[nH.slug]:nH.chainId,[aH.slug]:aH.chainId,[iH.slug]:iH.chainId,[sH.slug]:sH.chainId,[oH.slug]:oH.chainId,[cH.slug]:cH.chainId,[uH.slug]:uH.chainId,[lH.slug]:lH.chainId,[dH.slug]:dH.chainId,[pH.slug]:pH.chainId,[hH.slug]:hH.chainId,[fH.slug]:fH.chainId,[mH.slug]:mH.chainId,[yH.slug]:yH.chainId,[gH.slug]:gH.chainId,[bH.slug]:bH.chainId,[vH.slug]:vH.chainId,[wH.slug]:wH.chainId,[xH.slug]:xH.chainId,[_H.slug]:_H.chainId,[Fv.slug]:Fv.chainId,[TH.slug]:TH.chainId,[IH.slug]:IH.chainId,[EH.slug]:EH.chainId,[CH.slug]:CH.chainId,[kH.slug]:kH.chainId,[Wv.slug]:Wv.chainId,[Uv.slug]:Uv.chainId,[AH.slug]:AH.chainId,[PH.slug]:PH.chainId,[SH.slug]:SH.chainId,[RH.slug]:RH.chainId,[MH.slug]:MH.chainId,[NH.slug]:NH.chainId,[BH.slug]:BH.chainId,[DH.slug]:DH.chainId,[LH.slug]:LH.chainId,[OH.slug]:OH.chainId,[qH.slug]:qH.chainId,[FH.slug]:FH.chainId,[WH.slug]:WH.chainId,[UH.slug]:UH.chainId,[HH.slug]:HH.chainId,[jH.slug]:jH.chainId,[zH.slug]:zH.chainId,[KH.slug]:KH.chainId,[GH.slug]:GH.chainId,[VH.slug]:VH.chainId,[YH.slug]:YH.chainId,[$H.slug]:$H.chainId,[QH.slug]:QH.chainId,[JH.slug]:JH.chainId,[ZH.slug]:ZH.chainId,[XH.slug]:XH.chainId,[ej.slug]:ej.chainId,[tj.slug]:tj.chainId,[rj.slug]:rj.chainId,[nj.slug]:nj.chainId,[aj.slug]:aj.chainId,[ij.slug]:ij.chainId,[sj.slug]:sj.chainId,[oj.slug]:oj.chainId,[cj.slug]:cj.chainId,[uj.slug]:uj.chainId,[lj.slug]:lj.chainId,[dj.slug]:dj.chainId,[pj.slug]:pj.chainId,[hj.slug]:hj.chainId,[fj.slug]:fj.chainId,[mj.slug]:mj.chainId,[yj.slug]:yj.chainId,[gj.slug]:gj.chainId,[Hv.slug]:Hv.chainId,[bj.slug]:bj.chainId,[vj.slug]:vj.chainId,[wj.slug]:wj.chainId,[xj.slug]:xj.chainId,[_j.slug]:_j.chainId,[Tj.slug]:Tj.chainId,[Ij.slug]:Ij.chainId,[Ej.slug]:Ej.chainId,[Cj.slug]:Cj.chainId,[kj.slug]:kj.chainId,[Aj.slug]:Aj.chainId,[Pj.slug]:Pj.chainId,[Sj.slug]:Sj.chainId,[Rj.slug]:Rj.chainId,[Mj.slug]:Mj.chainId,[Nj.slug]:Nj.chainId,[Bj.slug]:Bj.chainId,[Dj.slug]:Dj.chainId,[Lj.slug]:Lj.chainId,[Oj.slug]:Oj.chainId,[qj.slug]:qj.chainId,[Fj.slug]:Fj.chainId,[Wj.slug]:Wj.chainId,[Uj.slug]:Uj.chainId,[Hj.slug]:Hj.chainId,[jj.slug]:jj.chainId,[zj.slug]:zj.chainId,[Kj.slug]:Kj.chainId,[Gj.slug]:Gj.chainId,[Vj.slug]:Vj.chainId,[Yj.slug]:Yj.chainId,[$j.slug]:$j.chainId,[Qj.slug]:Qj.chainId,[Jj.slug]:Jj.chainId,[Zj.slug]:Zj.chainId,[Xj.slug]:Xj.chainId,[ez.slug]:ez.chainId,[tz.slug]:tz.chainId,[rz.slug]:rz.chainId,[nz.slug]:nz.chainId,[az.slug]:az.chainId,[iz.slug]:iz.chainId,[sz.slug]:sz.chainId,[oz.slug]:oz.chainId,[cz.slug]:cz.chainId,[uz.slug]:uz.chainId,[lz.slug]:lz.chainId,[dz.slug]:dz.chainId,[pz.slug]:pz.chainId,[hz.slug]:hz.chainId,[fz.slug]:fz.chainId,[mz.slug]:mz.chainId,[yz.slug]:yz.chainId,[gz.slug]:gz.chainId,[bz.slug]:bz.chainId,[vz.slug]:vz.chainId,[wz.slug]:wz.chainId,[xz.slug]:xz.chainId,[_z.slug]:_z.chainId,[Tz.slug]:Tz.chainId,[Iz.slug]:Iz.chainId,[Ez.slug]:Ez.chainId,[Cz.slug]:Cz.chainId,[kz.slug]:kz.chainId,[Az.slug]:Az.chainId,[Pz.slug]:Pz.chainId,[Sz.slug]:Sz.chainId,[Rz.slug]:Rz.chainId,[Mz.slug]:Mz.chainId,[Nz.slug]:Nz.chainId,[Bz.slug]:Bz.chainId,[Dz.slug]:Dz.chainId,[Lz.slug]:Lz.chainId,[Oz.slug]:Oz.chainId,[jv.slug]:jv.chainId,[qz.slug]:qz.chainId,[Fz.slug]:Fz.chainId,[Wz.slug]:Wz.chainId,[Uz.slug]:Uz.chainId,[Hz.slug]:Hz.chainId,[jz.slug]:jz.chainId,[zz.slug]:zz.chainId,[Kz.slug]:Kz.chainId,[Gz.slug]:Gz.chainId,[Vz.slug]:Vz.chainId,[Yz.slug]:Yz.chainId,[$z.slug]:$z.chainId,[Qz.slug]:Qz.chainId,[Jz.slug]:Jz.chainId,[Zz.slug]:Zz.chainId,[Xz.slug]:Xz.chainId,[eK.slug]:eK.chainId,[tK.slug]:tK.chainId,[rK.slug]:rK.chainId,[nK.slug]:nK.chainId,[aK.slug]:aK.chainId,[iK.slug]:iK.chainId,[sK.slug]:sK.chainId,[oK.slug]:oK.chainId,[cK.slug]:cK.chainId,[uK.slug]:uK.chainId,[lK.slug]:lK.chainId,[dK.slug]:dK.chainId,[pK.slug]:pK.chainId,[hK.slug]:hK.chainId,[fK.slug]:fK.chainId,[mK.slug]:mK.chainId,[yK.slug]:yK.chainId,[gK.slug]:gK.chainId,[bK.slug]:bK.chainId,[vK.slug]:vK.chainId,[wK.slug]:wK.chainId,[xK.slug]:xK.chainId,[_K.slug]:_K.chainId,[TK.slug]:TK.chainId,[IK.slug]:IK.chainId,[EK.slug]:EK.chainId,[CK.slug]:CK.chainId,[kK.slug]:kK.chainId,[AK.slug]:AK.chainId,[PK.slug]:PK.chainId,[SK.slug]:SK.chainId,[RK.slug]:RK.chainId,[MK.slug]:MK.chainId,[NK.slug]:NK.chainId,[BK.slug]:BK.chainId,[DK.slug]:DK.chainId,[LK.slug]:LK.chainId,[OK.slug]:OK.chainId,[qK.slug]:qK.chainId,[FK.slug]:FK.chainId,[WK.slug]:WK.chainId,[UK.slug]:UK.chainId,[HK.slug]:HK.chainId,[jK.slug]:jK.chainId,[zK.slug]:zK.chainId,[KK.slug]:KK.chainId,[GK.slug]:GK.chainId,[VK.slug]:VK.chainId,[YK.slug]:YK.chainId,[$K.slug]:$K.chainId,[QK.slug]:QK.chainId,[JK.slug]:JK.chainId,[ZK.slug]:ZK.chainId,[XK.slug]:XK.chainId,[eG.slug]:eG.chainId,[tG.slug]:tG.chainId,[rG.slug]:rG.chainId,[nG.slug]:nG.chainId,[aG.slug]:aG.chainId,[iG.slug]:iG.chainId,[sG.slug]:sG.chainId,[oG.slug]:oG.chainId,[cG.slug]:cG.chainId,[uG.slug]:uG.chainId,[lG.slug]:lG.chainId,[dG.slug]:dG.chainId,[pG.slug]:pG.chainId,[hG.slug]:hG.chainId,[fG.slug]:fG.chainId,[mG.slug]:mG.chainId,[yG.slug]:yG.chainId,[gG.slug]:gG.chainId,[bG.slug]:bG.chainId,[vG.slug]:vG.chainId,[wG.slug]:wG.chainId,[xG.slug]:xG.chainId,[_G.slug]:_G.chainId,[TG.slug]:TG.chainId,[IG.slug]:IG.chainId,[EG.slug]:EG.chainId,[CG.slug]:CG.chainId,[kG.slug]:kG.chainId,[AG.slug]:AG.chainId,[PG.slug]:PG.chainId,[SG.slug]:SG.chainId,[zv.slug]:zv.chainId};function sCr(r){return r in S_e}function oCr(r){return r in wet}function cCr(r){if(sCr(r))return S_e[r];throw new Error(`Chain with chainId "${r}" not found`)}function uCr(r){if(oCr(r))return S_e[wet[r]];throw new Error(`Chain with slug "${r}" not found`)}S.AcalaMandalaTestnet=hD;S.AcalaNetwork=MD;S.AcalaNetworkTestnet=mD;S.AdilDevnet=iz;S.AdilTestnet=tW;S.AerochainTestnet=ND;S.AiozNetwork=eB;S.AiozNetworkTestnet=yF;S.Airdao=LU;S.AirdaoTestnet=YU;S.Aitd=oO;S.AitdTestnet=cO;S.Akroma=dz;S.Alaya=pz;S.AlayaDevTestnet=hz;S.AlphNetwork=RW;S.Altcoinchain=Pq;S.Alveychain=iF;S.Alyx=sO;S.AlyxChainTestnet=zN;S.Amana=bW;S.AmanaMixnet=vj;S.AmanaPrivnet=wj;S.AmanaTestnet=bj;S.AmbrosChain=KD;S.AmeChain=nB;S.Amstar=pO;S.AmstarTestnet=OL;S.Anduschain=PK;S.AnytypeEvmChain=IO;S.Aquachain=HK;S.Arbitrum=Fv;S.ArbitrumGoerli=jv;S.ArbitrumNova=TH;S.ArbitrumOnXdai=dB;S.ArbitrumRinkeby=Oz;S.ArcologyTestnet=MN;S.Arevia=Aq;S.ArmoniaEvaChain=$N;S.ArmoniaEvaChainTestnet=QN;S.ArtisSigma1=xz;S.ArtisTestnetTau1=_z;S.Astar=pD;S.Astra=hU;S.AstraTestnet=mU;S.Atelier=KO;S.Atheios=wO;S.Athereum=kH;S.AtoshiTestnet=XN;S.Aurora=iG;S.AuroraBetanet=oG;S.AuroraTestnet=sG;S.AutobahnNetwork=RH;S.AutonityBakerlooThamesTestnet=jK;S.AutonityPiccadillyThamesTestnet=zK;S.AuxiliumNetwork=OK;S.Avalanche=Uv;S.AvalancheFuji=Wv;S.Aves=mH;S.BandaiNamcoResearchVerse=jD;S.Base=CW;S.BaseGoerli=kj;S.BeagleMessagingChain=bO;S.BeanecoSmartchain=Yz;S.BearNetworkChain=$z;S.BearNetworkChainTestnet=Jz;S.BeoneChainTestnet=xW;S.BeresheetBereevmTestnet=oq;S.Berylbit=GW;S.BeverlyHills=Rj;S.Bifrost=zq;S.BifrostTestnet=DH;S.Binance=Nv;S.BinanceTestnet=Bv;S.Bitcichain=OO;S.BitcichainTestnet=qO;S.BitcoinEvm=_q;S.Bitgert=pH;S.Bitindi=mF;S.BitindiTestnet=fF;S.BitkubChain=mN;S.BitkubChainTestnet=rH;S.Bittex=rF;S.BittorrentChain=lB;S.BittorrentChainTestnet=_L;S.Bityuan=Wq;S.BlackfortExchangeNetwork=kF;S.BlackfortExchangeNetworkTestnet=IF;S.BlgTestnet=IU;S.BlockchainGenesis=iU;S.BlockchainStation=ID;S.BlockchainStationTestnet=ED;S.BlocktonBlockchain=TW;S.Bloxberg=jW;S.Bmc=iB;S.BmcTestnet=sB;S.BobaAvax=AH;S.BobaBnb=zH;S.BobaBnbTestnet=ZW;S.BobaNetwork=EB;S.BobaNetworkGoerliTestnet=Fq;S.BobaNetworkRinkebyTestnet=iM;S.BobabaseTestnet=aO;S.Bobabeam=nO;S.BobafujiTestnet=wF;S.Bobaopera=RB;S.BobaoperaTestnet=dF;S.BombChain=kq;S.BombChainTestnet=Sq;S.BonNetwork=LO;S.Bosagora=bq;S.Brochain=Yj;S.Bronos=CL;S.BronosTestnet=EL;S.Btachain=xO;S.BtcixNetwork=UU;S.Callisto=qD;S.CallistoTestnet=jU;S.CalypsoNftHubSkale=lG;S.CalypsoNftHubSkaleTestnet=ZK;S.Camelark=HU;S.CaminoCChain=eD;S.Candle=cD;S.Canto=aW;S.CantoTestnet=kD;S.CatecoinChain=vO;S.Celo=IH;S.CeloAlfajoresTestnet=SH;S.CeloBaklavaTestnet=XH;S.CennznetAzalea=KU;S.CennznetNikau=Hq;S.CennznetRata=Uq;S.ChainVerse=LF;S.Cheapeth=RD;S.ChiadoTestnet=sU;S.ChilizScovilleTestnet=Pj;S.CicChain=dO;S.CicChainTestnet=JL;S.Cloudtx=cH;S.CloudtxTestnet=uH;S.Cloudwalk=tq;S.CloudwalkTestnet=eq;S.CloverTestnet=wL;S.ClvParachain=xL;S.Cmp=Iz;S.CmpTestnet=jz;S.CoinexSmartChain=AM;S.CoinexSmartChainTestnet=PM;S.ColumbusTestNetwork=tD;S.CondorTestNetwork=cz;S.Condrieu=aj;S.ConfluxEspace=TL;S.ConfluxEspaceTestnet=GM;S.ConstaTestnet=GB;S.CoreBlockchain=NL;S.CoreBlockchainTestnet=ML;S.CreditSmartchain=AU;S.CronosBeta=rM;S.CronosTestnet=WB;S.Crossbell=aF;S.CryptoEmergency=oB;S.Cryptocoinpay=lU;S.CryptokylinTestnet=fN;S.Crystaleum=Vj;S.CtexScanBlockchain=mO;S.CubeChain=SO;S.CubeChainTestnet=RO;S.Cyberdecknet=nG;S.Cybertrust=Aj;S.DChain=WO;S.DarwiniaCrabNetwork=xM;S.DarwiniaNetwork=TM;S.DarwiniaPangolinTestnet=wM;S.DarwiniaPangoroTestnet=_M;S.Datahopper=wG;S.DaxChain=VN;S.DbchainTestnet=HM;S.Debank=SN;S.DebankTestnet=PN;S.DebounceSubnetTestnet=Gq;S.DecentralizedWeb=qN;S.DecimalSmartChain=QM;S.DecimalSmartChainTestnet=mz;S.DefichainEvmNetwork=DL;S.DefichainEvmNetworkTestnet=LL;S.Dehvo=kN;S.DexalotSubnet=Wz;S.DexalotSubnetTestnet=Fz;S.DexillaTestnet=UO;S.DexitNetwork=zD;S.DfkChain=WH;S.DfkChainTest=qB;S.DiodePrenet=G9;S.DiodeTestnetStaging=z9;S.DithereumTestnet=dM;S.Dogcoin=BL;S.DogcoinTestnet=YW;S.Dogechain=JO;S.DogechainTestnet=dD;S.DokenSuperChain=ZH;S.DosChain=oW;S.DosFujiSubnet=iO;S.DosTesnet=oF;S.DoubleAChain=rD;S.DoubleAChainTestnet=nD;S.DracNetwork=sF;S.DraconesFinancialServices=EW;S.Dxchain=hM;S.DxchainTestnet=VM;S.Dyno=cF;S.DynoTestnet=uF;S.Ecoball=fq;S.EcoballTestnetEspuma=mq;S.Ecredits=tj;S.EcreditsTestnet=rj;S.EdexaTestnet=QO;S.EdgewareEdgeevm=sq;S.Ekta=$O;S.ElaDidSidechain=X9;S.ElaDidSidechainTestnet=eM;S.ElastosSmartChain=J9;S.ElastosSmartChainTestnet=Z9;S.Eleanor=HO;S.EllaTheHeart=JF;S.Ellaism=FM;S.EluvioContentFabric=sK;S.Elysium=lO;S.ElysiumTestnet=uO;S.EmpireNetwork=nF;S.EnduranceSmartChain=wD;S.Energi=vH;S.EnergiTestnet=LH;S.EnergyWebChain=bB;S.EnergyWebVoltaTestnet=pj;S.EnnothemProterozoic=IM;S.EnnothemTestnetPioneer=EM;S.Enterchain=KL;S.Enuls=NN;S.EnulsTestnet=BN;S.Eos=BM;S.Eraswap=RF;S.Ethereum=Sv;S.EthereumClassic=LM;S.EthereumClassicTestnetKotti=q9;S.EthereumClassicTestnetMorden=OM;S.EthereumClassicTestnetMordor=qM;S.EthereumFair=zz;S.Ethergem=YO;S.Etherinc=bN;S.EtherliteChain=CN;S.EthersocialNetwork=oH;S.EthoProtocol=oK;S.Etica=JH;S.EtndChainS=sz;S.EuropaSkaleChain=xG;S.Eurus=yL;S.EurusTestnet=VO;S.Evanesco=Tq;S.EvanescoTestnet=HL;S.Evmos=KW;S.EvmosTestnet=zW;S.EvriceNetwork=gL;S.Excelon=BK;S.ExcoincialChain=LK;S.ExcoincialChainVoltaTestnet=DK;S.ExosamaNetwork=yq;S.ExpanseNetwork=D9;S.ExzoNetwork=GL;S.EzchainCChain=Oq;S.EzchainCChainTestnet=qq;S.FXCoreNetwork=oD;S.Factory127=UN;S.FantasiaChain=HD;S.Fantom=Lv;S.FantomTestnet=qv;S.FastexChainTestnet=qz;S.Fibonacci=TU;S.Filecoin=NB;S.FilecoinButterflyTestnet=fK;S.FilecoinCalibrationTestnet=kz;S.FilecoinHyperspaceTestnet=Kq;S.FilecoinLocalTestnet=FK;S.FilecoinWallabyTestnet=dH;S.Findora=vq;S.FindoraForge=xq;S.FindoraTestnet=wq;S.Firechain=sD;S.FirenzeTestNetwork=yj;S.Flachain=qK;S.Flana=vW;S.FlanaMixnet=_j;S.FlanaPrivnet=Tj;S.FlanaTestnet=xj;S.Flare=K9;S.FlareTestnetCoston=V9;S.FlareTestnetCoston2=AN;S.Floripa=BH;S.Fncy=YM;S.FncyTestnet=iK;S.FreightTrustNetwork=hB;S.Frenchain=PH;S.FrenchainTestnet=ZB;S.FrontierOfDreamsTestnet=qU;S.Fuse=LN;S.FuseSparknet=ON;S.Fusion=hH;S.FusionTestnet=MH;S.Ganache=FF;S.GarizonStage0=lN;S.GarizonStage1=dN;S.GarizonStage2=pN;S.GarizonStage3=hN;S.GarizonTestnetStage0=VD;S.GarizonTestnetStage1=YD;S.GarizonTestnetStage2=$D;S.GarizonTestnetStage3=QD;S.Gatechain=sN;S.GatechainTestnet=iN;S.GatherDevnetNetwork=eG;S.GatherNetwork=VK;S.GatherTestnetNetwork=XK;S.GearZeroNetwork=aD;S.GearZeroNetworkTestnet=Ez;S.Genechain=tN;S.GenesisCoin=VW;S.GenesisL1=sM;S.GenesisL1Testnet=nM;S.GiantMammoth=HW;S.GitshockCartenzTestnet=NO;S.Gnosis=gN;S.Gochain=DM;S.GochainTestnet=lH;S.Godwoken=dj;S.GodwokenTestnetV1=lj;S.Goerli=Rv;S.GoldSmartChain=GF;S.GoldSmartChainTestnet=gj;S.GonChain=nU;S.Gooddata=lM;S.GooddataTestnet=uM;S.GraphlinqBlockchain=bD;S.Gton=pL;S.GtonTestnet=qH;S.Haic=DD;S.Halo=ZL;S.HammerChain=tH;S.Hapchain=_K;S.HapchainTestnet=Rz;S.HaqqChainTestnet=UH;S.HaqqNetwork=gU;S.HaradevTestnet=kG;S.HarmonyDevnetShard0=vG;S.HarmonyShard0=dG;S.HarmonyShard1=pG;S.HarmonyShard2=hG;S.HarmonyShard3=fG;S.HarmonyTestnetShard0=mG;S.HarmonyTestnetShard1=yG;S.HarmonyTestnetShard2=gG;S.HarmonyTestnetShard3=bG;S.Hashbit=yU;S.HashkeyChainTestnet=vz;S.HaymoTestnet=wz;S.HazlorTestnet=sW;S.Hedera=CB;S.HederaLocalnet=PB;S.HederaPreviewnet=AB;S.HederaTestnet=kB;S.HertzNetwork=nH;S.HighPerformanceBlockchain=TB;S.HikaNetworkTestnet=qF;S.HomeVerse=WU;S.HooSmartChain=KM;S.HooSmartChainTestnet=tB;S.HorizenYumaTestnet=_O;S.Htmlcoin=xF;S.HumanProtocol=aG;S.Humanode=MF;S.HuobiEcoChain=HN;S.HuobiEcoChainTestnet=wB;S.HyperonchainTestnet=YB;S.Idchain=$M;S.IexecSidechain=jN;S.Imversed=mK;S.ImversedTestnet=yK;S.Iolite=RK;S.IoraChain=UL;S.IotexNetwork=_F;S.IotexNetworkTestnet=TF;S.IposNetwork=rG;S.IvarChain=Sj;S.IvarChainTestnet=OU;S.J2oTaro=yH;S.Jellie=yz;S.JfinChain=Zq;S.JibchainL1=UW;S.JoysDigital=WK;S.JoysDigitalTestnet=GK;S.KaibaLightningChainTestnet=wN;S.Kardiachain=tM;S.KaruraNetwork=_D;S.KaruraNetworkTestnet=fD;S.KavaEvm=Eq;S.KavaEvmTestnet=Iq;S.Kcc=BB;S.KccTestnet=DB;S.Kekchain=Dz;S.KekchainKektest=Lz;S.Kerleano=AO;S.Kiln=lK;S.Kintsugi=uK;S.KlaytnCypress=_W;S.KlaytnTestnetBaobab=hL;S.Klyntar=XF;S.Kortho=Nq;S.Korthotest=IW;S.Kovan=vM;S.LaTestnet=QB;S.Lachain=yB;S.LachainTestnet=gB;S.LambdaTestnet=Mj;S.LatamBlockchainResilTestnet=rB;S.LightlinkPegasusTestnet=DO;S.LightlinkPhoenix=BO;S.Lightstreams=ZN;S.LightstreamsTestnet=JN;S.LineaTestnet=GH;S.Lisinski=VB;S.LiveplexOracleevm=OH;S.Localhost=zv;S.Loopnetwork=MU;S.LucidBlockchain=BD;S.LuckyNetwork=lL;S.Ludan=TO;S.LycanChain=CD;S.Maistestsubnet=UK;S.Mammoth=WW;S.Mantle=AF;S.MantleTestnet=PF;S.Map=$U;S.MapMakalu=fB;S.MaroBlockchain=NW;S.Mas=bz;S.Mathchain=qL;S.MathchainTestnet=FL;S.MdglTestnet=lW;S.MemoSmartChain=cL;S.MeshnyanTestnet=gD;S.Metacodechain=tF;S.Metadium=H9;S.MetadiumTestnet=j9;S.Metadot=BU;S.MetadotTestnet=DU;S.MetalCChain=Mz;S.MetalTahoeCChain=Nz;S.Metaplayerone=gq;S.Meter=nN;S.MeterTestnet=aN;S.MetisAndromeda=kL;S.MetisGoerliTestnet=yD;S.MilkomedaA1=XO;S.MilkomedaA1Testnet=lz;S.MilkomedaC1=ZO;S.MilkomedaC1Testnet=uz;S.MintmeComCoin=eH;S.Mix=JM;S.MixinVirtualMachine=hj;S.Mizana=wW;S.MizanaMixnet=Ej;S.MizanaPrivnet=Cj;S.MizanaTestnet=Ij;S.Moac=AL;S.MoacTestnet=pB;S.MolereumNetwork=SG;S.MoonbaseAlpha=tO;S.Moonbeam=XL;S.Moonriver=eO;S.Moonrock=rO;S.Multivac=ej;S.Mumbai=Hv;S.MunodeTestnet=rL;S.Musicoin=wK;S.MyownTestnet=eU;S.MythicalChain=fz;S.Nahmii=BF;S.Nahmii3=pF;S.Nahmii3Testnet=hF;S.NahmiiTestnet=DF;S.Nebula=uG;S.NebulaStaging=tG;S.NebulaTestnet=TN;S.NeonEvm=$K;S.NeonEvmDevnet=YK;S.NeonEvmTestnet=QK;S.NepalBlockchainNetwork=sL;S.Newton=bL;S.NewtonTestnet=mL;S.Nexi=vF;S.NovaNetwork=oN;S.Ntity=CG;S.Numbers=cU;S.NumbersTestnet=uU;S.OasisEmerald=CH;S.OasisEmeraldTestnet=EH;S.OasisSapphire=JU;S.OasisSapphireTestnet=ZU;S.Oasischain=aH;S.Oasys=vB;S.Octaspace=Zz;S.Oho=wH;S.Okbchain=uB;S.OkbchainTestnet=cB;S.OkexchainTestnet=WM;S.Okxchain=UM;S.OmPlatform=QL;S.Omax=MB;S.Omchain=GU;S.Oneledger=JK;S.OneledgerTestnetFrankenstein=TG;S.Ontology=NM;S.OntologyTestnet=WF;S.OnusChain=GO;S.OnusChainTestnet=FO;S.OoneChainTestnet=Az;S.Oort=nL;S.OortAscraeus=iL;S.OortDev=JW;S.OortHuygens=aL;S.OpalTestnetByUnique=LW;S.Openchain=Hz;S.OpenchainTestnet=SD;S.Openpiece=SM;S.OpenpieceTestnet=GN;S.Openvessel=bK;S.OpsideTestnet=QU;S.Optimism=Mv;S.OptimismBedrockGoerliAlphaTestnet=iH;S.OptimismGoerli=Ov;S.OptimismKovan=zM;S.OptimismOnGnosis=SB;S.OpulentXBeta=xH;S.OrigintrailParachain=lq;S.OrlandoChain=jq;S.Oychain=WN;S.OychainTestnet=FN;S.P12Chain=zU;S.PaletteChain=kO;S.Palm=EG;S.PalmTestnet=IG;S.Pandoproject=Xq;S.PandoprojectTestnet=eF;S.ParibuNet=Qq;S.ParibuNetTestnet=Jq;S.Pdc=PG;S.Pegglecoin=_H;S.PepchainChurchill=AK;S.PhiNetworkV1=bF;S.PhiNetworkV2=YN;S.Phoenix=PU;S.PieceTestnet=sH;S.Pirl=_G;S.PixieChain=KF;S.PixieChainTestnet=xD;S.Planq=ZF;S.Platon=gz;S.PlatonDevTestnet2=hK;S.PlianMain=pK;S.PlianSubchain1=xK;S.PlianTestnetMain=SK;S.PlianTestnetSubchain1=EK;S.PoaNetworkCore=yN;S.PoaNetworkSokol=ZM;S.Pocrnet=Dq;S.Polis=Sz;S.PolisTestnet=Pz;S.Polygon=Dv;S.PolygonZkevm=PL;S.PolygonZkevmTestnet=fO;S.PolyjuiceTestnet=uj;S.Polysmartchain=YF;S.Popcateum=zL;S.PortalFantasyChain=JD;S.PortalFantasyChainTest=LD;S.PosichainDevnetShard0=nK;S.PosichainDevnetShard1=aK;S.PosichainShard0=tK;S.PosichainTestnetShard0=rK;S.Primuschain=XM;S.ProofOfMemes=FU;S.ProtonTestnet=EN;S.ProxyNetworkTestnet=IL;S.Publicmint=iq;S.PublicmintDevnet=nq;S.PublicmintTestnet=aq;S.Pulsechain=KB;S.PulsechainTestnet=XD;S.PulsechainTestnetV2b=eL;S.PulsechainTestnetV3=tL;S.Q=gH;S.QTestnet=bH;S.Qeasyweb3Testnet=QW;S.Qitmeer=OD;S.QitmeerNetworkMixnext=yW;S.QitmeerNetworkPrivnet=gW;S.QitmeerNetworkTestnet=mW;S.Ql1=PD;S.Ql1Testnet=vK;S.QuadransBlockchain=dU;S.QuadransBlockchainTestnet=pU;S.Quarix=IK;S.QuarixTestnet=TK;S.Quarkblockchain=NK;S.QuarkchainDevnetRoot=$j;S.QuarkchainDevnetShard0=Qj;S.QuarkchainDevnetShard1=Jj;S.QuarkchainDevnetShard2=Zj;S.QuarkchainDevnetShard3=Xj;S.QuarkchainDevnetShard4=ez;S.QuarkchainDevnetShard5=tz;S.QuarkchainDevnetShard6=rz;S.QuarkchainDevnetShard7=nz;S.QuarkchainRoot=Dj;S.QuarkchainShard0=Lj;S.QuarkchainShard1=Oj;S.QuarkchainShard2=qj;S.QuarkchainShard3=Fj;S.QuarkchainShard4=Wj;S.QuarkchainShard5=Uj;S.QuarkchainShard6=Hj;S.QuarkchainShard7=jj;S.QuartzByUnique=DW;S.Quokkacoin=hq;S.RabbitAnalogTestnetChain=PO;S.RangersProtocol=uq;S.RangersProtocolTestnetRobin=$W;S.Raptorchain=cG;S.Realchain=DN;S.RedlightChain=Lq;S.ReiChain=HH;S.ReiChainTestnet=jH;S.ReiNetwork=NH;S.Resincoin=fj;S.RikezaNetwork=hO;S.RikezaNetworkTestnet=CU;S.RiniaTestnet=ZD;S.Rinkeby=O9;S.RiseOfTheWarbotsTestnet=iW;S.Ropsten=L9;S.Rsk=oM;S.RskTestnet=cM;S.Rupaya=XB;S.Saakuru=gK;S.SaakuruTestnet=Tz;S.Sakura=vL;S.SanrChain=wU;S.SapphireByUnique=OW;S.Sardis=FH;S.SardisTestnet=vU;S.Scolcoin=nj;S.ScolcoinWeichainTestnet=zF;S.Scroll=Kz;S.ScrollAlphaTestnet=Gz;S.ScrollPreAlphaTestnet=Vz;S.SeedcoinNetwork=fM;S.Seele=aB;S.Sepolia=kK;S.Setheum=xB;S.ShardeumLiberty1X=dW;S.ShardeumLiberty2X=pW;S.ShardeumSphinx1X=hW;S.Sherpax=yO;S.SherpaxTestnet=gO;S.Shibachain=aM;S.Shiden=FB;S.Shyft=eW;S.ShyftTestnet=bU;S.SiberiumNetwork=az;S.SingularityZero=_U;S.SingularityZeroTestnet=xU;S.SiriusnetV2=mB;S.Sjatsh=aU;S.SmartBitcoinCash=tU;S.SmartBitcoinCashTestnet=rU;S.SmartHostTeknolojiTestnet=WL;S.Smartmesh=MK;S.SocialSmartChain=Cz;S.SongbirdCanaryNetwork=Q9;S.Soterone=jM;S.Soverun=CK;S.SoverunTestnet=Gj;S.Sps=kU;S.SpsTestnet=RU;S.StarSocialTestnet=TD;S.StepNetwork=$L;S.StepTestnet=EU;S.Stratos=pq;S.StratosTestnet=dq;S.StreamuxBlockchain=fW;S.SuperSmartChain=zO;S.SuperSmartChainTestnet=jO;S.SurBlockchainNetwork=_B;S.Susono=SU;S.SxNetwork=$B;S.SxNetworkTestnet=vD;S.Syscoin=MM;S.SyscoinRolluxTestnet=KH;S.SyscoinTanenbaumTestnet=OF;S.TEAMBlockchain=KK;S.TEkta=fL;S.TaikoAlpha2Testnet=oz;S.TaoNetwork=lD;S.Taraxa=FD;S.TaraxaTestnet=WD;S.Taycan=VU;S.TaycanTestnet=cq;S.Tbsi=EO;S.TbsiTestnet=CO;S.TbwgChain=pM;S.TcgVerse=Rq;S.Techpay=Bq;S.Teleport=cW;S.TeleportTestnet=uW;S.TelosEvm=gM;S.TelosEvmTestnet=bM;S.Teslafunds=MO;S.Thaichain=F9;S.Thaichain20Thaifi=Y9;S.TheRootNetwork=rW;S.TheRootNetworkPorciniTestnet=nW;S.Theta=UB;S.ThetaAmberTestnet=jB;S.ThetaSapphireTestnet=HB;S.ThetaTestnet=zB;S.ThinkiumChain0=ij;S.ThinkiumChain1=sj;S.ThinkiumChain103=cj;S.ThinkiumChain2=oj;S.ThinkiumTestnetChain0=VH;S.ThinkiumTestnetChain1=YH;S.ThinkiumTestnetChain103=QH;S.ThinkiumTestnetChain2=$H;S.Thundercore=IN;S.ThundercoreTestnet=$9;S.Tipboxcoin=Bz;S.TipboxcoinTestnet=gF;S.TlchainNetwork=SF;S.TmyChain=MW;S.TokiNetwork=kW;S.TokiTestnet=AW;S.TombChain=VF;S.Tomochain=cN;S.TomochainTestnet=uN;S.ToolGlobal=PW;S.ToolGlobalTestnet=SW;S.Top=uL;S.TopEvm=oL;S.Tres=jF;S.TresTestnet=HF;S.TrustEvmTestnet=NU;S.UbSmartChain=Bj;S.UbSmartChainTestnet=Nj;S.Ubiq=W9;S.UbiqNetworkTestnet=U9;S.Ultron=YL;S.UltronTestnet=VL;S.UnicornUltraTestnet=yM;S.Unique=BW;S.Uptick=RN;S.UzmiNetwork=NF;S.Valorbit=mM;S.Vchain=Cq;S.Vechain=zj;S.VechainTestnet=Kj;S.Vela1Chain=uD;S.VelasEvm=_N;S.Venidium=CF;S.VenidiumTestnet=EF;S.VentionSmartChain=mj;S.VentionSmartChainTestnet=AD;S.Vision=eK;S.VisionVpioneerTestChain=Qz;S.VyvoSmartChain=FW;S.Wagmi=fU;S.Wanchain=GD;S.WanchainTestnet=dL;S.Web3gamesDevnet=xN;S.Web3gamesTestnet=vN;S.Web3q=OB;S.Web3qGalileo=$q;S.Web3qTestnet=Yq;S.Webchain=XU;S.WeelinkTestnet=Uz;S.WegochainRubidium=UF;S.Wemix30=SL;S.Wemix30Testnet=RL;S.Woopchain=KN;S.WorldTradeTechnicalChain=jL;S.Xanachain=qW;S.XdcApothemNetwork=kM;S.Xerom=cK;S.XinfinXdcNetwork=CM;S.Xodex=Mq;S.XtSmartChain=iD;S.Yuanchain=lF;S.ZMainnet=rq;S.ZTestnet=XW;S.ZcoreTestnet=Vq;S.ZeethChain=JB;S.ZeethChainDev=UD;S.Zeniq=AG;S.Zenith=eN;S.ZenithTestnetVilnius=rN;S.Zetachain=$F;S.ZetachainAthensTestnet=QF;S.Zhejiang=dK;S.ZilliqaEvmTestnet=fH;S.ZksyncEra=LB;S.ZksyncEraTestnet=IB;S.Zyx=RM;S._0xtade=oU;S._4goodnetwork=Xz;S.allChains=iCr;S.configureChain=nCr;S.defaultChains=aCr;S.getChainByChainId=cCr;S.getChainBySlug=uCr;S.getChainRPC=tCr;S.getChainRPCs=vet;S.minimizeChain=rCr});var vt=_((TOn,R_e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?R_e.exports=bet():R_e.exports=xet()});var Tet=_((COn,_et)=>{"use strict";d();p();function lCr(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);C!==R;){for(var W=m[C],V=0,K=L-1;(W!==0||V>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");I=V,C++}for(var H=L-I;H!==L&&F[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(R);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,V=R-1;(F!==0||W>>0,L[V]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");C=W,y++}for(var K=R-C;K!==R&&L[K]===0;)K++;for(var H=new Uint8Array(I+(R-K)),G=I;K!==R;)H[G++]=L[K++];return H}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}_et.exports=lCr});var ha=_((POn,Iet)=>{d();p();var dCr=Tet(),pCr="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Iet.exports=dCr(pCr)});var tn=_((x0,Cet)=>{d();p();var Eet=typeof self<"u"?self:x0,cle=function(){function r(){this.fetch=!1,this.DOMException=Eet.DOMException}return r.prototype=Eet,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(q){return q&&DataView.prototype.isPrototypeOf(q)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(q){return q&&i.indexOf(Object.prototype.toString.call(q))>-1};function o(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(q))throw new TypeError("Invalid character in header field name");return q.toLowerCase()}function c(q){return typeof q!="string"&&(q=String(q)),q}function u(q){var T={next:function(){var M=q.shift();return{done:M===void 0,value:M}}};return n.iterable&&(T[Symbol.iterator]=function(){return T}),T}function l(q){this.map={},q instanceof l?q.forEach(function(T,M){this.append(M,T)},this):Array.isArray(q)?q.forEach(function(T){this.append(T[0],T[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(T){this.append(T,q[T])},this)}l.prototype.append=function(q,T){q=o(q),T=c(T);var M=this.map[q];this.map[q]=M?M+", "+T:T},l.prototype.delete=function(q){delete this.map[o(q)]},l.prototype.get=function(q){return q=o(q),this.has(q)?this.map[q]:null},l.prototype.has=function(q){return this.map.hasOwnProperty(o(q))},l.prototype.set=function(q,T){this.map[o(q)]=c(T)},l.prototype.forEach=function(q,T){for(var M in this.map)this.map.hasOwnProperty(M)&&q.call(T,this.map[M],M,this)},l.prototype.keys=function(){var q=[];return this.forEach(function(T,M){q.push(M)}),u(q)},l.prototype.values=function(){var q=[];return this.forEach(function(T){q.push(T)}),u(q)},l.prototype.entries=function(){var q=[];return this.forEach(function(T,M){q.push([M,T])}),u(q)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function h(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function f(q){return new Promise(function(T,M){q.onload=function(){T(q.result)},q.onerror=function(){M(q.error)}})}function m(q){var T=new FileReader,M=f(T);return T.readAsArrayBuffer(q),M}function y(q){var T=new FileReader,M=f(T);return T.readAsText(q),M}function I(q){for(var T=new Uint8Array(q),M=new Array(T.length),A=0;A-1?T:q}function W(q,T){T=T||{};var M=T.body;if(q instanceof W){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,T.headers||(this.headers=new l(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!M&&q._bodyInit!=null&&(M=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new l(T.headers)),this.method=F(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(M)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function V(q){var T=new FormData;return q.trim().split("&").forEach(function(M){if(M){var A=M.split("="),v=A.shift().replace(/\+/g," "),k=A.join("=").replace(/\+/g," ");T.append(decodeURIComponent(v),decodeURIComponent(k))}}),T}function K(q){var T=new l,M=q.replace(/\r?\n[\t ]+/g," ");return M.split(/\r?\n/).forEach(function(A){var v=A.split(":"),k=v.shift().trim();if(k){var O=v.join(":").trim();T.append(k,O)}}),T}R.call(W.prototype);function H(q,T){T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in T?T.statusText:"OK",this.headers=new l(T.headers),this.url=T.url||"",this._initBody(q)}R.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},H.error=function(){var q=new H(null,{status:0,statusText:""});return q.type="error",q};var G=[301,302,303,307,308];H.redirect=function(q,T){if(G.indexOf(T)===-1)throw new RangeError("Invalid status code");return new H(null,{status:T,headers:{location:q}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(T,M){this.message=T,this.name=M;var A=Error(T);this.stack=A.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function Q(q,T){return new Promise(function(M,A){var v=new W(q,T);if(v.signal&&v.signal.aborted)return A(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function O(){k.abort()}k.onload=function(){var D={status:k.status,statusText:k.statusText,headers:K(k.getAllResponseHeaders()||"")};D.url="responseURL"in k?k.responseURL:D.headers.get("X-Request-URL");var B="response"in k?k.response:k.responseText;M(new H(B,D))},k.onerror=function(){A(new TypeError("Network request failed"))},k.ontimeout=function(){A(new TypeError("Network request failed"))},k.onabort=function(){A(new t.DOMException("Aborted","AbortError"))},k.open(v.method,v.url,!0),v.credentials==="include"?k.withCredentials=!0:v.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&n.blob&&(k.responseType="blob"),v.headers.forEach(function(D,B){k.setRequestHeader(B,D)}),v.signal&&(v.signal.addEventListener("abort",O),k.onreadystatechange=function(){k.readyState===4&&v.signal.removeEventListener("abort",O)}),k.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return Q.polyfill=!0,r.fetch||(r.fetch=Q,r.Headers=l,r.Request=W,r.Response=H),t.Headers=l,t.Request=W,t.Response=H,t.fetch=Q,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(cle);cle.fetch.ponyfill=!0;delete cle.fetch.polyfill;var RG=cle;x0=RG.fetch;x0.default=RG.fetch;x0.fetch=RG.fetch;x0.Headers=RG.Headers;x0.Request=RG.Request;x0.Response=RG.Response;Cet.exports=x0});var Je=_((BOn,M_e)=>{"use strict";d();p();var hCr=Object.prototype.hasOwnProperty,Wu="~";function JZ(){}Object.create&&(JZ.prototype=Object.create(null),new JZ().__proto__||(Wu=!1));function fCr(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function ket(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new fCr(t,n||r,a),s=Wu?Wu+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function ule(r,e){--r._eventsCount===0?r._events=new JZ:delete r._events[e]}function fu(){this._events=new JZ,this._eventsCount=0}fu.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)hCr.call(t,n)&&e.push(Wu?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};fu.prototype.listeners=function(e){var t=Wu?Wu+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{mCr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var lle=_((qOn,Aet)=>{"use strict";d();p();async function*yCr(r,e=1){let t=[];e<1&&(e=1);for await(let n of r)for(t.push(n);t.length>=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}Aet.exports=yCr});var N_e=_((UOn,Pet)=>{"use strict";d();p();var gCr=lle();async function*bCr(r,e=1){for await(let t of gCr(r,e)){let n=t.map(a=>a().then(i=>({ok:!0,value:i}),i=>({ok:!1,err:i})));for(let a=0;a{"use strict";d();p();Ret.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}});var qet=_((Let,Oet)=>{"use strict";d();p();var dle=Met(),{hasOwnProperty:Bet}=Object.prototype,{propertyIsEnumerable:vCr}=Object,MG=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),wCr=Let,Net={concatArrays:!1,ignoreUndefined:!1},ple=r=>{let e=[];for(let t in r)Bet.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){let t=Object.getOwnPropertySymbols(r);for(let n of t)vCr.call(r,n)&&e.push(n)}return e};function NG(r){return Array.isArray(r)?xCr(r):dle(r)?_Cr(r):r}function xCr(r){let e=r.slice(0,0);return ple(r).forEach(t=>{MG(e,t,NG(r[t]))}),e}function _Cr(r){let e=Object.getPrototypeOf(r)===null?Object.create(null):{};return ple(r).forEach(t=>{MG(e,t,NG(r[t]))}),e}var Det=(r,e,t,n)=>(t.forEach(a=>{typeof e[a]>"u"&&n.ignoreUndefined||(a in r&&r[a]!==Object.getPrototypeOf(r)?MG(r,a,B_e(r[a],e[a],n)):MG(r,a,NG(e[a])))}),r),TCr=(r,e,t)=>{let n=r.slice(0,0),a=0;return[r,e].forEach(i=>{let s=[];for(let o=0;o!s.includes(o)),t)}),n};function B_e(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?TCr(r,e,t):!dle(e)||!dle(r)?NG(e):Det(r,e,ple(e),t)}Oet.exports=function(...r){let e=B_e(NG(Net),this!==wCr&&this||{},Net),t={_:{}};for(let n of r)if(n!==void 0){if(!dle(n))throw new TypeError("`"+n+"` is not an Option Object");t=B_e(t,{_:n},e)}return t._}});var Kv=_(($On,Wet)=>{"use strict";d();p();function Fet(r,e){for(let t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function ICr(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return Fet(r,t)}catch{t.message=r.message,t.stack=r.stack;let a=function(){};return a.prototype=Object.create(Object.getPrototypeOf(r)),Fet(new a,t)}}Wet.exports=ICr});var Het=_((ZOn,Uet)=>{"use strict";d();p();function ECr(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);C!==R;){for(var W=m[C],V=0,K=L-1;(W!==0||V>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");I=V,C++}for(var H=L-I;H!==L&&F[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(R);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,V=R-1;(F!==0||W>>0,L[V]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");C=W,y++}if(m[y]!==" "){for(var K=R-C;K!==R&&L[K]===0;)K++;for(var H=new Uint8Array(I+(R-K)),G=I;K!==R;)H[G++]=L[K++];return H}}}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}Uet.exports=ECr});var hle=_((tqn,jet)=>{"use strict";d();p();var CCr=new TextDecoder,kCr=r=>CCr.decode(r),ACr=new TextEncoder,PCr=r=>ACr.encode(r);function SCr(r,e){let t=new Uint8Array(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return t}jet.exports={decodeText:kCr,encodeText:PCr,concat:SCr}});var Ket=_((aqn,zet)=>{"use strict";d();p();var{encodeText:RCr}=hle(),D_e=class{constructor(e,t,n,a){this.name=e,this.code=t,this.codeBuf=RCr(this.code),this.alphabet=a,this.codec=n(a)}encode(e){return this.codec.encode(e)}decode(e){for(let t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}};zet.exports=D_e});var Vet=_((oqn,Get)=>{"use strict";d();p();var MCr=(r,e,t)=>{let n={};for(let u=0;u=8&&(s-=8,i[c++]=255&o>>s)}if(s>=t||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return i},NCr=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<e=>({encode(t){return NCr(t,e,r)},decode(t){return MCr(t,e,r)}});Get.exports={rfc4648:BCr}});var Jet=_((lqn,Qet)=>{"use strict";d();p();var ZZ=Het(),DCr=Ket(),{rfc4648:wc}=Vet(),{decodeText:LCr,encodeText:OCr}=hle(),qCr=()=>({encode:LCr,decode:OCr}),Yet=[["identity","\0",qCr,""],["base2","0",wc(1),"01"],["base8","7",wc(3),"01234567"],["base10","9",ZZ,"0123456789"],["base16","f",wc(4),"0123456789abcdef"],["base16upper","F",wc(4),"0123456789ABCDEF"],["base32hex","v",wc(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",wc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",wc(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",wc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",wc(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",wc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",wc(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",wc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",wc(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",ZZ,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",ZZ,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",ZZ,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",ZZ,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],$et=Yet.reduce((r,e)=>(r[e[0]]=new DCr(e[0],e[1],e[2],e[3]),r),{}),FCr=Yet.reduce((r,e)=>(r[e[1]]=$et[e[0]],r),{});Qet.exports={names:$et,codes:FCr}});var L_e=_((_0,Xet)=>{"use strict";d();p();var BG=Jet(),{encodeText:WCr,decodeText:fle,concat:Zet}=hle();function UCr(r,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:t,codeBuf:n}=Gv(r);return KCr(t,e),Zet([n,e],n.length+e.length)}function HCr(r,e){let t=Gv(r),n=WCr(t.encode(e));return Zet([t.codeBuf,n],t.codeBuf.length+n.length)}function jCr(r){r instanceof Uint8Array&&(r=fle(r));let e=r[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(r=r.toLowerCase()),Gv(r[0]).decode(r.substring(1))}function zCr(r){if(r instanceof Uint8Array&&(r=fle(r)),Object.prototype.toString.call(r)!=="[object String]")return!1;try{return Gv(r[0]).name}catch{return!1}}function KCr(r,e){Gv(r).decode(fle(e))}function Gv(r){if(Object.prototype.hasOwnProperty.call(BG.names,r))return BG.names[r];if(Object.prototype.hasOwnProperty.call(BG.codes,r))return BG.codes[r];throw new Error(`Unsupported encoding: ${r}`)}function GCr(r){return r instanceof Uint8Array&&(r=fle(r)),Gv(r[0])}_0=Xet.exports=UCr;_0.encode=HCr;_0.decode=jCr;_0.isEncoded=zCr;_0.encoding=Gv;_0.encodingFromData=GCr;var VCr=Object.freeze(BG.names),YCr=Object.freeze(BG.codes);_0.names=VCr;_0.codes=YCr});var ntt=_((mqn,rtt)=>{d();p();rtt.exports=ttt;var ett=128,$Cr=127,QCr=~$Cr,JCr=Math.pow(2,31);function ttt(r,e,t){e=e||[],t=t||0;for(var n=t;r>=JCr;)e[t++]=r&255|ett,r/=128;for(;r&QCr;)e[t++]=r&255|ett,r>>>=7;return e[t]=r|0,ttt.bytes=t-n+1,e}});var stt=_((bqn,itt)=>{d();p();itt.exports=O_e;var ZCr=128,att=127;function O_e(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw O_e.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&att)<=ZCr);return O_e.bytes=i-n,t}});var ctt=_((xqn,ott)=>{d();p();var XCr=Math.pow(2,7),e8r=Math.pow(2,14),t8r=Math.pow(2,21),r8r=Math.pow(2,28),n8r=Math.pow(2,35),a8r=Math.pow(2,42),i8r=Math.pow(2,49),s8r=Math.pow(2,56),o8r=Math.pow(2,63);ott.exports=function(r){return r{d();p();utt.exports={encode:ntt(),decode:stt(),encodingLength:ctt()}});var ptt=_((kqn,dtt)=>{"use strict";d();p();var c8r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});dtt.exports={names:c8r}});function u8r(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);R!==L;){for(var V=y[R],K=0,H=F-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");C=K,R++}for(var G=F-C;G!==F&&W[G]===0;)G++;for(var Q=c.repeat(I);G>>0,F=new Uint8Array(L);y[I];){var W=t[y.charCodeAt(I)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");R=V,I++}if(y[I]!==" "){for(var H=L-R;H!==L&&F[H]===0;)H++;for(var G=new Uint8Array(C+(L-H)),Q=C;H!==L;)G[Q++]=F[H++];return G}}}function m(y){var I=f(y);if(I)return I;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var l8r,d8r,htt,ftt=ce(()=>{d();p();l8r=u8r,d8r=l8r,htt=d8r});var mle={};cr(mle,{coerce:()=>op,empty:()=>mtt,equals:()=>q_e,fromHex:()=>h8r,fromString:()=>F_e,isBinary:()=>f8r,toHex:()=>p8r,toString:()=>W_e});var mtt,p8r,h8r,q_e,op,f8r,F_e,W_e,gg=ce(()=>{d();p();mtt=new Uint8Array(0),p8r=r=>r.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),h8r=r=>{let e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):mtt},q_e=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},f8r=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),F_e=r=>new TextEncoder().encode(r),W_e=r=>new TextDecoder().decode(r)});var U_e,H_e,j_e,ytt,z_e,DG,bg,m8r,y8r,is,xh=ce(()=>{d();p();ftt();gg();U_e=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},H_e=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return ytt(this,e)}},j_e=class{constructor(e){this.decoders=e}or(e){return ytt(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},ytt=(r,e)=>new j_e({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),z_e=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new U_e(e,t,n),this.decoder=new H_e(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},DG=({name:r,prefix:e,encode:t,decode:n})=>new z_e(r,e,t,n),bg=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=htt(t,e);return DG({prefix:r,name:e,encode:n,decode:i=>op(a(i))})},m8r=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},y8r=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<DG({prefix:e,name:r,encode(a){return y8r(a,n,t)},decode(a){return m8r(a,n,t,r)}})});var K_e={};cr(K_e,{identity:()=>g8r});var g8r,gtt=ce(()=>{d();p();xh();gg();g8r=DG({prefix:"\0",name:"identity",encode:r=>W_e(r),decode:r=>F_e(r)})});var G_e={};cr(G_e,{base2:()=>b8r});var b8r,btt=ce(()=>{d();p();xh();b8r=is({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var V_e={};cr(V_e,{base8:()=>v8r});var v8r,vtt=ce(()=>{d();p();xh();v8r=is({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var Y_e={};cr(Y_e,{base10:()=>w8r});var w8r,wtt=ce(()=>{d();p();xh();w8r=bg({prefix:"9",name:"base10",alphabet:"0123456789"})});var $_e={};cr($_e,{base16:()=>x8r,base16upper:()=>_8r});var x8r,_8r,xtt=ce(()=>{d();p();xh();x8r=is({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),_8r=is({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var Q_e={};cr(Q_e,{base32:()=>LG,base32hex:()=>C8r,base32hexpad:()=>A8r,base32hexpadupper:()=>P8r,base32hexupper:()=>k8r,base32pad:()=>I8r,base32padupper:()=>E8r,base32upper:()=>T8r,base32z:()=>S8r});var LG,T8r,I8r,E8r,C8r,k8r,A8r,P8r,S8r,J_e=ce(()=>{d();p();xh();LG=is({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),T8r=is({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),I8r=is({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),E8r=is({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),C8r=is({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),k8r=is({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),A8r=is({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),P8r=is({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),S8r=is({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var Z_e={};cr(Z_e,{base36:()=>R8r,base36upper:()=>M8r});var R8r,M8r,_tt=ce(()=>{d();p();xh();R8r=bg({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),M8r=bg({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var X_e={};cr(X_e,{base58btc:()=>Zf,base58flickr:()=>N8r});var Zf,N8r,eTe=ce(()=>{d();p();xh();Zf=bg({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),N8r=bg({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var tTe={};cr(tTe,{base64:()=>B8r,base64pad:()=>D8r,base64url:()=>L8r,base64urlpad:()=>O8r});var B8r,D8r,L8r,O8r,Ttt=ce(()=>{d();p();xh();B8r=is({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),D8r=is({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),L8r=is({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),O8r=is({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var rTe={};cr(rTe,{base256emoji:()=>H8r});function W8r(r){return r.reduce((e,t)=>(e+=q8r[t],e),"")}function U8r(r){let e=[];for(let t of r){let n=F8r[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var Itt,q8r,F8r,H8r,Ett=ce(()=>{d();p();xh();Itt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),q8r=Itt.reduce((r,e,t)=>(r[t]=e,r),[]),F8r=Itt.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);H8r=DG({prefix:"\u{1F680}",name:"base256emoji",encode:W8r,decode:U8r})});function Att(r,e,t){e=e||[],t=t||0;for(var n=t;r>=G8r;)e[t++]=r&255|Ctt,r/=128;for(;r&K8r;)e[t++]=r&255|Ctt,r>>>=7;return e[t]=r|0,Att.bytes=t-n+1,e}function nTe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw nTe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&ktt)<=Y8r);return nTe.bytes=i-n,t}var j8r,Ctt,z8r,K8r,G8r,V8r,Y8r,ktt,$8r,Q8r,J8r,Z8r,X8r,e4r,t4r,r4r,n4r,a4r,i4r,s4r,XZ,Ptt=ce(()=>{d();p();j8r=Att,Ctt=128,z8r=127,K8r=~z8r,G8r=Math.pow(2,31);V8r=nTe,Y8r=128,ktt=127;$8r=Math.pow(2,7),Q8r=Math.pow(2,14),J8r=Math.pow(2,21),Z8r=Math.pow(2,28),X8r=Math.pow(2,35),e4r=Math.pow(2,42),t4r=Math.pow(2,49),r4r=Math.pow(2,56),n4r=Math.pow(2,63),a4r=function(r){return r<$8r?1:rOG,encodeTo:()=>Vv,encodingLength:()=>Yv});var OG,Vv,Yv,yle=ce(()=>{d();p();Ptt();OG=(r,e=0)=>[XZ.decode(r,e),XZ.decode.bytes],Vv=(r,e,t=0)=>(XZ.encode(r,e,t),e),Yv=r=>XZ.encodingLength(r)});var Qv={};cr(Qv,{Digest:()=>$v,create:()=>vg,decode:()=>aTe,equals:()=>iTe});var vg,aTe,iTe,$v,eX=ce(()=>{d();p();gg();yle();vg=(r,e)=>{let t=e.byteLength,n=Yv(r),a=n+Yv(t),i=new Uint8Array(a+t);return Vv(r,i,0),Vv(t,i,n),i.set(e,a),new $v(r,t,e,i)},aTe=r=>{let e=op(r),[t,n]=OG(e),[a,i]=OG(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==a)throw new Error("Incorrect length");return new $v(t,a,s,e)},iTe=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&q_e(r.bytes,e.bytes),$v=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}});var vle={};cr(vle,{Hasher:()=>gle,from:()=>ble});var ble,gle,sTe=ce(()=>{d();p();eX();ble=({name:r,code:e,encode:t})=>new gle(r,e,t),gle=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?vg(this.code,t):t.then(n=>vg(this.code,n))}else throw Error("Unknown type, must be binary type")}}});var oTe={};cr(oTe,{sha256:()=>o4r,sha512:()=>c4r});var Stt,o4r,c4r,Rtt=ce(()=>{d();p();sTe();Stt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),o4r=ble({name:"sha2-256",code:18,encode:Stt("SHA-256")}),c4r=ble({name:"sha2-512",code:19,encode:Stt("SHA-512")})});var cTe={};cr(cTe,{identity:()=>d4r});var Mtt,u4r,Ntt,l4r,d4r,Btt=ce(()=>{d();p();gg();eX();Mtt=0,u4r="identity",Ntt=op,l4r=r=>vg(Mtt,Ntt(r)),d4r={code:Mtt,name:u4r,encode:Ntt,digest:l4r}});var uTe={};cr(uTe,{code:()=>h4r,decode:()=>m4r,encode:()=>f4r,name:()=>p4r});var p4r,h4r,f4r,m4r,Dtt=ce(()=>{d();p();gg();p4r="raw",h4r=85,f4r=r=>op(r),m4r=r=>op(r)});var lTe={};cr(lTe,{code:()=>v4r,decode:()=>x4r,encode:()=>w4r,name:()=>b4r});var y4r,g4r,b4r,v4r,w4r,x4r,Ltt=ce(()=>{d();p();y4r=new TextEncoder,g4r=new TextDecoder,b4r="json",v4r=512,w4r=r=>y4r.encode(JSON.stringify(r)),x4r=r=>JSON.parse(g4r.decode(r))});var zs,_4r,T4r,I4r,tX,E4r,Ott,qtt,wle,xle,C4r,k4r,A4r,Ftt=ce(()=>{d();p();yle();eX();eTe();J_e();gg();zs=class{constructor(e,t,n,a){this.code=t,this.version=e,this.multihash=n,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:xle,byteLength:xle,code:wle,version:wle,multihash:wle,bytes:wle,_baseCache:xle,asCID:xle})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:t}=this;if(e!==tX)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==E4r)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return zs.createV0(t)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=vg(e,t);return zs.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&iTe(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:a}=this;switch(n){case 0:return T4r(t,a,e||Zf.encoder);default:return I4r(t,a,e||LG.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return k4r(/^0\.0/,A4r),!!(e&&(e[qtt]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof zs)return e;if(e!=null&&e.asCID===e){let{version:t,code:n,multihash:a,bytes:i}=e;return new zs(t,n,a,i||Ott(t,n,a.bytes))}else if(e!=null&&e[qtt]===!0){let{version:t,multihash:n,code:a}=e,i=aTe(n);return zs.create(t,a,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==tX)throw new Error(`Version 0 CID must use dag-pb (code: ${tX}) block encoding`);return new zs(e,t,n,n.bytes)}case 1:{let a=Ott(e,t,n.bytes);return new zs(e,t,n,a)}default:throw new Error("Invalid version")}}static createV0(e){return zs.create(0,tX,e)}static createV1(e,t){return zs.create(1,e,t)}static decode(e){let[t,n]=zs.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=zs.inspectBytes(e),n=t.size-t.multihashSize,a=op(e.subarray(n,n+t.multihashSize));if(a.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=a.subarray(t.multihashSize-t.digestSize),s=new $v(t.multihashCode,t.digestSize,i,a);return[t.version===0?zs.createV0(s):zs.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[h,f]=OG(e.subarray(t));return t+=f,h},a=n(),i=tX;if(a===18?(a=0,t=0):a===1&&(i=n()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);let s=t,o=n(),c=n(),u=t+c,l=u-s;return{version:a,codec:i,multihashCode:o,digestSize:c,multihashSize:l,size:u}}static parse(e,t){let[n,a]=_4r(e,t),i=zs.decode(a);return i._baseCache.set(n,e),i}},_4r=(r,e)=>{switch(r[0]){case"Q":{let t=e||Zf;return[Zf.prefix,t.decode(`${Zf.prefix}${r}`)]}case Zf.prefix:{let t=e||Zf;return[Zf.prefix,t.decode(r)]}case LG.prefix:{let t=e||LG;return[LG.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},T4r=(r,e,t)=>{let{prefix:n}=t;if(n!==Zf.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let a=e.get(n);if(a==null){let i=t.encode(r).slice(1);return e.set(n,i),i}else return a},I4r=(r,e,t)=>{let{prefix:n}=t,a=e.get(n);if(a==null){let i=t.encode(r);return e.set(n,i),i}else return a},tX=112,E4r=18,Ott=(r,e,t)=>{let n=Yv(r),a=n+Yv(e),i=new Uint8Array(a+t.byteLength);return Vv(r,i,0),Vv(e,i,n),i.set(t,a),i},qtt=Symbol.for("@ipld/js-cid/CID"),wle={writable:!1,configurable:!1,enumerable:!0},xle={writable:!1,enumerable:!1,configurable:!1},C4r="0.0.0-dev",k4r=(r,e)=>{if(r.test(C4r))console.warn(e);else throw new Error(e)},A4r=`CID.isCID(v) is deprecated and will be removed in the next major release. Following code pattern: if (CID.isCID(value)) { @@ -42,46 +42,46 @@ if (cid) { // Make sure to use cid instead of value doSomethingWithCID(cid) } -`});var cet=ce(()=>{d();p();oet();HN();v1();sZ();M4()});var uet={};cr(uet,{CID:()=>$s,bases:()=>$N,bytes:()=>UN,codecs:()=>wCr,digest:()=>bv,hasher:()=>KN,hashes:()=>vCr,varint:()=>y_});var $N,vCr,wCr,dZ=ce(()=>{d();p();qXe();WXe();UXe();HXe();jXe();QQ();zXe();eZ();KXe();VXe();XXe();ret();net();aet();cet();$N={...KQ,...GQ,...VQ,...$Q,...YQ,...JQ,...ZQ,...XQ,...tZ,...rZ},vCr={...oZ,...cZ},wCr={raw:uZ,json:lZ}});function x1(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}var B4=ce(()=>{d();p()});function g_(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?x1(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}var YN=ce(()=>{d();p();B4()});function pet(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var det,pZ,_Cr,JN,hZ=ce(()=>{d();p();dZ();YN();det=pet("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),pZ=pet("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=g_(r.length);for(let t=0;ttm});function tm(r,e="utf8"){let t=JN[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString("utf8"):t.encoder.encode(r).substring(1)}var b_=ce(()=>{d();p();hZ()});var D4={};cr(D4,{fromString:()=>Eh});function Eh(r,e="utf8"){let t=JN[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?x1(globalThis.Buffer.from(r,"utf-8")):t.decoder.decode(`${t.prefix}${r}`)}var vv=ce(()=>{d();p();hZ();B4()});var L4={};cr(L4,{concat:()=>O4});function O4(r,e){e||(e=r.reduce((a,i)=>a+i.length,0));let t=g_(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return x1(t)}var wv=ce(()=>{d();p();YN();B4()});var q4=x((uLn,bet)=>{"use strict";d();p();var het=OQ(),v_=MXe(),{names:F4}=BXe(),{toString:ZN}=(b_(),nt(QN)),{fromString:xCr}=(vv(),nt(D4)),{concat:TCr}=(wv(),nt(L4)),w_={};for(let r in F4){let e=r;w_[F4[e]]=e}Object.freeze(w_);function ECr(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return ZN(r,"base16")}function CCr(r){return xCr(r,"base16")}function ICr(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return ZN(het.encode("base58btc",r)).slice(1)}function kCr(r){let e=r instanceof Uint8Array?ZN(r):r;return het.decode("z"+e)}function fet(r){if(!(r instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(r.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=v_.decode(r);if(!yet(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);r=r.slice(v_.decode.bytes);let t=v_.decode(r);if(t<0)throw new Error(`multihash invalid length: ${t}`);if(r=r.slice(v_.decode.bytes),r.length!==t)throw new Error(`multihash length inconsistent: 0x${ZN(r,"base16")}`);return{code:e,name:w_[e],length:t,digest:r}}function ACr(r,e,t){if(!r||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=met(e);if(!(r instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(t==null&&(t=r.length),t&&r.length!==t)throw new Error("digest length should be equal to specified length.");let a=v_.encode(n),i=v_.encode(t);return TCr([a,i,r],a.length+i.length+r.length)}function met(r){let e=r;if(typeof r=="string"){if(F4[r]===void 0)throw new Error(`Unrecognized hash function named: ${r}`);e=F4[r]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if(w_[e]===void 0&&!fZ(e))throw new Error(`Unrecognized function code: ${e}`);return e}function fZ(r){return r>0&&r<16}function yet(r){return!!(fZ(r)||w_[r])}function get(r){fet(r)}function SCr(r){return get(r),r.subarray(0,2)}bet.exports={names:F4,codes:w_,toHexString:ECr,fromHexString:CCr,toB58String:ICr,fromB58String:kCr,decode:fet,encode:ACr,coerceCode:met,isAppCode:fZ,validate:get,prefix:SCr,isValidCode:yet}});var vet=x((W4,XN)=>{d();p();(function(r,e){"use strict";var t={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var y=0;y255)return!1;return!0}function a(m,y){return(m&65535)*y+(((m>>>16)*y&65535)<<16)}function i(m,y){return m<>>32-y}function s(m){return m^=m>>>16,m=a(m,2246822507),m^=m>>>13,m=a(m,3266489909),m^=m>>>16,m}function o(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var E=[0,0,0,0];return E[3]+=m[3]+y[3],E[2]+=E[3]>>>16,E[3]&=65535,E[2]+=m[2]+y[2],E[1]+=E[2]>>>16,E[2]&=65535,E[1]+=m[1]+y[1],E[0]+=E[1]>>>16,E[1]&=65535,E[0]+=m[0]+y[0],E[0]&=65535,[E[0]<<16|E[1],E[2]<<16|E[3]]}function c(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var E=[0,0,0,0];return E[3]+=m[3]*y[3],E[2]+=E[3]>>>16,E[3]&=65535,E[2]+=m[2]*y[3],E[1]+=E[2]>>>16,E[2]&=65535,E[2]+=m[3]*y[2],E[1]+=E[2]>>>16,E[2]&=65535,E[1]+=m[1]*y[3],E[0]+=E[1]>>>16,E[1]&=65535,E[1]+=m[2]*y[2],E[0]+=E[1]>>>16,E[1]&=65535,E[1]+=m[3]*y[1],E[0]+=E[1]>>>16,E[1]&=65535,E[0]+=m[0]*y[3]+m[1]*y[2]+m[2]*y[1]+m[3]*y[0],E[0]&=65535,[E[0]<<16|E[1],E[2]<<16|E[3]]}function u(m,y){return y%=64,y===32?[m[1],m[0]]:y<32?[m[0]<>>32-y,m[1]<>>32-y]:(y-=32,[m[1]<>>32-y,m[0]<>>32-y])}function l(m,y){return y%=64,y===0?m:y<32?[m[0]<>>32-y,m[1]<>>1]),m=c(m,[4283543511,3981806797]),m=h(m,[0,m[0]>>>1]),m=c(m,[3301882366,444984403]),m=h(m,[0,m[0]>>>1]),m}t.x86.hash32=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%4,I=m.length-E,S=y,L=0,q=3432918353,W=461845907,V=0;V>>0},t.x86.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%16,I=m.length-E,S=y,L=y,q=y,W=y,V=0,K=0,H=0,G=0,J=597399067,F=2869860233,T=951274213,P=2716044179,A=0;A>>0).toString(16)).slice(-8)+("00000000"+(L>>>0).toString(16)).slice(-8)+("00000000"+(q>>>0).toString(16)).slice(-8)+("00000000"+(W>>>0).toString(16)).slice(-8)},t.x64.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%16,I=m.length-E,S=[0,y],L=[0,y],q=[0,0],W=[0,0],V=[2277735313,289559509],K=[1291169091,658871167],H=0;H>>0).toString(16)).slice(-8)+("00000000"+(S[1]>>>0).toString(16)).slice(-8)+("00000000"+(L[0]>>>0).toString(16)).slice(-8)+("00000000"+(L[1]>>>0).toString(16)).slice(-8)},typeof W4<"u"?(typeof XN<"u"&&XN.exports&&(W4=XN.exports=t),W4.murmurHash3=t):typeof define=="function"&&define.amd?define([],function(){return t}):(t._murmurHash3=r.murmurHash3,t.noConflict=function(){return r.murmurHash3=t._murmurHash3,t._murmurHash3=e,t.noConflict=e,t},r.murmurHash3=t)})(W4)});var _et=x((fLn,wet)=>{d();p();wet.exports=vet()});var Tet=x((gLn,xet)=>{"use strict";d();p();var PCr=q4(),__=self.crypto||self.msCrypto,mZ=async(r,e)=>{if(typeof self>"u"||!__)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(e){case"sha1":return new Uint8Array(await __.subtle.digest({name:"SHA-1"},r));case"sha2-256":return new Uint8Array(await __.subtle.digest({name:"SHA-256"},r));case"sha2-512":return new Uint8Array(await __.subtle.digest({name:"SHA-512"},r));case"dbl-sha2-256":{let t=await __.subtle.digest({name:"SHA-256"},r);return new Uint8Array(await __.subtle.digest({name:"SHA-256"},t))}default:throw new Error(`${e} is not a supported algorithm`)}};xet.exports={factory:r=>async e=>mZ(e,r),digest:mZ,multihashing:async(r,e,t)=>{let n=await mZ(r,e);return PCr.encode(n,e,t)}}});var Cet=x((wLn,Eet)=>{"use strict";d();p();var RCr=r=>{let e=new Uint8Array(4);for(let t=0;t<4;t++)e[t]=r&255,r=r>>8;return e};Eet.exports={fromNumberTo32BitBuf:RCr}});var yZ=x((TLn,Iet)=>{d();p();var MCr="Input must be an string, Buffer or Uint8Array";function NCr(r){let e;if(r instanceof Uint8Array)e=r;else if(typeof r=="string")e=new TextEncoder().encode(r);else throw new Error(MCr);return e}function BCr(r){return Array.prototype.map.call(r,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function eB(r){return(4294967296+r).toString(16).substring(1)}function DCr(r,e,t){let n=` -`+r+" = ";for(let a=0;a{d();p();var rB=yZ();function tB(r,e,t){let n=r[e]+r[t],a=r[e+1]+r[t+1];n>=4294967296&&a++,r[e]=n,r[e+1]=a}function ket(r,e,t,n){let a=r[e]+t;t<0&&(a+=4294967296);let i=r[e+1]+n;a>=4294967296&&i++,r[e]=a,r[e+1]=i}function Aet(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function T1(r,e,t,n,a,i){let s=U4[a],o=U4[a+1],c=U4[i],u=U4[i+1];tB(vr,r,e),ket(vr,r,s,o);let l=vr[n]^vr[r],h=vr[n+1]^vr[r+1];vr[n]=h,vr[n+1]=l,tB(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=l>>>24^h<<8,vr[e+1]=h>>>24^l<<8,tB(vr,r,e),ket(vr,r,c,u),l=vr[n]^vr[r],h=vr[n+1]^vr[r+1],vr[n]=l>>>16^h<<16,vr[n+1]=h>>>16^l<<16,tB(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=h>>>31^l<<1,vr[e+1]=l>>>31^h<<1}var Pet=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),LCr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],mu=new Uint8Array(LCr.map(function(r){return r*2})),vr=new Uint32Array(32),U4=new Uint32Array(32);function Ret(r,e){let t=0;for(t=0;t<16;t++)vr[t]=r.h[t],vr[t+16]=Pet[t];for(vr[24]=vr[24]^r.t,vr[25]=vr[25]^r.t/4294967296,e&&(vr[28]=~vr[28],vr[29]=~vr[29]),t=0;t<32;t++)U4[t]=Aet(r.b,4*t);for(t=0;t<12;t++)T1(0,8,16,24,mu[t*16+0],mu[t*16+1]),T1(2,10,18,26,mu[t*16+2],mu[t*16+3]),T1(4,12,20,28,mu[t*16+4],mu[t*16+5]),T1(6,14,22,30,mu[t*16+6],mu[t*16+7]),T1(0,10,20,30,mu[t*16+8],mu[t*16+9]),T1(2,12,22,24,mu[t*16+10],mu[t*16+11]),T1(4,14,16,26,mu[t*16+12],mu[t*16+13]),T1(6,8,18,28,mu[t*16+14],mu[t*16+15]);for(t=0;t<16;t++)r.h[t]=r.h[t]^vr[t]^vr[t+16]}var E1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function Met(r,e,t,n){if(r===0||r>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(t&&t.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let a={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:r};E1.fill(0),E1[0]=r,e&&(E1[1]=e.length),E1[2]=1,E1[3]=1,t&&E1.set(t,32),n&&E1.set(n,48);for(let i=0;i<16;i++)a.h[i]=Pet[i]^Aet(E1,i*4);return e&&(gZ(a,e),a.c=128),a}function gZ(r,e){for(let t=0;t>2]>>8*(t&3);return e}function Bet(r,e,t,n,a){t=t||64,r=rB.normalizeInput(r),n&&(n=rB.normalizeInput(n)),a&&(a=rB.normalizeInput(a));let i=Met(t,e,n,a);return gZ(i,r),Net(i)}function FCr(r,e,t,n,a){let i=Bet(r,e,t,n,a);return rB.toHex(i)}Det.exports={blake2b:Bet,blake2bHex:FCr,blake2bInit:Met,blake2bUpdate:gZ,blake2bFinal:Net}});var zet=x((SLn,jet)=>{d();p();var Let=yZ();function qCr(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function C1(r,e,t,n,a,i){gn[r]=gn[r]+gn[e]+a,gn[n]=nB(gn[n]^gn[r],16),gn[t]=gn[t]+gn[n],gn[e]=nB(gn[e]^gn[t],12),gn[r]=gn[r]+gn[e]+i,gn[n]=nB(gn[n]^gn[r],8),gn[t]=gn[t]+gn[n],gn[e]=nB(gn[e]^gn[t],7)}function nB(r,e){return r>>>e^r<<32-e}var Fet=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yu=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),gn=new Uint32Array(16),_c=new Uint32Array(16);function qet(r,e){let t=0;for(t=0;t<8;t++)gn[t]=r.h[t],gn[t+8]=Fet[t];for(gn[12]^=r.t,gn[13]^=r.t/4294967296,e&&(gn[14]=~gn[14]),t=0;t<16;t++)_c[t]=qCr(r.b,4*t);for(t=0;t<10;t++)C1(0,4,8,12,_c[yu[t*16+0]],_c[yu[t*16+1]]),C1(1,5,9,13,_c[yu[t*16+2]],_c[yu[t*16+3]]),C1(2,6,10,14,_c[yu[t*16+4]],_c[yu[t*16+5]]),C1(3,7,11,15,_c[yu[t*16+6]],_c[yu[t*16+7]]),C1(0,5,10,15,_c[yu[t*16+8]],_c[yu[t*16+9]]),C1(1,6,11,12,_c[yu[t*16+10]],_c[yu[t*16+11]]),C1(2,7,8,13,_c[yu[t*16+12]],_c[yu[t*16+13]]),C1(3,4,9,14,_c[yu[t*16+14]],_c[yu[t*16+15]]);for(t=0;t<8;t++)r.h[t]^=gn[t]^gn[t+8]}function Wet(r,e){if(!(r>0&&r<=32))throw new Error("Incorrect output length, should be in [1, 32]");let t=e?e.length:0;if(e&&!(t>0&&t<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(Fet),b:new Uint8Array(64),c:0,t:0,outlen:r};return n.h[0]^=16842752^t<<8^r,t>0&&(bZ(n,e),n.c=64),n}function bZ(r,e){for(let t=0;t>2]>>8*(t&3)&255;return e}function Het(r,e,t){t=t||32,r=Let.normalizeInput(r);let n=Wet(t,e);return bZ(n,r),Uet(n)}function WCr(r,e,t){let n=Het(r,e,t);return Let.toHex(n)}jet.exports={blake2s:Het,blake2sHex:WCr,blake2sInit:Wet,blake2sUpdate:bZ,blake2sFinal:Uet}});var Get=x((MLn,Ket)=>{d();p();var H4=Oet(),j4=zet();Ket.exports={blake2b:H4.blake2b,blake2bHex:H4.blake2bHex,blake2bInit:H4.blake2bInit,blake2bUpdate:H4.blake2bUpdate,blake2bFinal:H4.blake2bFinal,blake2s:j4.blake2s,blake2sHex:j4.blake2sHex,blake2sInit:j4.blake2sInit,blake2sUpdate:j4.blake2sUpdate,blake2sFinal:j4.blake2sFinal}});var Yet=x((DLn,$et)=>{"use strict";d();p();var x_=Get(),UCr=45569,HCr=45633,jCr={init:x_.blake2bInit,update:x_.blake2bUpdate,digest:x_.blake2bFinal},zCr={init:x_.blake2sInit,update:x_.blake2sUpdate,digest:x_.blake2sFinal},Vet=(r,e)=>async t=>{let n=e.init(r,null);return e.update(n,t),e.digest(n)};$et.exports=r=>{for(let e=0;e<64;e++)r[UCr+e]=Vet(e+1,jCr);for(let e=0;e<32;e++)r[HCr+e]=Vet(e+1,zCr)}});var Zet=x((FLn,Qet)=>{"use strict";d();p();var rm=LK(),Jet=_et(),{factory:aB}=Tet(),{fromNumberTo32BitBuf:KCr}=Cet(),{fromString:GCr}=(vv(),nt(D4)),lp=r=>async e=>{switch(r){case"sha3-224":return new Uint8Array(rm.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(rm.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(rm.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(rm.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(rm.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(rm.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(rm.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(rm.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(rm.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(rm.keccak512.arrayBuffer(e));case"murmur3-128":return GCr(Jet.x64.hash128(e),"base16");case"murmur3-32":return KCr(Jet.x86.hash32(e));default:throw new TypeError(`${r} is not a supported algorithm`)}},VCr=r=>r;Qet.exports={identity:VCr,sha1:aB("sha1"),sha2256:aB("sha2-256"),sha2512:aB("sha2-512"),dblSha2256:aB("dbl-sha2-256"),sha3224:lp("sha3-224"),sha3256:lp("sha3-256"),sha3384:lp("sha3-384"),sha3512:lp("sha3-512"),shake128:lp("shake-128"),shake256:lp("shake-256"),keccak224:lp("keccak-224"),keccak256:lp("keccak-256"),keccak384:lp("keccak-384"),keccak512:lp("keccak-512"),murmur3128:lp("murmur3-128"),murmur332:lp("murmur3-32"),addBlake:Yet()}});var wZ={};cr(wZ,{equals:()=>vZ});function vZ(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{d();p()});var z4=x((jLn,ett)=>{"use strict";d();p();var Xet=hv(),sB=q4(),Wo=Zet(),{equals:$Cr}=(iB(),nt(wZ));async function dp(r,e,t){let n=await dp.digest(r,e,t);return sB.encode(n,e,t)}dp.multihash=sB;dp.digest=async(r,e,t)=>{let a=await dp.createHash(e)(r);return t?a.slice(0,t):a};dp.createHash=function(r){if(!r)throw Xet(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=sB.coerceCode(r);if(!dp.functions[e])throw Xet(new Error(`multihash function '${r}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return dp.functions[e]};dp.functions={0:Wo.identity,17:Wo.sha1,18:Wo.sha2256,19:Wo.sha2512,20:Wo.sha3512,21:Wo.sha3384,22:Wo.sha3256,23:Wo.sha3224,24:Wo.shake128,25:Wo.shake256,26:Wo.keccak224,27:Wo.keccak256,28:Wo.keccak384,29:Wo.keccak512,34:Wo.murmur3128,35:Wo.murmur332,86:Wo.dblSha2256};Wo.addBlake(dp.functions);dp.validate=async(r,e)=>{let t=await dp(r,sB.decode(e).name);return $Cr(e,t)};ett.exports=dp});var rtt=x((GLn,ttt)=>{"use strict";d();p();var YCr=sXe().bind({ignoreUndefined:!0}),JCr=z4();async function QCr(r){let t=(await JCr(r,"murmur3-128")).slice(2,10),n=t.length,a=new Uint8Array(n);for(let i=0;i()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:QCr,hamtHashCode:34,hamtBucketBits:8};ttt.exports=function(r={}){return YCr(ZCr,r)}});var att=x((YLn,ntt)=>{"use strict";d();p();ntt.exports=XCr;function XCr(r,e){for(var t=new Array(arguments.length-1),n=0,a=2,i=!0;a{"use strict";d();p();var oB=ott;oB.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)==="=";)++n;return Math.ceil(e.length*3)/4-n};var T_=new Array(64),stt=new Array(123);for(Ch=0;Ch<64;)stt[T_[Ch]=Ch<26?Ch+65:Ch<52?Ch+71:Ch<62?Ch-4:Ch-59|43]=Ch++;var Ch;oB.encode=function(e,t,n){for(var a=null,i=[],s=0,o=0,c;t>2],c=(u&3)<<4,o=1;break;case 1:i[s++]=T_[c|u>>4],c=(u&15)<<2,o=2;break;case 2:i[s++]=T_[c|u>>6],i[s++]=T_[u&63],o=0;break}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),s=0)}return o&&(i[s++]=T_[c],i[s++]=61,o===1&&(i[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,i.slice(0,s))),a.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var itt="invalid encoding";oB.decode=function(e,t,n){for(var a=n,i=0,s,o=0;o1)break;if((c=stt[c])===void 0)throw Error(itt);switch(i){case 0:s=c,i=1;break;case 1:t[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:t[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:t[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(itt);return n-a};oB.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var ltt=x((tFn,utt)=>{"use strict";d();p();utt.exports=cB;function cB(){this._listeners={}}cB.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this};cB.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],a=0;a{"use strict";d();p();ytt.exports=dtt(dtt);function dtt(r){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),t=new Uint8Array(e.buffer),n=t[3]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3]}function i(c,u,l){e[0]=c,u[l]=t[3],u[l+1]=t[2],u[l+2]=t[1],u[l+3]=t[0]}r.writeFloatLE=n?a:i,r.writeFloatBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],e[0]}function o(c,u){return t[3]=c[u],t[2]=c[u+1],t[1]=c[u+2],t[0]=c[u+3],e[0]}r.readFloatLE=n?s:o,r.readFloatBE=n?o:s}():function(){function e(n,a,i,s){var o=a<0?1:0;if(o&&(a=-a),a===0)n(1/a>0?0:2147483648,i,s);else if(isNaN(a))n(2143289344,i,s);else if(a>34028234663852886e22)n((o<<31|2139095040)>>>0,i,s);else if(a<11754943508222875e-54)n((o<<31|Math.round(a/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-c)*8388608)&8388607;n((o<<31|c+127<<23|u)>>>0,i,s)}}r.writeFloatLE=e.bind(null,ptt),r.writeFloatBE=e.bind(null,htt);function t(n,a,i){var s=n(a,i),o=(s>>31)*2+1,c=s>>>23&255,u=s&8388607;return c===255?u?NaN:o*(1/0):c===0?o*1401298464324817e-60*u:o*Math.pow(2,c-150)*(u+8388608)}r.readFloatLE=t.bind(null,ftt),r.readFloatBE=t.bind(null,mtt)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),n=t[7]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3],u[l+4]=t[4],u[l+5]=t[5],u[l+6]=t[6],u[l+7]=t[7]}function i(c,u,l){e[0]=c,u[l]=t[7],u[l+1]=t[6],u[l+2]=t[5],u[l+3]=t[4],u[l+4]=t[3],u[l+5]=t[2],u[l+6]=t[1],u[l+7]=t[0]}r.writeDoubleLE=n?a:i,r.writeDoubleBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],t[4]=c[u+4],t[5]=c[u+5],t[6]=c[u+6],t[7]=c[u+7],e[0]}function o(c,u){return t[7]=c[u],t[6]=c[u+1],t[5]=c[u+2],t[4]=c[u+3],t[3]=c[u+4],t[2]=c[u+5],t[1]=c[u+6],t[0]=c[u+7],e[0]}r.readDoubleLE=n?s:o,r.readDoubleBE=n?o:s}():function(){function e(n,a,i,s,o,c){var u=s<0?1:0;if(u&&(s=-s),s===0)n(0,o,c+a),n(1/s>0?0:2147483648,o,c+i);else if(isNaN(s))n(0,o,c+a),n(2146959360,o,c+i);else if(s>17976931348623157e292)n(0,o,c+a),n((u<<31|2146435072)>>>0,o,c+i);else{var l;if(s<22250738585072014e-324)l=s/5e-324,n(l>>>0,o,c+a),n((u<<31|l/4294967296)>>>0,o,c+i);else{var h=Math.floor(Math.log(s)/Math.LN2);h===1024&&(h=1023),l=s*Math.pow(2,-h),n(l*4503599627370496>>>0,o,c+a),n((u<<31|h+1023<<20|l*1048576&1048575)>>>0,o,c+i)}}}r.writeDoubleLE=e.bind(null,ptt,0,4),r.writeDoubleBE=e.bind(null,htt,4,0);function t(n,a,i,s,o){var c=n(s,o+a),u=n(s,o+i),l=(u>>31)*2+1,h=u>>>20&2047,f=4294967296*(u&1048575)+c;return h===2047?f?NaN:l*(1/0):h===0?l*5e-324*f:l*Math.pow(2,h-1075)*(f+4503599627370496)}r.readDoubleLE=t.bind(null,ftt,0,4),r.readDoubleBE=t.bind(null,mtt,4,0)}(),r}function ptt(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}function htt(r,e,t){e[t]=r>>>24,e[t+1]=r>>>16&255,e[t+2]=r>>>8&255,e[t+3]=r&255}function ftt(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0}function mtt(r,e){return(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}});var btt=x((exports,module)=>{"use strict";d();p();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}});var wtt=x(vtt=>{"use strict";d();p();var _Z=vtt;_Z.length=function(e){for(var t=0,n=0,a=0;a191&&c<224?s[o++]=(c&31)<<6|e[t++]&63:c>239&&c<365?(c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,s[o++]=55296+(c>>10),s[o++]=56320+(c&1023)):s[o++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63,o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};_Z.write=function(e,t,n){for(var a=n,i,s,o=0;o>6|192,t[n++]=i&63|128):(i&64512)===55296&&((s=e.charCodeAt(o+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-a}});var xtt=x((pFn,_tt)=>{"use strict";d();p();_tt.exports=e4r;function e4r(r,e,t){var n=t||8192,a=n>>>1,i=null,s=n;return function(c){if(c<1||c>a)return r(c);s+c>n&&(i=r(n),s=0);var u=e.call(i,s,s+=c);return s&7&&(s=(s|7)+1),u}}});var Ett=x((mFn,Ttt)=>{"use strict";d();p();Ttt.exports=Uo;var K4=k1();function Uo(r,e){this.lo=r>>>0,this.hi=e>>>0}var _v=Uo.zero=new Uo(0,0);_v.toNumber=function(){return 0};_v.zzEncode=_v.zzDecode=function(){return this};_v.length=function(){return 1};var t4r=Uo.zeroHash="\0\0\0\0\0\0\0\0";Uo.fromNumber=function(e){if(e===0)return _v;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new Uo(n,a)};Uo.from=function(e){if(typeof e=="number")return Uo.fromNumber(e);if(K4.isString(e))if(K4.Long)e=K4.Long.fromString(e);else return Uo.fromNumber(parseInt(e,10));return e.low||e.high?new Uo(e.low>>>0,e.high>>>0):_v};Uo.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};Uo.prototype.toLong=function(e){return K4.Long?new K4.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var I1=String.prototype.charCodeAt;Uo.fromHash=function(e){return e===t4r?_v:new Uo((I1.call(e,0)|I1.call(e,1)<<8|I1.call(e,2)<<16|I1.call(e,3)<<24)>>>0,(I1.call(e,4)|I1.call(e,5)<<8|I1.call(e,6)<<16|I1.call(e,7)<<24)>>>0)};Uo.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Uo.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};Uo.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};Uo.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var k1=x(xZ=>{"use strict";d();p();var ut=xZ;ut.asPromise=att();ut.base64=ctt();ut.EventEmitter=ltt();ut.float=gtt();ut.inquire=btt();ut.utf8=wtt();ut.pool=xtt();ut.LongBits=Ett();ut.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);ut.global=ut.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||xZ;ut.emptyArray=Object.freeze?Object.freeze([]):[];ut.emptyObject=Object.freeze?Object.freeze({}):{};ut.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};ut.isString=function(e){return typeof e=="string"||e instanceof String};ut.isObject=function(e){return e&&typeof e=="object"};ut.isset=ut.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};ut.Buffer=function(){try{var r=ut.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();ut._Buffer_from=null;ut._Buffer_allocUnsafe=null;ut.newBuffer=function(e){return typeof e=="number"?ut.Buffer?ut._Buffer_allocUnsafe(e):new ut.Array(e):ut.Buffer?ut._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};ut.Array=typeof Uint8Array<"u"?Uint8Array:Array;ut.Long=ut.global.dcodeIO&&ut.global.dcodeIO.Long||ut.global.Long||ut.inquire("long");ut.key2Re=/^true|false|0|1$/;ut.key32Re=/^-?(?:0|[1-9][0-9]*)$/;ut.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;ut.longToHash=function(e){return e?ut.LongBits.from(e).toHash():ut.LongBits.zeroHash};ut.longFromHash=function(e,t){var n=ut.LongBits.fromHash(e);return ut.Long?ut.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function Ctt(r,e,t){for(var n=Object.keys(e),a=0;a-1;--i)if(t[a[i]]===1&&this[a[i]]!==void 0&&this[a[i]]!==null)return a[i]}};ut.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";d();p();Ptt.exports=fn;var pp=k1(),TZ,uB=pp.LongBits,ktt=pp.base64,Att=pp.utf8;function G4(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function CZ(){}function r4r(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function fn(){this.len=0,this.head=new G4(CZ,0,0),this.tail=this.head,this.states=null}var Stt=function(){return pp.Buffer?function(){return(fn.create=function(){return new TZ})()}:function(){return new fn}};fn.create=Stt();fn.alloc=function(e){return new pp.Array(e)};pp.Array!==Array&&(fn.alloc=pp.pool(fn.alloc,pp.Array.prototype.subarray));fn.prototype._push=function(e,t,n){return this.tail=this.tail.next=new G4(e,t,n),this.len+=t,this};function IZ(r,e,t){e[t]=r&255}function n4r(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function kZ(r,e){this.len=r,this.next=void 0,this.val=e}kZ.prototype=Object.create(G4.prototype);kZ.prototype.fn=n4r;fn.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new kZ((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};fn.prototype.int32=function(e){return e<0?this._push(AZ,10,uB.fromNumber(e)):this.uint32(e)};fn.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function AZ(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}fn.prototype.uint64=function(e){var t=uB.from(e);return this._push(AZ,t.length(),t)};fn.prototype.int64=fn.prototype.uint64;fn.prototype.sint64=function(e){var t=uB.from(e).zzEncode();return this._push(AZ,t.length(),t)};fn.prototype.bool=function(e){return this._push(IZ,1,e?1:0)};function EZ(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}fn.prototype.fixed32=function(e){return this._push(EZ,4,e>>>0)};fn.prototype.sfixed32=fn.prototype.fixed32;fn.prototype.fixed64=function(e){var t=uB.from(e);return this._push(EZ,4,t.lo)._push(EZ,4,t.hi)};fn.prototype.sfixed64=fn.prototype.fixed64;fn.prototype.float=function(e){return this._push(pp.float.writeFloatLE,4,e)};fn.prototype.double=function(e){return this._push(pp.float.writeDoubleLE,8,e)};var a4r=pp.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var a=0;a>>0;if(!t)return this._push(IZ,1,0);if(pp.isString(e)){var n=fn.alloc(t=ktt.length(e));ktt.decode(e,n,0),e=n}return this.uint32(t)._push(a4r,t,e)};fn.prototype.string=function(e){var t=Att.length(e);return t?this.uint32(t)._push(Att.write,t,e):this._push(IZ,1,0)};fn.prototype.fork=function(){return this.states=new r4r(this),this.head=this.tail=new G4(CZ,0,0),this.len=0,this};fn.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new G4(CZ,0,0),this.len=0),this};fn.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};fn.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};fn._configure=function(r){TZ=r,fn.create=Stt(),TZ._configure()}});var Ntt=x((EFn,Mtt)=>{"use strict";d();p();Mtt.exports=nm;var Rtt=SZ();(nm.prototype=Object.create(Rtt.prototype)).constructor=nm;var A1=k1();function nm(){Rtt.call(this)}nm._configure=function(){nm.alloc=A1._Buffer_allocUnsafe,nm.writeBytesBuffer=A1.Buffer&&A1.Buffer.prototype instanceof Uint8Array&&A1.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var a=0;a>>0;return this.uint32(t),t&&this._push(nm.writeBytesBuffer,t,e),this};function i4r(r,e,t){r.length<40?A1.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}nm.prototype.string=function(e){var t=A1.Buffer.byteLength(e);return this.uint32(t),t&&this._push(i4r,t,e),this};nm._configure()});var MZ=x((kFn,Ftt)=>{"use strict";d();p();Ftt.exports=Ss;var am=k1(),RZ,Ott=am.LongBits,s4r=am.utf8;function Ih(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Ss(r){this.buf=r,this.pos=0,this.len=r.length}var Btt=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Ss(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Ss(e);throw Error("illegal buffer")},Ltt=function(){return am.Buffer?function(t){return(Ss.create=function(a){return am.Buffer.isBuffer(a)?new RZ(a):Btt(a)})(t)}:Btt};Ss.create=Ltt();Ss.prototype._slice=am.Array.prototype.subarray||am.Array.prototype.slice;Ss.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Ih(this,10);return e}}();Ss.prototype.int32=function(){return this.uint32()|0};Ss.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function PZ(){var r=new Ott(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw Ih(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw Ih(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Ss.prototype.bool=function(){return this.uint32()!==0};function lB(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Ss.prototype.fixed32=function(){if(this.pos+4>this.len)throw Ih(this,4);return lB(this.buf,this.pos+=4)};Ss.prototype.sfixed32=function(){if(this.pos+4>this.len)throw Ih(this,4);return lB(this.buf,this.pos+=4)|0};function Dtt(){if(this.pos+8>this.len)throw Ih(this,8);return new Ott(lB(this.buf,this.pos+=4),lB(this.buf,this.pos+=4))}Ss.prototype.float=function(){if(this.pos+4>this.len)throw Ih(this,4);var e=am.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Ss.prototype.double=function(){if(this.pos+8>this.len)throw Ih(this,4);var e=am.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Ss.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw Ih(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Ss.prototype.string=function(){var e=this.bytes();return s4r.read(e,0,e.length)};Ss.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw Ih(this,e);this.pos+=e}else do if(this.pos>=this.len)throw Ih(this);while(this.buf[this.pos++]&128);return this};Ss.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Ss._configure=function(r){RZ=r,Ss.create=Ltt(),RZ._configure();var e=am.Long?"toLong":"toNumber";am.merge(Ss.prototype,{int64:function(){return PZ.call(this)[e](!1)},uint64:function(){return PZ.call(this)[e](!0)},sint64:function(){return PZ.call(this).zzDecode()[e](!1)},fixed64:function(){return Dtt.call(this)[e](!0)},sfixed64:function(){return Dtt.call(this)[e](!1)}})}});var Htt=x((PFn,Utt)=>{"use strict";d();p();Utt.exports=xv;var Wtt=MZ();(xv.prototype=Object.create(Wtt.prototype)).constructor=xv;var qtt=k1();function xv(r){Wtt.call(this,r)}xv._configure=function(){qtt.Buffer&&(xv.prototype._slice=qtt.Buffer.prototype.slice)};xv.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};xv._configure()});var ztt=x((NFn,jtt)=>{"use strict";d();p();jtt.exports=V4;var NZ=k1();(V4.prototype=Object.create(NZ.EventEmitter.prototype)).constructor=V4;function V4(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");NZ.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}V4.prototype.rpcCall=function r(e,t,n,a,i){if(!a)throw TypeError("request must be specified");var s=this;if(!i)return NZ.asPromise(r,s,e,t,n,a);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(c,u){if(c)return s.emit("error",c,e),i(c);if(u===null){s.end(!0);return}if(!(u instanceof n))try{u=n[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(l){return s.emit("error",l,e),i(l)}return s.emit("data",u,e),i(null,u)})}catch(o){s.emit("error",o,e),setTimeout(function(){i(o)},0);return}};V4.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Gtt=x(Ktt=>{"use strict";d();p();var o4r=Ktt;o4r.Service=ztt()});var $tt=x((qFn,Vtt)=>{"use strict";d();p();Vtt.exports={}});var Qtt=x(Jtt=>{"use strict";d();p();var bl=Jtt;bl.build="minimal";bl.Writer=SZ();bl.BufferWriter=Ntt();bl.Reader=MZ();bl.BufferReader=Htt();bl.util=k1();bl.rpc=Gtt();bl.roots=$tt();bl.configure=Ytt;function Ytt(){bl.util._configure(),bl.Writer._configure(bl.BufferWriter),bl.Reader._configure(bl.BufferReader)}Ytt()});var dB=x((KFn,Ztt)=>{"use strict";d();p();Ztt.exports=Qtt()});var ert=x(($Fn,Xtt)=>{"use strict";d();p();var S1=dB(),E_=S1.Reader,BZ=S1.Writer,Jt=S1.util,Ho=S1.roots["ipfs-unixfs"]||(S1.roots["ipfs-unixfs"]={});Ho.Data=function(){function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Type=t.int32();break;case 2:i.Data=t.bytes();break;case 3:i.filesize=t.uint64();break;case 4:if(i.blocksizes&&i.blocksizes.length||(i.blocksizes=[]),(s&7)===2)for(var o=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var a=0;a>>0,t.blocksizes[a].high>>>0).toNumber(!0))}if(t.hashType!=null&&(Jt.Long?(n.hashType=Jt.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new Jt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&(Jt.Long?(n.fanout=Jt.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new Jt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=Ho.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var a={};if((n.arrays||n.defaults)&&(a.blocksizes=[]),n.defaults){if(a.Type=n.enums===String?"Raw":0,n.bytes===String?a.Data="":(a.Data=[],n.bytes!==Array&&(a.Data=Jt.newBuffer(a.Data))),Jt.Long){var i=new Jt.Long(0,0,!0);a.filesize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.filesize=n.longs===String?"0":0;if(Jt.Long){var i=new Jt.Long(0,0,!0);a.hashType=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.hashType=n.longs===String?"0":0;if(Jt.Long){var i=new Jt.Long(0,0,!0);a.fanout=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.fanout=n.longs===String?"0":0;a.mode=0,a.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(a.Type=n.enums===String?Ho.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(a.Data=n.bytes===String?Jt.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?a.filesize=n.longs===String?String(t.filesize):t.filesize:a.filesize=n.longs===String?Jt.Long.prototype.toString.call(t.filesize):n.longs===Number?new Jt.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){a.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?a.hashType=n.longs===String?String(t.hashType):t.hashType:a.hashType=n.longs===String?Jt.Long.prototype.toString.call(t.hashType):n.longs===Number?new Jt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?a.fanout=n.longs===String?String(t.fanout):t.fanout:a.fanout=n.longs===String?Jt.Long.prototype.toString.call(t.fanout):n.longs===Number?new Jt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(a.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(a.mtime=Ho.UnixTime.toObject(t.mtime,n)),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,S1.util.toJSONOptions)},r.DataType=function(){var e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r}();Ho.UnixTime=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Seconds=t.int64();break;case 2:i.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!i.hasOwnProperty("Seconds"))throw Jt.ProtocolError("missing required 'Seconds'",{instance:i});return i},r.fromObject=function(t){if(t instanceof Ho.UnixTime)return t;var n=new Ho.UnixTime;return t.Seconds!=null&&(Jt.Long?(n.Seconds=Jt.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new Jt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults){if(Jt.Long){var i=new Jt.Long(0,0,!1);a.Seconds=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Seconds=n.longs===String?"0":0;a.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?a.Seconds=n.longs===String?String(t.Seconds):t.Seconds:a.Seconds=n.longs===String?Jt.Long.prototype.toString.call(t.Seconds):n.longs===Number?new Jt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(a.FractionalNanoseconds=t.FractionalNanoseconds),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,S1.util.toJSONOptions)},r}();Ho.Metadata=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.MimeType=t.string();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof Ho.Metadata)return t;var n=new Ho.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var a={};return n.defaults&&(a.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(a.MimeType=t.MimeType),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,S1.util.toJSONOptions)},r}();Xtt.exports=Ho});var C_=x((QFn,art)=>{"use strict";d();p();var{Data:C0}=ert(),DZ=hv(),trt=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],c4r=["directory","hamt-sharded-directory"],rrt=parseInt("0644",8),nrt=parseInt("0755",8);function pB(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function OZ(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){let t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw DZ(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var $4=class{static unmarshal(e){let t=C0.decode(e),n=C0.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),a=new $4({type:trt[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return a._originalMode=n.mode||0,a}constructor(e={type:"file"}){let{type:t,data:n,blockSizes:a,hashType:i,fanout:s,mtime:o,mode:c}=e;if(t&&!trt.includes(t))throw DZ(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=i,this.fanout=s,this.blockSizes=a||[],this._originalMode=0,this.mode=pB(c),o&&(this.mtime=OZ(o),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?nrt:rrt;let t=pB(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&c4r.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=C0.DataType.Raw;break;case"directory":e=C0.DataType.Directory;break;case"file":e=C0.DataType.File;break;case"metadata":e=C0.DataType.Metadata;break;case"symlink":e=C0.DataType.Symlink;break;case"hamt-sharded-directory":e=C0.DataType.HAMTShard;break;default:throw DZ(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(pB(this.mode)||0),n===rrt&&!this.isDirectory()&&(n=void 0),n===nrt&&this.isDirectory()&&(n=void 0));let a;if(this.mtime!=null){let s=OZ(this.mtime);s&&(a={Seconds:s.secs,FractionalNanoseconds:s.nsecs},a.FractionalNanoseconds===0&&delete a.FractionalNanoseconds)}let i={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:a};return C0.encode(i).finish()}};art.exports={UnixFS:$4,parseMode:pB,parseMtime:OZ}});var ort=x((eqn,srt)=>{d();p();srt.exports=LZ;var irt=128,u4r=127,l4r=~u4r,d4r=Math.pow(2,31);function LZ(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw LZ.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=d4r;)e[t++]=r&255|irt,r/=128;for(;r&l4r;)e[t++]=r&255|irt,r>>>=7;return e[t]=r|0,LZ.bytes=t-n+1,e}});var lrt=x((nqn,urt)=>{d();p();urt.exports=FZ;var p4r=128,crt=127;function FZ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o||a>49)throw FZ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&crt)<=p4r);return FZ.bytes=i-n,t}});var prt=x((sqn,drt)=>{d();p();var h4r=Math.pow(2,7),f4r=Math.pow(2,14),m4r=Math.pow(2,21),y4r=Math.pow(2,28),g4r=Math.pow(2,35),b4r=Math.pow(2,42),v4r=Math.pow(2,49),w4r=Math.pow(2,56),_4r=Math.pow(2,63);drt.exports=function(r){return r{d();p();hrt.exports={encode:ort(),decode:lrt(),encodingLength:prt()}});var WZ=x((pqn,yrt)=>{"use strict";d();p();var frt=qZ(),{toString:x4r}=(b_(),nt(QN)),{fromString:T4r}=(vv(),nt(D4));yrt.exports={numberToUint8Array:E4r,uint8ArrayToNumber:mrt,varintUint8ArrayEncode:C4r,varintEncode:I4r};function mrt(r){return parseInt(x4r(r,"base16"),16)}function E4r(r){let e=r.toString(16);return e.length%2===1&&(e="0"+e),T4r(e,"base16")}function C4r(r){return Uint8Array.from(frt.encode(mrt(r)))}function I4r(r){return Uint8Array.from(frt.encode(r))}});var brt=x((mqn,grt)=>{"use strict";d();p();var k4r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});grt.exports={baseTable:k4r}});var wrt=x((bqn,vrt)=>{"use strict";d();p();var{baseTable:UZ}=brt(),A4r=WZ().varintEncode,HZ={},jZ={},hB={};for(let r in UZ){let e=r,t=UZ[e];HZ[e]=A4r(t);let n=e.toUpperCase().replace(/-/g,"_");jZ[n]=t,hB[t]||(hB[t]=e)}Object.freeze(HZ);Object.freeze(jZ);Object.freeze(hB);var S4r=Object.freeze(UZ);vrt.exports={nameToVarint:HZ,constantToCode:jZ,nameToCode:S4r,codeToName:hB}});var KZ=x((_qn,Srt)=>{"use strict";d();p();var fB=qZ(),{concat:P4r}=(wv(),nt(L4)),_rt=WZ(),{nameToVarint:mB,constantToCode:R4r,nameToCode:xrt,codeToName:zZ}=wrt();function M4r(r,e){let t;if(r instanceof Uint8Array)t=_rt.varintUint8ArrayEncode(r);else if(mB[r])t=mB[r];else throw new Error("multicodec not recognized");return P4r([t,e],t.length+e.length)}function N4r(r){return fB.decode(r),r.slice(fB.decode.bytes)}function Trt(r){let e=fB.decode(r),t=zZ[e];if(t===void 0)throw new Error(`Code "${e}" not found`);return t}function Ert(r){return zZ[r]}function Crt(r){let e=xrt[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function Irt(r){return fB.decode(r)}function krt(r){let e=mB[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function Art(r){return _rt.varintEncode(r)}function B4r(r){return Trt(r)}function D4r(r){return Ert(r)}function O4r(r){return Crt(r)}function L4r(r){return Irt(r)}function F4r(r){return krt(r)}function q4r(r){return Array.from(Art(r))}Srt.exports={addPrefix:M4r,rmPrefix:N4r,getNameFromData:Trt,getNameFromCode:Ert,getCodeFromName:Crt,getCodeFromData:Irt,getVarintFromName:krt,getVarintFromCode:Art,getCodec:B4r,getName:D4r,getNumber:O4r,getCode:L4r,getCodeVarint:F4r,getVarint:q4r,...R4r,nameToVarint:mB,nameToCode:xrt,codeToName:zZ}});var Rrt=x((Eqn,Prt)=>{"use strict";d();p();var W4r=q4(),U4r={checkCIDComponents:function(r){if(r==null)return"null values are not valid CIDs";if(!(r.version===0||r.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof r.codec!="string")return"codec must be string";if(r.version===0){if(r.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(r.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(r.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{W4r.validate(r.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};Prt.exports=U4r});var I_=x((kqn,Brt)=>{"use strict";d();p();var yB=q4(),GZ=OQ(),Tv=KZ(),H4r=Rrt(),{concat:Mrt}=(wv(),nt(L4)),{toString:j4r}=(b_(),nt(QN)),{equals:z4r}=(iB(),nt(wZ)),gB=Tv.nameToCode,K4r=Object.keys(gB).reduce((r,e)=>(r[gB[e]]=e,r),{}),Nrt=Symbol.for("@ipld/js-cid/CID"),hp=class{constructor(e,t,n,a){if(this.version,this.codec,this.multihash,Object.defineProperty(this,Nrt,{value:!0}),hp.isCID(e)){let i=e;this.version=i.version,this.codec=i.codec,this.multihash=i.multihash,this.multibaseName=i.multibaseName||(i.version===0?"base58btc":"base32");return}if(typeof e=="string"){let i=GZ.isEncoded(e);if(i){let s=GZ.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=Tv.getCodec(s.slice(1)),this.multihash=Tv.rmPrefix(s.slice(1)),this.multibaseName=i}else this.version=0,this.codec="dag-pb",this.multihash=yB.fromB58String(e),this.multibaseName="base58btc";hp.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let i=parseInt(e[0].toString(),16);if(i===1){let s=e;this.version=i,this.codec=Tv.getCodec(s.slice(1)),this.multihash=Tv.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";hp.validateCID(this);return}this.version=e,typeof t=="number"&&(t=K4r[t]),this.codec=t,this.multihash=n,this.multibaseName=a||(e===0?"base58btc":"base32"),hp.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let t=Tv.getCodeVarint(this.codec);e=Mrt([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=Tv.getCodeVarint(this.codec),t=yB.prefix(this.multihash);return Mrt([[this.version],e,t],1+e.byteLength+t.byteLength)}get code(){return gB[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:t}=yB.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(t!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new hp(0,this.codec,this.multihash)}toV1(){return new hp(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let t;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=yB.toB58String(this.multihash)}else if(this.version===1)t=j4r(GZ.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&z4r(this.multihash,e.multihash)}static validateCID(e){let t=H4r.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof hp||Boolean(e&&e[Nrt])}};hp.codecs=gB;Brt.exports=hp});var k_=x((Pqn,Drt)=>{"use strict";d();p();var G4r=z4(),V4r=I_(),$4r=async(r,e,t)=>{t.codec||(t.codec="dag-pb"),t.cidVersion||(t.cidVersion=0),t.hashAlg||(t.hashAlg="sha2-256"),t.hashAlg!=="sha2-256"&&(t.cidVersion=1);let n=await G4r(r,t.hashAlg),a=new V4r(t.cidVersion,t.codec,n);return t.onlyHash||await e.put(r,{pin:t.pin,preload:t.preload,timeout:t.timeout,cid:a}),a};Drt.exports=$4r});var VZ=x((Nqn,Lrt)=>{"use strict";d();p();var Ev=dB(),bB=Ev.Reader,Ort=Ev.Writer,ls=Ev.util,nd=Ev.roots.default||(Ev.roots.default={});nd.PBLink=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Hash=t.bytes();break;case 2:i.Name=t.string();break;case 3:i.Tsize=t.uint64();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof nd.PBLink)return t;var n=new nd.PBLink;return t.Hash!=null&&(typeof t.Hash=="string"?ls.base64.decode(t.Hash,n.Hash=ls.newBuffer(ls.base64.length(t.Hash)),0):t.Hash.length&&(n.Hash=t.Hash)),t.Name!=null&&(n.Name=String(t.Name)),t.Tsize!=null&&(ls.Long?(n.Tsize=ls.Long.fromValue(t.Tsize)).unsigned=!0:typeof t.Tsize=="string"?n.Tsize=parseInt(t.Tsize,10):typeof t.Tsize=="number"?n.Tsize=t.Tsize:typeof t.Tsize=="object"&&(n.Tsize=new ls.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0))),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults)if(n.bytes===String?a.Hash="":(a.Hash=[],n.bytes!==Array&&(a.Hash=ls.newBuffer(a.Hash))),a.Name="",ls.Long){var i=new ls.Long(0,0,!0);a.Tsize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Tsize=n.longs===String?"0":0;return t.Hash!=null&&t.hasOwnProperty("Hash")&&(a.Hash=n.bytes===String?ls.base64.encode(t.Hash,0,t.Hash.length):n.bytes===Array?Array.prototype.slice.call(t.Hash):t.Hash),t.Name!=null&&t.hasOwnProperty("Name")&&(a.Name=t.Name),t.Tsize!=null&&t.hasOwnProperty("Tsize")&&(typeof t.Tsize=="number"?a.Tsize=n.longs===String?String(t.Tsize):t.Tsize:a.Tsize=n.longs===String?ls.Long.prototype.toString.call(t.Tsize):n.longs===Number?new ls.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0):t.Tsize),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,Ev.util.toJSONOptions)},r}();nd.PBNode=function(){function r(e){if(this.Links=[],e)for(var t=Object.keys(e),n=0;n>>3){case 2:i.Links&&i.Links.length||(i.Links=[]),i.Links.push(nd.PBLink.decode(t,t.uint32()));break;case 1:i.Data=t.bytes();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof nd.PBNode)return t;var n=new nd.PBNode;if(t.Links){if(!Array.isArray(t.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var a=0;a{"use strict";d();p();var{bases:Frt}=(dZ(),nt(uet));function Wrt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var qrt=Wrt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),$Z=Wrt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=new Uint8Array(r.length);for(let t=0;t{"use strict";d();p();var J4r=YZ();function Q4r(r,e="utf8"){let t=J4r[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}Hrt.exports=Q4r});var Cv=x((Hqn,jrt)=>{"use strict";d();p();var Z4r=I_(),X4r=vB(),JZ=class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=t,this.Hash=new Z4r(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=X4r(this.Name),this._nameBuf)}};jrt.exports=JZ});var zrt=x((QZ,ZZ)=>{d();p();(function(r,e){typeof QZ=="object"&&typeof ZZ<"u"?ZZ.exports=e():typeof define=="function"&&define.amd?define(e):r.stable=e()})(QZ,function(){"use strict";var r=function(n,a){return e(n.slice(),a)};r.inplace=function(n,a){var i=e(n,a);return i!==n&&t(i,null,n.length,n),n};function e(n,a){typeof a!="function"&&(a=function(u,l){return String(u).localeCompare(l)});var i=n.length;if(i<=1)return n;for(var s=new Array(i),o=1;oo&&(h=o),f>o&&(f=o),m=l,y=h;;)if(m{"use strict";d();p();function e8r(r,e){for(let t=0;te[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{"use strict";d();p();var t8r=zrt(),r8r=Grt(),n8r=(r,e)=>{let t=r.nameAsBuffer,n=e.nameAsBuffer;return r8r(t,n)},a8r=r=>{t8r.inplace(r,n8r)};Vrt.exports=a8r});var eX=x((Xqn,$rt)=>{"use strict";d();p();var i8r=Cv();function s8r(r){return new i8r(r.Name||r.name||"",r.Tsize||r.Size||r.size||0,r.Hash||r.hash||r.multihash||r.cid)}$rt.exports={createDagLinkFromB58EncodedHash:s8r}});var tX=x((rWn,Qrt)=>{"use strict";d();p();var o8r=dB(),{PBLink:c8r}=VZ(),{createDagLinkFromB58EncodedHash:u8r}=eX(),Yrt=r=>{let e={};return r.Data&&r.Data.byteLength>0?e.Data=r.Data:e.Data=null,r.Links&&r.Links.length>0?e.Links=r.Links.map(t=>({Hash:t.Hash.bytes,Name:t.Name,Tsize:t.Tsize})):e.Links=null,e},l8r=r=>Jrt(Yrt(r)),d8r=(r,e=[])=>{let t={Data:r,Links:e.map(n=>u8r(n))};return Jrt(Yrt(t))};Qrt.exports={serializeDAGNode:l8r,serializeDAGNodeLike:d8r};function Jrt(r){let e=o8r.Writer.create();if(r.Links!=null)for(let t=0;t{"use strict";d();p();var p8r=I_(),Zrt=KZ(),Xrt=z4(),{multihash:ent}=Xrt,tnt=Zrt.DAG_PB,rnt=ent.names["sha2-256"],h8r=async(r,e={})=>{let t={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?rnt:e.hashAlg},n=ent.codes[t.hashAlg],a=await Xrt(r,n),i=Zrt.getNameFromCode(tnt);return new p8r(t.cidVersion,i,a)};nnt.exports={codec:tnt,defaultHashAlg:rnt,cid:h8r}});var int=x((cWn,ant)=>{"use strict";d();p();var f8r=Cv(),m8r=rX(),y8r=async(r,e={})=>{let t=r.serialize(),n=await m8r.cid(t,e);return new f8r(e.name||"",r.size,n)};ant.exports=y8r});var cnt=x((dWn,ont)=>{"use strict";d();p();var g8r=XZ(),snt=Cv(),b8r=r=>{if(r instanceof snt)return r;if(!("cid"in r||"hash"in r||"Hash"in r||"multihash"in r))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new snt(r.Name||r.name,r.Tsize||r.size,r.Hash||r.multihash||r.hash||r.cid)},v8r=(r,e)=>{let t=b8r(e);r.Links.push(t),g8r(r.Links)};ont.exports=v8r});var lnt=x((fWn,unt)=>{"use strict";d();p();function w8r(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{"use strict";d();p();var _8r=I_(),dnt=lnt(),x8r=(r,e)=>{let t=null;if(typeof e=="string"?t=n=>n.Name===e:e instanceof Uint8Array?t=n=>dnt(n.Hash.bytes,e):_8r.isCID(e)&&(t=n=>dnt(n.Hash.bytes,e.bytes)),t){let n=r.Links,a=0;for(;a{"use strict";d();p();var T8r=YZ();function E8r(r,e="utf8"){let t=T8r[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.encoder.encode(r).substring(1)}fnt.exports=E8r});var aX=x((TWn,ynt)=>{"use strict";d();p();var C8r=XZ(),I8r=Cv(),{createDagLinkFromB58EncodedHash:k8r}=eX(),{serializeDAGNode:A8r}=tX(),S8r=int(),P8r=cnt(),R8r=hnt(),M8r=vB(),N8r=mnt(),nX=class{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=M8r(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let a=t.map(i=>i instanceof I8r?i:k8r(i));C8r(a),this.Data=e,this.Links=a,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),P8r(this,e)}rmLink(e){return this._invalidateCached(),R8r(this,e)}toDAGLink(e){return S8r(this,e)}serialize(){let e=A8r(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((t,n)=>t+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};ynt.exports=nX});var sX=x((IWn,vnt)=>{"use strict";d();p();var{PBNode:gnt}=VZ(),B8r=Cv(),bnt=aX(),{serializeDAGNode:D8r,serializeDAGNodeLike:O8r}=tX(),iX=rX(),L8r=(r,e)=>iX.cid(r,e),F8r=r=>r instanceof bnt?D8r(r):O8r(r.Data,r.Links),q8r=r=>{let e=gnt.decode(r),t=gnt.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=t.Links.map(i=>new B8r(i.Name,i.Tsize,i.Hash)),a=t.Data==null?new Uint8Array(0):t.Data;return new bnt(a,n,r.byteLength)};vnt.exports={codec:iX.codec,defaultHashAlg:iX.defaultHashAlg,serialize:F8r,deserialize:q8r,cid:L8r}});var _nt=x(oX=>{"use strict";d();p();var W8r=I_(),wnt=sX();oX.resolve=(r,e="/")=>{let t=wnt.deserialize(r),n=e.split("/").filter(Boolean);for(;n.length;){let a=n.shift();if(t[a]===void 0){for(let i of t.Links)if(i.Name===a)return{value:i.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${a}'`)}if(t=t[a],W8r.isCID(t))return{value:t,remainderPath:n.join("/")}}return{value:t,remainderPath:""}};oX.tree=function*(r){let e=wnt.deserialize(r);yield"Data",yield"Links";for(let t=0;t{"use strict";d();p();var U8r=_nt(),cX=sX(),H8r=aX(),j8r=Cv(),z8r={DAGNode:H8r,DAGLink:j8r,resolver:U8r,util:cX,codec:cX.codec,defaultHashAlg:cX.defaultHashAlg};xnt.exports=z8r});var Ent=x((DWn,Tnt)=>{"use strict";d();p();var{UnixFS:K8r}=C_(),G8r=k_(),{DAGNode:V8r}=A_(),$8r=async(r,e,t)=>{let n=new K8r({type:"directory",mtime:r.mtime,mode:r.mode}),a=new V8r(n.marshal()).serialize(),i=await G8r(a,e,t),s=r.path;return{cid:i,path:s,unixfs:n,size:a.length}};Tnt.exports=$8r});var Int=x((FWn,Cnt)=>{"use strict";d();p();var Y8r=async r=>{let e=[];for await(let t of r)e.push(t);return e};Cnt.exports=Y8r});var Ant=x((UWn,knt)=>{"use strict";d();p();var J8r=Int();knt.exports=async function(r,e){return e(await J8r(r))}});var Rnt=x((zWn,Pnt)=>{"use strict";d();p();var Q8r=ON();function Z8r(r,e,t){return Snt(r,e,t)}async function Snt(r,e,t){let n=[];for await(let a of Q8r(r,t.maxChildrenPerNode))n.push(await e(a));return n.length>1?Snt(n,e,t):n[0]}Pnt.exports=Z8r});var Nnt=x((VWn,Mnt)=>{"use strict";d();p();var X8r=ON();Mnt.exports=async function(e,t,n){let a=new uX(n.layerRepeat),i=0,s=1,o=a;for await(let c of X8r(e,n.maxChildrenPerNode))o.isFull()&&(o!==a&&a.addChild(await o.reduce(t)),i&&i%n.layerRepeat===0&&s++,o=new wB(s,n.layerRepeat,i),i++),o.append(c);return o&&o!==a&&a.addChild(await o.reduce(t)),a.reduce(t)};var wB=class{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptha.data).map(a=>this._reduce(a,t)))),t((e.data||[]).concat(n))}_findParent(e,t){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}},uX=class extends wB{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var Dnt=x((JWn,Bnt)=>{"use strict";d();p();var{UnixFS:eIr}=C_(),tIr=k_(),{DAGNode:rIr}=A_();async function*nIr(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let a,i={codec:"dag-pb",cidVersion:t.cidVersion,hashAlg:t.hashAlg,onlyHash:t.onlyHash};return t.rawLeaves?(i.codec="raw",i.cidVersion=1):(a=new eIr({type:t.leafType,data:n,mtime:r.mtime,mode:r.mode}),n=new rIr(a.marshal()).serialize()),{cid:await tIr(n,e,i),unixfs:a,size:n.length}}}Bnt.exports=nIr});var Unt=x((XWn,Wnt)=>{"use strict";d();p();var aIr=hv(),{UnixFS:Ont}=C_(),Lnt=k_(),{DAGNode:Fnt,DAGLink:qnt}=A_(),iIr=NQ(),sIr=z4().multihash,oIr={flat:Ant(),balanced:Rnt(),trickle:Nnt()};async function*cIr(r,e,t){let n=-1,a,i;typeof t.bufferImporter=="function"?i=t.bufferImporter:i=Dnt();for await(let s of iIr(i(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){a=s;continue}else n===1&&a&&(yield a,a=null);yield s}a&&(a.single=!0,yield a)}var uIr=(r,e,t)=>{async function n(a){if(a.length===1&&a[0].single&&t.reduceSingleLeafToSelf){let l=a[0];if(l.cid.codec==="raw"&&(r.mtime!==void 0||r.mode!==void 0)){let{data:h}=await e.get(l.cid,t);l.unixfs=new Ont({type:"file",mtime:r.mtime,mode:r.mode,data:h});let f=sIr.decode(l.cid.multihash);h=new Fnt(l.unixfs.marshal()).serialize(),l.cid=await Lnt(h,e,{...t,codec:"dag-pb",hashAlg:f.name,cidVersion:t.cidVersion}),l.size=h.length}return{cid:l.cid,path:r.path,unixfs:l.unixfs,size:l.size}}let i=new Ont({type:"file",mtime:r.mtime,mode:r.mode}),s=a.filter(l=>l.cid.codec==="raw"&&l.size||l.unixfs&&!l.unixfs.data&&l.unixfs.fileSize()?!0:Boolean(l.unixfs&&l.unixfs.data&&l.unixfs.data.length)).map(l=>l.cid.codec==="raw"?(i.addBlockSize(l.size),new qnt("",l.size,l.cid)):(!l.unixfs||!l.unixfs.data?i.addBlockSize(l.unixfs&&l.unixfs.fileSize()||0):i.addBlockSize(l.unixfs.data.length),new qnt("",l.size,l.cid))),o=new Fnt(i.marshal(),s),c=o.serialize();return{cid:await Lnt(c,e,t),path:r.path,unixfs:i,size:c.length+o.Links.reduce((l,h)=>l+h.Tsize,0)}}return n};function lIr(r,e,t){let n=oIr[t.strategy];if(!n)throw aIr(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(cIr(r,e,t),uIr(r,e,t),t)}Wnt.exports=lIr});var lX=x((rUn,jnt)=>{"use strict";d();p();var{Buffer:kh}=lc(),Hnt=Symbol.for("BufferList");function ri(r){if(!(this instanceof ri))return new ri(r);ri._init.call(this,r)}ri._init=function(e){Object.defineProperty(this,Hnt,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};ri.prototype._new=function(e){return new ri(e)};ri.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};ri.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};ri.prototype.copy=function(e,t,n,a){if((typeof n!="number"||n<0)&&(n=0),(typeof a!="number"||a>this.length)&&(a=this.length),n>=this.length||a<=0)return e||kh.alloc(0);let i=!!e,s=this._offset(n),o=a-n,c=o,u=i&&t||0,l=s[1];if(n===0&&a===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:kh.concat(this._bufs,this.length);for(let h=0;hf)this._bufs[h].copy(e,u,l),u+=f;else{this._bufs[h].copy(e,u,l,l+c),u+=f;break}c-=f,l&&(l=0)}return e.length>u?e.slice(0,u):e};ri.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),a=this._offset(t),i=this._bufs.slice(n[0],a[0]+1);return a[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,a[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)};ri.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)};ri.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};ri.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let n=this._offset(e),a=n[0],i=n[1];for(;a=r.length){let c=s.indexOf(r,i);if(c!==-1)return this._reverseOffset([a,c]);i=s.length-r.length+1}else{let c=this._reverseOffset([a,i]);if(this._match(c,r))return c;i++}i=0}return-1};ri.prototype._match=function(r,e){if(this.length-r{d();p();var dX=class{constructor(e,t=12,n=8*1024,a=32*1024,i=64,s){this.bits=t,this.min=n,this.max=a,this.asModule=e,this.rabin=new e.Rabin(t,n,a,i,s),this.polynomial=s}fingerprint(e){let{__retain:t,__release:n,__allocArray:a,__getInt32Array:i,Int32Array_ID:s,Uint8Array_ID:o}=this.asModule,c=new Int32Array(Math.ceil(e.length/this.min)),u=t(a(s,c)),l=t(a(o,e)),h=this.rabin.fingerprint(l,u),f=i(h);n(l),n(u);let m=f.indexOf(0);return m>=0?f.subarray(0,m):f}};znt.exports=dX});var Qnt=x(Q4=>{"use strict";d();p();var dIr=typeof BigUint64Array<"u",Y4=Symbol(),J4=1024;function Gnt(r,e){let t=new Uint32Array(r),n=new Uint16Array(r);var a=t[e+-4>>>2]>>>1,i=e>>>1;if(a<=J4)return String.fromCharCode.apply(String,n.subarray(i,i+a));let s=[];do{let o=n[i+J4-1],c=o>=55296&&o<56320?J4-1:J4;s.push(String.fromCharCode.apply(String,n.subarray(i,i+=c))),a-=c}while(a>J4);return s.join("")+String.fromCharCode.apply(String,n.subarray(i,i+a))}function pX(r){let e={};function t(a,i){return a?Gnt(a.buffer,i):""}let n=r.env=r.env||{};return n.abort=n.abort||function(i,s,o,c){let u=e.memory||n.memory;throw Error("abort: "+t(u,i)+" at "+t(u,s)+":"+o+":"+c)},n.trace=n.trace||function(i,s){let o=e.memory||n.memory;console.log("trace: "+t(o,i)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function hX(r,e){let t=e.exports,n=t.memory,a=t.table,i=t.__alloc,s=t.__retain,o=t.__rtti_base||-1;function c(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2]}function u(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2+1]}function l(K){return 31-Math.clz32(K>>>5&31)}function h(K){return 31-Math.clz32(K>>>14&31)}function f(K){let H=K.length,G=i(H<<1,1),J=new Uint16Array(n.buffer);for(var F=0,T=G>>>1;F>>2]!==1)throw Error("not a string: "+K);return Gnt(H,K)}r.__getString=m;function y(K,H,G){let J=n.buffer;if(G)switch(K){case 2:return new Float32Array(J);case 3:return new Float64Array(J)}else switch(K){case 0:return new(H?Int8Array:Uint8Array)(J);case 1:return new(H?Int16Array:Uint16Array)(J);case 2:return new(H?Int32Array:Uint32Array)(J);case 3:return new(H?BigInt64Array:BigUint64Array)(J)}throw Error("unsupported align: "+K)}function E(K,H){let G=c(K);if(!(G&3))throw Error("not an array: "+K+" @ "+G);let J=l(G),F=H.length,T=i(F<>>2]=s(T),A[P+4>>>2]=T,A[P+8>>>2]=F<>>2]=F);let v=y(J,G&1024,G&2048);if(G&8192)for(let k=0;k>>J)+k]=s(H[k]);else v.set(H,T>>>J);return P}r.__allocArray=E;function I(K){let H=new Uint32Array(n.buffer),G=H[K+-8>>>2],J=c(G);if(!(J&1))throw Error("not an array: "+G);let F=l(J);var T=H[K+4>>>2];let P=J&2?H[K+12>>>2]:H[T+-4>>>2]>>>F;return y(F,J&1024,J&2048).subarray(T>>>=F,T+P)}r.__getArrayView=I;function S(K){let H=I(K),G=H.length,J=new Array(G);for(let F=0;F>>2];return H.slice(K,K+G)}r.__getArrayBuffer=L;function q(K,H,G){return new K(W(K,H,G))}function W(K,H,G){let J=n.buffer,F=new Uint32Array(J),T=F[G+4>>>2];return new K(J,T,F[T+-4>>>2]>>>H)}r.__getInt8Array=q.bind(null,Int8Array,0),r.__getInt8ArrayView=W.bind(null,Int8Array,0),r.__getUint8Array=q.bind(null,Uint8Array,0),r.__getUint8ArrayView=W.bind(null,Uint8Array,0),r.__getUint8ClampedArray=q.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=W.bind(null,Uint8ClampedArray,0),r.__getInt16Array=q.bind(null,Int16Array,1),r.__getInt16ArrayView=W.bind(null,Int16Array,1),r.__getUint16Array=q.bind(null,Uint16Array,1),r.__getUint16ArrayView=W.bind(null,Uint16Array,1),r.__getInt32Array=q.bind(null,Int32Array,2),r.__getInt32ArrayView=W.bind(null,Int32Array,2),r.__getUint32Array=q.bind(null,Uint32Array,2),r.__getUint32ArrayView=W.bind(null,Uint32Array,2),dIr&&(r.__getInt64Array=q.bind(null,BigInt64Array,3),r.__getInt64ArrayView=W.bind(null,BigInt64Array,3),r.__getUint64Array=q.bind(null,BigUint64Array,3),r.__getUint64ArrayView=W.bind(null,BigUint64Array,3)),r.__getFloat32Array=q.bind(null,Float32Array,2),r.__getFloat32ArrayView=W.bind(null,Float32Array,2),r.__getFloat64Array=q.bind(null,Float64Array,3),r.__getFloat64ArrayView=W.bind(null,Float64Array,3);function V(K,H){let G=new Uint32Array(n.buffer);var J=G[K+-8>>>2];if(J<=G[o>>>2])do if(J==H)return!0;while(J=u(J));return!1}return r.__instanceof=V,r.memory=r.memory||n,r.table=r.table||a,Jnt(t,r)}function Vnt(r){return typeof Response<"u"&&r instanceof Response}async function $nt(r,e){return Vnt(r=await r)?Ynt(r,e):hX(pX(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}Q4.instantiate=$nt;function pIr(r,e){return hX(pX(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}Q4.instantiateSync=pIr;async function Ynt(r,e){return WebAssembly.instantiateStreaming?hX(pX(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):$nt(Vnt(r=await r)?r.arrayBuffer():r,e)}Q4.instantiateStreaming=Ynt;function Jnt(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(a){r.__argumentsLength.value=a}:r.__setArgumentsLength||r.__setargc||function(){};for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let i=r[a],s=a.split("."),o=t;for(;s.length>1;){let l=s.shift();Object.prototype.hasOwnProperty.call(o,l)||(o[l]={}),o=o[l]}let c=s[0],u=c.indexOf("#");if(u>=0){let l=c.substring(0,u),h=o[l];if(typeof h>"u"||!h.prototype){let f=function(...m){return f.wrap(f.prototype.constructor(0,...m))};f.prototype={valueOf:function(){return this[Y4]}},f.wrap=function(m){return Object.create(f.prototype,{[Y4]:{value:m,writable:!1}})},h&&Object.getOwnPropertyNames(h).forEach(m=>Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))),o[l]=f}if(c=c.substring(u+1),o=o[l].prototype,/^(get|set):/.test(c)){if(!Object.prototype.hasOwnProperty.call(o,c=c.substring(4))){let f=r[a.replace("set:","get:")],m=r[a.replace("get:","set:")];Object.defineProperty(o,c,{get:function(){return f(this[Y4])},set:function(y){m(this[Y4],y)},enumerable:!0})}}else c==="constructor"?(o[c]=(...f)=>(n(f.length),i(...f))).original=i:(o[c]=function(...f){return n(f.length),i(this[Y4],...f)}).original=i}else/^(get|set):/.test(c)?Object.prototype.hasOwnProperty.call(o,c=c.substring(4))||Object.defineProperty(o,c,{get:r[a.replace("set:","get:")],set:r[a.replace("get:","set:")],enumerable:!0}):typeof i=="function"&&i!==n?(o[c]=(...l)=>(n(l.length),i(...l))).original=i:o[c]=i}return t}Q4.demangle=Jnt});var Xnt=x((dUn,Znt)=>{d();p();var{instantiate:hIr}=Qnt();fX.supported=typeof WebAssembly<"u";function fX(r={}){if(!fX.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return hIr(new Response(new Blob([e],{type:"application/wasm"})),r)}Znt.exports=fX});var rat=x((fUn,tat)=>{d();p();var eat=Knt(),fIr=Xnt(),mIr=async(r,e,t,n,a)=>{let i=await fIr();return new eat(i,r,e,t,n,a)};tat.exports={Rabin:eat,create:mIr}});var iat=x((gUn,aat)=>{"use strict";d();p();var yIr=lX(),{create:gIr}=rat(),nat=hv();aat.exports=async function*(e,t){let n,a,i;if(t.minChunkSize&&t.maxChunkSize&&t.avgChunkSize)i=t.avgChunkSize,n=t.minChunkSize,a=t.maxChunkSize;else if(t.avgChunkSize)i=t.avgChunkSize,n=i/3,a=i+i/2;else throw nat(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw nat(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");a{"use strict";d();p();var mX=lX();sat.exports=async function*(e,t){let n=new mX,a=0,i=!1,s=t.maxChunkSize;for await(let o of e)for(n.append(o),a+=o.length;a>=s;)if(yield n.slice(0,s),i=!0,s===n.length)n=new mX,a=0;else{let c=new mX;c.append(n.shallowSlice(s)),n=c,a-=s}(!i||a)&&(yield n.slice(0,a))}});var lat=x((TUn,uat)=>{"use strict";d();p();var cat=hv(),vIr=vB();async function*wIr(r){for await(let e of r){if(e.length===void 0)throw cat(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield vIr(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw cat(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}uat.exports=wIr});var hat=x((IUn,pat)=>{"use strict";d();p();var _Ir=Ent(),xIr=Unt(),dat=hv();function TIr(r){return Symbol.iterator in r}function EIr(r){return Symbol.asyncIterator in r}function CIr(r){try{if(r instanceof Uint8Array)return async function*(){yield r}();if(TIr(r))return async function*(){yield*r}();if(EIr(r))return r}catch{throw dat(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw dat(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*IIr(r,e,t){for await(let n of r)if(n.path&&(n.path.substring(0,2)==="./"&&(t.wrapWithDirectory=!0),n.path=n.path.split("/").filter(a=>a&&a!==".").join("/")),n.content){let a;typeof t.chunker=="function"?a=t.chunker:t.chunker==="rabin"?a=iat():a=oat();let i;typeof t.chunkValidator=="function"?i=t.chunkValidator:i=lat();let s={path:n.path,mtime:n.mtime,mode:n.mode,content:a(i(CIr(n.content),t),t)};yield()=>xIr(s,e,t)}else if(n.path){let a={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>_Ir(a,e,t)}else throw new Error("Import candidate must have content or path or both")}pat.exports=IIr});var _B=x((SUn,fat)=>{"use strict";d();p();var yX=class{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};fat.exports=yX});var bX=x((MUn,yat)=>{"use strict";d();p();var{DAGLink:kIr,DAGNode:AIr}=A_(),{UnixFS:SIr}=C_(),mat=_B(),PIr=k_(),gX=class extends mat{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let t=0;tu+l.Tsize,0);this.cid=o,this.size=c,yield{cid:o,unixfs:a,path:this.path,size:c}}};yat.exports=gX});var vat=x((OUn,bat)=>{"use strict";d();p();bat.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let a=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):a=!0,this._setInternalPos(n,e,t,a),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;let a=this._bitArrays[n],i=e-n*7;if(!((a&1<0))return-1;let o=this._bitArrays.slice(0,n).reduce(RIr,0),c=~(4294967295<=t)i.push(s);else if(i[0][0]<=t)i.unshift(s);else{let o=Math.round(i.length/2);this._data=i.slice(0,o).concat(s).concat(i.slice(o))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(MIr),this._changedData=!1}bitField(){let e=[],t=8,n=0,a=0,i,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(i=s.shift(),n=7);let c=Math.min(n,t),u=~(255<>>c,n-=c,t-=c,(!t||!n&&!s.length)&&(e.push(a),a=0,t=8)}for(var o=e.length-1;o>0&&e[o]===0;o--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(NIr)}};function RIr(r,e){return r+gat(e)}function gat(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function MIr(r,e){return r[0]-e[0]}function NIr(r){return r[1]}});var xat=x((qUn,_at)=>{"use strict";d();p();var BIr=vat(),{fromString:DIr}=(vv(),nt(D4)),fp=class{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new BIr,this.key=null}async put(e,t){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){let t=await this._findChild(e);if(t)return t.value}async del(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof fp?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let t of e)t instanceof fp?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){let n=[];return t(this._children.reduce((a,i,s)=>(i&&(i instanceof fp?a.push(i.serialize(e,t)):a.push(e(i,s))),a),n))}asyncTransform(e,t){return wat(this,e,t)}toJSON(){return this.serialize(LIr,FIr)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof fp)&&n&&n.key===e)return n}async _findPlace(e){let t=this._options.hash(typeof e=="string"?DIr(e):e),n=await t.take(this._options.bits),a=this._children.get(n);return a instanceof fp?a._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:a}}async _findNewBucketAndPos(e){let t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){let n=new fp(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);let a=await n._findPlace(t.existingChild.hash);return a.bucket._putAt(a,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(OIr);if(e&&!(e instanceof fp)){let t=e.hash;t.untake(this._options.bits);let n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function OIr(r){return Boolean(r)}function LIr(r,e){return r.key}function FIr(r){return r}async function wat(r,e,t){let n=[];for(let a of r._children.compactArray())if(a instanceof fp)await wat(a,e,t);else{let i=await e(a);n.push({bitField:r._children.bitField(),children:i})}return t(n)}_at.exports=fp});var Eat=x((jUn,Tat)=>{"use strict";d();p();var qIr=[255,254,252,248,240,224,192,128],WIr=[1,3,7,15,31,63,127,255];Tat.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){let a=this._value[this._currentBytePos],i=this._currentBitPos+1,s=Math.min(i,t),o=UIr(a,i-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function UIr(r,e,t){let n=HIr(e,t);return(r&n)>>>e}function HIr(r,e){return qIr[r]&WIr[Math.min(e+r-1,7)]}});var Cat=x((GUn,vX)=>{"use strict";d();p();var jIr=Eat(),{concat:zIr}=(wv(),nt(L4));function KIr(r){function e(t){return t instanceof Z4?t:new Z4(t,r)}return e}var Z4=class{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){let a=this._buffers[this._currentBufferIndex],i=Math.min(a.availableBits(),t),s=a.take(i);n=(n<0;){let n=this._buffers[this._currentBufferIndex],a=Math.min(n.totalBits()-n.availableBits(),t);n.untake(a),t-=a,this._availableBits+=a,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?zIr([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new jIr(t);this._buffers.push(n),this._availableBits+=n.availableBits()}};vX.exports=KIr;vX.exports.InfiniteHash=Z4});var Aat=x((YUn,kat)=>{"use strict";d();p();var Iat=xat(),GIr=Cat();function VIr(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");let e={bits:r.bits||8,hash:GIr(r.hashFn)};return new Iat(e)}kat.exports={createHAMT:VIr,Bucket:Iat}});var Rat=x((ZUn,Pat)=>{"use strict";d();p();var{DAGLink:wX,DAGNode:$Ir}=A_(),{UnixFS:YIr}=C_(),JIr=_B(),QIr=k_(),{createHAMT:ZIr,Bucket:XIr}=Aat(),_X=class extends JIr{constructor(e,t){super(e,t),this._bucket=ZIr({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(let t of Sat(this._bucket,e,this,this.options))yield{...t,path:this.path}}};Pat.exports=_X;async function*Sat(r,e,t,n){let a=r._children,i=[],s=0;for(let m=0;m{"use strict";d();p();var ekr=Rat(),tkr=bX();Mat.exports=async function r(e,t,n,a){let i=t;t instanceof tkr&&t.directChildrenCount()>=n&&(i=await rkr(t,a));let s=i.parent;if(s){if(i!==t){if(e&&(e.parent=i),!i.parentKey)throw new Error("No parent key found");await s.put(i.parentKey,i)}return r(i,s,n,a)}return i};async function rkr(r,e){let t=new ekr({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(let{key:n,child:a}of r.eachChildSeries())await t.put(n,a);return t}});var Dat=x((aHn,Bat)=>{"use strict";d();p();var nkr=(r="")=>(r.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);Bat.exports=nkr});var Wat=x((oHn,qat)=>{"use strict";d();p();var Lat=bX(),akr=Nat(),Fat=_B(),ikr=Dat();async function skr(r,e,t){let n=ikr(r.path||""),a=n.length-1,i=e,s="";for(let o=0;o{"use strict";d();p();var ckr=NQ(),ukr=rtt();async function*lkr(r,e,t={}){let n=ukr(t),a;typeof t.dagBuilder=="function"?a=t.dagBuilder:a=hat();let i;typeof t.treeBuilder=="function"?i=t.treeBuilder:i=Wat();let s;Symbol.asyncIterator in r||Symbol.iterator in r?s=r:s=[r];for await(let o of i(ckr(a(s,e,n),n.fileImportConcurrency),e,n))yield{cid:o.cid,path:o.path,unixfs:o.unixfs,size:o.size}}Uat.exports={importer:lkr}});var TX=x((hHn,Hat)=>{d();p();Hat.exports=typeof self=="object"?self.FormData:window.FormData});var Zat=x(Ja=>{"use strict";d();p();Object.defineProperty(Ja,"__esModule",{value:!0});var dkr=tn(),pkr=xX(),hkr=TX(),fkr=qr();function jat(r){return r&&r.__esModule?r:{default:r}}var xB=jat(dkr),mkr=jat(hkr);function ykr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function gkr(r){var e=ykr(r,"string");return typeof e=="symbol"?e:String(e)}function Iv(r,e,t){return e=gkr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var S_={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},zat="https://upload.nftlabs.co",EX="https://api.pinata.cloud/pinning/pinFileToIPFS";function Kat(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Gat(r){let e={...r,...S_};for(let t of Object.keys(S_))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...S_[t]]}return e}function CX(){return typeof window<"u"}function P_(r){return global.File&&r instanceof File}function I0(r){return global.Buffer&&r instanceof b.Buffer}function R_(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||I0(r.data)))}function M_(r){return P_(r)||I0(r)||R_(r)}function Vat(r,e){if(P_(r)&&P_(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(I0(r)&&I0(e))return r.equals(e);if(R_(r)&&R_(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(I0(r.data)&&I0(e.data))return r.data.equals(e.data)}}return!1}function $at(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function AB(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function TB(r,e){return typeof r=="string"?$at(r,e):typeof r=="object"?!r||M_(r)?r:Array.isArray(r)?r.map(t=>TB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,TB(a,e)]})):r}function X4(r,e){return typeof r=="string"?AB(r,e):typeof r=="object"?!r||M_(r)?r:Array.isArray(r)?r.map(t=>X4(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,X4(a,e)]})):r}function EB(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(M_(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>EB(t,e)):Object.keys(r).map(t=>EB(r[t],e))}return e}function CB(r,e){if(M_(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>CB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,CB(a,e)]}))):r}async function Yat(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(R_(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Jat(a,t,n)}async function Jat(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of pkr.importer(r,a,n))i=s;return`${i}`}async function Qat(r){return(await xB.default(`${S_["ipfs://"][0]}${r}`,{method:"HEAD"})).ok}var IB=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=AB(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await xB.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},kB=class{constructor(e){Iv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new mkr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Yat(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await Qat(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return CX()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await xB.default(`${zat}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else R_(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Vat(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),CX()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",EX),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await xB.default(EX,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},IX=class{constructor(e){Iv(this,"uploader",void 0),Iv(this,"downloader",void 0),Iv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new kB,this.downloader=e?.downloader||new IB,this.gatewayUrls=Gat(Kat(e?.gatewayUrls))}resolveScheme(e){return AB(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return X4(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>M_(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=TB(n,this.gatewayUrls);let a=EB(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=CB(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=X4(n,this.gatewayUrls)),n}},kX=class{constructor(e){Iv(this,"gatewayUrls",S_),Iv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},AX=class{constructor(e){Iv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=fkr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(P_(s))o=await s.text();else if(I0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=I0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Ja.DEFAULT_GATEWAY_URLS=S_;Ja.IpfsUploader=kB;Ja.MockDownloader=kX;Ja.MockUploader=AX;Ja.PINATA_IPFS_URL=EX;Ja.StorageDownloader=IB;Ja.TW_IPFS_SERVER_URL=zat;Ja.ThirdwebStorage=IX;Ja.extractObjectFiles=EB;Ja.getCID=Jat;Ja.getCIDForUpload=Yat;Ja.isBrowser=CX;Ja.isBufferInstance=I0;Ja.isBufferOrStringWithName=R_;Ja.isFileBufferOrStringEqual=Vat;Ja.isFileInstance=P_;Ja.isFileOrBuffer=M_;Ja.isUploaded=Qat;Ja.parseGatewayUrls=Kat;Ja.prepareGatewayUrls=Gat;Ja.replaceGatewayUrlWithScheme=$at;Ja.replaceObjectFilesWithUris=CB;Ja.replaceObjectGatewayUrlsWithSchemes=TB;Ja.replaceObjectSchemesWithGatewayUrls=X4;Ja.replaceSchemeWithGatewayUrl=AB});var cit=x(Qa=>{"use strict";d();p();Object.defineProperty(Qa,"__esModule",{value:!0});var bkr=tn(),vkr=xX(),wkr=TX(),_kr=qr();function Xat(r){return r&&r.__esModule?r:{default:r}}var SB=Xat(bkr),xkr=Xat(wkr);function Tkr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ekr(r){var e=Tkr(r,"string");return typeof e=="symbol"?e:String(e)}function kv(r,e,t){return e=Ekr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var N_={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},eit="https://upload.nftlabs.co",SX="https://api.pinata.cloud/pinning/pinFileToIPFS";function tit(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function rit(r){let e={...r,...N_};for(let t of Object.keys(N_))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...N_[t]]}return e}function PX(){return typeof window<"u"}function B_(r){return global.File&&r instanceof File}function k0(r){return global.Buffer&&r instanceof b.Buffer}function D_(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||k0(r.data)))}function O_(r){return B_(r)||k0(r)||D_(r)}function nit(r,e){if(B_(r)&&B_(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(k0(r)&&k0(e))return r.equals(e);if(D_(r)&&D_(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(k0(r.data)&&k0(e.data))return r.data.equals(e.data)}}return!1}function ait(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function DB(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function PB(r,e){return typeof r=="string"?ait(r,e):typeof r=="object"?!r||O_(r)?r:Array.isArray(r)?r.map(t=>PB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,PB(a,e)]})):r}function e8(r,e){return typeof r=="string"?DB(r,e):typeof r=="object"?!r||O_(r)?r:Array.isArray(r)?r.map(t=>e8(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,e8(a,e)]})):r}function RB(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(O_(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>RB(t,e)):Object.keys(r).map(t=>RB(r[t],e))}return e}function MB(r,e){if(O_(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>MB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,MB(a,e)]}))):r}async function iit(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(D_(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return sit(a,t,n)}async function sit(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of vkr.importer(r,a,n))i=s;return`${i}`}async function oit(r){return(await SB.default(`${N_["ipfs://"][0]}${r}`,{method:"HEAD"})).ok}var NB=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=DB(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await SB.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},BB=class{constructor(e){kv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new xkr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await iit(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await oit(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return PX()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await SB.default(`${eit}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.NODE_ENV==="test"||!!g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else D_(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(nit(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),PX()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",SX),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await SB.default(SX,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},RX=class{constructor(e){kv(this,"uploader",void 0),kv(this,"downloader",void 0),kv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new BB,this.downloader=e?.downloader||new NB,this.gatewayUrls=rit(tit(e?.gatewayUrls))}resolveScheme(e){return DB(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return e8(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>O_(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=PB(n,this.gatewayUrls);let a=RB(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=MB(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=e8(n,this.gatewayUrls)),n}},MX=class{constructor(e){kv(this,"gatewayUrls",N_),kv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},NX=class{constructor(e){kv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=_kr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(B_(s))o=await s.text();else if(k0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=k0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Qa.DEFAULT_GATEWAY_URLS=N_;Qa.IpfsUploader=BB;Qa.MockDownloader=MX;Qa.MockUploader=NX;Qa.PINATA_IPFS_URL=SX;Qa.StorageDownloader=NB;Qa.TW_IPFS_SERVER_URL=eit;Qa.ThirdwebStorage=RX;Qa.extractObjectFiles=RB;Qa.getCID=sit;Qa.getCIDForUpload=iit;Qa.isBrowser=PX;Qa.isBufferInstance=k0;Qa.isBufferOrStringWithName=D_;Qa.isFileBufferOrStringEqual=nit;Qa.isFileInstance=B_;Qa.isFileOrBuffer=O_;Qa.isUploaded=oit;Qa.parseGatewayUrls=tit;Qa.prepareGatewayUrls=rit;Qa.replaceGatewayUrlWithScheme=ait;Qa.replaceObjectFilesWithUris=MB;Qa.replaceObjectGatewayUrlsWithSchemes=PB;Qa.replaceObjectSchemesWithGatewayUrls=e8;Qa.replaceSchemeWithGatewayUrl=DB});var bn=x((xHn,BX)=>{"use strict";d();p();g.env.NODE_ENV==="production"?BX.exports=Zat():BX.exports=cit()});var Gr=x((CHn,uit)=>{"use strict";d();p();var Ckr=g.env.NODE_ENV==="production",DX="Invariant failed";function Ikr(r,e){if(!r){if(Ckr)throw new Error(DX);var t=typeof e=="function"?e():e,n=t?"".concat(DX,": ").concat(t):DX;throw new Error(n)}}uit.exports=Ikr});var ma=x((AHn,kkr)=>{kkr.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var dit=x((SHn,lit)=>{d();p();lit.exports=function(e){for(var t=new b.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var rn=x((OB,pit)=>{d();p();(function(r,e){typeof OB=="object"?pit.exports=OB=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(OB,function(){var r=r||function(e,t){var n=Object.create||function(){function E(){}return function(I){var S;return E.prototype=I,S=new E,E.prototype=null,S}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(E){var I=n(this);return E&&I.mixIn(E),(!I.hasOwnProperty("init")||this.init===I.init)&&(I.init=function(){I.$super.init.apply(this,arguments)}),I.init.prototype=I,I.$super=this,I},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var I in E)E.hasOwnProperty(I)&&(this[I]=E[I]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=s.extend({init:function(E,I){E=this.words=E||[],I!=t?this.sigBytes=I:this.sigBytes=E.length*4},toString:function(E){return(E||u).stringify(this)},concat:function(E){var I=this.words,S=E.words,L=this.sigBytes,q=E.sigBytes;if(this.clamp(),L%4)for(var W=0;W>>2]>>>24-W%4*8&255;I[L+W>>>2]|=V<<24-(L+W)%4*8}else for(var W=0;W>>2]=S[W>>>2];return this.sigBytes+=q,this},clamp:function(){var E=this.words,I=this.sigBytes;E[I>>>2]&=4294967295<<32-I%4*8,E.length=e.ceil(I/4)},clone:function(){var E=s.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var I=[],S=function(K){var K=K,H=987654321,G=4294967295;return function(){H=36969*(H&65535)+(H>>16)&G,K=18e3*(K&65535)+(K>>16)&G;var J=(H<<16)+K&G;return J/=4294967296,J+=.5,J*(e.random()>.5?1:-1)}},L=0,q;L>>2]>>>24-q%4*8&255;L.push((W>>>4).toString(16)),L.push((W&15).toString(16))}return L.join("")},parse:function(E){for(var I=E.length,S=[],L=0;L>>3]|=parseInt(E.substr(L,2),16)<<24-L%8*4;return new o.init(S,I/2)}},l=c.Latin1={stringify:function(E){for(var I=E.words,S=E.sigBytes,L=[],q=0;q>>2]>>>24-q%4*8&255;L.push(String.fromCharCode(W))}return L.join("")},parse:function(E){for(var I=E.length,S=[],L=0;L>>2]|=(E.charCodeAt(L)&255)<<24-L%4*8;return new o.init(S,I)}},h=c.Utf8={stringify:function(E){try{return decodeURIComponent(escape(l.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return l.parse(unescape(encodeURIComponent(E)))}},f=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=h.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var I=this._data,S=I.words,L=I.sigBytes,q=this.blockSize,W=q*4,V=L/W;E?V=e.ceil(V):V=e.max((V|0)-this._minBufferSize,0);var K=V*q,H=e.min(K*4,L);if(K){for(var G=0;G{d();p();(function(r,e){typeof LB=="object"?hit.exports=LB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(LB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function h(E){for(var I=e.sqrt(E),S=2;S<=I;S++)if(!(E%S))return!1;return!0}function f(E){return(E-(E|0))*4294967296|0}for(var m=2,y=0;y<64;)h(m)&&(y<8&&(o[y]=f(e.pow(m,1/2))),c[y]=f(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(h,f){for(var m=this._hash.words,y=m[0],E=m[1],I=m[2],S=m[3],L=m[4],q=m[5],W=m[6],V=m[7],K=0;K<64;K++){if(K<16)u[K]=h[f+K]|0;else{var H=u[K-15],G=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,J=u[K-2],F=(J<<15|J>>>17)^(J<<13|J>>>19)^J>>>10;u[K]=G+u[K-7]+F+u[K-16]}var T=L&q^~L&W,P=y&E^y&I^E&I,A=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),v=(L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25),k=V+v+T+c[K]+u[K],O=A+P;V=W,W=q,q=L,L=S+k|0,S=I,I=E,E=y,y=k+O|0}m[0]=m[0]+y|0,m[1]=m[1]+E|0,m[2]=m[2]+I|0,m[3]=m[3]+S|0,m[4]=m[4]+L|0,m[5]=m[5]+q|0,m[6]=m[6]+W|0,m[7]=m[7]+V|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,y=h.sigBytes*8;return f[y>>>5]|=128<<24-y%32,f[(y+64>>>9<<4)+14]=e.floor(m/4294967296),f[(y+64>>>9<<4)+15]=m,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var mit=x((OX,fit)=>{d();p();(function(r,e){typeof OX=="object"?fit.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(OX,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var o in a)!a.hasOwnProperty(o)||i&&typeof a[o]=="function"||s.push(o);return s}function t(a,i,s,o,c,u,l){var h="",f=0,m,y,E=o.slice(0);if(E.push([i,s])&&o.length>0&&(o.forEach(function(S,L){L>0&&(h+=(S[1]?" ":"\u2502")+" "),!y&&S[0]===i&&(y=!0)}),h+=r(a,s)+a,c&&(typeof i!="object"||i instanceof Date)&&(h+=": "+i),y&&(h+=" (circular ref.)"),l(h)),!y&&typeof i=="object"){var I=e(i,u);I.forEach(function(S){m=++f===I.length,t(S,i[S],m,E,c,u,l)})}}var n={};return n.asLines=function(a,i,s,o){var c=typeof s!="function"?s:!1;t(".",a,!1,[],i,c,o||s)},n.asTree=function(a,i,s){var o="";return t(".",a,!1,[],i,s,function(c){o+=c+` -`}),o},n})});var r8=x((FB,yit)=>{d();p();(function(r,e){typeof FB=="object"?yit.exports=FB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(FB,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,h=[],f=0;f{d();p();(function(r,e){typeof qB=="object"?git.exports=qB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(qB,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var wit=x((WB,vit)=>{d();p();(function(r,e){typeof WB=="object"?vit.exports=WB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(WB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535;l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535);l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var Av=x((UB,_it)=>{d();p();(function(r,e){typeof UB=="object"?_it.exports=UB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(UB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,y=c[f+1>>>2]>>>24-(f+1)%4*8&255,E=c[f+2>>>2]>>>24-(f+2)%4*8&255,I=m<<16|y<<8|E,S=0;S<4&&f+S*.75>>6*(3-S)&63));var L=l.charAt(64);if(L)for(;h.length%4;)h.push(L);return h.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var h=0;h>>6-f%4*2;l[h>>>2]|=(m|y)<<24-h%4*8,h++}return n.create(l,h)}}(),r.enc.Base64})});var Sv=x((HB,xit)=>{d();p();(function(r,e){typeof HB=="object"?xit.exports=HB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(HB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var E=0;E<16;E++){var I=y+E,S=m[I];m[I]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var L=this._hash.words,q=m[y+0],W=m[y+1],V=m[y+2],K=m[y+3],H=m[y+4],G=m[y+5],J=m[y+6],F=m[y+7],T=m[y+8],P=m[y+9],A=m[y+10],v=m[y+11],k=m[y+12],O=m[y+13],D=m[y+14],B=m[y+15],_=L[0],N=L[1],U=L[2],C=L[3];_=u(_,N,U,C,q,7,o[0]),C=u(C,_,N,U,W,12,o[1]),U=u(U,C,_,N,V,17,o[2]),N=u(N,U,C,_,K,22,o[3]),_=u(_,N,U,C,H,7,o[4]),C=u(C,_,N,U,G,12,o[5]),U=u(U,C,_,N,J,17,o[6]),N=u(N,U,C,_,F,22,o[7]),_=u(_,N,U,C,T,7,o[8]),C=u(C,_,N,U,P,12,o[9]),U=u(U,C,_,N,A,17,o[10]),N=u(N,U,C,_,v,22,o[11]),_=u(_,N,U,C,k,7,o[12]),C=u(C,_,N,U,O,12,o[13]),U=u(U,C,_,N,D,17,o[14]),N=u(N,U,C,_,B,22,o[15]),_=l(_,N,U,C,W,5,o[16]),C=l(C,_,N,U,J,9,o[17]),U=l(U,C,_,N,v,14,o[18]),N=l(N,U,C,_,q,20,o[19]),_=l(_,N,U,C,G,5,o[20]),C=l(C,_,N,U,A,9,o[21]),U=l(U,C,_,N,B,14,o[22]),N=l(N,U,C,_,H,20,o[23]),_=l(_,N,U,C,P,5,o[24]),C=l(C,_,N,U,D,9,o[25]),U=l(U,C,_,N,K,14,o[26]),N=l(N,U,C,_,T,20,o[27]),_=l(_,N,U,C,O,5,o[28]),C=l(C,_,N,U,V,9,o[29]),U=l(U,C,_,N,F,14,o[30]),N=l(N,U,C,_,k,20,o[31]),_=h(_,N,U,C,G,4,o[32]),C=h(C,_,N,U,T,11,o[33]),U=h(U,C,_,N,v,16,o[34]),N=h(N,U,C,_,D,23,o[35]),_=h(_,N,U,C,W,4,o[36]),C=h(C,_,N,U,H,11,o[37]),U=h(U,C,_,N,F,16,o[38]),N=h(N,U,C,_,A,23,o[39]),_=h(_,N,U,C,O,4,o[40]),C=h(C,_,N,U,q,11,o[41]),U=h(U,C,_,N,K,16,o[42]),N=h(N,U,C,_,J,23,o[43]),_=h(_,N,U,C,P,4,o[44]),C=h(C,_,N,U,k,11,o[45]),U=h(U,C,_,N,B,16,o[46]),N=h(N,U,C,_,V,23,o[47]),_=f(_,N,U,C,q,6,o[48]),C=f(C,_,N,U,F,10,o[49]),U=f(U,C,_,N,D,15,o[50]),N=f(N,U,C,_,G,21,o[51]),_=f(_,N,U,C,k,6,o[52]),C=f(C,_,N,U,K,10,o[53]),U=f(U,C,_,N,A,15,o[54]),N=f(N,U,C,_,W,21,o[55]),_=f(_,N,U,C,T,6,o[56]),C=f(C,_,N,U,B,10,o[57]),U=f(U,C,_,N,J,15,o[58]),N=f(N,U,C,_,O,21,o[59]),_=f(_,N,U,C,H,6,o[60]),C=f(C,_,N,U,v,10,o[61]),U=f(U,C,_,N,V,15,o[62]),N=f(N,U,C,_,P,21,o[63]),L[0]=L[0]+_|0,L[1]=L[1]+N|0,L[2]=L[2]+U|0,L[3]=L[3]+C|0},_doFinalize:function(){var m=this._data,y=m.words,E=this._nDataBytes*8,I=m.sigBytes*8;y[I>>>5]|=128<<24-I%32;var S=e.floor(E/4294967296),L=E;y[(I+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,y[(I+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var q=this._hash,W=q.words,V=0;V<4;V++){var K=W[V];W[V]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return q},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,E,I,S,L,q){var W=m+(y&E|~y&I)+S+q;return(W<>>32-L)+y}function l(m,y,E,I,S,L,q){var W=m+(y&I|E&~I)+S+q;return(W<>>32-L)+y}function h(m,y,E,I,S,L,q){var W=m+(y^E^I)+S+q;return(W<>>32-L)+y}function f(m,y,E,I,S,L,q){var W=m+(E^(y|~I))+S+q;return(W<>>32-L)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var zB=x((jB,Tit)=>{d();p();(function(r,e){typeof jB=="object"?Tit.exports=jB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(jB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,h=l[0],f=l[1],m=l[2],y=l[3],E=l[4],I=0;I<80;I++){if(I<16)s[I]=c[u+I]|0;else{var S=s[I-3]^s[I-8]^s[I-14]^s[I-16];s[I]=S<<1|S>>>31}var L=(h<<5|h>>>27)+E+s[I];I<20?L+=(f&m|~f&y)+1518500249:I<40?L+=(f^m^y)+1859775393:I<60?L+=(f&m|f&y|m&y)-1894007588:L+=(f^m^y)-899497514,E=y,y=m,m=f<<30|f>>>2,f=h,h=L}l[0]=l[0]+h|0,l[1]=l[1]+f|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+E|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(h+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var Cit=x((KB,Eit)=>{d();p();(function(r,e,t){typeof KB=="object"?Eit.exports=KB=e(rn(),t8()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(KB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var LX=x((GB,Iit)=>{d();p();(function(r,e,t){typeof GB=="object"?Iit.exports=GB=e(rn(),r8()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(GB,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var f=0;f<80;f++)l[f]=c()})();var h=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,m){for(var y=this._hash.words,E=y[0],I=y[1],S=y[2],L=y[3],q=y[4],W=y[5],V=y[6],K=y[7],H=E.high,G=E.low,J=I.high,F=I.low,T=S.high,P=S.low,A=L.high,v=L.low,k=q.high,O=q.low,D=W.high,B=W.low,_=V.high,N=V.low,U=K.high,C=K.low,z=H,ee=G,j=J,X=F,ie=T,ue=P,he=A,ke=v,ge=k,me=O,Ke=D,ve=B,Ae=_,lo=N,It=U,bt=C,li=0;li<80;li++){var _t=l[li];if(li<16)var st=_t.high=f[m+li*2]|0,di=_t.low=f[m+li*2+1]|0;else{var Nt=l[li-15],dt=Nt.high,po=Nt.low,jt=(dt>>>1|po<<31)^(dt>>>8|po<<24)^dt>>>7,Bt=(po>>>1|dt<<31)^(po>>>8|dt<<24)^(po>>>7|dt<<25),sc=l[li-2],ot=sc.high,pt=sc.low,Dc=(ot>>>19|pt<<13)^(ot<<3|pt>>>29)^ot>>>6,kt=(pt>>>19|ot<<13)^(pt<<3|ot>>>29)^(pt>>>6|ot<<26),At=l[li-7],Oc=At.high,Dt=At.low,St=l[li-16],Lc=St.high,Pt=St.low,di=Bt+Dt,st=jt+Oc+(di>>>0>>0?1:0),di=di+kt,st=st+Dc+(di>>>0>>0?1:0),di=di+Pt,st=st+Lc+(di>>>0>>0?1:0);_t.high=st,_t.low=di}var Ot=ge&Ke^~ge&Ae,oc=me&ve^~me&lo,Lt=z&j^z&ie^j&ie,Ft=ee&X^ee&ue^X&ue,Fc=(z>>>28|ee<<4)^(z<<30|ee>>>2)^(z<<25|ee>>>7),Rt=(ee>>>28|z<<4)^(ee<<30|z>>>2)^(ee<<25|z>>>7),qt=(ge>>>14|me<<18)^(ge>>>18|me<<14)^(ge<<23|me>>>9),qc=(me>>>14|ge<<18)^(me>>>18|ge<<14)^(me<<23|ge>>>9),Mt=u[li],Wt=Mt.high,cc=Mt.low,Je=bt+qc,it=It+qt+(Je>>>0>>0?1:0),Je=Je+oc,it=it+Ot+(Je>>>0>>0?1:0),Je=Je+cc,it=it+Wt+(Je>>>0>>0?1:0),Je=Je+di,it=it+st+(Je>>>0>>0?1:0),uc=Rt+Ft,Ut=Fc+Lt+(uc>>>0>>0?1:0);It=Ae,bt=lo,Ae=Ke,lo=ve,Ke=ge,ve=me,me=ke+Je|0,ge=he+it+(me>>>0>>0?1:0)|0,he=ie,ke=ue,ie=j,ue=X,j=z,X=ee,ee=Je+uc|0,z=it+Ut+(ee>>>0>>0?1:0)|0}G=E.low=G+ee,E.high=H+z+(G>>>0>>0?1:0),F=I.low=F+X,I.high=J+j+(F>>>0>>0?1:0),P=S.low=P+ue,S.high=T+ie+(P>>>0>>0?1:0),v=L.low=v+ke,L.high=A+he+(v>>>0>>0?1:0),O=q.low=O+me,q.high=k+ge+(O>>>0>>0?1:0),B=W.low=B+ve,W.high=D+Ke+(B>>>0>>0?1:0),N=V.low=N+lo,V.high=_+Ae+(N>>>0>>0?1:0),C=K.low=C+bt,K.high=U+It+(C>>>0>>0?1:0)},_doFinalize:function(){var f=this._data,m=f.words,y=this._nDataBytes*8,E=f.sigBytes*8;m[E>>>5]|=128<<24-E%32,m[(E+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(E+128>>>10<<5)+31]=y,f.sigBytes=m.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var f=n.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});e.SHA512=n._createHelper(h),e.HmacSHA512=n._createHmacHelper(h)}(),r.SHA512})});var Ait=x((VB,kit)=>{d();p();(function(r,e,t){typeof VB=="object"?kit.exports=VB=e(rn(),r8(),LX()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(VB,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var Pit=x(($B,Sit)=>{d();p();(function(r,e,t){typeof $B=="object"?Sit.exports=$B=e(rn(),r8()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})($B,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],h=[];(function(){for(var y=1,E=0,I=0;I<24;I++){u[y+5*E]=(I+1)*(I+2)/2%64;var S=E%5,L=(2*y+3*E)%5;y=S,E=L}for(var y=0;y<5;y++)for(var E=0;E<5;E++)l[y+5*E]=E+(2*y+3*E)%5*5;for(var q=1,W=0;W<24;W++){for(var V=0,K=0,H=0;H<7;H++){if(q&1){var G=(1<>>24)&16711935|(q<<24|q>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var V=I[L];V.high^=W,V.low^=q}for(var K=0;K<24;K++){for(var H=0;H<5;H++){for(var G=0,J=0,F=0;F<5;F++){var V=I[H+5*F];G^=V.high,J^=V.low}var T=f[H];T.high=G,T.low=J}for(var H=0;H<5;H++)for(var P=f[(H+4)%5],A=f[(H+1)%5],v=A.high,k=A.low,G=P.high^(v<<1|k>>>31),J=P.low^(k<<1|v>>>31),F=0;F<5;F++){var V=I[H+5*F];V.high^=G,V.low^=J}for(var O=1;O<25;O++){var V=I[O],D=V.high,B=V.low,_=u[O];if(_<32)var G=D<<_|B>>>32-_,J=B<<_|D>>>32-_;else var G=B<<_-32|D>>>64-_,J=D<<_-32|B>>>64-_;var N=f[l[O]];N.high=G,N.low=J}var U=f[0],C=I[0];U.high=C.high,U.low=C.low;for(var H=0;H<5;H++)for(var F=0;F<5;F++){var O=H+5*F,V=I[O],z=f[O],ee=f[(H+1)%5+5*F],j=f[(H+2)%5+5*F];V.high=z.high^~ee.high&j.high,V.low=z.low^~ee.low&j.low}var V=I[0],X=h[K];V.high^=X.high,V.low^=X.low}},_doFinalize:function(){var y=this._data,E=y.words,I=this._nDataBytes*8,S=y.sigBytes*8,L=this.blockSize*32;E[S>>>5]|=1<<24-S%32,E[(e.ceil((S+1)/L)*L>>>5)-1]|=128,y.sigBytes=E.length*4,this._process();for(var q=this._state,W=this.cfg.outputLength/8,V=W/8,K=[],H=0;H>>24)&16711935|(J<<24|J>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,K.push(F),K.push(J)}return new a.init(K,W)},clone:function(){for(var y=i.clone.call(this),E=y._state=this._state.slice(0),I=0;I<25;I++)E[I]=E[I].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var Mit=x((YB,Rit)=>{d();p();(function(r,e){typeof YB=="object"?Rit.exports=YB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(YB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),f=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,V){for(var K=0;K<16;K++){var H=V+K,G=W[H];W[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}var J=this._hash.words,F=h.words,T=f.words,P=o.words,A=c.words,v=u.words,k=l.words,O,D,B,_,N,U,C,z,ee,j;U=O=J[0],C=D=J[1],z=B=J[2],ee=_=J[3],j=N=J[4];for(var X,K=0;K<80;K+=1)X=O+W[V+P[K]]|0,K<16?X+=y(D,B,_)+F[0]:K<32?X+=E(D,B,_)+F[1]:K<48?X+=I(D,B,_)+F[2]:K<64?X+=S(D,B,_)+F[3]:X+=L(D,B,_)+F[4],X=X|0,X=q(X,v[K]),X=X+N|0,O=N,N=_,_=q(B,10),B=D,D=X,X=U+W[V+A[K]]|0,K<16?X+=L(C,z,ee)+T[0]:K<32?X+=S(C,z,ee)+T[1]:K<48?X+=I(C,z,ee)+T[2]:K<64?X+=E(C,z,ee)+T[3]:X+=y(C,z,ee)+T[4],X=X|0,X=q(X,k[K]),X=X+j|0,U=j,j=ee,ee=q(z,10),z=C,C=X;X=J[1]+B+ee|0,J[1]=J[2]+_+j|0,J[2]=J[3]+N+U|0,J[3]=J[4]+O+C|0,J[4]=J[0]+D+z|0,J[0]=X},_doFinalize:function(){var W=this._data,V=W.words,K=this._nDataBytes*8,H=W.sigBytes*8;V[H>>>5]|=128<<24-H%32,V[(H+64>>>9<<4)+14]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W.sigBytes=(V.length+1)*4,this._process();for(var G=this._hash,J=G.words,F=0;F<5;F++){var T=J[F];J[F]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return G},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,V,K){return W^V^K}function E(W,V,K){return W&V|~W&K}function I(W,V,K){return(W|~V)^K}function S(W,V,K){return W&K|V&~K}function L(W,V,K){return W^(V|~K)}function q(W,V){return W<>>32-V}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var QB=x((JB,Nit)=>{d();p();(function(r,e){typeof JB=="object"?Nit.exports=JB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(JB,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,h=l*4;u.sigBytes>h&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),m=this._iKey=u.clone(),y=f.words,E=m.words,I=0;I{d();p();(function(r,e,t){typeof ZB=="object"?Bit.exports=ZB=e(rn(),zB(),QB()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(ZB,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var h=this.cfg,f=o.create(h.hasher,u),m=a.create(),y=a.create([1]),E=m.words,I=y.words,S=h.keySize,L=h.iterations;E.length{d();p();(function(r,e,t){typeof XB=="object"?Oit.exports=XB=e(rn(),zB(),QB()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(XB,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l=this.cfg,h=l.hasher.create(),f=a.create(),m=f.words,y=l.keySize,E=l.iterations;m.length{d();p();(function(r,e,t){typeof eD=="object"?Lit.exports=eD=e(rn(),P1()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(eD,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,h=l.EvpKDF,f=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(T,P){return this.create(this._ENC_XFORM_MODE,T,P)},createDecryptor:function(T,P){return this.create(this._DEC_XFORM_MODE,T,P)},init:function(T,P,A){this.cfg=this.cfg.extend(A),this._xformMode=T,this._key=P,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(P){return typeof P=="string"?F:H}return function(P){return{encrypt:function(A,v,k){return T(v).encrypt(P,A,v,k)},decrypt:function(A,v,k){return T(v).decrypt(P,A,v,k)}}}}()}),m=n.StreamCipher=f.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),y=t.mode={},E=n.BlockCipherMode=a.extend({createEncryptor:function(T,P){return this.Encryptor.create(T,P)},createDecryptor:function(T,P){return this.Decryptor.create(T,P)},init:function(T,P){this._cipher=T,this._iv=P}}),I=y.CBC=function(){var T=E.extend();T.Encryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize;P.call(this,A,v,O),k.encryptBlock(A,v),this._prevBlock=A.slice(v,v+O)}}),T.Decryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize,D=A.slice(v,v+O);k.decryptBlock(A,v),P.call(this,A,v,O),this._prevBlock=D}});function P(A,v,k){var O=this._iv;if(O){var D=O;this._iv=e}else var D=this._prevBlock;for(var B=0;B>>2]&255;T.sigBytes-=P}},q=n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:I,padding:L}),reset:function(){f.reset.call(this);var T=this.cfg,P=T.iv,A=T.mode;if(this._xformMode==this._ENC_XFORM_MODE)var v=A.createEncryptor;else{var v=A.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==v?this._mode.init(this,P&&P.words):(this._mode=v.call(A,this,P&&P.words),this._mode.__creator=v)},_doProcessBlock:function(T,P){this._mode.processBlock(T,P)},_doFinalize:function(){var T=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){T.pad(this._data,this.blockSize);var P=this._process(!0)}else{var P=this._process(!0);T.unpad(P)}return P},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),V=t.format={},K=V.OpenSSL={stringify:function(T){var P=T.ciphertext,A=T.salt;if(A)var v=i.create([1398893684,1701076831]).concat(A).concat(P);else var v=P;return v.toString(u)},parse:function(T){var P=u.parse(T),A=P.words;if(A[0]==1398893684&&A[1]==1701076831){var v=i.create(A.slice(2,4));A.splice(0,4),P.sigBytes-=16}return W.create({ciphertext:P,salt:v})}},H=n.SerializableCipher=a.extend({cfg:a.extend({format:K}),encrypt:function(T,P,A,v){v=this.cfg.extend(v);var k=T.createEncryptor(A,v),O=k.finalize(P),D=k.cfg;return W.create({ciphertext:O,key:A,iv:D.iv,algorithm:T,mode:D.mode,padding:D.padding,blockSize:T.blockSize,formatter:v.format})},decrypt:function(T,P,A,v){v=this.cfg.extend(v),P=this._parse(P,v.format);var k=T.createDecryptor(A,v).finalize(P.ciphertext);return k},_parse:function(T,P){return typeof T=="string"?P.parse(T,this):T}}),G=t.kdf={},J=G.OpenSSL={execute:function(T,P,A,v){v||(v=i.random(64/8));var k=h.create({keySize:P+A}).compute(T,v),O=i.create(k.words.slice(P),A*4);return k.sigBytes=P*4,W.create({key:k,iv:O,salt:v})}},F=n.PasswordBasedCipher=H.extend({cfg:H.cfg.extend({kdf:J}),encrypt:function(T,P,A,v){v=this.cfg.extend(v);var k=v.kdf.execute(A,T.keySize,T.ivSize);v.iv=k.iv;var O=H.encrypt.call(this,T,P,k.key,v);return O.mixIn(k),O},decrypt:function(T,P,A,v){v=this.cfg.extend(v),P=this._parse(P,v.format);var k=v.kdf.execute(A,T.keySize,T.ivSize,P.salt);v.iv=k.iv;var O=H.decrypt.call(this,T,P,k.key,v);return O}})}()})});var qit=x((tD,Fit)=>{d();p();(function(r,e,t){typeof tD=="object"?Fit.exports=tD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(tD,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o=this._iv;if(o){var c=o.slice(0);this._iv=void 0}else var c=this._prevBlock;s.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof rD=="object"?Wit.exports=rD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(rD,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{d();p();(function(r,e,t){typeof nD=="object"?Hit.exports=nD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(nD,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var h=l.slice(0);o.encryptBlock(h,0);for(var f=0;f{d();p();(function(r,e,t){typeof aD=="object"?zit.exports=aD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(aD,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof iD=="object"?Git.exports=iD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(iD,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var Yit=x((sD,$it)=>{d();p();(function(r,e,t){typeof sD=="object"?$it.exports=sD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(sD,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var Qit=x((oD,Jit)=>{d();p();(function(r,e,t){typeof oD=="object"?Jit.exports=oD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(oD,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var Xit=x((cD,Zit)=>{d();p();(function(r,e,t){typeof cD=="object"?Zit.exports=cD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(cD,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var tst=x((uD,est)=>{d();p();(function(r,e,t){typeof uD=="object"?est.exports=uD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(uD,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var nst=x((lD,rst)=>{d();p();(function(r,e,t){typeof lD=="object"?rst.exports=lD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(lD,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var ist=x((dD,ast)=>{d();p();(function(r,e,t){typeof dD=="object"?ast.exports=dD=e(rn(),jo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(dD,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var ost=x((pD,sst)=>{d();p();(function(r,e,t){typeof pD=="object"?sst.exports=pD=e(rn(),Av(),Sv(),P1(),jo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(pD,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],h=[],f=[],m=[],y=[];(function(){for(var S=[],L=0;L<256;L++)L<128?S[L]=L<<1:S[L]=L<<1^283;for(var q=0,W=0,L=0;L<256;L++){var V=W^W<<1^W<<2^W<<3^W<<4;V=V>>>8^V&255^99,i[q]=V,s[V]=q;var K=S[q],H=S[K],G=S[H],J=S[V]*257^V*16843008;o[q]=J<<24|J>>>8,c[q]=J<<16|J>>>16,u[q]=J<<8|J>>>24,l[q]=J;var J=G*16843009^H*65537^K*257^q*16843008;h[V]=J<<24|J>>>8,f[V]=J<<16|J>>>16,m[V]=J<<8|J>>>24,y[V]=J,q?(q=K^S[S[S[G^K]]],W^=S[S[W]]):q=W=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],I=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,L=S.words,q=S.sigBytes/4,W=this._nRounds=q+6,V=(W+1)*4,K=this._keySchedule=[],H=0;H6&&H%q==4&&(G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255]):(G=G<<8|G>>>24,G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255],G^=E[H/q|0]<<24),K[H]=K[H-q]^G}for(var J=this._invKeySchedule=[],F=0;F>>24]]^f[i[G>>>16&255]]^m[i[G>>>8&255]]^y[i[G&255]]}}},encryptBlock:function(S,L){this._doCryptBlock(S,L,this._keySchedule,o,c,u,l,i)},decryptBlock:function(S,L){var q=S[L+1];S[L+1]=S[L+3],S[L+3]=q,this._doCryptBlock(S,L,this._invKeySchedule,h,f,m,y,s);var q=S[L+1];S[L+1]=S[L+3],S[L+3]=q},_doCryptBlock:function(S,L,q,W,V,K,H,G){for(var J=this._nRounds,F=S[L]^q[0],T=S[L+1]^q[1],P=S[L+2]^q[2],A=S[L+3]^q[3],v=4,k=1;k>>24]^V[T>>>16&255]^K[P>>>8&255]^H[A&255]^q[v++],D=W[T>>>24]^V[P>>>16&255]^K[A>>>8&255]^H[F&255]^q[v++],B=W[P>>>24]^V[A>>>16&255]^K[F>>>8&255]^H[T&255]^q[v++],_=W[A>>>24]^V[F>>>16&255]^K[T>>>8&255]^H[P&255]^q[v++];F=O,T=D,P=B,A=_}var O=(G[F>>>24]<<24|G[T>>>16&255]<<16|G[P>>>8&255]<<8|G[A&255])^q[v++],D=(G[T>>>24]<<24|G[P>>>16&255]<<16|G[A>>>8&255]<<8|G[F&255])^q[v++],B=(G[P>>>24]<<24|G[A>>>16&255]<<16|G[F>>>8&255]<<8|G[T&255])^q[v++],_=(G[A>>>24]<<24|G[F>>>16&255]<<16|G[T>>>8&255]<<8|G[P&255])^q[v++];S[L]=O,S[L+1]=D,S[L+2]=B,S[L+3]=_},keySize:256/32});e.AES=n._createHelper(I)}(),r.AES})});var ust=x((hD,cst)=>{d();p();(function(r,e,t){typeof hD=="object"?cst.exports=hD=e(rn(),Av(),Sv(),P1(),jo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(hD,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=a.extend({_doReset:function(){for(var E=this._key,I=E.words,S=[],L=0;L<56;L++){var q=s[L]-1;S[L]=I[q>>>5]>>>31-q%32&1}for(var W=this._subKeys=[],V=0;V<16;V++){for(var K=W[V]=[],H=c[V],L=0;L<24;L++)K[L/6|0]|=S[(o[L]-1+H)%28]<<31-L%6,K[4+(L/6|0)]|=S[28+(o[L+24]-1+H)%28]<<31-L%6;K[0]=K[0]<<1|K[0]>>>31;for(var L=1;L<7;L++)K[L]=K[L]>>>(L-1)*4+3;K[7]=K[7]<<5|K[7]>>>27}for(var G=this._invSubKeys=[],L=0;L<16;L++)G[L]=W[15-L]},encryptBlock:function(E,I){this._doCryptBlock(E,I,this._subKeys)},decryptBlock:function(E,I){this._doCryptBlock(E,I,this._invSubKeys)},_doCryptBlock:function(E,I,S){this._lBlock=E[I],this._rBlock=E[I+1],f.call(this,4,252645135),f.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),f.call(this,1,1431655765);for(var L=0;L<16;L++){for(var q=S[L],W=this._lBlock,V=this._rBlock,K=0,H=0;H<8;H++)K|=u[H][((V^q[H])&l[H])>>>0];this._lBlock=V,this._rBlock=W^K}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,f.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),E[I]=this._lBlock,E[I+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(E,I){var S=(this._lBlock>>>E^this._rBlock)&I;this._rBlock^=S,this._lBlock^=S<>>E^this._lBlock)&I;this._lBlock^=S,this._rBlock^=S<{d();p();(function(r,e,t){typeof fD=="object"?lst.exports=fD=e(rn(),Av(),Sv(),P1(),jo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(fD,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,h=this._S=[],f=0;f<256;f++)h[f]=f;for(var f=0,m=0;f<256;f++){var y=f%l,E=u[y>>>2]>>>24-y%4*8&255;m=(m+h[f]+E)%256;var I=h[f];h[f]=h[m],h[m]=I}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,h=0,f=0;f<4;f++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,h|=c[(c[u]+c[l])%256]<<24-f*8}return this._i=u,this._j=l,h}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var hst=x((mD,pst)=>{d();p();(function(r,e,t){typeof mD=="object"?pst.exports=mD=e(rn(),Av(),Sv(),P1(),jo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(mD,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,h=this.cfg.iv,f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var f=0;f<4;f++)u.call(this);for(var f=0;f<8;f++)y[f]^=m[f+4&7];if(h){var E=h.words,I=E[0],S=E[1],L=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,q=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,W=L>>>16|q&4294901760,V=q<<16|L&65535;y[0]^=L,y[1]^=W,y[2]^=q,y[3]^=V,y[4]^=L,y[5]^=W,y[6]^=q,y[7]^=V;for(var f=0;f<4;f++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,E=m>>>16,I=((y*y>>>17)+y*E>>>15)+E*E,S=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=I^S}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var mst=x((yD,fst)=>{d();p();(function(r,e,t){typeof yD=="object"?fst.exports=yD=e(rn(),Av(),Sv(),P1(),jo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(yD,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,h=this.cfg.iv,f=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=f[y+4&7];if(h){var E=h.words,I=E[0],S=E[1],L=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,q=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,W=L>>>16|q&4294901760,V=q<<16|L&65535;m[0]^=L,m[1]^=W,m[2]^=q,m[3]^=V,m[4]^=L,m[5]^=W,m[6]^=q,m[7]^=V;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,E=m>>>16,I=((y*y>>>17)+y*E>>>15)+E*E,S=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=I^S}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var gst=x((gD,yst)=>{d();p();(function(r,e,t){typeof gD=="object"?yst.exports=gD=e(rn(),r8(),bit(),wit(),Av(),Sv(),zB(),t8(),Cit(),LX(),Ait(),Pit(),Mit(),QB(),Dit(),P1(),jo(),qit(),Uit(),jit(),Kit(),Vit(),Yit(),Qit(),Xit(),tst(),nst(),ist(),ost(),ust(),dst(),hst(),mst()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(gD,function(r){return r})});var qX=x(Pv=>{"use strict";d();p();var Akr=Pv&&Pv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pv,"__esModule",{value:!0});Pv.Base=void 0;var mp=lc(),FX=Akr(gst()),im=class{print(){im.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return mp.Buffer.isBuffer(n)?n:this._isHexString(n)?mp.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?mp.Buffer.from(n):ArrayBuffer.isView(n)?mp.Buffer.from(n.buffer,n.byteOffset,n.byteLength):mp.Buffer.from(e(FX.default.enc.Hex.parse(t.toString("hex"))).toString(FX.default.enc.Hex),"hex")}}_isHexString(e){return im.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};Pv.Base=im;Pv.default=im});var vst=x(Rv=>{"use strict";d();p();var bD=Rv&&Rv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rv,"__esModule",{value:!0});Rv.MerkleTree=void 0;var ni=lc(),A0=bD(dit()),bst=bD(t8()),Skr=bD(mit()),Pkr=bD(qX()),vl=class extends Pkr.default{constructor(e,t=bst.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(ni.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(ni.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?ni.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>vl.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(vl.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(ni.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?ni.Buffer.from([]):this.layers[this.layers.length-1][0]||ni.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:ni.Buffer.isBuffer(n)?vl.bufferToHex(n):{position:n.position,data:vl.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return vl.bufferify(n);if(n instanceof Object)return{position:n.position,data:vl.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let u of e){let l=n+u;for(;l>1;)a.add(l^1),l=l/2|0}let i=e.map(u=>n+u),s=Array.from(a).sort((u,l)=>u-l).reverse();a=i.concat(s);let o=new Set,c=[];for(let u of a)if(!o.has(u))for(c.push(u);u>1&&(o.add(u),!!o.has(u^1));)u=u/2|0;return c.filter(u=>!e.includes(u-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let o=0;oh%2===0?h+1:h-1).filter(h=>!s.includes(h)),l=a.find(({index:h})=>h===o);l&&s.includes(l.leavesCount-1)&&(u=u.slice(0,-1)),i.push(u),s=[...new Set(s.map(h=>h%2===0?h/2:h%2===0?(h+1)/2:(h-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(ni.Buffer.compare));let i=a.map(u=>this._bufferIndexOf(this.leaves,u)).sort((u,l)=>u===l?0:u>l?1:-1);if(!i.every(u=>u!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],o=[],c=[];for(let u=0;um.indexOf(h)===f),c=[]}return o.filter(u=>!s.includes(u))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let c of a){if(c%2===0){let l=c+1;if(!a.includes(l)&&i[l]){s.push(i[l]);continue}}let u=c-1;if(!a.includes(u)&&i[u]){s.push(i[u]);continue}}n=n.concat(s);let o=new Set;for(let c of a){if(c%2===0){o.add(c/2);continue}if(c%2===0){o.add((c+1)/2);continue}o.add((c-1)/2)}a=Array.from(o)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((o,c)=>o===c?0:o>c?1:-1):n=e.map(o=>this._bufferIndexOf(this.leaves,o)).sort((o,c)=>o===c?0:o>c?1:-1),!n.every(o=>o!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(o=>this.bufferify(o)),i=[],s=[];for(let o=0;o{if(!i.includes(c[l])){let f=this._getPairNode(c,l),m=a.includes(c[l])||a.includes(f);f&&s.push(!m),i.push(c[l]),i.push(f)}return u.push(l/2|0),u},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(h)),i=i.map(h=>this.bufferify(h));let c={};for(let[h,f]of this._zip(t,n))c[Math.pow(2,o)+h]=f;for(let[h,f]of this._zip(this.getProofIndices(t,o),i))c[h]=f;let u=Object.keys(c).map(h=>+h).sort((h,f)=>h-f);u=u.slice(0,u.length-1);let l=0;for(;l=2&&{}.hasOwnProperty.call(c,h^1)){let f=[c[h-h%2],c[h-h%2+1]];this.sortPairs&&(f=f.sort(ni.Buffer.compare));let m=f[1]?this.hashFn(ni.Buffer.concat(f)):f[0];c[h/2|0]=m,u.push(h/2|0)}l+=1}return!t.length||{}.hasOwnProperty.call(c,1)&&c[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,o=[],c=0,u=0,l=0;for(let h=0;hthis.bufferify(o)),i=i.map(o=>this.bufferify(o));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;nh-f),s=i.map(([h])=>h),o=this.getProofIndicesForUnevenTree(s,n),c=0,u=[];for(let h=0;hI-S).map(([,I])=>I),m=l[h].map(([I])=>I),y=[...new Set(m.map(I=>I%2===0?I/2:I%2===0?(I+1)/2:(I-1)/2))],E=[];for(let I=0;I{"use strict";d();p();var wst=Mv&&Mv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mv,"__esModule",{value:!0});Mv.MerkleMountainRange=void 0;var n8=lc(),Rkr=wst(t8()),Mkr=wst(qX()),vD=class extends Mkr.default{constructor(e=Rkr.default,t=[],n,a,i){super(),this.root=n8.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let o=0;o0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?n8.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(n8.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let h=0;h=e&&s===0&&(s=a[h]);let o=0,c=0,u=this.heightAt(s),l=[];for(;s!==e;)u--,[o,c]=this.getChildren(s),s=e<=o?o:c,l[u-1]=this.hashes[e<=o?c:o];return{root:t,width:n,peakBagging:i,siblings:l}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){u=i[I],c=l[I];break}if(!u)throw new Error("target not found");let h=s.length+1,f=new Array(h),m=0,y=0;for(;h>0&&(f[--h]=c,c!==n);)[m,y]=this.getChildren(c),c=n>m?y:m;let E;for(;hthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};Mv.MerkleMountainRange=vD;Mv.default=vD});var ya=x(R1=>{"use strict";d();p();var Nkr=R1&&R1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(R1,"__esModule",{value:!0});R1.MerkleTree=void 0;var xst=Nkr(vst());R1.MerkleTree=xst.default;var Bkr=_st();Object.defineProperty(R1,"MerkleMountainRange",{enumerable:!0,get:function(){return Bkr.MerkleMountainRange}});R1.default=xst.default});var ga=x((szn,Tst)=>{"use strict";d();p();Tst.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var mn=x((uzn,Dkr)=>{Dkr.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ba=x((lzn,Okr)=>{Okr.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var va=x((dzn,Lkr)=>{Lkr.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var wa=x((pzn,Fkr)=>{Fkr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var _a=x((hzn,qkr)=>{qkr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var xa=x((fzn,Wkr)=>{Wkr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ta=x((mzn,Ukr)=>{Ukr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var yn=x(WX=>{"use strict";d();p();Object.defineProperty(WX,"__esModule",{value:!0});var Hkr={};WX.GENERATED_ABI=Hkr});var Ea=x((vzn,jkr)=>{jkr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ca=x((wzn,zkr)=>{zkr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var HX=x(Est=>{"use strict";d();p();var Kkr=xi(),Gkr=je(),UX=class{constructor(e){Kkr._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&Gkr.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};Est.DropErc1155History=UX});var a8=x(Cst=>{"use strict";d();p();var Nv=xi(),wD=ds(),jX=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Nv._defineProperty(this,"contractWrapper",void 0),Nv._defineProperty(this,"storage",void 0),Nv._defineProperty(this,"erc1155",void 0),Nv._defineProperty(this,"_chainId",void 0),Nv._defineProperty(this,"transfer",wD.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),Nv._defineProperty(this,"setApprovalForAll",wD.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),Nv._defineProperty(this,"airdrop",wD.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new wD.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};Cst.StandardErc1155=jX});var s8=x(L_=>{"use strict";d();p();var Vkr=xi(),$kr=Gr(),i8=ds();function Ykr(r){return r&&r.__esModule?r:{default:r}}var KX=Ykr($kr),Jkr="https://paper.xyz/api",Qkr="2022-08-12",GX=`${Jkr}/${Qkr}/platform/thirdweb`,Ist={[i8.ChainId.Mainnet]:"Ethereum",[i8.ChainId.Goerli]:"Goerli",[i8.ChainId.Polygon]:"Polygon",[i8.ChainId.Mumbai]:"Mumbai",[i8.ChainId.Avalanche]:"Avalanche"};function kst(r){return KX.default(r in Ist,`chainId not supported by paper: ${r}`),Ist[r]}async function Ast(r,e){let t=kst(e),a=await(await fetch(`${GX}/register-contract?contractAddress=${r}&chain=${t}`)).json();return KX.default(a.result.id,"Contract is not registered with paper"),a.result.id}var Zkr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Sst(r,e){let n=await(await fetch(`${GX}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...Zkr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return KX.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var zX=class{constructor(e){Vkr._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Ast(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Sst(await this.getCheckoutId(),e)}};L_.PAPER_API_URL=GX;L_.PaperCheckout=zX;L_.createCheckoutLinkIntent=Sst;L_.fetchRegisteredCheckoutId=Ast;L_.parseChainIdToPaperChain=kst});var Rst=x(Pst=>{"use strict";d();p();var Ps=xi(),ps=ds(),Xkr=HX(),eAr=a8(),tAr=s8(),rAr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var F_=class extends eAr.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ps.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ps._defineProperty(this,"abi",void 0),Ps._defineProperty(this,"sales",void 0),Ps._defineProperty(this,"platformFees",void 0),Ps._defineProperty(this,"encoder",void 0),Ps._defineProperty(this,"estimator",void 0),Ps._defineProperty(this,"events",void 0),Ps._defineProperty(this,"metadata",void 0),Ps._defineProperty(this,"app",void 0),Ps._defineProperty(this,"roles",void 0),Ps._defineProperty(this,"royalties",void 0),Ps._defineProperty(this,"claimConditions",void 0),Ps._defineProperty(this,"checkout",void 0),Ps._defineProperty(this,"history",void 0),Ps._defineProperty(this,"interceptor",void 0),Ps._defineProperty(this,"erc1155",void 0),Ps._defineProperty(this,"owner",void 0),Ps._defineProperty(this,"createBatch",ps.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ps._defineProperty(this,"claimTo",ps.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ps._defineProperty(this,"claim",ps.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ps._defineProperty(this,"burnTokens",ps.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=ps.AbiSchema.parse(s),this.metadata=new ps.ContractMetadata(this.contractWrapper,ps.DropErc1155ContractSchema,this.storage),this.app=new ps.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ps.ContractRoles(this.contractWrapper,F_.contractRoles),this.royalties=new ps.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ps.ContractPrimarySale(this.contractWrapper),this.claimConditions=new ps.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new ps.ContractEvents(this.contractWrapper),this.history=new Xkr.DropErc1155History(this.events),this.encoder=new ps.ContractEncoder(this.contractWrapper),this.estimator=new ps.GasCostEstimator(this.contractWrapper),this.platformFees=new ps.ContractPlatformFee(this.contractWrapper),this.interceptor=new ps.ContractInterceptor(this.contractWrapper),this.erc1155=new ps.Erc1155(this.contractWrapper,this.storage,o),this.checkout=new tAr.PaperCheckout(this.contractWrapper),this.owner=new ps.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ps.getRoleHash("transfer"),rAr.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return ps.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{nAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var $X=x((Bzn,aAr)=>{aAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Nst=x(Mst=>{"use strict";d();p();var hs=xi(),hi=ds(),iAr=a8(),sAr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var q_=class extends iAr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hi.ContractWrapper(e,t,i,a);super(o,n,s),hs._defineProperty(this,"abi",void 0),hs._defineProperty(this,"metadata",void 0),hs._defineProperty(this,"app",void 0),hs._defineProperty(this,"roles",void 0),hs._defineProperty(this,"sales",void 0),hs._defineProperty(this,"platformFees",void 0),hs._defineProperty(this,"encoder",void 0),hs._defineProperty(this,"estimator",void 0),hs._defineProperty(this,"events",void 0),hs._defineProperty(this,"royalties",void 0),hs._defineProperty(this,"signature",void 0),hs._defineProperty(this,"interceptor",void 0),hs._defineProperty(this,"erc1155",void 0),hs._defineProperty(this,"owner",void 0),hs._defineProperty(this,"mint",hi.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),hs._defineProperty(this,"mintTo",hi.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),hs._defineProperty(this,"mintAdditionalSupply",hi.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),hs._defineProperty(this,"mintAdditionalSupplyTo",hi.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),hs._defineProperty(this,"mintBatch",hi.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),hs._defineProperty(this,"mintBatchTo",hi.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),hs._defineProperty(this,"burn",hi.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=hi.AbiSchema.parse(i||[]),this.metadata=new hi.ContractMetadata(this.contractWrapper,hi.TokenErc1155ContractSchema,this.storage),this.app=new hi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new hi.ContractRoles(this.contractWrapper,q_.contractRoles),this.royalties=new hi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new hi.ContractPrimarySale(this.contractWrapper),this.encoder=new hi.ContractEncoder(this.contractWrapper),this.estimator=new hi.GasCostEstimator(this.contractWrapper),this.events=new hi.ContractEvents(this.contractWrapper),this.platformFees=new hi.ContractPlatformFee(this.contractWrapper),this.interceptor=new hi.ContractInterceptor(this.contractWrapper),this.signature=new hi.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new hi.Erc1155(this.contractWrapper,this.storage,s),this.owner=new hi.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hi.getRoleHash("transfer"),sAr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{oAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"flatFee",type:"uint256"}],name:"FlatPlatformFeeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"enum TokenERC1155.PlatformFeeType",name:"feeType",type:"uint8"}],name:"PlatformFeeTypeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlatPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeType",outputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_flatFee",type:"uint256"}],name:"setFlatPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"_feeType",type:"uint8"}],name:"setPlatformFeeType",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var ZX=x(TD=>{"use strict";d();p();var zo=xi(),Ge=ds(),cAr=mn(),uAr=pn(),lAr=hn(),ur=je(),dAr=Gr();function xD(r){return r&&r.__esModule?r:{default:r}}var pAr=xD(cAr),hAr=xD(uAr),fAr=xD(lAr),_D=xD(dAr),Bv=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),JX=class{constructor(e,t){zo._defineProperty(this,"contractWrapper",void 0),zo._defineProperty(this,"storage",void 0),zo._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),zo._defineProperty(this,"makeOffer",Ge.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ge.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=ur.BigNumber.from(a),l=ur.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ge.setErc20Allowance(this.contractWrapper,l,i,h);let f=ur.ethers.constants.MaxUint256;return o&&(f=ur.BigNumber.from(Math.floor(o.getTime()/1e3))),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),zo._defineProperty(this,"acceptOffer",Ge.buildTransactionFunction(async(n,a)=>{await this.validateListing(ur.BigNumber.from(n));let i=await Ge.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),zo._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(ur.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=ur.BigNumber.from(a),h=ur.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),zo._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ge.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),zo._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ur.constants.AddressZero)throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Bv.Direct)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(ur.BigNumber.from(e)),_D.default(ur.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ge.resolveAddress(t));if(n.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:Bv.Direct}}async isStillValidListing(e,t){if(!await Ge.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new ur.Contract(e.assetContractAddress,pAr.default,a),s=await i.supportsInterface(Ge.InterfaceId_IERC721),o=await i.supportsInterface(Ge.InterfaceId_IERC1155);if(s){let u=(await new ur.Contract(e.assetContractAddress,hAr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new ur.Contract(e.assetContractAddress,fAr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},QX=class{constructor(e,t){zo._defineProperty(this,"contractWrapper",void 0),zo._defineProperty(this,"storage",void 0),zo._defineProperty(this,"encoder",void 0),zo._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),zo._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=await Ge.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,ur.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),zo._defineProperty(this,"makeBid",Ge.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(ur.BigNumber.from(n)),s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(ur.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ge.isWinningBid(c.pricePerToken,s,o);_D.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=ur.BigNumber.from(i.reservePrice);_D.default(f.gte(m),"Bid price is too low based on reserve price")}let u=ur.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,ur.ethers.constants.MaxUint256],overrides:h})})),zo._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=ur.BigNumber.from(Math.floor(Date.now()/1e3)),s=ur.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==ur.constants.AddressZero)throw new Ge.AuctionAlreadyStartedError(n.toString());return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),zo._defineProperty(this,"closeListing",Ge.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(ur.BigNumber.from(n));try{return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),zo._defineProperty(this,"executeSale",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n));try{let i=await this.getWinningBid(n);_D.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),zo._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ge.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Bv.Auction)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(ur.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(ur.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=ur.BigNumber.from(Math.floor(Date.now()/1e3)),i=ur.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==ur.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(ur.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(ur.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:ur.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:Bv.Auction}}};TD.ListingType=Bv;TD.MarketplaceAuction=QX;TD.MarketplaceDirect=JX});var Ost=x(Dst=>{"use strict";d();p();var Yi=xi(),nn=ds(),Ah=ZX(),ad=je(),mAr=Gr();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function yAr(r){return r&&r.__esModule?r:{default:r}}var Bst=yAr(mAr),W_=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new nn.ContractWrapper(e,t,i,a);Yi._defineProperty(this,"abi",void 0),Yi._defineProperty(this,"contractWrapper",void 0),Yi._defineProperty(this,"storage",void 0),Yi._defineProperty(this,"encoder",void 0),Yi._defineProperty(this,"events",void 0),Yi._defineProperty(this,"estimator",void 0),Yi._defineProperty(this,"platformFees",void 0),Yi._defineProperty(this,"metadata",void 0),Yi._defineProperty(this,"app",void 0),Yi._defineProperty(this,"roles",void 0),Yi._defineProperty(this,"interceptor",void 0),Yi._defineProperty(this,"direct",void 0),Yi._defineProperty(this,"auction",void 0),Yi._defineProperty(this,"_chainId",void 0),Yi._defineProperty(this,"getAll",this.getAllListings),Yi._defineProperty(this,"buyoutListing",nn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new nn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Ah.ListingType.Direct:return Bst.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Ah.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Yi._defineProperty(this,"makeOffer",nn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new nn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Ah.ListingType.Direct:return Bst.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,nn.isNativeToken(h.currency)?nn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Ah.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Yi._defineProperty(this,"setBidBufferBps",nn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,ad.BigNumber.from(c)]})})),Yi._defineProperty(this,"setTimeBufferInSeconds",nn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[ad.BigNumber.from(c),u]})})),Yi._defineProperty(this,"allowListingFromSpecificAssetOnly",nn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(ad.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[nn.getRoleHash("asset"),ad.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[nn.getRoleHash("asset"),c])),nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Yi._defineProperty(this,"allowListingFromAnyAsset",nn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[nn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[nn.getRoleHash("asset"),ad.constants.AddressZero])),nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=nn.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new nn.ContractMetadata(this.contractWrapper,nn.MarketplaceContractSchema,this.storage),this.app=new nn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new nn.ContractRoles(this.contractWrapper,W_.contractRoles),this.encoder=new nn.ContractEncoder(this.contractWrapper),this.estimator=new nn.GasCostEstimator(this.contractWrapper),this.direct=new Ah.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Ah.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new nn.ContractEvents(this.contractWrapper),this.platformFees=new nn.ContractPlatformFee(this.contractWrapper),this.interceptor=new nn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ad.constants.AddressZero)throw new nn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Ah.ListingType.Auction:return await this.auction.mapListing(t);case Ah.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=ad.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Ah.ListingType.Auction&&ad.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&ad.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Ah.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(nn.getRoleHash("lister"),ad.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await nn.mapOffer(this.contractWrapper.getProvider(),ad.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof nn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Ah.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=ad.BigNumber.from(t?.start||0).toNumber(),i=ad.BigNumber.from(t?.count||Yi.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{gAr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Fst=x(Lst=>{"use strict";d();p();var id=xi(),Ti=ds();Ir();je();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var U_=class{get directListings(){return Ti.assertEnabled(this.detectDirectListings(),Ti.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Ti.assertEnabled(this.detectEnglishAuctions(),Ti.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Ti.assertEnabled(this.detectOffers(),Ti.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ti.ContractWrapper(e,t,i,a);id._defineProperty(this,"abi",void 0),id._defineProperty(this,"contractWrapper",void 0),id._defineProperty(this,"storage",void 0),id._defineProperty(this,"encoder",void 0),id._defineProperty(this,"events",void 0),id._defineProperty(this,"estimator",void 0),id._defineProperty(this,"platformFees",void 0),id._defineProperty(this,"metadata",void 0),id._defineProperty(this,"app",void 0),id._defineProperty(this,"roles",void 0),id._defineProperty(this,"interceptor",void 0),id._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=Ti.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ti.ContractMetadata(this.contractWrapper,Ti.MarketplaceContractSchema,this.storage),this.app=new Ti.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ti.ContractRoles(this.contractWrapper,U_.contractRoles),this.encoder=new Ti.ContractEncoder(this.contractWrapper),this.estimator=new Ti.GasCostEstimator(this.contractWrapper),this.events=new Ti.ContractEvents(this.contractWrapper),this.platformFees=new Ti.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ti.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Ti.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{bAr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var H_=x(qst=>{"use strict";d();p();var Dv=xi(),M1=ds(),tee=class{get chainId(){return this._chainId}constructor(e,t,n){Dv._defineProperty(this,"contractWrapper",void 0),Dv._defineProperty(this,"storage",void 0),Dv._defineProperty(this,"erc721",void 0),Dv._defineProperty(this,"_chainId",void 0),Dv._defineProperty(this,"transfer",M1.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),Dv._defineProperty(this,"setApprovalForAll",M1.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),Dv._defineProperty(this,"setApprovalForToken",M1.buildTransactionFunction(async(a,i)=>M1.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await M1.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new M1.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await M1.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await M1.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};qst.StandardErc721=tee});var Ust=x(Wst=>{"use strict";d();p();var yp=xi(),Ei=ds(),vAr=H_(),wAr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var j_=class extends vAr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ei.ContractWrapper(e,t,i,a);super(o,n,s),yp._defineProperty(this,"abi",void 0),yp._defineProperty(this,"encoder",void 0),yp._defineProperty(this,"estimator",void 0),yp._defineProperty(this,"metadata",void 0),yp._defineProperty(this,"app",void 0),yp._defineProperty(this,"events",void 0),yp._defineProperty(this,"roles",void 0),yp._defineProperty(this,"royalties",void 0),yp._defineProperty(this,"owner",void 0),yp._defineProperty(this,"wrap",Ei.buildTransactionFunction(async(c,u,l)=>{let h=await Ei.uploadOrExtractURI(u,this.storage),f=await Ei.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Ei.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let E=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(E.length===0)throw new Error("TokensWrapped event not found");let I=E[0].args.tokenIdOfWrappedToken;return{id:I,receipt:y,data:()=>this.get(I)}}})})),yp._defineProperty(this,"unwrap",Ei.buildTransactionFunction(async(c,u)=>{let l=await Ei.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Ei.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=Ei.AbiSchema.parse(i||[]),this.metadata=new Ei.ContractMetadata(this.contractWrapper,Ei.MultiwrapContractSchema,this.storage),this.app=new Ei.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ei.ContractRoles(this.contractWrapper,j_.contractRoles),this.encoder=new Ei.ContractEncoder(this.contractWrapper),this.estimator=new Ei.GasCostEstimator(this.contractWrapper),this.events=new Ei.ContractEvents(this.contractWrapper),this.royalties=new Ei.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Ei.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Ei.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:wAr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Ei.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Ei.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +`});var Wtt=ce(()=>{d();p();Ftt();yle();gg();sTe();eX()});var Utt={};cr(Utt,{CID:()=>zs,bases:()=>_le,bytes:()=>mle,codecs:()=>S4r,digest:()=>Qv,hasher:()=>vle,hashes:()=>P4r,varint:()=>qG});var _le,P4r,S4r,dTe=ce(()=>{d();p();gtt();btt();vtt();wtt();xtt();J_e();_tt();eTe();Ttt();Ett();Rtt();Btt();Dtt();Ltt();Wtt();_le={...K_e,...G_e,...V_e,...Y_e,...$_e,...Q_e,...Z_e,...X_e,...tTe,...rTe},P4r={...oTe,...cTe},S4r={raw:uTe,json:lTe}});function wg(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}var rX=ce(()=>{d();p()});function FG(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?wg(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}var Tle=ce(()=>{d();p();rX()});function jtt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Htt,pTe,R4r,Ile,hTe=ce(()=>{d();p();dTe();Tle();Htt=jtt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),pTe=jtt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=FG(r.length);for(let t=0;tXf});function Xf(r,e="utf8"){let t=Ile[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString("utf8"):t.encoder.encode(r).substring(1)}var WG=ce(()=>{d();p();hTe()});var nX={};cr(nX,{fromString:()=>_h});function _h(r,e="utf8"){let t=Ile[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?wg(globalThis.Buffer.from(r,"utf-8")):t.decoder.decode(`${t.prefix}${r}`)}var Jv=ce(()=>{d();p();hTe();rX()});var iX={};cr(iX,{concat:()=>aX});function aX(r,e){e||(e=r.reduce((a,i)=>a+i.length,0));let t=FG(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return wg(t)}var Zv=ce(()=>{d();p();Tle();rX()});var oX=_((xWn,$tt)=>{"use strict";d();p();var ztt=L_e(),UG=ltt(),{names:sX}=ptt(),{toString:Cle}=(WG(),nt(Ele)),{fromString:M4r}=(Jv(),nt(nX)),{concat:N4r}=(Zv(),nt(iX)),HG={};for(let r in sX){let e=r;HG[sX[e]]=e}Object.freeze(HG);function B4r(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Cle(r,"base16")}function D4r(r){return M4r(r,"base16")}function L4r(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Cle(ztt.encode("base58btc",r)).slice(1)}function O4r(r){let e=r instanceof Uint8Array?Cle(r):r;return ztt.decode("z"+e)}function Ktt(r){if(!(r instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(r.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=UG.decode(r);if(!Vtt(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);r=r.slice(UG.decode.bytes);let t=UG.decode(r);if(t<0)throw new Error(`multihash invalid length: ${t}`);if(r=r.slice(UG.decode.bytes),r.length!==t)throw new Error(`multihash length inconsistent: 0x${Cle(r,"base16")}`);return{code:e,name:HG[e],length:t,digest:r}}function q4r(r,e,t){if(!r||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=Gtt(e);if(!(r instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(t==null&&(t=r.length),t&&r.length!==t)throw new Error("digest length should be equal to specified length.");let a=UG.encode(n),i=UG.encode(t);return N4r([a,i,r],a.length+i.length+r.length)}function Gtt(r){let e=r;if(typeof r=="string"){if(sX[r]===void 0)throw new Error(`Unrecognized hash function named: ${r}`);e=sX[r]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if(HG[e]===void 0&&!fTe(e))throw new Error(`Unrecognized function code: ${e}`);return e}function fTe(r){return r>0&&r<16}function Vtt(r){return!!(fTe(r)||HG[r])}function Ytt(r){Ktt(r)}function F4r(r){return Ytt(r),r.subarray(0,2)}$tt.exports={names:sX,codes:HG,toHexString:B4r,fromHexString:D4r,toB58String:L4r,fromB58String:O4r,decode:Ktt,encode:q4r,coerceCode:Gtt,isAppCode:fTe,validate:Ytt,prefix:F4r,isValidCode:Vtt}});var Qtt=_((cX,kle)=>{d();p();(function(r,e){"use strict";var t={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var y=0;y255)return!1;return!0}function a(m,y){return(m&65535)*y+(((m>>>16)*y&65535)<<16)}function i(m,y){return m<>>32-y}function s(m){return m^=m>>>16,m=a(m,2246822507),m^=m>>>13,m=a(m,3266489909),m^=m>>>16,m}function o(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var I=[0,0,0,0];return I[3]+=m[3]+y[3],I[2]+=I[3]>>>16,I[3]&=65535,I[2]+=m[2]+y[2],I[1]+=I[2]>>>16,I[2]&=65535,I[1]+=m[1]+y[1],I[0]+=I[1]>>>16,I[1]&=65535,I[0]+=m[0]+y[0],I[0]&=65535,[I[0]<<16|I[1],I[2]<<16|I[3]]}function c(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var I=[0,0,0,0];return I[3]+=m[3]*y[3],I[2]+=I[3]>>>16,I[3]&=65535,I[2]+=m[2]*y[3],I[1]+=I[2]>>>16,I[2]&=65535,I[2]+=m[3]*y[2],I[1]+=I[2]>>>16,I[2]&=65535,I[1]+=m[1]*y[3],I[0]+=I[1]>>>16,I[1]&=65535,I[1]+=m[2]*y[2],I[0]+=I[1]>>>16,I[1]&=65535,I[1]+=m[3]*y[1],I[0]+=I[1]>>>16,I[1]&=65535,I[0]+=m[0]*y[3]+m[1]*y[2]+m[2]*y[1]+m[3]*y[0],I[0]&=65535,[I[0]<<16|I[1],I[2]<<16|I[3]]}function u(m,y){return y%=64,y===32?[m[1],m[0]]:y<32?[m[0]<>>32-y,m[1]<>>32-y]:(y-=32,[m[1]<>>32-y,m[0]<>>32-y])}function l(m,y){return y%=64,y===0?m:y<32?[m[0]<>>32-y,m[1]<>>1]),m=c(m,[4283543511,3981806797]),m=h(m,[0,m[0]>>>1]),m=c(m,[3301882366,444984403]),m=h(m,[0,m[0]>>>1]),m}t.x86.hash32=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var I=m.length%4,C=m.length-I,R=y,L=0,F=3432918353,W=461845907,V=0;V>>0},t.x86.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var I=m.length%16,C=m.length-I,R=y,L=y,F=y,W=y,V=0,K=0,H=0,G=0,Q=597399067,q=2869860233,T=951274213,M=2716044179,A=0;A>>0).toString(16)).slice(-8)+("00000000"+(L>>>0).toString(16)).slice(-8)+("00000000"+(F>>>0).toString(16)).slice(-8)+("00000000"+(W>>>0).toString(16)).slice(-8)},t.x64.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var I=m.length%16,C=m.length-I,R=[0,y],L=[0,y],F=[0,0],W=[0,0],V=[2277735313,289559509],K=[1291169091,658871167],H=0;H>>0).toString(16)).slice(-8)+("00000000"+(R[1]>>>0).toString(16)).slice(-8)+("00000000"+(L[0]>>>0).toString(16)).slice(-8)+("00000000"+(L[1]>>>0).toString(16)).slice(-8)},typeof cX<"u"?(typeof kle<"u"&&kle.exports&&(cX=kle.exports=t),cX.murmurHash3=t):typeof define=="function"&&define.amd?define([],function(){return t}):(t._murmurHash3=r.murmurHash3,t.noConflict=function(){return r.murmurHash3=t._murmurHash3,t._murmurHash3=e,t.noConflict=e,t},r.murmurHash3=t)})(cX)});var Ztt=_((CWn,Jtt)=>{d();p();Jtt.exports=Qtt()});var ert=_((PWn,Xtt)=>{"use strict";d();p();var W4r=oX(),jG=self.crypto||self.msCrypto,mTe=async(r,e)=>{if(typeof self>"u"||!jG)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(e){case"sha1":return new Uint8Array(await jG.subtle.digest({name:"SHA-1"},r));case"sha2-256":return new Uint8Array(await jG.subtle.digest({name:"SHA-256"},r));case"sha2-512":return new Uint8Array(await jG.subtle.digest({name:"SHA-512"},r));case"dbl-sha2-256":{let t=await jG.subtle.digest({name:"SHA-256"},r);return new Uint8Array(await jG.subtle.digest({name:"SHA-256"},t))}default:throw new Error(`${e} is not a supported algorithm`)}};Xtt.exports={factory:r=>async e=>mTe(e,r),digest:mTe,multihashing:async(r,e,t)=>{let n=await mTe(r,e);return W4r.encode(n,e,t)}}});var rrt=_((MWn,trt)=>{"use strict";d();p();var U4r=r=>{let e=new Uint8Array(4);for(let t=0;t<4;t++)e[t]=r&255,r=r>>8;return e};trt.exports={fromNumberTo32BitBuf:U4r}});var yTe=_((DWn,nrt)=>{d();p();var H4r="Input must be an string, Buffer or Uint8Array";function j4r(r){let e;if(r instanceof Uint8Array)e=r;else if(typeof r=="string")e=new TextEncoder().encode(r);else throw new Error(H4r);return e}function z4r(r){return Array.prototype.map.call(r,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function Ale(r){return(4294967296+r).toString(16).substring(1)}function K4r(r,e,t){let n=` +`+r+" = ";for(let a=0;a{d();p();var Sle=yTe();function Ple(r,e,t){let n=r[e]+r[t],a=r[e+1]+r[t+1];n>=4294967296&&a++,r[e]=n,r[e+1]=a}function art(r,e,t,n){let a=r[e]+t;t<0&&(a+=4294967296);let i=r[e+1]+n;a>=4294967296&&i++,r[e]=a,r[e+1]=i}function irt(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function xg(r,e,t,n,a,i){let s=uX[a],o=uX[a+1],c=uX[i],u=uX[i+1];Ple(vr,r,e),art(vr,r,s,o);let l=vr[n]^vr[r],h=vr[n+1]^vr[r+1];vr[n]=h,vr[n+1]=l,Ple(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=l>>>24^h<<8,vr[e+1]=h>>>24^l<<8,Ple(vr,r,e),art(vr,r,c,u),l=vr[n]^vr[r],h=vr[n+1]^vr[r+1],vr[n]=l>>>16^h<<16,vr[n+1]=h>>>16^l<<16,Ple(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=h>>>31^l<<1,vr[e+1]=l>>>31^h<<1}var srt=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),V4r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],mu=new Uint8Array(V4r.map(function(r){return r*2})),vr=new Uint32Array(32),uX=new Uint32Array(32);function ort(r,e){let t=0;for(t=0;t<16;t++)vr[t]=r.h[t],vr[t+16]=srt[t];for(vr[24]=vr[24]^r.t,vr[25]=vr[25]^r.t/4294967296,e&&(vr[28]=~vr[28],vr[29]=~vr[29]),t=0;t<32;t++)uX[t]=irt(r.b,4*t);for(t=0;t<12;t++)xg(0,8,16,24,mu[t*16+0],mu[t*16+1]),xg(2,10,18,26,mu[t*16+2],mu[t*16+3]),xg(4,12,20,28,mu[t*16+4],mu[t*16+5]),xg(6,14,22,30,mu[t*16+6],mu[t*16+7]),xg(0,10,20,30,mu[t*16+8],mu[t*16+9]),xg(2,12,22,24,mu[t*16+10],mu[t*16+11]),xg(4,14,16,26,mu[t*16+12],mu[t*16+13]),xg(6,8,18,28,mu[t*16+14],mu[t*16+15]);for(t=0;t<16;t++)r.h[t]=r.h[t]^vr[t]^vr[t+16]}var _g=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function crt(r,e,t,n){if(r===0||r>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(t&&t.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let a={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:r};_g.fill(0),_g[0]=r,e&&(_g[1]=e.length),_g[2]=1,_g[3]=1,t&&_g.set(t,32),n&&_g.set(n,48);for(let i=0;i<16;i++)a.h[i]=srt[i]^irt(_g,i*4);return e&&(gTe(a,e),a.c=128),a}function gTe(r,e){for(let t=0;t>2]>>8*(t&3);return e}function lrt(r,e,t,n,a){t=t||64,r=Sle.normalizeInput(r),n&&(n=Sle.normalizeInput(n)),a&&(a=Sle.normalizeInput(a));let i=crt(t,e,n,a);return gTe(i,r),urt(i)}function Y4r(r,e,t,n,a){let i=lrt(r,e,t,n,a);return Sle.toHex(i)}drt.exports={blake2b:lrt,blake2bHex:Y4r,blake2bInit:crt,blake2bUpdate:gTe,blake2bFinal:urt}});var wrt=_((UWn,vrt)=>{d();p();var hrt=yTe();function $4r(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function Tg(r,e,t,n,a,i){gn[r]=gn[r]+gn[e]+a,gn[n]=Rle(gn[n]^gn[r],16),gn[t]=gn[t]+gn[n],gn[e]=Rle(gn[e]^gn[t],12),gn[r]=gn[r]+gn[e]+i,gn[n]=Rle(gn[n]^gn[r],8),gn[t]=gn[t]+gn[n],gn[e]=Rle(gn[e]^gn[t],7)}function Rle(r,e){return r>>>e^r<<32-e}var frt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yu=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),gn=new Uint32Array(16),xc=new Uint32Array(16);function mrt(r,e){let t=0;for(t=0;t<8;t++)gn[t]=r.h[t],gn[t+8]=frt[t];for(gn[12]^=r.t,gn[13]^=r.t/4294967296,e&&(gn[14]=~gn[14]),t=0;t<16;t++)xc[t]=$4r(r.b,4*t);for(t=0;t<10;t++)Tg(0,4,8,12,xc[yu[t*16+0]],xc[yu[t*16+1]]),Tg(1,5,9,13,xc[yu[t*16+2]],xc[yu[t*16+3]]),Tg(2,6,10,14,xc[yu[t*16+4]],xc[yu[t*16+5]]),Tg(3,7,11,15,xc[yu[t*16+6]],xc[yu[t*16+7]]),Tg(0,5,10,15,xc[yu[t*16+8]],xc[yu[t*16+9]]),Tg(1,6,11,12,xc[yu[t*16+10]],xc[yu[t*16+11]]),Tg(2,7,8,13,xc[yu[t*16+12]],xc[yu[t*16+13]]),Tg(3,4,9,14,xc[yu[t*16+14]],xc[yu[t*16+15]]);for(t=0;t<8;t++)r.h[t]^=gn[t]^gn[t+8]}function yrt(r,e){if(!(r>0&&r<=32))throw new Error("Incorrect output length, should be in [1, 32]");let t=e?e.length:0;if(e&&!(t>0&&t<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(frt),b:new Uint8Array(64),c:0,t:0,outlen:r};return n.h[0]^=16842752^t<<8^r,t>0&&(bTe(n,e),n.c=64),n}function bTe(r,e){for(let t=0;t>2]>>8*(t&3)&255;return e}function brt(r,e,t){t=t||32,r=hrt.normalizeInput(r);let n=yrt(t,e);return bTe(n,r),grt(n)}function Q4r(r,e,t){let n=brt(r,e,t);return hrt.toHex(n)}vrt.exports={blake2s:brt,blake2sHex:Q4r,blake2sInit:yrt,blake2sUpdate:bTe,blake2sFinal:grt}});var _rt=_((zWn,xrt)=>{d();p();var lX=prt(),dX=wrt();xrt.exports={blake2b:lX.blake2b,blake2bHex:lX.blake2bHex,blake2bInit:lX.blake2bInit,blake2bUpdate:lX.blake2bUpdate,blake2bFinal:lX.blake2bFinal,blake2s:dX.blake2s,blake2sHex:dX.blake2sHex,blake2sInit:dX.blake2sInit,blake2sUpdate:dX.blake2sUpdate,blake2sFinal:dX.blake2sFinal}});var Ert=_((VWn,Irt)=>{"use strict";d();p();var zG=_rt(),J4r=45569,Z4r=45633,X4r={init:zG.blake2bInit,update:zG.blake2bUpdate,digest:zG.blake2bFinal},ekr={init:zG.blake2sInit,update:zG.blake2sUpdate,digest:zG.blake2sFinal},Trt=(r,e)=>async t=>{let n=e.init(r,null);return e.update(n,t),e.digest(n)};Irt.exports=r=>{for(let e=0;e<64;e++)r[J4r+e]=Trt(e+1,X4r);for(let e=0;e<32;e++)r[Z4r+e]=Trt(e+1,ekr)}});var Art=_((QWn,krt)=>{"use strict";d();p();var em=m2e(),Crt=Ztt(),{factory:Mle}=ert(),{fromNumberTo32BitBuf:tkr}=rrt(),{fromString:rkr}=(Jv(),nt(nX)),cp=r=>async e=>{switch(r){case"sha3-224":return new Uint8Array(em.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(em.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(em.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(em.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(em.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(em.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(em.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(em.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(em.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(em.keccak512.arrayBuffer(e));case"murmur3-128":return rkr(Crt.x64.hash128(e),"base16");case"murmur3-32":return tkr(Crt.x86.hash32(e));default:throw new TypeError(`${r} is not a supported algorithm`)}},nkr=r=>r;krt.exports={identity:nkr,sha1:Mle("sha1"),sha2256:Mle("sha2-256"),sha2512:Mle("sha2-512"),dblSha2256:Mle("dbl-sha2-256"),sha3224:cp("sha3-224"),sha3256:cp("sha3-256"),sha3384:cp("sha3-384"),sha3512:cp("sha3-512"),shake128:cp("shake-128"),shake256:cp("shake-256"),keccak224:cp("keccak-224"),keccak256:cp("keccak-256"),keccak384:cp("keccak-384"),keccak512:cp("keccak-512"),murmur3128:cp("murmur3-128"),murmur332:cp("murmur3-32"),addBlake:Ert()}});var wTe={};cr(wTe,{equals:()=>vTe});function vTe(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{d();p()});var pX=_((tUn,Srt)=>{"use strict";d();p();var Prt=Kv(),Ble=oX(),qo=Art(),{equals:akr}=(Nle(),nt(wTe));async function up(r,e,t){let n=await up.digest(r,e,t);return Ble.encode(n,e,t)}up.multihash=Ble;up.digest=async(r,e,t)=>{let a=await up.createHash(e)(r);return t?a.slice(0,t):a};up.createHash=function(r){if(!r)throw Prt(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=Ble.coerceCode(r);if(!up.functions[e])throw Prt(new Error(`multihash function '${r}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return up.functions[e]};up.functions={0:qo.identity,17:qo.sha1,18:qo.sha2256,19:qo.sha2512,20:qo.sha3512,21:qo.sha3384,22:qo.sha3256,23:qo.sha3224,24:qo.shake128,25:qo.shake256,26:qo.keccak224,27:qo.keccak256,28:qo.keccak384,29:qo.keccak512,34:qo.murmur3128,35:qo.murmur332,86:qo.dblSha2256};qo.addBlake(up.functions);up.validate=async(r,e)=>{let t=await up(r,Ble.decode(e).name);return akr(e,t)};Srt.exports=up});var Mrt=_((aUn,Rrt)=>{"use strict";d();p();var ikr=qet().bind({ignoreUndefined:!0}),skr=pX();async function okr(r){let t=(await skr(r,"murmur3-128")).slice(2,10),n=t.length,a=new Uint8Array(n);for(let i=0;i()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:okr,hamtHashCode:34,hamtBucketBits:8};Rrt.exports=function(r={}){return ikr(ckr,r)}});var Brt=_((oUn,Nrt)=>{"use strict";d();p();Nrt.exports=ukr;function ukr(r,e){for(var t=new Array(arguments.length-1),n=0,a=2,i=!0;a{"use strict";d();p();var Dle=Ort;Dle.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)==="=";)++n;return Math.ceil(e.length*3)/4-n};var KG=new Array(64),Lrt=new Array(123);for(Th=0;Th<64;)Lrt[KG[Th]=Th<26?Th+65:Th<52?Th+71:Th<62?Th-4:Th-59|43]=Th++;var Th;Dle.encode=function(e,t,n){for(var a=null,i=[],s=0,o=0,c;t>2],c=(u&3)<<4,o=1;break;case 1:i[s++]=KG[c|u>>4],c=(u&15)<<2,o=2;break;case 2:i[s++]=KG[c|u>>6],i[s++]=KG[u&63],o=0;break}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),s=0)}return o&&(i[s++]=KG[c],i[s++]=61,o===1&&(i[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,i.slice(0,s))),a.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var Drt="invalid encoding";Dle.decode=function(e,t,n){for(var a=n,i=0,s,o=0;o1)break;if((c=Lrt[c])===void 0)throw Error(Drt);switch(i){case 0:s=c,i=1;break;case 1:t[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:t[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:t[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(Drt);return n-a};Dle.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var Wrt=_((hUn,Frt)=>{"use strict";d();p();Frt.exports=Lle;function Lle(){this._listeners={}}Lle.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this};Lle.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],a=0;a{"use strict";d();p();Grt.exports=Urt(Urt);function Urt(r){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),t=new Uint8Array(e.buffer),n=t[3]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3]}function i(c,u,l){e[0]=c,u[l]=t[3],u[l+1]=t[2],u[l+2]=t[1],u[l+3]=t[0]}r.writeFloatLE=n?a:i,r.writeFloatBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],e[0]}function o(c,u){return t[3]=c[u],t[2]=c[u+1],t[1]=c[u+2],t[0]=c[u+3],e[0]}r.readFloatLE=n?s:o,r.readFloatBE=n?o:s}():function(){function e(n,a,i,s){var o=a<0?1:0;if(o&&(a=-a),a===0)n(1/a>0?0:2147483648,i,s);else if(isNaN(a))n(2143289344,i,s);else if(a>34028234663852886e22)n((o<<31|2139095040)>>>0,i,s);else if(a<11754943508222875e-54)n((o<<31|Math.round(a/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-c)*8388608)&8388607;n((o<<31|c+127<<23|u)>>>0,i,s)}}r.writeFloatLE=e.bind(null,Hrt),r.writeFloatBE=e.bind(null,jrt);function t(n,a,i){var s=n(a,i),o=(s>>31)*2+1,c=s>>>23&255,u=s&8388607;return c===255?u?NaN:o*(1/0):c===0?o*1401298464324817e-60*u:o*Math.pow(2,c-150)*(u+8388608)}r.readFloatLE=t.bind(null,zrt),r.readFloatBE=t.bind(null,Krt)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),n=t[7]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3],u[l+4]=t[4],u[l+5]=t[5],u[l+6]=t[6],u[l+7]=t[7]}function i(c,u,l){e[0]=c,u[l]=t[7],u[l+1]=t[6],u[l+2]=t[5],u[l+3]=t[4],u[l+4]=t[3],u[l+5]=t[2],u[l+6]=t[1],u[l+7]=t[0]}r.writeDoubleLE=n?a:i,r.writeDoubleBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],t[4]=c[u+4],t[5]=c[u+5],t[6]=c[u+6],t[7]=c[u+7],e[0]}function o(c,u){return t[7]=c[u],t[6]=c[u+1],t[5]=c[u+2],t[4]=c[u+3],t[3]=c[u+4],t[2]=c[u+5],t[1]=c[u+6],t[0]=c[u+7],e[0]}r.readDoubleLE=n?s:o,r.readDoubleBE=n?o:s}():function(){function e(n,a,i,s,o,c){var u=s<0?1:0;if(u&&(s=-s),s===0)n(0,o,c+a),n(1/s>0?0:2147483648,o,c+i);else if(isNaN(s))n(0,o,c+a),n(2146959360,o,c+i);else if(s>17976931348623157e292)n(0,o,c+a),n((u<<31|2146435072)>>>0,o,c+i);else{var l;if(s<22250738585072014e-324)l=s/5e-324,n(l>>>0,o,c+a),n((u<<31|l/4294967296)>>>0,o,c+i);else{var h=Math.floor(Math.log(s)/Math.LN2);h===1024&&(h=1023),l=s*Math.pow(2,-h),n(l*4503599627370496>>>0,o,c+a),n((u<<31|h+1023<<20|l*1048576&1048575)>>>0,o,c+i)}}}r.writeDoubleLE=e.bind(null,Hrt,0,4),r.writeDoubleBE=e.bind(null,jrt,4,0);function t(n,a,i,s,o){var c=n(s,o+a),u=n(s,o+i),l=(u>>31)*2+1,h=u>>>20&2047,f=4294967296*(u&1048575)+c;return h===2047?f?NaN:l*(1/0):h===0?l*5e-324*f:l*Math.pow(2,h-1075)*(f+4503599627370496)}r.readDoubleLE=t.bind(null,zrt,0,4),r.readDoubleBE=t.bind(null,Krt,4,0)}(),r}function Hrt(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}function jrt(r,e,t){e[t]=r>>>24,e[t+1]=r>>>16&255,e[t+2]=r>>>8&255,e[t+3]=r&255}function zrt(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0}function Krt(r,e){return(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}});var Yrt=_((exports,module)=>{"use strict";d();p();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}});var Qrt=_($rt=>{"use strict";d();p();var xTe=$rt;xTe.length=function(e){for(var t=0,n=0,a=0;a191&&c<224?s[o++]=(c&31)<<6|e[t++]&63:c>239&&c<365?(c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,s[o++]=55296+(c>>10),s[o++]=56320+(c&1023)):s[o++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63,o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};xTe.write=function(e,t,n){for(var a=n,i,s,o=0;o>6|192,t[n++]=i&63|128):(i&64512)===55296&&((s=e.charCodeAt(o+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-a}});var Zrt=_((IUn,Jrt)=>{"use strict";d();p();Jrt.exports=lkr;function lkr(r,e,t){var n=t||8192,a=n>>>1,i=null,s=n;return function(c){if(c<1||c>a)return r(c);s+c>n&&(i=r(n),s=0);var u=e.call(i,s,s+=c);return s&7&&(s=(s|7)+1),u}}});var ent=_((kUn,Xrt)=>{"use strict";d();p();Xrt.exports=Fo;var hX=Eg();function Fo(r,e){this.lo=r>>>0,this.hi=e>>>0}var Xv=Fo.zero=new Fo(0,0);Xv.toNumber=function(){return 0};Xv.zzEncode=Xv.zzDecode=function(){return this};Xv.length=function(){return 1};var dkr=Fo.zeroHash="\0\0\0\0\0\0\0\0";Fo.fromNumber=function(e){if(e===0)return Xv;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new Fo(n,a)};Fo.from=function(e){if(typeof e=="number")return Fo.fromNumber(e);if(hX.isString(e))if(hX.Long)e=hX.Long.fromString(e);else return Fo.fromNumber(parseInt(e,10));return e.low||e.high?new Fo(e.low>>>0,e.high>>>0):Xv};Fo.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};Fo.prototype.toLong=function(e){return hX.Long?new hX.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var Ig=String.prototype.charCodeAt;Fo.fromHash=function(e){return e===dkr?Xv:new Fo((Ig.call(e,0)|Ig.call(e,1)<<8|Ig.call(e,2)<<16|Ig.call(e,3)<<24)>>>0,(Ig.call(e,4)|Ig.call(e,5)<<8|Ig.call(e,6)<<16|Ig.call(e,7)<<24)>>>0)};Fo.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Fo.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};Fo.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};Fo.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var Eg=_(_Te=>{"use strict";d();p();var ut=_Te;ut.asPromise=Brt();ut.base64=qrt();ut.EventEmitter=Wrt();ut.float=Vrt();ut.inquire=Yrt();ut.utf8=Qrt();ut.pool=Zrt();ut.LongBits=ent();ut.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);ut.global=ut.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||_Te;ut.emptyArray=Object.freeze?Object.freeze([]):[];ut.emptyObject=Object.freeze?Object.freeze({}):{};ut.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};ut.isString=function(e){return typeof e=="string"||e instanceof String};ut.isObject=function(e){return e&&typeof e=="object"};ut.isset=ut.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};ut.Buffer=function(){try{var r=ut.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();ut._Buffer_from=null;ut._Buffer_allocUnsafe=null;ut.newBuffer=function(e){return typeof e=="number"?ut.Buffer?ut._Buffer_allocUnsafe(e):new ut.Array(e):ut.Buffer?ut._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};ut.Array=typeof Uint8Array<"u"?Uint8Array:Array;ut.Long=ut.global.dcodeIO&&ut.global.dcodeIO.Long||ut.global.Long||ut.inquire("long");ut.key2Re=/^true|false|0|1$/;ut.key32Re=/^-?(?:0|[1-9][0-9]*)$/;ut.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;ut.longToHash=function(e){return e?ut.LongBits.from(e).toHash():ut.LongBits.zeroHash};ut.longFromHash=function(e,t){var n=ut.LongBits.fromHash(e);return ut.Long?ut.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function tnt(r,e,t){for(var n=Object.keys(e),a=0;a-1;--i)if(t[a[i]]===1&&this[a[i]]!==void 0&&this[a[i]]!==null)return a[i]}};ut.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";d();p();snt.exports=fn;var lp=Eg(),TTe,Ole=lp.LongBits,nnt=lp.base64,ant=lp.utf8;function fX(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function ETe(){}function pkr(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function fn(){this.len=0,this.head=new fX(ETe,0,0),this.tail=this.head,this.states=null}var int=function(){return lp.Buffer?function(){return(fn.create=function(){return new TTe})()}:function(){return new fn}};fn.create=int();fn.alloc=function(e){return new lp.Array(e)};lp.Array!==Array&&(fn.alloc=lp.pool(fn.alloc,lp.Array.prototype.subarray));fn.prototype._push=function(e,t,n){return this.tail=this.tail.next=new fX(e,t,n),this.len+=t,this};function CTe(r,e,t){e[t]=r&255}function hkr(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function kTe(r,e){this.len=r,this.next=void 0,this.val=e}kTe.prototype=Object.create(fX.prototype);kTe.prototype.fn=hkr;fn.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new kTe((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};fn.prototype.int32=function(e){return e<0?this._push(ATe,10,Ole.fromNumber(e)):this.uint32(e)};fn.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function ATe(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}fn.prototype.uint64=function(e){var t=Ole.from(e);return this._push(ATe,t.length(),t)};fn.prototype.int64=fn.prototype.uint64;fn.prototype.sint64=function(e){var t=Ole.from(e).zzEncode();return this._push(ATe,t.length(),t)};fn.prototype.bool=function(e){return this._push(CTe,1,e?1:0)};function ITe(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}fn.prototype.fixed32=function(e){return this._push(ITe,4,e>>>0)};fn.prototype.sfixed32=fn.prototype.fixed32;fn.prototype.fixed64=function(e){var t=Ole.from(e);return this._push(ITe,4,t.lo)._push(ITe,4,t.hi)};fn.prototype.sfixed64=fn.prototype.fixed64;fn.prototype.float=function(e){return this._push(lp.float.writeFloatLE,4,e)};fn.prototype.double=function(e){return this._push(lp.float.writeDoubleLE,8,e)};var fkr=lp.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var a=0;a>>0;if(!t)return this._push(CTe,1,0);if(lp.isString(e)){var n=fn.alloc(t=nnt.length(e));nnt.decode(e,n,0),e=n}return this.uint32(t)._push(fkr,t,e)};fn.prototype.string=function(e){var t=ant.length(e);return t?this.uint32(t)._push(ant.write,t,e):this._push(CTe,1,0)};fn.prototype.fork=function(){return this.states=new pkr(this),this.head=this.tail=new fX(ETe,0,0),this.len=0,this};fn.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new fX(ETe,0,0),this.len=0),this};fn.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};fn.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};fn._configure=function(r){TTe=r,fn.create=int(),TTe._configure()}});var unt=_((LUn,cnt)=>{"use strict";d();p();cnt.exports=tm;var ont=PTe();(tm.prototype=Object.create(ont.prototype)).constructor=tm;var Cg=Eg();function tm(){ont.call(this)}tm._configure=function(){tm.alloc=Cg._Buffer_allocUnsafe,tm.writeBytesBuffer=Cg.Buffer&&Cg.Buffer.prototype instanceof Uint8Array&&Cg.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var a=0;a>>0;return this.uint32(t),t&&this._push(tm.writeBytesBuffer,t,e),this};function mkr(r,e,t){r.length<40?Cg.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}tm.prototype.string=function(e){var t=Cg.Buffer.byteLength(e);return this.uint32(t),t&&this._push(mkr,t,e),this};tm._configure()});var MTe=_((FUn,fnt)=>{"use strict";d();p();fnt.exports=Ts;var rm=Eg(),RTe,pnt=rm.LongBits,ykr=rm.utf8;function Ih(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Ts(r){this.buf=r,this.pos=0,this.len=r.length}var lnt=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Ts(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Ts(e);throw Error("illegal buffer")},hnt=function(){return rm.Buffer?function(t){return(Ts.create=function(a){return rm.Buffer.isBuffer(a)?new RTe(a):lnt(a)})(t)}:lnt};Ts.create=hnt();Ts.prototype._slice=rm.Array.prototype.subarray||rm.Array.prototype.slice;Ts.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Ih(this,10);return e}}();Ts.prototype.int32=function(){return this.uint32()|0};Ts.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function STe(){var r=new pnt(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw Ih(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw Ih(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Ts.prototype.bool=function(){return this.uint32()!==0};function qle(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Ts.prototype.fixed32=function(){if(this.pos+4>this.len)throw Ih(this,4);return qle(this.buf,this.pos+=4)};Ts.prototype.sfixed32=function(){if(this.pos+4>this.len)throw Ih(this,4);return qle(this.buf,this.pos+=4)|0};function dnt(){if(this.pos+8>this.len)throw Ih(this,8);return new pnt(qle(this.buf,this.pos+=4),qle(this.buf,this.pos+=4))}Ts.prototype.float=function(){if(this.pos+4>this.len)throw Ih(this,4);var e=rm.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Ts.prototype.double=function(){if(this.pos+8>this.len)throw Ih(this,4);var e=rm.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Ts.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw Ih(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Ts.prototype.string=function(){var e=this.bytes();return ykr.read(e,0,e.length)};Ts.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw Ih(this,e);this.pos+=e}else do if(this.pos>=this.len)throw Ih(this);while(this.buf[this.pos++]&128);return this};Ts.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Ts._configure=function(r){RTe=r,Ts.create=hnt(),RTe._configure();var e=rm.Long?"toLong":"toNumber";rm.merge(Ts.prototype,{int64:function(){return STe.call(this)[e](!1)},uint64:function(){return STe.call(this)[e](!0)},sint64:function(){return STe.call(this).zzDecode()[e](!1)},fixed64:function(){return dnt.call(this)[e](!0)},sfixed64:function(){return dnt.call(this)[e](!1)}})}});var bnt=_((HUn,gnt)=>{"use strict";d();p();gnt.exports=e2;var ynt=MTe();(e2.prototype=Object.create(ynt.prototype)).constructor=e2;var mnt=Eg();function e2(r){ynt.call(this,r)}e2._configure=function(){mnt.Buffer&&(e2.prototype._slice=mnt.Buffer.prototype.slice)};e2.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};e2._configure()});var wnt=_((KUn,vnt)=>{"use strict";d();p();vnt.exports=mX;var NTe=Eg();(mX.prototype=Object.create(NTe.EventEmitter.prototype)).constructor=mX;function mX(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");NTe.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}mX.prototype.rpcCall=function r(e,t,n,a,i){if(!a)throw TypeError("request must be specified");var s=this;if(!i)return NTe.asPromise(r,s,e,t,n,a);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(c,u){if(c)return s.emit("error",c,e),i(c);if(u===null){s.end(!0);return}if(!(u instanceof n))try{u=n[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(l){return s.emit("error",l,e),i(l)}return s.emit("data",u,e),i(null,u)})}catch(o){s.emit("error",o,e),setTimeout(function(){i(o)},0);return}};mX.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var _nt=_(xnt=>{"use strict";d();p();var gkr=xnt;gkr.Service=wnt()});var Int=_((JUn,Tnt)=>{"use strict";d();p();Tnt.exports={}});var knt=_(Cnt=>{"use strict";d();p();var bl=Cnt;bl.build="minimal";bl.Writer=PTe();bl.BufferWriter=unt();bl.Reader=MTe();bl.BufferReader=bnt();bl.util=Eg();bl.rpc=_nt();bl.roots=Int();bl.configure=Ent;function Ent(){bl.util._configure(),bl.Writer._configure(bl.BufferWriter),bl.Reader._configure(bl.BufferReader)}Ent()});var Fle=_((nHn,Ant)=>{"use strict";d();p();Ant.exports=knt()});var Snt=_((sHn,Pnt)=>{"use strict";d();p();var kg=Fle(),GG=kg.Reader,BTe=kg.Writer,Qt=kg.util,Wo=kg.roots["ipfs-unixfs"]||(kg.roots["ipfs-unixfs"]={});Wo.Data=function(){function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Type=t.int32();break;case 2:i.Data=t.bytes();break;case 3:i.filesize=t.uint64();break;case 4:if(i.blocksizes&&i.blocksizes.length||(i.blocksizes=[]),(s&7)===2)for(var o=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var a=0;a>>0,t.blocksizes[a].high>>>0).toNumber(!0))}if(t.hashType!=null&&(Qt.Long?(n.hashType=Qt.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new Qt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&(Qt.Long?(n.fanout=Qt.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new Qt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=Wo.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var a={};if((n.arrays||n.defaults)&&(a.blocksizes=[]),n.defaults){if(a.Type=n.enums===String?"Raw":0,n.bytes===String?a.Data="":(a.Data=[],n.bytes!==Array&&(a.Data=Qt.newBuffer(a.Data))),Qt.Long){var i=new Qt.Long(0,0,!0);a.filesize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.filesize=n.longs===String?"0":0;if(Qt.Long){var i=new Qt.Long(0,0,!0);a.hashType=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.hashType=n.longs===String?"0":0;if(Qt.Long){var i=new Qt.Long(0,0,!0);a.fanout=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.fanout=n.longs===String?"0":0;a.mode=0,a.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(a.Type=n.enums===String?Wo.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(a.Data=n.bytes===String?Qt.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?a.filesize=n.longs===String?String(t.filesize):t.filesize:a.filesize=n.longs===String?Qt.Long.prototype.toString.call(t.filesize):n.longs===Number?new Qt.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){a.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?a.hashType=n.longs===String?String(t.hashType):t.hashType:a.hashType=n.longs===String?Qt.Long.prototype.toString.call(t.hashType):n.longs===Number?new Qt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?a.fanout=n.longs===String?String(t.fanout):t.fanout:a.fanout=n.longs===String?Qt.Long.prototype.toString.call(t.fanout):n.longs===Number?new Qt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(a.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(a.mtime=Wo.UnixTime.toObject(t.mtime,n)),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,kg.util.toJSONOptions)},r.DataType=function(){var e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r}();Wo.UnixTime=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Seconds=t.int64();break;case 2:i.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!i.hasOwnProperty("Seconds"))throw Qt.ProtocolError("missing required 'Seconds'",{instance:i});return i},r.fromObject=function(t){if(t instanceof Wo.UnixTime)return t;var n=new Wo.UnixTime;return t.Seconds!=null&&(Qt.Long?(n.Seconds=Qt.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new Qt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults){if(Qt.Long){var i=new Qt.Long(0,0,!1);a.Seconds=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Seconds=n.longs===String?"0":0;a.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?a.Seconds=n.longs===String?String(t.Seconds):t.Seconds:a.Seconds=n.longs===String?Qt.Long.prototype.toString.call(t.Seconds):n.longs===Number?new Qt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(a.FractionalNanoseconds=t.FractionalNanoseconds),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,kg.util.toJSONOptions)},r}();Wo.Metadata=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.MimeType=t.string();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof Wo.Metadata)return t;var n=new Wo.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var a={};return n.defaults&&(a.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(a.MimeType=t.MimeType),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,kg.util.toJSONOptions)},r}();Pnt.exports=Wo});var VG=_((uHn,Bnt)=>{"use strict";d();p();var{Data:T0}=Snt(),DTe=Kv(),Rnt=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],bkr=["directory","hamt-sharded-directory"],Mnt=parseInt("0644",8),Nnt=parseInt("0755",8);function Wle(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function LTe(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){let t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw DTe(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var yX=class{static unmarshal(e){let t=T0.decode(e),n=T0.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),a=new yX({type:Rnt[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return a._originalMode=n.mode||0,a}constructor(e={type:"file"}){let{type:t,data:n,blockSizes:a,hashType:i,fanout:s,mtime:o,mode:c}=e;if(t&&!Rnt.includes(t))throw DTe(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=i,this.fanout=s,this.blockSizes=a||[],this._originalMode=0,this.mode=Wle(c),o&&(this.mtime=LTe(o),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?Nnt:Mnt;let t=Wle(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&bkr.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=T0.DataType.Raw;break;case"directory":e=T0.DataType.Directory;break;case"file":e=T0.DataType.File;break;case"metadata":e=T0.DataType.Metadata;break;case"symlink":e=T0.DataType.Symlink;break;case"hamt-sharded-directory":e=T0.DataType.HAMTShard;break;default:throw DTe(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(Wle(this.mode)||0),n===Mnt&&!this.isDirectory()&&(n=void 0),n===Nnt&&this.isDirectory()&&(n=void 0));let a;if(this.mtime!=null){let s=LTe(this.mtime);s&&(a={Seconds:s.secs,FractionalNanoseconds:s.nsecs},a.FractionalNanoseconds===0&&delete a.FractionalNanoseconds)}let i={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:a};return T0.encode(i).finish()}};Bnt.exports={UnixFS:yX,parseMode:Wle,parseMtime:LTe}});var Ont=_((pHn,Lnt)=>{d();p();Lnt.exports=OTe;var Dnt=128,vkr=127,wkr=~vkr,xkr=Math.pow(2,31);function OTe(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw OTe.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=xkr;)e[t++]=r&255|Dnt,r/=128;for(;r&wkr;)e[t++]=r&255|Dnt,r>>>=7;return e[t]=r|0,OTe.bytes=t-n+1,e}});var Wnt=_((mHn,Fnt)=>{d();p();Fnt.exports=qTe;var _kr=128,qnt=127;function qTe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o||a>49)throw qTe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&qnt)<=_kr);return qTe.bytes=i-n,t}});var Hnt=_((bHn,Unt)=>{d();p();var Tkr=Math.pow(2,7),Ikr=Math.pow(2,14),Ekr=Math.pow(2,21),Ckr=Math.pow(2,28),kkr=Math.pow(2,35),Akr=Math.pow(2,42),Pkr=Math.pow(2,49),Skr=Math.pow(2,56),Rkr=Math.pow(2,63);Unt.exports=function(r){return r{d();p();jnt.exports={encode:Ont(),decode:Wnt(),encodingLength:Hnt()}});var WTe=_((IHn,Gnt)=>{"use strict";d();p();var znt=FTe(),{toString:Mkr}=(WG(),nt(Ele)),{fromString:Nkr}=(Jv(),nt(nX));Gnt.exports={numberToUint8Array:Bkr,uint8ArrayToNumber:Knt,varintUint8ArrayEncode:Dkr,varintEncode:Lkr};function Knt(r){return parseInt(Mkr(r,"base16"),16)}function Bkr(r){let e=r.toString(16);return e.length%2===1&&(e="0"+e),Nkr(e,"base16")}function Dkr(r){return Uint8Array.from(znt.encode(Knt(r)))}function Lkr(r){return Uint8Array.from(znt.encode(r))}});var Ynt=_((kHn,Vnt)=>{"use strict";d();p();var Okr=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});Vnt.exports={baseTable:Okr}});var Qnt=_((SHn,$nt)=>{"use strict";d();p();var{baseTable:UTe}=Ynt(),qkr=WTe().varintEncode,HTe={},jTe={},Ule={};for(let r in UTe){let e=r,t=UTe[e];HTe[e]=qkr(t);let n=e.toUpperCase().replace(/-/g,"_");jTe[n]=t,Ule[t]||(Ule[t]=e)}Object.freeze(HTe);Object.freeze(jTe);Object.freeze(Ule);var Fkr=Object.freeze(UTe);$nt.exports={nameToVarint:HTe,constantToCode:jTe,nameToCode:Fkr,codeToName:Ule}});var KTe=_((NHn,iat)=>{"use strict";d();p();var Hle=FTe(),{concat:Wkr}=(Zv(),nt(iX)),Jnt=WTe(),{nameToVarint:jle,constantToCode:Ukr,nameToCode:Znt,codeToName:zTe}=Qnt();function Hkr(r,e){let t;if(r instanceof Uint8Array)t=Jnt.varintUint8ArrayEncode(r);else if(jle[r])t=jle[r];else throw new Error("multicodec not recognized");return Wkr([t,e],t.length+e.length)}function jkr(r){return Hle.decode(r),r.slice(Hle.decode.bytes)}function Xnt(r){let e=Hle.decode(r),t=zTe[e];if(t===void 0)throw new Error(`Code "${e}" not found`);return t}function eat(r){return zTe[r]}function tat(r){let e=Znt[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function rat(r){return Hle.decode(r)}function nat(r){let e=jle[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function aat(r){return Jnt.varintEncode(r)}function zkr(r){return Xnt(r)}function Kkr(r){return eat(r)}function Gkr(r){return tat(r)}function Vkr(r){return rat(r)}function Ykr(r){return nat(r)}function $kr(r){return Array.from(aat(r))}iat.exports={addPrefix:Hkr,rmPrefix:jkr,getNameFromData:Xnt,getNameFromCode:eat,getCodeFromName:tat,getCodeFromData:rat,getVarintFromName:nat,getVarintFromCode:aat,getCodec:zkr,getName:Kkr,getNumber:Gkr,getCode:Vkr,getCodeVarint:Ykr,getVarint:$kr,...Ukr,nameToVarint:jle,nameToCode:Znt,codeToName:zTe}});var oat=_((LHn,sat)=>{"use strict";d();p();var Qkr=oX(),Jkr={checkCIDComponents:function(r){if(r==null)return"null values are not valid CIDs";if(!(r.version===0||r.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof r.codec!="string")return"codec must be string";if(r.version===0){if(r.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(r.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(r.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{Qkr.validate(r.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};sat.exports=Jkr});var YG=_((FHn,lat)=>{"use strict";d();p();var zle=oX(),GTe=L_e(),t2=KTe(),Zkr=oat(),{concat:cat}=(Zv(),nt(iX)),{toString:Xkr}=(WG(),nt(Ele)),{equals:eAr}=(Nle(),nt(wTe)),Kle=t2.nameToCode,tAr=Object.keys(Kle).reduce((r,e)=>(r[Kle[e]]=e,r),{}),uat=Symbol.for("@ipld/js-cid/CID"),dp=class{constructor(e,t,n,a){if(this.version,this.codec,this.multihash,Object.defineProperty(this,uat,{value:!0}),dp.isCID(e)){let i=e;this.version=i.version,this.codec=i.codec,this.multihash=i.multihash,this.multibaseName=i.multibaseName||(i.version===0?"base58btc":"base32");return}if(typeof e=="string"){let i=GTe.isEncoded(e);if(i){let s=GTe.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=t2.getCodec(s.slice(1)),this.multihash=t2.rmPrefix(s.slice(1)),this.multibaseName=i}else this.version=0,this.codec="dag-pb",this.multihash=zle.fromB58String(e),this.multibaseName="base58btc";dp.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let i=parseInt(e[0].toString(),16);if(i===1){let s=e;this.version=i,this.codec=t2.getCodec(s.slice(1)),this.multihash=t2.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";dp.validateCID(this);return}this.version=e,typeof t=="number"&&(t=tAr[t]),this.codec=t,this.multihash=n,this.multibaseName=a||(e===0?"base58btc":"base32"),dp.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let t=t2.getCodeVarint(this.codec);e=cat([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=t2.getCodeVarint(this.codec),t=zle.prefix(this.multihash);return cat([[this.version],e,t],1+e.byteLength+t.byteLength)}get code(){return Kle[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:t}=zle.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(t!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new dp(0,this.codec,this.multihash)}toV1(){return new dp(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let t;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=zle.toB58String(this.multihash)}else if(this.version===1)t=Xkr(GTe.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&eAr(this.multihash,e.multihash)}static validateCID(e){let t=Zkr.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof dp||Boolean(e&&e[uat])}};dp.codecs=Kle;lat.exports=dp});var $G=_((HHn,dat)=>{"use strict";d();p();var rAr=pX(),nAr=YG(),aAr=async(r,e,t)=>{t.codec||(t.codec="dag-pb"),t.cidVersion||(t.cidVersion=0),t.hashAlg||(t.hashAlg="sha2-256"),t.hashAlg!=="sha2-256"&&(t.cidVersion=1);let n=await rAr(r,t.hashAlg),a=new nAr(t.cidVersion,t.codec,n);return t.onlyHash||await e.put(r,{pin:t.pin,preload:t.preload,timeout:t.timeout,cid:a}),a};dat.exports=aAr});var VTe=_((KHn,hat)=>{"use strict";d();p();var r2=Fle(),Gle=r2.Reader,pat=r2.Writer,ss=r2.util,td=r2.roots.default||(r2.roots.default={});td.PBLink=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Hash=t.bytes();break;case 2:i.Name=t.string();break;case 3:i.Tsize=t.uint64();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof td.PBLink)return t;var n=new td.PBLink;return t.Hash!=null&&(typeof t.Hash=="string"?ss.base64.decode(t.Hash,n.Hash=ss.newBuffer(ss.base64.length(t.Hash)),0):t.Hash.length&&(n.Hash=t.Hash)),t.Name!=null&&(n.Name=String(t.Name)),t.Tsize!=null&&(ss.Long?(n.Tsize=ss.Long.fromValue(t.Tsize)).unsigned=!0:typeof t.Tsize=="string"?n.Tsize=parseInt(t.Tsize,10):typeof t.Tsize=="number"?n.Tsize=t.Tsize:typeof t.Tsize=="object"&&(n.Tsize=new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0))),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults)if(n.bytes===String?a.Hash="":(a.Hash=[],n.bytes!==Array&&(a.Hash=ss.newBuffer(a.Hash))),a.Name="",ss.Long){var i=new ss.Long(0,0,!0);a.Tsize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Tsize=n.longs===String?"0":0;return t.Hash!=null&&t.hasOwnProperty("Hash")&&(a.Hash=n.bytes===String?ss.base64.encode(t.Hash,0,t.Hash.length):n.bytes===Array?Array.prototype.slice.call(t.Hash):t.Hash),t.Name!=null&&t.hasOwnProperty("Name")&&(a.Name=t.Name),t.Tsize!=null&&t.hasOwnProperty("Tsize")&&(typeof t.Tsize=="number"?a.Tsize=n.longs===String?String(t.Tsize):t.Tsize:a.Tsize=n.longs===String?ss.Long.prototype.toString.call(t.Tsize):n.longs===Number?new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0):t.Tsize),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,r2.util.toJSONOptions)},r}();td.PBNode=function(){function r(e){if(this.Links=[],e)for(var t=Object.keys(e),n=0;n>>3){case 2:i.Links&&i.Links.length||(i.Links=[]),i.Links.push(td.PBLink.decode(t,t.uint32()));break;case 1:i.Data=t.bytes();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof td.PBNode)return t;var n=new td.PBNode;if(t.Links){if(!Array.isArray(t.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var a=0;a{"use strict";d();p();var{bases:fat}=(dTe(),nt(Utt));function yat(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var mat=yat("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),YTe=yat("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=new Uint8Array(r.length);for(let t=0;t{"use strict";d();p();var sAr=$Te();function oAr(r,e="utf8"){let t=sAr[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}bat.exports=oAr});var n2=_((ejn,vat)=>{"use strict";d();p();var cAr=YG(),uAr=Vle(),QTe=class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=t,this.Hash=new cAr(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=uAr(this.Name),this._nameBuf)}};vat.exports=QTe});var wat=_((JTe,ZTe)=>{d();p();(function(r,e){typeof JTe=="object"&&typeof ZTe<"u"?ZTe.exports=e():typeof define=="function"&&define.amd?define(e):r.stable=e()})(JTe,function(){"use strict";var r=function(n,a){return e(n.slice(),a)};r.inplace=function(n,a){var i=e(n,a);return i!==n&&t(i,null,n.length,n),n};function e(n,a){typeof a!="function"&&(a=function(u,l){return String(u).localeCompare(l)});var i=n.length;if(i<=1)return n;for(var s=new Array(i),o=1;oo&&(h=o),f>o&&(f=o),m=l,y=h;;)if(m{"use strict";d();p();function lAr(r,e){for(let t=0;te[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{"use strict";d();p();var dAr=wat(),pAr=_at(),hAr=(r,e)=>{let t=r.nameAsBuffer,n=e.nameAsBuffer;return pAr(t,n)},fAr=r=>{dAr.inplace(r,hAr)};Tat.exports=fAr});var e6e=_((djn,Iat)=>{"use strict";d();p();var mAr=n2();function yAr(r){return new mAr(r.Name||r.name||"",r.Tsize||r.Size||r.size||0,r.Hash||r.hash||r.multihash||r.cid)}Iat.exports={createDagLinkFromB58EncodedHash:yAr}});var t6e=_((fjn,kat)=>{"use strict";d();p();var gAr=Fle(),{PBLink:bAr}=VTe(),{createDagLinkFromB58EncodedHash:vAr}=e6e(),Eat=r=>{let e={};return r.Data&&r.Data.byteLength>0?e.Data=r.Data:e.Data=null,r.Links&&r.Links.length>0?e.Links=r.Links.map(t=>({Hash:t.Hash.bytes,Name:t.Name,Tsize:t.Tsize})):e.Links=null,e},wAr=r=>Cat(Eat(r)),xAr=(r,e=[])=>{let t={Data:r,Links:e.map(n=>vAr(n))};return Cat(Eat(t))};kat.exports={serializeDAGNode:wAr,serializeDAGNodeLike:xAr};function Cat(r){let e=gAr.Writer.create();if(r.Links!=null)for(let t=0;t{"use strict";d();p();var _Ar=YG(),Aat=KTe(),Pat=pX(),{multihash:Sat}=Pat,Rat=Aat.DAG_PB,Mat=Sat.names["sha2-256"],TAr=async(r,e={})=>{let t={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?Mat:e.hashAlg},n=Sat.codes[t.hashAlg],a=await Pat(r,n),i=Aat.getNameFromCode(Rat);return new _Ar(t.cidVersion,i,a)};Nat.exports={codec:Rat,defaultHashAlg:Mat,cid:TAr}});var Dat=_((wjn,Bat)=>{"use strict";d();p();var IAr=n2(),EAr=r6e(),CAr=async(r,e={})=>{let t=r.serialize(),n=await EAr.cid(t,e);return new IAr(e.name||"",r.size,n)};Bat.exports=CAr});var qat=_((Tjn,Oat)=>{"use strict";d();p();var kAr=XTe(),Lat=n2(),AAr=r=>{if(r instanceof Lat)return r;if(!("cid"in r||"hash"in r||"Hash"in r||"multihash"in r))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new Lat(r.Name||r.name,r.Tsize||r.size,r.Hash||r.multihash||r.hash||r.cid)},PAr=(r,e)=>{let t=AAr(e);r.Links.push(t),kAr(r.Links)};Oat.exports=PAr});var Wat=_((Cjn,Fat)=>{"use strict";d();p();function SAr(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{"use strict";d();p();var RAr=YG(),Uat=Wat(),MAr=(r,e)=>{let t=null;if(typeof e=="string"?t=n=>n.Name===e:e instanceof Uint8Array?t=n=>Uat(n.Hash.bytes,e):RAr.isCID(e)&&(t=n=>Uat(n.Hash.bytes,e.bytes)),t){let n=r.Links,a=0;for(;a{"use strict";d();p();var NAr=$Te();function BAr(r,e="utf8"){let t=NAr[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.encoder.encode(r).substring(1)}zat.exports=BAr});var a6e=_((Djn,Gat)=>{"use strict";d();p();var DAr=XTe(),LAr=n2(),{createDagLinkFromB58EncodedHash:OAr}=e6e(),{serializeDAGNode:qAr}=t6e(),FAr=Dat(),WAr=qat(),UAr=jat(),HAr=Vle(),jAr=Kat(),n6e=class{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=HAr(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let a=t.map(i=>i instanceof LAr?i:OAr(i));DAr(a),this.Data=e,this.Links=a,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),WAr(this,e)}rmLink(e){return this._invalidateCached(),UAr(this,e)}toDAGLink(e){return FAr(this,e)}serialize(){let e=qAr(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((t,n)=>t+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};Gat.exports=n6e});var s6e=_((qjn,$at)=>{"use strict";d();p();var{PBNode:Vat}=VTe(),zAr=n2(),Yat=a6e(),{serializeDAGNode:KAr,serializeDAGNodeLike:GAr}=t6e(),i6e=r6e(),VAr=(r,e)=>i6e.cid(r,e),YAr=r=>r instanceof Yat?KAr(r):GAr(r.Data,r.Links),$Ar=r=>{let e=Vat.decode(r),t=Vat.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=t.Links.map(i=>new zAr(i.Name,i.Tsize,i.Hash)),a=t.Data==null?new Uint8Array(0):t.Data;return new Yat(a,n,r.byteLength)};$at.exports={codec:i6e.codec,defaultHashAlg:i6e.defaultHashAlg,serialize:YAr,deserialize:$Ar,cid:VAr}});var Jat=_(o6e=>{"use strict";d();p();var QAr=YG(),Qat=s6e();o6e.resolve=(r,e="/")=>{let t=Qat.deserialize(r),n=e.split("/").filter(Boolean);for(;n.length;){let a=n.shift();if(t[a]===void 0){for(let i of t.Links)if(i.Name===a)return{value:i.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${a}'`)}if(t=t[a],QAr.isCID(t))return{value:t,remainderPath:n.join("/")}}return{value:t,remainderPath:""}};o6e.tree=function*(r){let e=Qat.deserialize(r);yield"Data",yield"Links";for(let t=0;t{"use strict";d();p();var JAr=Jat(),c6e=s6e(),ZAr=a6e(),XAr=n2(),ePr={DAGNode:ZAr,DAGLink:XAr,resolver:JAr,util:c6e,codec:c6e.codec,defaultHashAlg:c6e.defaultHashAlg};Zat.exports=ePr});var eit=_((Vjn,Xat)=>{"use strict";d();p();var{UnixFS:tPr}=VG(),rPr=$G(),{DAGNode:nPr}=QG(),aPr=async(r,e,t)=>{let n=new tPr({type:"directory",mtime:r.mtime,mode:r.mode}),a=new nPr(n.marshal()).serialize(),i=await rPr(a,e,t),s=r.path;return{cid:i,path:s,unixfs:n,size:a.length}};Xat.exports=aPr});var rit=_((Qjn,tit)=>{"use strict";d();p();var iPr=async r=>{let e=[];for await(let t of r)e.push(t);return e};tit.exports=iPr});var ait=_((Xjn,nit)=>{"use strict";d();p();var sPr=rit();nit.exports=async function(r,e){return e(await sPr(r))}});var oit=_((rzn,sit)=>{"use strict";d();p();var oPr=lle();function cPr(r,e,t){return iit(r,e,t)}async function iit(r,e,t){let n=[];for await(let a of oPr(r,t.maxChildrenPerNode))n.push(await e(a));return n.length>1?iit(n,e,t):n[0]}sit.exports=cPr});var uit=_((izn,cit)=>{"use strict";d();p();var uPr=lle();cit.exports=async function(e,t,n){let a=new u6e(n.layerRepeat),i=0,s=1,o=a;for await(let c of uPr(e,n.maxChildrenPerNode))o.isFull()&&(o!==a&&a.addChild(await o.reduce(t)),i&&i%n.layerRepeat===0&&s++,o=new Yle(s,n.layerRepeat,i),i++),o.append(c);return o&&o!==a&&a.addChild(await o.reduce(t)),a.reduce(t)};var Yle=class{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptha.data).map(a=>this._reduce(a,t)))),t((e.data||[]).concat(n))}_findParent(e,t){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}},u6e=class extends Yle{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var dit=_((czn,lit)=>{"use strict";d();p();var{UnixFS:lPr}=VG(),dPr=$G(),{DAGNode:pPr}=QG();async function*hPr(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let a,i={codec:"dag-pb",cidVersion:t.cidVersion,hashAlg:t.hashAlg,onlyHash:t.onlyHash};return t.rawLeaves?(i.codec="raw",i.cidVersion=1):(a=new lPr({type:t.leafType,data:n,mtime:r.mtime,mode:r.mode}),n=new pPr(a.marshal()).serialize()),{cid:await dPr(n,e,i),unixfs:a,size:n.length}}}lit.exports=hPr});var git=_((dzn,yit)=>{"use strict";d();p();var fPr=Kv(),{UnixFS:pit}=VG(),hit=$G(),{DAGNode:fit,DAGLink:mit}=QG(),mPr=N_e(),yPr=pX().multihash,gPr={flat:ait(),balanced:oit(),trickle:uit()};async function*bPr(r,e,t){let n=-1,a,i;typeof t.bufferImporter=="function"?i=t.bufferImporter:i=dit();for await(let s of mPr(i(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){a=s;continue}else n===1&&a&&(yield a,a=null);yield s}a&&(a.single=!0,yield a)}var vPr=(r,e,t)=>{async function n(a){if(a.length===1&&a[0].single&&t.reduceSingleLeafToSelf){let l=a[0];if(l.cid.codec==="raw"&&(r.mtime!==void 0||r.mode!==void 0)){let{data:h}=await e.get(l.cid,t);l.unixfs=new pit({type:"file",mtime:r.mtime,mode:r.mode,data:h});let f=yPr.decode(l.cid.multihash);h=new fit(l.unixfs.marshal()).serialize(),l.cid=await hit(h,e,{...t,codec:"dag-pb",hashAlg:f.name,cidVersion:t.cidVersion}),l.size=h.length}return{cid:l.cid,path:r.path,unixfs:l.unixfs,size:l.size}}let i=new pit({type:"file",mtime:r.mtime,mode:r.mode}),s=a.filter(l=>l.cid.codec==="raw"&&l.size||l.unixfs&&!l.unixfs.data&&l.unixfs.fileSize()?!0:Boolean(l.unixfs&&l.unixfs.data&&l.unixfs.data.length)).map(l=>l.cid.codec==="raw"?(i.addBlockSize(l.size),new mit("",l.size,l.cid)):(!l.unixfs||!l.unixfs.data?i.addBlockSize(l.unixfs&&l.unixfs.fileSize()||0):i.addBlockSize(l.unixfs.data.length),new mit("",l.size,l.cid))),o=new fit(i.marshal(),s),c=o.serialize();return{cid:await hit(c,e,t),path:r.path,unixfs:i,size:c.length+o.Links.reduce((l,h)=>l+h.Tsize,0)}}return n};function wPr(r,e,t){let n=gPr[t.strategy];if(!n)throw fPr(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(bPr(r,e,t),vPr(r,e,t),t)}yit.exports=wPr});var l6e=_((fzn,vit)=>{"use strict";d();p();var{Buffer:Eh}=lc(),bit=Symbol.for("BufferList");function Za(r){if(!(this instanceof Za))return new Za(r);Za._init.call(this,r)}Za._init=function(e){Object.defineProperty(this,bit,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};Za.prototype._new=function(e){return new Za(e)};Za.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};Za.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};Za.prototype.copy=function(e,t,n,a){if((typeof n!="number"||n<0)&&(n=0),(typeof a!="number"||a>this.length)&&(a=this.length),n>=this.length||a<=0)return e||Eh.alloc(0);let i=!!e,s=this._offset(n),o=a-n,c=o,u=i&&t||0,l=s[1];if(n===0&&a===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Eh.concat(this._bufs,this.length);for(let h=0;hf)this._bufs[h].copy(e,u,l),u+=f;else{this._bufs[h].copy(e,u,l,l+c),u+=f;break}c-=f,l&&(l=0)}return e.length>u?e.slice(0,u):e};Za.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),a=this._offset(t),i=this._bufs.slice(n[0],a[0]+1);return a[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,a[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)};Za.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)};Za.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};Za.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let n=this._offset(e),a=n[0],i=n[1];for(;a=r.length){let c=s.indexOf(r,i);if(c!==-1)return this._reverseOffset([a,c]);i=s.length-r.length+1}else{let c=this._reverseOffset([a,i]);if(this._match(c,r))return c;i++}i=0}return-1};Za.prototype._match=function(r,e){if(this.length-r{d();p();var d6e=class{constructor(e,t=12,n=8*1024,a=32*1024,i=64,s){this.bits=t,this.min=n,this.max=a,this.asModule=e,this.rabin=new e.Rabin(t,n,a,i,s),this.polynomial=s}fingerprint(e){let{__retain:t,__release:n,__allocArray:a,__getInt32Array:i,Int32Array_ID:s,Uint8Array_ID:o}=this.asModule,c=new Int32Array(Math.ceil(e.length/this.min)),u=t(a(s,c)),l=t(a(o,e)),h=this.rabin.fingerprint(l,u),f=i(h);n(l),n(u);let m=f.indexOf(0);return m>=0?f.subarray(0,m):f}};wit.exports=d6e});var kit=_(vX=>{"use strict";d();p();var xPr=typeof BigUint64Array<"u",gX=Symbol(),bX=1024;function _it(r,e){let t=new Uint32Array(r),n=new Uint16Array(r);var a=t[e+-4>>>2]>>>1,i=e>>>1;if(a<=bX)return String.fromCharCode.apply(String,n.subarray(i,i+a));let s=[];do{let o=n[i+bX-1],c=o>=55296&&o<56320?bX-1:bX;s.push(String.fromCharCode.apply(String,n.subarray(i,i+=c))),a-=c}while(a>bX);return s.join("")+String.fromCharCode.apply(String,n.subarray(i,i+a))}function p6e(r){let e={};function t(a,i){return a?_it(a.buffer,i):""}let n=r.env=r.env||{};return n.abort=n.abort||function(i,s,o,c){let u=e.memory||n.memory;throw Error("abort: "+t(u,i)+" at "+t(u,s)+":"+o+":"+c)},n.trace=n.trace||function(i,s){let o=e.memory||n.memory;console.log("trace: "+t(o,i)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function h6e(r,e){let t=e.exports,n=t.memory,a=t.table,i=t.__alloc,s=t.__retain,o=t.__rtti_base||-1;function c(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2]}function u(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2+1]}function l(K){return 31-Math.clz32(K>>>5&31)}function h(K){return 31-Math.clz32(K>>>14&31)}function f(K){let H=K.length,G=i(H<<1,1),Q=new Uint16Array(n.buffer);for(var q=0,T=G>>>1;q>>2]!==1)throw Error("not a string: "+K);return _it(H,K)}r.__getString=m;function y(K,H,G){let Q=n.buffer;if(G)switch(K){case 2:return new Float32Array(Q);case 3:return new Float64Array(Q)}else switch(K){case 0:return new(H?Int8Array:Uint8Array)(Q);case 1:return new(H?Int16Array:Uint16Array)(Q);case 2:return new(H?Int32Array:Uint32Array)(Q);case 3:return new(H?BigInt64Array:BigUint64Array)(Q)}throw Error("unsupported align: "+K)}function I(K,H){let G=c(K);if(!(G&3))throw Error("not an array: "+K+" @ "+G);let Q=l(G),q=H.length,T=i(q<>>2]=s(T),A[M+4>>>2]=T,A[M+8>>>2]=q<>>2]=q);let v=y(Q,G&1024,G&2048);if(G&8192)for(let k=0;k>>Q)+k]=s(H[k]);else v.set(H,T>>>Q);return M}r.__allocArray=I;function C(K){let H=new Uint32Array(n.buffer),G=H[K+-8>>>2],Q=c(G);if(!(Q&1))throw Error("not an array: "+G);let q=l(Q);var T=H[K+4>>>2];let M=Q&2?H[K+12>>>2]:H[T+-4>>>2]>>>q;return y(q,Q&1024,Q&2048).subarray(T>>>=q,T+M)}r.__getArrayView=C;function R(K){let H=C(K),G=H.length,Q=new Array(G);for(let q=0;q>>2];return H.slice(K,K+G)}r.__getArrayBuffer=L;function F(K,H,G){return new K(W(K,H,G))}function W(K,H,G){let Q=n.buffer,q=new Uint32Array(Q),T=q[G+4>>>2];return new K(Q,T,q[T+-4>>>2]>>>H)}r.__getInt8Array=F.bind(null,Int8Array,0),r.__getInt8ArrayView=W.bind(null,Int8Array,0),r.__getUint8Array=F.bind(null,Uint8Array,0),r.__getUint8ArrayView=W.bind(null,Uint8Array,0),r.__getUint8ClampedArray=F.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=W.bind(null,Uint8ClampedArray,0),r.__getInt16Array=F.bind(null,Int16Array,1),r.__getInt16ArrayView=W.bind(null,Int16Array,1),r.__getUint16Array=F.bind(null,Uint16Array,1),r.__getUint16ArrayView=W.bind(null,Uint16Array,1),r.__getInt32Array=F.bind(null,Int32Array,2),r.__getInt32ArrayView=W.bind(null,Int32Array,2),r.__getUint32Array=F.bind(null,Uint32Array,2),r.__getUint32ArrayView=W.bind(null,Uint32Array,2),xPr&&(r.__getInt64Array=F.bind(null,BigInt64Array,3),r.__getInt64ArrayView=W.bind(null,BigInt64Array,3),r.__getUint64Array=F.bind(null,BigUint64Array,3),r.__getUint64ArrayView=W.bind(null,BigUint64Array,3)),r.__getFloat32Array=F.bind(null,Float32Array,2),r.__getFloat32ArrayView=W.bind(null,Float32Array,2),r.__getFloat64Array=F.bind(null,Float64Array,3),r.__getFloat64ArrayView=W.bind(null,Float64Array,3);function V(K,H){let G=new Uint32Array(n.buffer);var Q=G[K+-8>>>2];if(Q<=G[o>>>2])do if(Q==H)return!0;while(Q=u(Q));return!1}return r.__instanceof=V,r.memory=r.memory||n,r.table=r.table||a,Cit(t,r)}function Tit(r){return typeof Response<"u"&&r instanceof Response}async function Iit(r,e){return Tit(r=await r)?Eit(r,e):h6e(p6e(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}vX.instantiate=Iit;function _Pr(r,e){return h6e(p6e(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}vX.instantiateSync=_Pr;async function Eit(r,e){return WebAssembly.instantiateStreaming?h6e(p6e(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):Iit(Tit(r=await r)?r.arrayBuffer():r,e)}vX.instantiateStreaming=Eit;function Cit(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(a){r.__argumentsLength.value=a}:r.__setArgumentsLength||r.__setargc||function(){};for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let i=r[a],s=a.split("."),o=t;for(;s.length>1;){let l=s.shift();Object.prototype.hasOwnProperty.call(o,l)||(o[l]={}),o=o[l]}let c=s[0],u=c.indexOf("#");if(u>=0){let l=c.substring(0,u),h=o[l];if(typeof h>"u"||!h.prototype){let f=function(...m){return f.wrap(f.prototype.constructor(0,...m))};f.prototype={valueOf:function(){return this[gX]}},f.wrap=function(m){return Object.create(f.prototype,{[gX]:{value:m,writable:!1}})},h&&Object.getOwnPropertyNames(h).forEach(m=>Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))),o[l]=f}if(c=c.substring(u+1),o=o[l].prototype,/^(get|set):/.test(c)){if(!Object.prototype.hasOwnProperty.call(o,c=c.substring(4))){let f=r[a.replace("set:","get:")],m=r[a.replace("get:","set:")];Object.defineProperty(o,c,{get:function(){return f(this[gX])},set:function(y){m(this[gX],y)},enumerable:!0})}}else c==="constructor"?(o[c]=(...f)=>(n(f.length),i(...f))).original=i:(o[c]=function(...f){return n(f.length),i(this[gX],...f)}).original=i}else/^(get|set):/.test(c)?Object.prototype.hasOwnProperty.call(o,c=c.substring(4))||Object.defineProperty(o,c,{get:r[a.replace("set:","get:")],set:r[a.replace("get:","set:")],enumerable:!0}):typeof i=="function"&&i!==n?(o[c]=(...l)=>(n(l.length),i(...l))).original=i:o[c]=i}return t}vX.demangle=Cit});var Pit=_((Tzn,Ait)=>{d();p();var{instantiate:TPr}=kit();f6e.supported=typeof WebAssembly<"u";function f6e(r={}){if(!f6e.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return TPr(new Response(new Blob([e],{type:"application/wasm"})),r)}Ait.exports=f6e});var Mit=_((Czn,Rit)=>{d();p();var Sit=xit(),IPr=Pit(),EPr=async(r,e,t,n,a)=>{let i=await IPr();return new Sit(i,r,e,t,n,a)};Rit.exports={Rabin:Sit,create:EPr}});var Dit=_((Pzn,Bit)=>{"use strict";d();p();var CPr=l6e(),{create:kPr}=Mit(),Nit=Kv();Bit.exports=async function*(e,t){let n,a,i;if(t.minChunkSize&&t.maxChunkSize&&t.avgChunkSize)i=t.avgChunkSize,n=t.minChunkSize,a=t.maxChunkSize;else if(t.avgChunkSize)i=t.avgChunkSize,n=i/3,a=i+i/2;else throw Nit(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw Nit(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");a{"use strict";d();p();var m6e=l6e();Lit.exports=async function*(e,t){let n=new m6e,a=0,i=!1,s=t.maxChunkSize;for await(let o of e)for(n.append(o),a+=o.length;a>=s;)if(yield n.slice(0,s),i=!0,s===n.length)n=new m6e,a=0;else{let c=new m6e;c.append(n.shallowSlice(s)),n=c,a-=s}(!i||a)&&(yield n.slice(0,a))}});var Wit=_((Dzn,Fit)=>{"use strict";d();p();var qit=Kv(),PPr=Vle();async function*SPr(r){for await(let e of r){if(e.length===void 0)throw qit(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield PPr(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw qit(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}Fit.exports=SPr});var jit=_((qzn,Hit)=>{"use strict";d();p();var RPr=eit(),MPr=git(),Uit=Kv();function NPr(r){return Symbol.iterator in r}function BPr(r){return Symbol.asyncIterator in r}function DPr(r){try{if(r instanceof Uint8Array)return async function*(){yield r}();if(NPr(r))return async function*(){yield*r}();if(BPr(r))return r}catch{throw Uit(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw Uit(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*LPr(r,e,t){for await(let n of r)if(n.path&&(n.path.substring(0,2)==="./"&&(t.wrapWithDirectory=!0),n.path=n.path.split("/").filter(a=>a&&a!==".").join("/")),n.content){let a;typeof t.chunker=="function"?a=t.chunker:t.chunker==="rabin"?a=Dit():a=Oit();let i;typeof t.chunkValidator=="function"?i=t.chunkValidator:i=Wit();let s={path:n.path,mtime:n.mtime,mode:n.mode,content:a(i(DPr(n.content),t),t)};yield()=>MPr(s,e,t)}else if(n.path){let a={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>RPr(a,e,t)}else throw new Error("Import candidate must have content or path or both")}Hit.exports=LPr});var $le=_((Uzn,zit)=>{"use strict";d();p();var y6e=class{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};zit.exports=y6e});var b6e=_((zzn,Git)=>{"use strict";d();p();var{DAGLink:OPr,DAGNode:qPr}=QG(),{UnixFS:FPr}=VG(),Kit=$le(),WPr=$G(),g6e=class extends Kit{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let t=0;tu+l.Tsize,0);this.cid=o,this.size=c,yield{cid:o,unixfs:a,path:this.path,size:c}}};Git.exports=g6e});var $it=_((Yzn,Yit)=>{"use strict";d();p();Yit.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let a=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):a=!0,this._setInternalPos(n,e,t,a),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;let a=this._bitArrays[n],i=e-n*7;if(!((a&1<0))return-1;let o=this._bitArrays.slice(0,n).reduce(UPr,0),c=~(4294967295<=t)i.push(s);else if(i[0][0]<=t)i.unshift(s);else{let o=Math.round(i.length/2);this._data=i.slice(0,o).concat(s).concat(i.slice(o))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(HPr),this._changedData=!1}bitField(){let e=[],t=8,n=0,a=0,i,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(i=s.shift(),n=7);let c=Math.min(n,t),u=~(255<>>c,n-=c,t-=c,(!t||!n&&!s.length)&&(e.push(a),a=0,t=8)}for(var o=e.length-1;o>0&&e[o]===0;o--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(jPr)}};function UPr(r,e){return r+Vit(e)}function Vit(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function HPr(r,e){return r[0]-e[0]}function jPr(r){return r[1]}});var Zit=_((Jzn,Jit)=>{"use strict";d();p();var zPr=$it(),{fromString:KPr}=(Jv(),nt(nX)),pp=class{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new zPr,this.key=null}async put(e,t){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){let t=await this._findChild(e);if(t)return t.value}async del(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof pp?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let t of e)t instanceof pp?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){let n=[];return t(this._children.reduce((a,i,s)=>(i&&(i instanceof pp?a.push(i.serialize(e,t)):a.push(e(i,s))),a),n))}asyncTransform(e,t){return Qit(this,e,t)}toJSON(){return this.serialize(VPr,YPr)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof pp)&&n&&n.key===e)return n}async _findPlace(e){let t=this._options.hash(typeof e=="string"?KPr(e):e),n=await t.take(this._options.bits),a=this._children.get(n);return a instanceof pp?a._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:a}}async _findNewBucketAndPos(e){let t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){let n=new pp(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);let a=await n._findPlace(t.existingChild.hash);return a.bucket._putAt(a,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(GPr);if(e&&!(e instanceof pp)){let t=e.hash;t.untake(this._options.bits);let n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function GPr(r){return Boolean(r)}function VPr(r,e){return r.key}function YPr(r){return r}async function Qit(r,e,t){let n=[];for(let a of r._children.compactArray())if(a instanceof pp)await Qit(a,e,t);else{let i=await e(a);n.push({bitField:r._children.bitField(),children:i})}return t(n)}Jit.exports=pp});var est=_((tKn,Xit)=>{"use strict";d();p();var $Pr=[255,254,252,248,240,224,192,128],QPr=[1,3,7,15,31,63,127,255];Xit.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){let a=this._value[this._currentBytePos],i=this._currentBitPos+1,s=Math.min(i,t),o=JPr(a,i-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function JPr(r,e,t){let n=ZPr(e,t);return(r&n)>>>e}function ZPr(r,e){return $Pr[r]&QPr[Math.min(e+r-1,7)]}});var tst=_((aKn,v6e)=>{"use strict";d();p();var XPr=est(),{concat:eSr}=(Zv(),nt(iX));function tSr(r){function e(t){return t instanceof wX?t:new wX(t,r)}return e}var wX=class{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){let a=this._buffers[this._currentBufferIndex],i=Math.min(a.availableBits(),t),s=a.take(i);n=(n<0;){let n=this._buffers[this._currentBufferIndex],a=Math.min(n.totalBits()-n.availableBits(),t);n.untake(a),t-=a,this._availableBits+=a,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?eSr([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new XPr(t);this._buffers.push(n),this._availableBits+=n.availableBits()}};v6e.exports=tSr;v6e.exports.InfiniteHash=wX});var ast=_((oKn,nst)=>{"use strict";d();p();var rst=Zit(),rSr=tst();function nSr(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");let e={bits:r.bits||8,hash:rSr(r.hashFn)};return new rst(e)}nst.exports={createHAMT:nSr,Bucket:rst}});var ost=_((lKn,sst)=>{"use strict";d();p();var{DAGLink:w6e,DAGNode:aSr}=QG(),{UnixFS:iSr}=VG(),sSr=$le(),oSr=$G(),{createHAMT:cSr,Bucket:uSr}=ast(),x6e=class extends sSr{constructor(e,t){super(e,t),this._bucket=cSr({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(let t of ist(this._bucket,e,this,this.options))yield{...t,path:this.path}}};sst.exports=x6e;async function*ist(r,e,t,n){let a=r._children,i=[],s=0;for(let m=0;m{"use strict";d();p();var lSr=ost(),dSr=b6e();cst.exports=async function r(e,t,n,a){let i=t;t instanceof dSr&&t.directChildrenCount()>=n&&(i=await pSr(t,a));let s=i.parent;if(s){if(i!==t){if(e&&(e.parent=i),!i.parentKey)throw new Error("No parent key found");await s.put(i.parentKey,i)}return r(i,s,n,a)}return i};async function pSr(r,e){let t=new lSr({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(let{key:n,child:a}of r.eachChildSeries())await t.put(n,a);return t}});var dst=_((yKn,lst)=>{"use strict";d();p();var hSr=(r="")=>(r.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);lst.exports=hSr});var yst=_((vKn,mst)=>{"use strict";d();p();var hst=b6e(),fSr=ust(),fst=$le(),mSr=dst();async function ySr(r,e,t){let n=mSr(r.path||""),a=n.length-1,i=e,s="";for(let o=0;o{"use strict";d();p();var bSr=N_e(),vSr=Mrt();async function*wSr(r,e,t={}){let n=vSr(t),a;typeof t.dagBuilder=="function"?a=t.dagBuilder:a=jit();let i;typeof t.treeBuilder=="function"?i=t.treeBuilder:i=yst();let s;Symbol.asyncIterator in r||Symbol.iterator in r?s=r:s=[r];for await(let o of i(bSr(a(s,e,n),n.fileImportConcurrency),e,n))yield{cid:o.cid,path:o.path,unixfs:o.unixfs,size:o.size}}gst.exports={importer:wSr}});var T6e=_((EKn,bst)=>{d();p();bst.exports=typeof self=="object"?self.FormData:window.FormData});var Ast=_(Ga=>{"use strict";d();p();Object.defineProperty(Ga,"__esModule",{value:!0});var xSr=tn(),_Sr=_6e(),TSr=T6e(),ISr=Fr();function vst(r){return r&&r.__esModule?r:{default:r}}var Qle=vst(xSr),ESr=vst(TSr);function CSr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function kSr(r){var e=CSr(r,"string");return typeof e=="symbol"?e:String(e)}function a2(r,e,t){return e=kSr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var JG={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},wst="https://upload.nftlabs.co",I6e="https://api.pinata.cloud/pinning/pinFileToIPFS";function xst(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function _st(r){let e={...r,...JG};for(let t of Object.keys(JG))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...JG[t]]}return e}function E6e(){return typeof window<"u"}function ZG(r){return global.File&&r instanceof File}function I0(r){return global.Buffer&&r instanceof b.Buffer}function XG(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||I0(r.data)))}function eV(r){return ZG(r)||I0(r)||XG(r)}function Tst(r,e){if(ZG(r)&&ZG(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(I0(r)&&I0(e))return r.equals(e);if(XG(r)&&XG(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(I0(r.data)&&I0(e.data))return r.data.equals(e.data)}}return!1}function Ist(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function rde(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function Jle(r,e){return typeof r=="string"?Ist(r,e):typeof r=="object"?!r||eV(r)?r:Array.isArray(r)?r.map(t=>Jle(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,Jle(a,e)]})):r}function xX(r,e){return typeof r=="string"?rde(r,e):typeof r=="object"?!r||eV(r)?r:Array.isArray(r)?r.map(t=>xX(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,xX(a,e)]})):r}function Zle(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(eV(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>Zle(t,e)):Object.keys(r).map(t=>Zle(r[t],e))}return e}function Xle(r,e){if(eV(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>Xle(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,Xle(a,e)]}))):r}async function Est(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(XG(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Cst(a,t,n)}async function Cst(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of _Sr.importer(r,a,n))i=s;return`${i}`}async function kst(r){return(await Qle.default(`${JG["ipfs://"][0]}${r}`,{method:"HEAD",headers:{"x-skip-origin":"true"}})).ok}var ede=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=rde(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await Qle.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},tde=class{constructor(e){a2(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new ESr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Est(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await kst(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return E6e()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await Qle.default(`${wst}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else XG(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Tst(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),E6e()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",I6e),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await Qle.default(I6e,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},C6e=class{constructor(e){a2(this,"uploader",void 0),a2(this,"downloader",void 0),a2(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new tde,this.downloader=e?.downloader||new ede,this.gatewayUrls=_st(xst(e?.gatewayUrls))}resolveScheme(e){return rde(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return xX(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>eV(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=Jle(n,this.gatewayUrls);let a=Zle(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=Xle(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=xX(n,this.gatewayUrls)),n}},k6e=class{constructor(e){a2(this,"gatewayUrls",JG),a2(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},A6e=class{constructor(e){a2(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=ISr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(ZG(s))o=await s.text();else if(I0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=I0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Ga.DEFAULT_GATEWAY_URLS=JG;Ga.IpfsUploader=tde;Ga.MockDownloader=k6e;Ga.MockUploader=A6e;Ga.PINATA_IPFS_URL=I6e;Ga.StorageDownloader=ede;Ga.TW_IPFS_SERVER_URL=wst;Ga.ThirdwebStorage=C6e;Ga.extractObjectFiles=Zle;Ga.getCID=Cst;Ga.getCIDForUpload=Est;Ga.isBrowser=E6e;Ga.isBufferInstance=I0;Ga.isBufferOrStringWithName=XG;Ga.isFileBufferOrStringEqual=Tst;Ga.isFileInstance=ZG;Ga.isFileOrBuffer=eV;Ga.isUploaded=kst;Ga.parseGatewayUrls=xst;Ga.prepareGatewayUrls=_st;Ga.replaceGatewayUrlWithScheme=Ist;Ga.replaceObjectFilesWithUris=Xle;Ga.replaceObjectGatewayUrlsWithSchemes=Jle;Ga.replaceObjectSchemesWithGatewayUrls=xX;Ga.replaceSchemeWithGatewayUrl=rde});var qst=_(Va=>{"use strict";d();p();Object.defineProperty(Va,"__esModule",{value:!0});var ASr=tn(),PSr=_6e(),SSr=T6e(),RSr=Fr();function Pst(r){return r&&r.__esModule?r:{default:r}}var nde=Pst(ASr),MSr=Pst(SSr);function NSr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function BSr(r){var e=NSr(r,"string");return typeof e=="symbol"?e:String(e)}function i2(r,e,t){return e=BSr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var tV={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},Sst="https://upload.nftlabs.co",P6e="https://api.pinata.cloud/pinning/pinFileToIPFS";function Rst(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Mst(r){let e={...r,...tV};for(let t of Object.keys(tV))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...tV[t]]}return e}function S6e(){return typeof window<"u"}function rV(r){return global.File&&r instanceof File}function E0(r){return global.Buffer&&r instanceof b.Buffer}function nV(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||E0(r.data)))}function aV(r){return rV(r)||E0(r)||nV(r)}function Nst(r,e){if(rV(r)&&rV(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(E0(r)&&E0(e))return r.equals(e);if(nV(r)&&nV(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(E0(r.data)&&E0(e.data))return r.data.equals(e.data)}}return!1}function Bst(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function ude(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function ade(r,e){return typeof r=="string"?Bst(r,e):typeof r=="object"?!r||aV(r)?r:Array.isArray(r)?r.map(t=>ade(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,ade(a,e)]})):r}function _X(r,e){return typeof r=="string"?ude(r,e):typeof r=="object"?!r||aV(r)?r:Array.isArray(r)?r.map(t=>_X(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,_X(a,e)]})):r}function ide(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(aV(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>ide(t,e)):Object.keys(r).map(t=>ide(r[t],e))}return e}function sde(r,e){if(aV(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>sde(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,sde(a,e)]}))):r}async function Dst(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(nV(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Lst(a,t,n)}async function Lst(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of PSr.importer(r,a,n))i=s;return`${i}`}async function Ost(r){return(await nde.default(`${tV["ipfs://"][0]}${r}`,{method:"HEAD",headers:{"x-skip-origin":"true"}})).ok}var ode=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=ude(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await nde.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},cde=class{constructor(e){i2(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new MSr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Dst(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await Ost(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return S6e()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await nde.default(`${Sst}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.NODE_ENV==="test"||!!g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else nV(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Nst(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),S6e()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",P6e),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await nde.default(P6e,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},R6e=class{constructor(e){i2(this,"uploader",void 0),i2(this,"downloader",void 0),i2(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new cde,this.downloader=e?.downloader||new ode,this.gatewayUrls=Mst(Rst(e?.gatewayUrls))}resolveScheme(e){return ude(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return _X(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>aV(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=ade(n,this.gatewayUrls);let a=ide(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=sde(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=_X(n,this.gatewayUrls)),n}},M6e=class{constructor(e){i2(this,"gatewayUrls",tV),i2(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},N6e=class{constructor(e){i2(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=RSr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(rV(s))o=await s.text();else if(E0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=E0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Va.DEFAULT_GATEWAY_URLS=tV;Va.IpfsUploader=cde;Va.MockDownloader=M6e;Va.MockUploader=N6e;Va.PINATA_IPFS_URL=P6e;Va.StorageDownloader=ode;Va.TW_IPFS_SERVER_URL=Sst;Va.ThirdwebStorage=R6e;Va.extractObjectFiles=ide;Va.getCID=Lst;Va.getCIDForUpload=Dst;Va.isBrowser=S6e;Va.isBufferInstance=E0;Va.isBufferOrStringWithName=nV;Va.isFileBufferOrStringEqual=Nst;Va.isFileInstance=rV;Va.isFileOrBuffer=aV;Va.isUploaded=Ost;Va.parseGatewayUrls=Rst;Va.prepareGatewayUrls=Mst;Va.replaceGatewayUrlWithScheme=Bst;Va.replaceObjectFilesWithUris=sde;Va.replaceObjectGatewayUrlsWithSchemes=ade;Va.replaceObjectSchemesWithGatewayUrls=_X;Va.replaceSchemeWithGatewayUrl=ude});var bn=_((BKn,B6e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?B6e.exports=Ast():B6e.exports=qst()});var Gr=_((OKn,Fst)=>{"use strict";d();p();var DSr=g.env.NODE_ENV==="production",D6e="Invariant failed";function LSr(r,e){if(!r){if(DSr)throw new Error(D6e);var t=typeof e=="function"?e():e,n=t?"".concat(D6e,": ").concat(t):D6e;throw new Error(n)}}Fst.exports=LSr});var ma=_((WKn,OSr)=>{OSr.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var Ust=_((UKn,Wst)=>{d();p();Wst.exports=function(e){for(var t=new b.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var rn=_((lde,Hst)=>{d();p();(function(r,e){typeof lde=="object"?Hst.exports=lde=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(lde,function(){var r=r||function(e,t){var n=Object.create||function(){function I(){}return function(C){var R;return I.prototype=C,R=new I,I.prototype=null,R}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(I){var C=n(this);return I&&C.mixIn(I),(!C.hasOwnProperty("init")||this.init===C.init)&&(C.init=function(){C.$super.init.apply(this,arguments)}),C.init.prototype=C,C.$super=this,C},create:function(){var I=this.extend();return I.init.apply(I,arguments),I},init:function(){},mixIn:function(I){for(var C in I)I.hasOwnProperty(C)&&(this[C]=I[C]);I.hasOwnProperty("toString")&&(this.toString=I.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=s.extend({init:function(I,C){I=this.words=I||[],C!=t?this.sigBytes=C:this.sigBytes=I.length*4},toString:function(I){return(I||u).stringify(this)},concat:function(I){var C=this.words,R=I.words,L=this.sigBytes,F=I.sigBytes;if(this.clamp(),L%4)for(var W=0;W>>2]>>>24-W%4*8&255;C[L+W>>>2]|=V<<24-(L+W)%4*8}else for(var W=0;W>>2]=R[W>>>2];return this.sigBytes+=F,this},clamp:function(){var I=this.words,C=this.sigBytes;I[C>>>2]&=4294967295<<32-C%4*8,I.length=e.ceil(C/4)},clone:function(){var I=s.clone.call(this);return I.words=this.words.slice(0),I},random:function(I){for(var C=[],R=function(K){var K=K,H=987654321,G=4294967295;return function(){H=36969*(H&65535)+(H>>16)&G,K=18e3*(K&65535)+(K>>16)&G;var Q=(H<<16)+K&G;return Q/=4294967296,Q+=.5,Q*(e.random()>.5?1:-1)}},L=0,F;L>>2]>>>24-F%4*8&255;L.push((W>>>4).toString(16)),L.push((W&15).toString(16))}return L.join("")},parse:function(I){for(var C=I.length,R=[],L=0;L>>3]|=parseInt(I.substr(L,2),16)<<24-L%8*4;return new o.init(R,C/2)}},l=c.Latin1={stringify:function(I){for(var C=I.words,R=I.sigBytes,L=[],F=0;F>>2]>>>24-F%4*8&255;L.push(String.fromCharCode(W))}return L.join("")},parse:function(I){for(var C=I.length,R=[],L=0;L>>2]|=(I.charCodeAt(L)&255)<<24-L%4*8;return new o.init(R,C)}},h=c.Utf8={stringify:function(I){try{return decodeURIComponent(escape(l.stringify(I)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(I){return l.parse(unescape(encodeURIComponent(I)))}},f=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(I){typeof I=="string"&&(I=h.parse(I)),this._data.concat(I),this._nDataBytes+=I.sigBytes},_process:function(I){var C=this._data,R=C.words,L=C.sigBytes,F=this.blockSize,W=F*4,V=L/W;I?V=e.ceil(V):V=e.max((V|0)-this._minBufferSize,0);var K=V*F,H=e.min(K*4,L);if(K){for(var G=0;G{d();p();(function(r,e){typeof dde=="object"?jst.exports=dde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(dde,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function h(I){for(var C=e.sqrt(I),R=2;R<=C;R++)if(!(I%R))return!1;return!0}function f(I){return(I-(I|0))*4294967296|0}for(var m=2,y=0;y<64;)h(m)&&(y<8&&(o[y]=f(e.pow(m,1/2))),c[y]=f(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(h,f){for(var m=this._hash.words,y=m[0],I=m[1],C=m[2],R=m[3],L=m[4],F=m[5],W=m[6],V=m[7],K=0;K<64;K++){if(K<16)u[K]=h[f+K]|0;else{var H=u[K-15],G=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,Q=u[K-2],q=(Q<<15|Q>>>17)^(Q<<13|Q>>>19)^Q>>>10;u[K]=G+u[K-7]+q+u[K-16]}var T=L&F^~L&W,M=y&I^y&C^I&C,A=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),v=(L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25),k=V+v+T+c[K]+u[K],O=A+M;V=W,W=F,F=L,L=R+k|0,R=C,C=I,I=y,y=k+O|0}m[0]=m[0]+y|0,m[1]=m[1]+I|0,m[2]=m[2]+C|0,m[3]=m[3]+R|0,m[4]=m[4]+L|0,m[5]=m[5]+F|0,m[6]=m[6]+W|0,m[7]=m[7]+V|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,y=h.sigBytes*8;return f[y>>>5]|=128<<24-y%32,f[(y+64>>>9<<4)+14]=e.floor(m/4294967296),f[(y+64>>>9<<4)+15]=m,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var Kst=_((L6e,zst)=>{d();p();(function(r,e){typeof L6e=="object"?zst.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(L6e,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var o in a)!a.hasOwnProperty(o)||i&&typeof a[o]=="function"||s.push(o);return s}function t(a,i,s,o,c,u,l){var h="",f=0,m,y,I=o.slice(0);if(I.push([i,s])&&o.length>0&&(o.forEach(function(R,L){L>0&&(h+=(R[1]?" ":"\u2502")+" "),!y&&R[0]===i&&(y=!0)}),h+=r(a,s)+a,c&&(typeof i!="object"||i instanceof Date)&&(h+=": "+i),y&&(h+=" (circular ref.)"),l(h)),!y&&typeof i=="object"){var C=e(i,u);C.forEach(function(R){m=++f===C.length,t(R,i[R],m,I,c,u,l)})}}var n={};return n.asLines=function(a,i,s,o){var c=typeof s!="function"?s:!1;t(".",a,!1,[],i,c,o||s)},n.asTree=function(a,i,s){var o="";return t(".",a,!1,[],i,s,function(c){o+=c+` +`}),o},n})});var IX=_((pde,Gst)=>{d();p();(function(r,e){typeof pde=="object"?Gst.exports=pde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(pde,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,h=[],f=0;f{d();p();(function(r,e){typeof hde=="object"?Vst.exports=hde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(hde,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var Qst=_((fde,$st)=>{d();p();(function(r,e){typeof fde=="object"?$st.exports=fde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(fde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535;l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535);l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var s2=_((mde,Jst)=>{d();p();(function(r,e){typeof mde=="object"?Jst.exports=mde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(mde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,y=c[f+1>>>2]>>>24-(f+1)%4*8&255,I=c[f+2>>>2]>>>24-(f+2)%4*8&255,C=m<<16|y<<8|I,R=0;R<4&&f+R*.75>>6*(3-R)&63));var L=l.charAt(64);if(L)for(;h.length%4;)h.push(L);return h.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var h=0;h>>6-f%4*2;l[h>>>2]|=(m|y)<<24-h%4*8,h++}return n.create(l,h)}}(),r.enc.Base64})});var o2=_((yde,Zst)=>{d();p();(function(r,e){typeof yde=="object"?Zst.exports=yde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(yde,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var I=0;I<16;I++){var C=y+I,R=m[C];m[C]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var L=this._hash.words,F=m[y+0],W=m[y+1],V=m[y+2],K=m[y+3],H=m[y+4],G=m[y+5],Q=m[y+6],q=m[y+7],T=m[y+8],M=m[y+9],A=m[y+10],v=m[y+11],k=m[y+12],O=m[y+13],D=m[y+14],B=m[y+15],x=L[0],N=L[1],U=L[2],E=L[3];x=u(x,N,U,E,F,7,o[0]),E=u(E,x,N,U,W,12,o[1]),U=u(U,E,x,N,V,17,o[2]),N=u(N,U,E,x,K,22,o[3]),x=u(x,N,U,E,H,7,o[4]),E=u(E,x,N,U,G,12,o[5]),U=u(U,E,x,N,Q,17,o[6]),N=u(N,U,E,x,q,22,o[7]),x=u(x,N,U,E,T,7,o[8]),E=u(E,x,N,U,M,12,o[9]),U=u(U,E,x,N,A,17,o[10]),N=u(N,U,E,x,v,22,o[11]),x=u(x,N,U,E,k,7,o[12]),E=u(E,x,N,U,O,12,o[13]),U=u(U,E,x,N,D,17,o[14]),N=u(N,U,E,x,B,22,o[15]),x=l(x,N,U,E,W,5,o[16]),E=l(E,x,N,U,Q,9,o[17]),U=l(U,E,x,N,v,14,o[18]),N=l(N,U,E,x,F,20,o[19]),x=l(x,N,U,E,G,5,o[20]),E=l(E,x,N,U,A,9,o[21]),U=l(U,E,x,N,B,14,o[22]),N=l(N,U,E,x,H,20,o[23]),x=l(x,N,U,E,M,5,o[24]),E=l(E,x,N,U,D,9,o[25]),U=l(U,E,x,N,K,14,o[26]),N=l(N,U,E,x,T,20,o[27]),x=l(x,N,U,E,O,5,o[28]),E=l(E,x,N,U,V,9,o[29]),U=l(U,E,x,N,q,14,o[30]),N=l(N,U,E,x,k,20,o[31]),x=h(x,N,U,E,G,4,o[32]),E=h(E,x,N,U,T,11,o[33]),U=h(U,E,x,N,v,16,o[34]),N=h(N,U,E,x,D,23,o[35]),x=h(x,N,U,E,W,4,o[36]),E=h(E,x,N,U,H,11,o[37]),U=h(U,E,x,N,q,16,o[38]),N=h(N,U,E,x,A,23,o[39]),x=h(x,N,U,E,O,4,o[40]),E=h(E,x,N,U,F,11,o[41]),U=h(U,E,x,N,K,16,o[42]),N=h(N,U,E,x,Q,23,o[43]),x=h(x,N,U,E,M,4,o[44]),E=h(E,x,N,U,k,11,o[45]),U=h(U,E,x,N,B,16,o[46]),N=h(N,U,E,x,V,23,o[47]),x=f(x,N,U,E,F,6,o[48]),E=f(E,x,N,U,q,10,o[49]),U=f(U,E,x,N,D,15,o[50]),N=f(N,U,E,x,G,21,o[51]),x=f(x,N,U,E,k,6,o[52]),E=f(E,x,N,U,K,10,o[53]),U=f(U,E,x,N,A,15,o[54]),N=f(N,U,E,x,W,21,o[55]),x=f(x,N,U,E,T,6,o[56]),E=f(E,x,N,U,B,10,o[57]),U=f(U,E,x,N,Q,15,o[58]),N=f(N,U,E,x,O,21,o[59]),x=f(x,N,U,E,H,6,o[60]),E=f(E,x,N,U,v,10,o[61]),U=f(U,E,x,N,V,15,o[62]),N=f(N,U,E,x,M,21,o[63]),L[0]=L[0]+x|0,L[1]=L[1]+N|0,L[2]=L[2]+U|0,L[3]=L[3]+E|0},_doFinalize:function(){var m=this._data,y=m.words,I=this._nDataBytes*8,C=m.sigBytes*8;y[C>>>5]|=128<<24-C%32;var R=e.floor(I/4294967296),L=I;y[(C+64>>>9<<4)+15]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,y[(C+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var F=this._hash,W=F.words,V=0;V<4;V++){var K=W[V];W[V]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return F},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,I,C,R,L,F){var W=m+(y&I|~y&C)+R+F;return(W<>>32-L)+y}function l(m,y,I,C,R,L,F){var W=m+(y&C|I&~C)+R+F;return(W<>>32-L)+y}function h(m,y,I,C,R,L,F){var W=m+(y^I^C)+R+F;return(W<>>32-L)+y}function f(m,y,I,C,R,L,F){var W=m+(I^(y|~C))+R+F;return(W<>>32-L)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var bde=_((gde,Xst)=>{d();p();(function(r,e){typeof gde=="object"?Xst.exports=gde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(gde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,h=l[0],f=l[1],m=l[2],y=l[3],I=l[4],C=0;C<80;C++){if(C<16)s[C]=c[u+C]|0;else{var R=s[C-3]^s[C-8]^s[C-14]^s[C-16];s[C]=R<<1|R>>>31}var L=(h<<5|h>>>27)+I+s[C];C<20?L+=(f&m|~f&y)+1518500249:C<40?L+=(f^m^y)+1859775393:C<60?L+=(f&m|f&y|m&y)-1894007588:L+=(f^m^y)-899497514,I=y,y=m,m=f<<30|f>>>2,f=h,h=L}l[0]=l[0]+h|0,l[1]=l[1]+f|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+I|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(h+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var tot=_((vde,eot)=>{d();p();(function(r,e,t){typeof vde=="object"?eot.exports=vde=e(rn(),TX()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(vde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var O6e=_((wde,rot)=>{d();p();(function(r,e,t){typeof wde=="object"?rot.exports=wde=e(rn(),IX()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(wde,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var f=0;f<80;f++)l[f]=c()})();var h=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,m){for(var y=this._hash.words,I=y[0],C=y[1],R=y[2],L=y[3],F=y[4],W=y[5],V=y[6],K=y[7],H=I.high,G=I.low,Q=C.high,q=C.low,T=R.high,M=R.low,A=L.high,v=L.low,k=F.high,O=F.low,D=W.high,B=W.low,x=V.high,N=V.low,U=K.high,E=K.low,z=H,ee=G,j=Q,X=q,ie=T,ue=M,he=A,ke=v,ge=k,me=O,Ke=D,ve=B,Ae=x,so=N,It=U,bt=E,ai=0;ai<80;ai++){var xt=l[ai];if(ai<16)var st=xt.high=f[m+ai*2]|0,ii=xt.low=f[m+ai*2+1]|0;else{var Nt=l[ai-15],dt=Nt.high,oo=Nt.low,jt=(dt>>>1|oo<<31)^(dt>>>8|oo<<24)^dt>>>7,Bt=(oo>>>1|dt<<31)^(oo>>>8|dt<<24)^(oo>>>7|dt<<25),sc=l[ai-2],ot=sc.high,pt=sc.low,Dc=(ot>>>19|pt<<13)^(ot<<3|pt>>>29)^ot>>>6,Et=(pt>>>19|ot<<13)^(pt<<3|ot>>>29)^(pt>>>6|ot<<26),Ct=l[ai-7],Lc=Ct.high,Dt=Ct.low,kt=l[ai-16],Oc=kt.high,At=kt.low,ii=Bt+Dt,st=jt+Lc+(ii>>>0>>0?1:0),ii=ii+Et,st=st+Dc+(ii>>>0>>0?1:0),ii=ii+At,st=st+Oc+(ii>>>0>>0?1:0);xt.high=st,xt.low=ii}var Lt=ge&Ke^~ge&Ae,oc=me&ve^~me&so,Ot=z&j^z&ie^j&ie,qt=ee&X^ee&ue^X&ue,qc=(z>>>28|ee<<4)^(z<<30|ee>>>2)^(z<<25|ee>>>7),Pt=(ee>>>28|z<<4)^(ee<<30|z>>>2)^(ee<<25|z>>>7),Ft=(ge>>>14|me<<18)^(ge>>>18|me<<14)^(ge<<23|me>>>9),Fc=(me>>>14|ge<<18)^(me>>>18|ge<<14)^(me<<23|ge>>>9),St=u[ai],Wt=St.high,cc=St.low,Qe=bt+Fc,it=It+Ft+(Qe>>>0>>0?1:0),Qe=Qe+oc,it=it+Lt+(Qe>>>0>>0?1:0),Qe=Qe+cc,it=it+Wt+(Qe>>>0>>0?1:0),Qe=Qe+ii,it=it+st+(Qe>>>0>>0?1:0),uc=Pt+qt,Ut=qc+Ot+(uc>>>0>>0?1:0);It=Ae,bt=so,Ae=Ke,so=ve,Ke=ge,ve=me,me=ke+Qe|0,ge=he+it+(me>>>0>>0?1:0)|0,he=ie,ke=ue,ie=j,ue=X,j=z,X=ee,ee=Qe+uc|0,z=it+Ut+(ee>>>0>>0?1:0)|0}G=I.low=G+ee,I.high=H+z+(G>>>0>>0?1:0),q=C.low=q+X,C.high=Q+j+(q>>>0>>0?1:0),M=R.low=M+ue,R.high=T+ie+(M>>>0>>0?1:0),v=L.low=v+ke,L.high=A+he+(v>>>0>>0?1:0),O=F.low=O+me,F.high=k+ge+(O>>>0>>0?1:0),B=W.low=B+ve,W.high=D+Ke+(B>>>0>>0?1:0),N=V.low=N+so,V.high=x+Ae+(N>>>0>>0?1:0),E=K.low=E+bt,K.high=U+It+(E>>>0>>0?1:0)},_doFinalize:function(){var f=this._data,m=f.words,y=this._nDataBytes*8,I=f.sigBytes*8;m[I>>>5]|=128<<24-I%32,m[(I+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(I+128>>>10<<5)+31]=y,f.sigBytes=m.length*4,this._process();var C=this._hash.toX32();return C},clone:function(){var f=n.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});e.SHA512=n._createHelper(h),e.HmacSHA512=n._createHmacHelper(h)}(),r.SHA512})});var aot=_((xde,not)=>{d();p();(function(r,e,t){typeof xde=="object"?not.exports=xde=e(rn(),IX(),O6e()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(xde,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var sot=_((_de,iot)=>{d();p();(function(r,e,t){typeof _de=="object"?iot.exports=_de=e(rn(),IX()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(_de,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],h=[];(function(){for(var y=1,I=0,C=0;C<24;C++){u[y+5*I]=(C+1)*(C+2)/2%64;var R=I%5,L=(2*y+3*I)%5;y=R,I=L}for(var y=0;y<5;y++)for(var I=0;I<5;I++)l[y+5*I]=I+(2*y+3*I)%5*5;for(var F=1,W=0;W<24;W++){for(var V=0,K=0,H=0;H<7;H++){if(F&1){var G=(1<>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var V=C[L];V.high^=W,V.low^=F}for(var K=0;K<24;K++){for(var H=0;H<5;H++){for(var G=0,Q=0,q=0;q<5;q++){var V=C[H+5*q];G^=V.high,Q^=V.low}var T=f[H];T.high=G,T.low=Q}for(var H=0;H<5;H++)for(var M=f[(H+4)%5],A=f[(H+1)%5],v=A.high,k=A.low,G=M.high^(v<<1|k>>>31),Q=M.low^(k<<1|v>>>31),q=0;q<5;q++){var V=C[H+5*q];V.high^=G,V.low^=Q}for(var O=1;O<25;O++){var V=C[O],D=V.high,B=V.low,x=u[O];if(x<32)var G=D<>>32-x,Q=B<>>32-x;else var G=B<>>64-x,Q=D<>>64-x;var N=f[l[O]];N.high=G,N.low=Q}var U=f[0],E=C[0];U.high=E.high,U.low=E.low;for(var H=0;H<5;H++)for(var q=0;q<5;q++){var O=H+5*q,V=C[O],z=f[O],ee=f[(H+1)%5+5*q],j=f[(H+2)%5+5*q];V.high=z.high^~ee.high&j.high,V.low=z.low^~ee.low&j.low}var V=C[0],X=h[K];V.high^=X.high,V.low^=X.low}},_doFinalize:function(){var y=this._data,I=y.words,C=this._nDataBytes*8,R=y.sigBytes*8,L=this.blockSize*32;I[R>>>5]|=1<<24-R%32,I[(e.ceil((R+1)/L)*L>>>5)-1]|=128,y.sigBytes=I.length*4,this._process();for(var F=this._state,W=this.cfg.outputLength/8,V=W/8,K=[],H=0;H>>24)&16711935|(Q<<24|Q>>>8)&4278255360,q=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,K.push(q),K.push(Q)}return new a.init(K,W)},clone:function(){for(var y=i.clone.call(this),I=y._state=this._state.slice(0),C=0;C<25;C++)I[C]=I[C].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var cot=_((Tde,oot)=>{d();p();(function(r,e){typeof Tde=="object"?oot.exports=Tde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(Tde,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),f=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,V){for(var K=0;K<16;K++){var H=V+K,G=W[H];W[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}var Q=this._hash.words,q=h.words,T=f.words,M=o.words,A=c.words,v=u.words,k=l.words,O,D,B,x,N,U,E,z,ee,j;U=O=Q[0],E=D=Q[1],z=B=Q[2],ee=x=Q[3],j=N=Q[4];for(var X,K=0;K<80;K+=1)X=O+W[V+M[K]]|0,K<16?X+=y(D,B,x)+q[0]:K<32?X+=I(D,B,x)+q[1]:K<48?X+=C(D,B,x)+q[2]:K<64?X+=R(D,B,x)+q[3]:X+=L(D,B,x)+q[4],X=X|0,X=F(X,v[K]),X=X+N|0,O=N,N=x,x=F(B,10),B=D,D=X,X=U+W[V+A[K]]|0,K<16?X+=L(E,z,ee)+T[0]:K<32?X+=R(E,z,ee)+T[1]:K<48?X+=C(E,z,ee)+T[2]:K<64?X+=I(E,z,ee)+T[3]:X+=y(E,z,ee)+T[4],X=X|0,X=F(X,k[K]),X=X+j|0,U=j,j=ee,ee=F(z,10),z=E,E=X;X=Q[1]+B+ee|0,Q[1]=Q[2]+x+j|0,Q[2]=Q[3]+N+U|0,Q[3]=Q[4]+O+E|0,Q[4]=Q[0]+D+z|0,Q[0]=X},_doFinalize:function(){var W=this._data,V=W.words,K=this._nDataBytes*8,H=W.sigBytes*8;V[H>>>5]|=128<<24-H%32,V[(H+64>>>9<<4)+14]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W.sigBytes=(V.length+1)*4,this._process();for(var G=this._hash,Q=G.words,q=0;q<5;q++){var T=Q[q];Q[q]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return G},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,V,K){return W^V^K}function I(W,V,K){return W&V|~W&K}function C(W,V,K){return(W|~V)^K}function R(W,V,K){return W&K|V&~K}function L(W,V,K){return W^(V|~K)}function F(W,V){return W<>>32-V}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var Ede=_((Ide,uot)=>{d();p();(function(r,e){typeof Ide=="object"?uot.exports=Ide=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(Ide,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,h=l*4;u.sigBytes>h&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),m=this._iKey=u.clone(),y=f.words,I=m.words,C=0;C{d();p();(function(r,e,t){typeof Cde=="object"?lot.exports=Cde=e(rn(),bde(),Ede()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(Cde,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var h=this.cfg,f=o.create(h.hasher,u),m=a.create(),y=a.create([1]),I=m.words,C=y.words,R=h.keySize,L=h.iterations;I.length{d();p();(function(r,e,t){typeof kde=="object"?pot.exports=kde=e(rn(),bde(),Ede()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(kde,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l=this.cfg,h=l.hasher.create(),f=a.create(),m=f.words,y=l.keySize,I=l.iterations;m.length{d();p();(function(r,e,t){typeof Ade=="object"?hot.exports=Ade=e(rn(),Ag()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(Ade,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,h=l.EvpKDF,f=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(T,M){return this.create(this._ENC_XFORM_MODE,T,M)},createDecryptor:function(T,M){return this.create(this._DEC_XFORM_MODE,T,M)},init:function(T,M,A){this.cfg=this.cfg.extend(A),this._xformMode=T,this._key=M,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var M=this._doFinalize();return M},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(M){return typeof M=="string"?q:H}return function(M){return{encrypt:function(A,v,k){return T(v).encrypt(M,A,v,k)},decrypt:function(A,v,k){return T(v).decrypt(M,A,v,k)}}}}()}),m=n.StreamCipher=f.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),y=t.mode={},I=n.BlockCipherMode=a.extend({createEncryptor:function(T,M){return this.Encryptor.create(T,M)},createDecryptor:function(T,M){return this.Decryptor.create(T,M)},init:function(T,M){this._cipher=T,this._iv=M}}),C=y.CBC=function(){var T=I.extend();T.Encryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize;M.call(this,A,v,O),k.encryptBlock(A,v),this._prevBlock=A.slice(v,v+O)}}),T.Decryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize,D=A.slice(v,v+O);k.decryptBlock(A,v),M.call(this,A,v,O),this._prevBlock=D}});function M(A,v,k){var O=this._iv;if(O){var D=O;this._iv=e}else var D=this._prevBlock;for(var B=0;B>>2]&255;T.sigBytes-=M}},F=n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:C,padding:L}),reset:function(){f.reset.call(this);var T=this.cfg,M=T.iv,A=T.mode;if(this._xformMode==this._ENC_XFORM_MODE)var v=A.createEncryptor;else{var v=A.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==v?this._mode.init(this,M&&M.words):(this._mode=v.call(A,this,M&&M.words),this._mode.__creator=v)},_doProcessBlock:function(T,M){this._mode.processBlock(T,M)},_doFinalize:function(){var T=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){T.pad(this._data,this.blockSize);var M=this._process(!0)}else{var M=this._process(!0);T.unpad(M)}return M},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),V=t.format={},K=V.OpenSSL={stringify:function(T){var M=T.ciphertext,A=T.salt;if(A)var v=i.create([1398893684,1701076831]).concat(A).concat(M);else var v=M;return v.toString(u)},parse:function(T){var M=u.parse(T),A=M.words;if(A[0]==1398893684&&A[1]==1701076831){var v=i.create(A.slice(2,4));A.splice(0,4),M.sigBytes-=16}return W.create({ciphertext:M,salt:v})}},H=n.SerializableCipher=a.extend({cfg:a.extend({format:K}),encrypt:function(T,M,A,v){v=this.cfg.extend(v);var k=T.createEncryptor(A,v),O=k.finalize(M),D=k.cfg;return W.create({ciphertext:O,key:A,iv:D.iv,algorithm:T,mode:D.mode,padding:D.padding,blockSize:T.blockSize,formatter:v.format})},decrypt:function(T,M,A,v){v=this.cfg.extend(v),M=this._parse(M,v.format);var k=T.createDecryptor(A,v).finalize(M.ciphertext);return k},_parse:function(T,M){return typeof T=="string"?M.parse(T,this):T}}),G=t.kdf={},Q=G.OpenSSL={execute:function(T,M,A,v){v||(v=i.random(64/8));var k=h.create({keySize:M+A}).compute(T,v),O=i.create(k.words.slice(M),A*4);return k.sigBytes=M*4,W.create({key:k,iv:O,salt:v})}},q=n.PasswordBasedCipher=H.extend({cfg:H.cfg.extend({kdf:Q}),encrypt:function(T,M,A,v){v=this.cfg.extend(v);var k=v.kdf.execute(A,T.keySize,T.ivSize);v.iv=k.iv;var O=H.encrypt.call(this,T,M,k.key,v);return O.mixIn(k),O},decrypt:function(T,M,A,v){v=this.cfg.extend(v),M=this._parse(M,v.format);var k=v.kdf.execute(A,T.keySize,T.ivSize,M.salt);v.iv=k.iv;var O=H.decrypt.call(this,T,M,k.key,v);return O}})}()})});var mot=_((Pde,fot)=>{d();p();(function(r,e,t){typeof Pde=="object"?fot.exports=Pde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Pde,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o=this._iv;if(o){var c=o.slice(0);this._iv=void 0}else var c=this._prevBlock;s.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof Sde=="object"?yot.exports=Sde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Sde,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{d();p();(function(r,e,t){typeof Rde=="object"?bot.exports=Rde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Rde,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var h=l.slice(0);o.encryptBlock(h,0);for(var f=0;f{d();p();(function(r,e,t){typeof Mde=="object"?wot.exports=Mde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Mde,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof Nde=="object"?_ot.exports=Nde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Nde,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var Eot=_((Bde,Iot)=>{d();p();(function(r,e,t){typeof Bde=="object"?Iot.exports=Bde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Bde,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var kot=_((Dde,Cot)=>{d();p();(function(r,e,t){typeof Dde=="object"?Cot.exports=Dde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Dde,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var Pot=_((Lde,Aot)=>{d();p();(function(r,e,t){typeof Lde=="object"?Aot.exports=Lde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Lde,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var Rot=_((Ode,Sot)=>{d();p();(function(r,e,t){typeof Ode=="object"?Sot.exports=Ode=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Ode,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var Not=_((qde,Mot)=>{d();p();(function(r,e,t){typeof qde=="object"?Mot.exports=qde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(qde,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var Dot=_((Fde,Bot)=>{d();p();(function(r,e,t){typeof Fde=="object"?Bot.exports=Fde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Fde,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var Oot=_((Wde,Lot)=>{d();p();(function(r,e,t){typeof Wde=="object"?Lot.exports=Wde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(Wde,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],h=[],f=[],m=[],y=[];(function(){for(var R=[],L=0;L<256;L++)L<128?R[L]=L<<1:R[L]=L<<1^283;for(var F=0,W=0,L=0;L<256;L++){var V=W^W<<1^W<<2^W<<3^W<<4;V=V>>>8^V&255^99,i[F]=V,s[V]=F;var K=R[F],H=R[K],G=R[H],Q=R[V]*257^V*16843008;o[F]=Q<<24|Q>>>8,c[F]=Q<<16|Q>>>16,u[F]=Q<<8|Q>>>24,l[F]=Q;var Q=G*16843009^H*65537^K*257^F*16843008;h[V]=Q<<24|Q>>>8,f[V]=Q<<16|Q>>>16,m[V]=Q<<8|Q>>>24,y[V]=Q,F?(F=K^R[R[R[G^K]]],W^=R[R[W]]):F=W=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],C=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var R=this._keyPriorReset=this._key,L=R.words,F=R.sigBytes/4,W=this._nRounds=F+6,V=(W+1)*4,K=this._keySchedule=[],H=0;H6&&H%F==4&&(G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255]):(G=G<<8|G>>>24,G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255],G^=I[H/F|0]<<24),K[H]=K[H-F]^G}for(var Q=this._invKeySchedule=[],q=0;q>>24]]^f[i[G>>>16&255]]^m[i[G>>>8&255]]^y[i[G&255]]}}},encryptBlock:function(R,L){this._doCryptBlock(R,L,this._keySchedule,o,c,u,l,i)},decryptBlock:function(R,L){var F=R[L+1];R[L+1]=R[L+3],R[L+3]=F,this._doCryptBlock(R,L,this._invKeySchedule,h,f,m,y,s);var F=R[L+1];R[L+1]=R[L+3],R[L+3]=F},_doCryptBlock:function(R,L,F,W,V,K,H,G){for(var Q=this._nRounds,q=R[L]^F[0],T=R[L+1]^F[1],M=R[L+2]^F[2],A=R[L+3]^F[3],v=4,k=1;k>>24]^V[T>>>16&255]^K[M>>>8&255]^H[A&255]^F[v++],D=W[T>>>24]^V[M>>>16&255]^K[A>>>8&255]^H[q&255]^F[v++],B=W[M>>>24]^V[A>>>16&255]^K[q>>>8&255]^H[T&255]^F[v++],x=W[A>>>24]^V[q>>>16&255]^K[T>>>8&255]^H[M&255]^F[v++];q=O,T=D,M=B,A=x}var O=(G[q>>>24]<<24|G[T>>>16&255]<<16|G[M>>>8&255]<<8|G[A&255])^F[v++],D=(G[T>>>24]<<24|G[M>>>16&255]<<16|G[A>>>8&255]<<8|G[q&255])^F[v++],B=(G[M>>>24]<<24|G[A>>>16&255]<<16|G[q>>>8&255]<<8|G[T&255])^F[v++],x=(G[A>>>24]<<24|G[q>>>16&255]<<16|G[T>>>8&255]<<8|G[M&255])^F[v++];R[L]=O,R[L+1]=D,R[L+2]=B,R[L+3]=x},keySize:256/32});e.AES=n._createHelper(C)}(),r.AES})});var Fot=_((Ude,qot)=>{d();p();(function(r,e,t){typeof Ude=="object"?qot.exports=Ude=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(Ude,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=a.extend({_doReset:function(){for(var I=this._key,C=I.words,R=[],L=0;L<56;L++){var F=s[L]-1;R[L]=C[F>>>5]>>>31-F%32&1}for(var W=this._subKeys=[],V=0;V<16;V++){for(var K=W[V]=[],H=c[V],L=0;L<24;L++)K[L/6|0]|=R[(o[L]-1+H)%28]<<31-L%6,K[4+(L/6|0)]|=R[28+(o[L+24]-1+H)%28]<<31-L%6;K[0]=K[0]<<1|K[0]>>>31;for(var L=1;L<7;L++)K[L]=K[L]>>>(L-1)*4+3;K[7]=K[7]<<5|K[7]>>>27}for(var G=this._invSubKeys=[],L=0;L<16;L++)G[L]=W[15-L]},encryptBlock:function(I,C){this._doCryptBlock(I,C,this._subKeys)},decryptBlock:function(I,C){this._doCryptBlock(I,C,this._invSubKeys)},_doCryptBlock:function(I,C,R){this._lBlock=I[C],this._rBlock=I[C+1],f.call(this,4,252645135),f.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),f.call(this,1,1431655765);for(var L=0;L<16;L++){for(var F=R[L],W=this._lBlock,V=this._rBlock,K=0,H=0;H<8;H++)K|=u[H][((V^F[H])&l[H])>>>0];this._lBlock=V,this._rBlock=W^K}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,f.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),I[C]=this._lBlock,I[C+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(I,C){var R=(this._lBlock>>>I^this._rBlock)&C;this._rBlock^=R,this._lBlock^=R<>>I^this._lBlock)&C;this._lBlock^=R,this._rBlock^=R<{d();p();(function(r,e,t){typeof Hde=="object"?Wot.exports=Hde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(Hde,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,h=this._S=[],f=0;f<256;f++)h[f]=f;for(var f=0,m=0;f<256;f++){var y=f%l,I=u[y>>>2]>>>24-y%4*8&255;m=(m+h[f]+I)%256;var C=h[f];h[f]=h[m],h[m]=C}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,h=0,f=0;f<4;f++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,h|=c[(c[u]+c[l])%256]<<24-f*8}return this._i=u,this._j=l,h}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var jot=_((jde,Hot)=>{d();p();(function(r,e,t){typeof jde=="object"?Hot.exports=jde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(jde,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,h=this.cfg.iv,f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var f=0;f<4;f++)u.call(this);for(var f=0;f<8;f++)y[f]^=m[f+4&7];if(h){var I=h.words,C=I[0],R=I[1],L=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,W=L>>>16|F&4294901760,V=F<<16|L&65535;y[0]^=L,y[1]^=W,y[2]^=F,y[3]^=V,y[4]^=L,y[5]^=W,y[6]^=F,y[7]^=V;for(var f=0;f<4;f++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,I=m>>>16,C=((y*y>>>17)+y*I>>>15)+I*I,R=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=C^R}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var Kot=_((zde,zot)=>{d();p();(function(r,e,t){typeof zde=="object"?zot.exports=zde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(zde,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,h=this.cfg.iv,f=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=f[y+4&7];if(h){var I=h.words,C=I[0],R=I[1],L=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,W=L>>>16|F&4294901760,V=F<<16|L&65535;m[0]^=L,m[1]^=W,m[2]^=F,m[3]^=V,m[4]^=L,m[5]^=W,m[6]^=F,m[7]^=V;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,I=m>>>16,C=((y*y>>>17)+y*I>>>15)+I*I,R=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=C^R}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var Vot=_((Kde,Got)=>{d();p();(function(r,e,t){typeof Kde=="object"?Got.exports=Kde=e(rn(),IX(),Yst(),Qst(),s2(),o2(),bde(),TX(),tot(),O6e(),aot(),sot(),cot(),Ede(),dot(),Ag(),Uo(),mot(),got(),vot(),xot(),Tot(),Eot(),kot(),Pot(),Rot(),Not(),Dot(),Oot(),Fot(),Uot(),jot(),Kot()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(Kde,function(r){return r})});var F6e=_(c2=>{"use strict";d();p();var qSr=c2&&c2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(c2,"__esModule",{value:!0});c2.Base=void 0;var hp=lc(),q6e=qSr(Vot()),nm=class{print(){nm.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return hp.Buffer.isBuffer(n)?n:this._isHexString(n)?hp.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?hp.Buffer.from(n):ArrayBuffer.isView(n)?hp.Buffer.from(n.buffer,n.byteOffset,n.byteLength):hp.Buffer.from(e(q6e.default.enc.Hex.parse(t.toString("hex"))).toString(q6e.default.enc.Hex),"hex")}}_isHexString(e){return nm.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};c2.Base=nm;c2.default=nm});var $ot=_(u2=>{"use strict";d();p();var Gde=u2&&u2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(u2,"__esModule",{value:!0});u2.MerkleTree=void 0;var Xa=lc(),C0=Gde(Ust()),Yot=Gde(TX()),FSr=Gde(Kst()),WSr=Gde(F6e()),vl=class extends WSr.default{constructor(e,t=Yot.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(Xa.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(Xa.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?Xa.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>vl.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(vl.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(Xa.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?Xa.Buffer.from([]):this.layers[this.layers.length-1][0]||Xa.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:Xa.Buffer.isBuffer(n)?vl.bufferToHex(n):{position:n.position,data:vl.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return vl.bufferify(n);if(n instanceof Object)return{position:n.position,data:vl.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let u of e){let l=n+u;for(;l>1;)a.add(l^1),l=l/2|0}let i=e.map(u=>n+u),s=Array.from(a).sort((u,l)=>u-l).reverse();a=i.concat(s);let o=new Set,c=[];for(let u of a)if(!o.has(u))for(c.push(u);u>1&&(o.add(u),!!o.has(u^1));)u=u/2|0;return c.filter(u=>!e.includes(u-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let o=0;oh%2===0?h+1:h-1).filter(h=>!s.includes(h)),l=a.find(({index:h})=>h===o);l&&s.includes(l.leavesCount-1)&&(u=u.slice(0,-1)),i.push(u),s=[...new Set(s.map(h=>h%2===0?h/2:h%2===0?(h+1)/2:(h-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(Xa.Buffer.compare));let i=a.map(u=>this._bufferIndexOf(this.leaves,u)).sort((u,l)=>u===l?0:u>l?1:-1);if(!i.every(u=>u!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],o=[],c=[];for(let u=0;um.indexOf(h)===f),c=[]}return o.filter(u=>!s.includes(u))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let c of a){if(c%2===0){let l=c+1;if(!a.includes(l)&&i[l]){s.push(i[l]);continue}}let u=c-1;if(!a.includes(u)&&i[u]){s.push(i[u]);continue}}n=n.concat(s);let o=new Set;for(let c of a){if(c%2===0){o.add(c/2);continue}if(c%2===0){o.add((c+1)/2);continue}o.add((c-1)/2)}a=Array.from(o)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((o,c)=>o===c?0:o>c?1:-1):n=e.map(o=>this._bufferIndexOf(this.leaves,o)).sort((o,c)=>o===c?0:o>c?1:-1),!n.every(o=>o!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(o=>this.bufferify(o)),i=[],s=[];for(let o=0;o{if(!i.includes(c[l])){let f=this._getPairNode(c,l),m=a.includes(c[l])||a.includes(f);f&&s.push(!m),i.push(c[l]),i.push(f)}return u.push(l/2|0),u},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(h)),i=i.map(h=>this.bufferify(h));let c={};for(let[h,f]of this._zip(t,n))c[Math.pow(2,o)+h]=f;for(let[h,f]of this._zip(this.getProofIndices(t,o),i))c[h]=f;let u=Object.keys(c).map(h=>+h).sort((h,f)=>h-f);u=u.slice(0,u.length-1);let l=0;for(;l=2&&{}.hasOwnProperty.call(c,h^1)){let f=[c[h-h%2],c[h-h%2+1]];this.sortPairs&&(f=f.sort(Xa.Buffer.compare));let m=f[1]?this.hashFn(Xa.Buffer.concat(f)):f[0];c[h/2|0]=m,u.push(h/2|0)}l+=1}return!t.length||{}.hasOwnProperty.call(c,1)&&c[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,o=[],c=0,u=0,l=0;for(let h=0;hthis.bufferify(o)),i=i.map(o=>this.bufferify(o));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;nh-f),s=i.map(([h])=>h),o=this.getProofIndicesForUnevenTree(s,n),c=0,u=[];for(let h=0;hC-R).map(([,C])=>C),m=l[h].map(([C])=>C),y=[...new Set(m.map(C=>C%2===0?C/2:C%2===0?(C+1)/2:(C-1)/2))],I=[];for(let C=0;C{"use strict";d();p();var Qot=l2&&l2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(l2,"__esModule",{value:!0});l2.MerkleMountainRange=void 0;var EX=lc(),USr=Qot(TX()),HSr=Qot(F6e()),Vde=class extends HSr.default{constructor(e=USr.default,t=[],n,a,i){super(),this.root=EX.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let o=0;o0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?EX.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(EX.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let h=0;h=e&&s===0&&(s=a[h]);let o=0,c=0,u=this.heightAt(s),l=[];for(;s!==e;)u--,[o,c]=this.getChildren(s),s=e<=o?o:c,l[u-1]=this.hashes[e<=o?c:o];return{root:t,width:n,peakBagging:i,siblings:l}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){u=i[C],c=l[C];break}if(!u)throw new Error("target not found");let h=s.length+1,f=new Array(h),m=0,y=0;for(;h>0&&(f[--h]=c,c!==n);)[m,y]=this.getChildren(c),c=n>m?y:m;let I;for(;hthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};l2.MerkleMountainRange=Vde;l2.default=Vde});var ya=_(Pg=>{"use strict";d();p();var jSr=Pg&&Pg.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.MerkleTree=void 0;var Zot=jSr($ot());Pg.MerkleTree=Zot.default;var zSr=Jot();Object.defineProperty(Pg,"MerkleMountainRange",{enumerable:!0,get:function(){return zSr.MerkleMountainRange}});Pg.default=Zot.default});var ga=_((bVn,Xot)=>{"use strict";d();p();Xot.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var mn=_((xVn,KSr)=>{KSr.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ba=_((_Vn,GSr)=>{GSr.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var va=_((TVn,VSr)=>{VSr.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var wa=_((IVn,YSr)=>{YSr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var xa=_((EVn,$Sr)=>{$Sr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var _a=_((CVn,QSr)=>{QSr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ta=_((kVn,JSr)=>{JSr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var yn=_(W6e=>{"use strict";d();p();Object.defineProperty(W6e,"__esModule",{value:!0});var ZSr={};W6e.GENERATED_ABI=ZSr});var Ia=_((RVn,XSr)=>{XSr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ea=_((MVn,e7r)=>{e7r.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var H6e=_(ect=>{"use strict";d();p();var t7r=bi(),r7r=je(),U6e=class{constructor(e){t7r._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&r7r.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};ect.DropErc1155History=U6e});var CX=_(tct=>{"use strict";d();p();var d2=bi(),Yde=os(),j6e=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;d2._defineProperty(this,"contractWrapper",void 0),d2._defineProperty(this,"storage",void 0),d2._defineProperty(this,"erc1155",void 0),d2._defineProperty(this,"_chainId",void 0),d2._defineProperty(this,"transfer",Yde.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),d2._defineProperty(this,"setApprovalForAll",Yde.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),d2._defineProperty(this,"airdrop",Yde.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new Yde.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};tct.StandardErc1155=j6e});var AX=_(iV=>{"use strict";d();p();var n7r=bi(),a7r=Gr(),kX=os();function i7r(r){return r&&r.__esModule?r:{default:r}}var K6e=i7r(a7r),s7r="https://paper.xyz/api",o7r="2022-08-12",G6e=`${s7r}/${o7r}/platform/thirdweb`,rct={[kX.ChainId.Mainnet]:"Ethereum",[kX.ChainId.Goerli]:"Goerli",[kX.ChainId.Polygon]:"Polygon",[kX.ChainId.Mumbai]:"Mumbai",[kX.ChainId.Avalanche]:"Avalanche"};function nct(r){return K6e.default(r in rct,`chainId not supported by paper: ${r}`),rct[r]}async function act(r,e){let t=nct(e),a=await(await fetch(`${G6e}/register-contract?contractAddress=${r}&chain=${t}`)).json();return K6e.default(a.result.id,"Contract is not registered with paper"),a.result.id}var c7r={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function ict(r,e){let n=await(await fetch(`${G6e}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...c7r,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return K6e.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var z6e=class{constructor(e){n7r._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return act(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await ict(await this.getCheckoutId(),e)}};iV.PAPER_API_URL=G6e;iV.PaperCheckout=z6e;iV.createCheckoutLinkIntent=ict;iV.fetchRegisteredCheckoutId=act;iV.parseChainIdToPaperChain=nct});var oct=_(sct=>{"use strict";d();p();var Ks=bi(),Is=os(),u7r=H6e(),l7r=CX(),d7r=AX(),p7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var sV=class extends l7r.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Is.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ks._defineProperty(this,"abi",void 0),Ks._defineProperty(this,"sales",void 0),Ks._defineProperty(this,"platformFees",void 0),Ks._defineProperty(this,"encoder",void 0),Ks._defineProperty(this,"estimator",void 0),Ks._defineProperty(this,"events",void 0),Ks._defineProperty(this,"metadata",void 0),Ks._defineProperty(this,"app",void 0),Ks._defineProperty(this,"roles",void 0),Ks._defineProperty(this,"royalties",void 0),Ks._defineProperty(this,"claimConditions",void 0),Ks._defineProperty(this,"checkout",void 0),Ks._defineProperty(this,"history",void 0),Ks._defineProperty(this,"interceptor",void 0),Ks._defineProperty(this,"owner",void 0),Ks._defineProperty(this,"createBatch",Is.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ks._defineProperty(this,"claimTo",Is.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ks._defineProperty(this,"claim",Is.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ks._defineProperty(this,"burnTokens",Is.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=Is.AbiSchema.parse(s),this.metadata=new Is.ContractMetadata(this.contractWrapper,Is.DropErc1155ContractSchema,this.storage),this.app=new Is.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Is.ContractRoles(this.contractWrapper,sV.contractRoles),this.royalties=new Is.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Is.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Is.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Is.ContractEvents(this.contractWrapper),this.history=new u7r.DropErc1155History(this.events),this.encoder=new Is.ContractEncoder(this.contractWrapper),this.estimator=new Is.GasCostEstimator(this.contractWrapper),this.platformFees=new Is.ContractPlatformFee(this.contractWrapper),this.interceptor=new Is.ContractInterceptor(this.contractWrapper),this.checkout=new d7r.PaperCheckout(this.contractWrapper),this.owner=new Is.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Is.getRoleHash("transfer"),p7r.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Is.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ks._defineProperty(sV,"contractRoles",["admin","minter","transfer"]);sct.EditionDrop=sV});var V6e=_((KVn,h7r)=>{h7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var Y6e=_((GVn,f7r)=>{f7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var uct=_(cct=>{"use strict";d();p();var Es=bi(),vi=os(),m7r=CX(),y7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var oV=class extends m7r.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new vi.ContractWrapper(e,t,i,a);super(o,n,s),Es._defineProperty(this,"abi",void 0),Es._defineProperty(this,"metadata",void 0),Es._defineProperty(this,"app",void 0),Es._defineProperty(this,"roles",void 0),Es._defineProperty(this,"sales",void 0),Es._defineProperty(this,"platformFees",void 0),Es._defineProperty(this,"encoder",void 0),Es._defineProperty(this,"estimator",void 0),Es._defineProperty(this,"events",void 0),Es._defineProperty(this,"royalties",void 0),Es._defineProperty(this,"signature",void 0),Es._defineProperty(this,"interceptor",void 0),Es._defineProperty(this,"owner",void 0),Es._defineProperty(this,"mint",vi.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),Es._defineProperty(this,"mintTo",vi.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),Es._defineProperty(this,"mintAdditionalSupply",vi.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),Es._defineProperty(this,"mintAdditionalSupplyTo",vi.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),Es._defineProperty(this,"mintBatch",vi.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),Es._defineProperty(this,"mintBatchTo",vi.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),Es._defineProperty(this,"burn",vi.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=vi.AbiSchema.parse(i||[]),this.metadata=new vi.ContractMetadata(this.contractWrapper,vi.TokenErc1155ContractSchema,this.storage),this.app=new vi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new vi.ContractRoles(this.contractWrapper,oV.contractRoles),this.royalties=new vi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new vi.ContractPrimarySale(this.contractWrapper),this.encoder=new vi.ContractEncoder(this.contractWrapper),this.estimator=new vi.GasCostEstimator(this.contractWrapper),this.events=new vi.ContractEvents(this.contractWrapper),this.platformFees=new vi.ContractPlatformFee(this.contractWrapper),this.interceptor=new vi.ContractInterceptor(this.contractWrapper),this.signature=new vi.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.owner=new vi.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(vi.getRoleHash("transfer"),y7r.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return vi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Es._defineProperty(oV,"contractRoles",["admin","minter","transfer"]);cct.Edition=oV});var $6e=_((QVn,g7r)=>{g7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"flatFee",type:"uint256"}],name:"FlatPlatformFeeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"enum TokenERC1155.PlatformFeeType",name:"feeType",type:"uint8"}],name:"PlatformFeeTypeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlatPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeType",outputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_flatFee",type:"uint256"}],name:"setFlatPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"_feeType",type:"uint8"}],name:"setPlatformFeeType",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var Z6e=_(Jde=>{"use strict";d();p();var Ho=bi(),Ge=os(),b7r=mn(),v7r=pn(),w7r=hn(),ur=je(),x7r=Gr();function Qde(r){return r&&r.__esModule?r:{default:r}}var _7r=Qde(b7r),T7r=Qde(v7r),I7r=Qde(w7r),$de=Qde(x7r),p2=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),Q6e=class{constructor(e,t){Ho._defineProperty(this,"contractWrapper",void 0),Ho._defineProperty(this,"storage",void 0),Ho._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Ho._defineProperty(this,"makeOffer",Ge.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ge.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=ur.BigNumber.from(a),l=ur.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ge.setErc20Allowance(this.contractWrapper,l,i,h);let f=ur.ethers.constants.MaxUint256;return o&&(f=ur.BigNumber.from(Math.floor(o.getTime()/1e3))),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Ho._defineProperty(this,"acceptOffer",Ge.buildTransactionFunction(async(n,a)=>{await this.validateListing(ur.BigNumber.from(n));let i=await Ge.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Ho._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(ur.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=ur.BigNumber.from(a),h=ur.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Ho._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ge.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Ho._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ur.constants.AddressZero)throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==p2.Direct)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(ur.BigNumber.from(e)),$de.default(ur.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ge.resolveAddress(t));if(n.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:p2.Direct}}async isStillValidListing(e,t){if(!await Ge.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new ur.Contract(e.assetContractAddress,_7r.default,a),s=await i.supportsInterface(Ge.InterfaceId_IERC721),o=await i.supportsInterface(Ge.InterfaceId_IERC1155);if(s){let u=(await new ur.Contract(e.assetContractAddress,T7r.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new ur.Contract(e.assetContractAddress,I7r.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},J6e=class{constructor(e,t){Ho._defineProperty(this,"contractWrapper",void 0),Ho._defineProperty(this,"storage",void 0),Ho._defineProperty(this,"encoder",void 0),Ho._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Ho._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=await Ge.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,ur.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Ho._defineProperty(this,"makeBid",Ge.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(ur.BigNumber.from(n)),s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(ur.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ge.isWinningBid(c.pricePerToken,s,o);$de.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=ur.BigNumber.from(i.reservePrice);$de.default(f.gte(m),"Bid price is too low based on reserve price")}let u=ur.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,ur.ethers.constants.MaxUint256],overrides:h})})),Ho._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=ur.BigNumber.from(Math.floor(Date.now()/1e3)),s=ur.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==ur.constants.AddressZero)throw new Ge.AuctionAlreadyStartedError(n.toString());return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Ho._defineProperty(this,"closeListing",Ge.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(ur.BigNumber.from(n));try{return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Ho._defineProperty(this,"executeSale",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n));try{let i=await this.getWinningBid(n);$de.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Ho._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ge.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==p2.Auction)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(ur.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(ur.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=ur.BigNumber.from(Math.floor(Date.now()/1e3)),i=ur.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==ur.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(ur.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(ur.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:ur.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:p2.Auction}}};Jde.ListingType=p2;Jde.MarketplaceAuction=J6e;Jde.MarketplaceDirect=Q6e});var pct=_(dct=>{"use strict";d();p();var ji=bi(),nn=os(),Ch=Z6e(),rd=je(),E7r=Gr();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function C7r(r){return r&&r.__esModule?r:{default:r}}var lct=C7r(E7r),cV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new nn.ContractWrapper(e,t,i,a);ji._defineProperty(this,"abi",void 0),ji._defineProperty(this,"contractWrapper",void 0),ji._defineProperty(this,"storage",void 0),ji._defineProperty(this,"encoder",void 0),ji._defineProperty(this,"events",void 0),ji._defineProperty(this,"estimator",void 0),ji._defineProperty(this,"platformFees",void 0),ji._defineProperty(this,"metadata",void 0),ji._defineProperty(this,"app",void 0),ji._defineProperty(this,"roles",void 0),ji._defineProperty(this,"interceptor",void 0),ji._defineProperty(this,"direct",void 0),ji._defineProperty(this,"auction",void 0),ji._defineProperty(this,"_chainId",void 0),ji._defineProperty(this,"getAll",this.getAllListings),ji._defineProperty(this,"buyoutListing",nn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new nn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Ch.ListingType.Direct:return lct.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Ch.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),ji._defineProperty(this,"makeOffer",nn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new nn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Ch.ListingType.Direct:return lct.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,nn.isNativeToken(h.currency)?nn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Ch.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),ji._defineProperty(this,"setBidBufferBps",nn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,rd.BigNumber.from(c)]})})),ji._defineProperty(this,"setTimeBufferInSeconds",nn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[rd.BigNumber.from(c),u]})})),ji._defineProperty(this,"allowListingFromSpecificAssetOnly",nn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(rd.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[nn.getRoleHash("asset"),rd.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[nn.getRoleHash("asset"),c])),nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),ji._defineProperty(this,"allowListingFromAnyAsset",nn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[nn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[nn.getRoleHash("asset"),rd.constants.AddressZero])),nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=nn.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new nn.ContractMetadata(this.contractWrapper,nn.MarketplaceContractSchema,this.storage),this.app=new nn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new nn.ContractRoles(this.contractWrapper,cV.contractRoles),this.encoder=new nn.ContractEncoder(this.contractWrapper),this.estimator=new nn.GasCostEstimator(this.contractWrapper),this.direct=new Ch.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Ch.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new nn.ContractEvents(this.contractWrapper),this.platformFees=new nn.ContractPlatformFee(this.contractWrapper),this.interceptor=new nn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===rd.constants.AddressZero)throw new nn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Ch.ListingType.Auction:return await this.auction.mapListing(t);case Ch.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=rd.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Ch.ListingType.Auction&&rd.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&rd.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Ch.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(nn.getRoleHash("lister"),rd.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await nn.mapOffer(this.contractWrapper.getProvider(),rd.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof nn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Ch.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=rd.BigNumber.from(t?.start||0).toNumber(),i=rd.BigNumber.from(t?.count||ji.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ji._defineProperty(cV,"contractRoles",["admin","lister","asset"]);dct.Marketplace=cV});var X6e=_((nYn,k7r)=>{k7r.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var fct=_(hct=>{"use strict";d();p();var nd=bi(),wi=os();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var uV=class{get directListings(){return wi.assertEnabled(this.detectDirectListings(),wi.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return wi.assertEnabled(this.detectEnglishAuctions(),wi.FEATURE_ENGLISH_AUCTIONS)}get offers(){return wi.assertEnabled(this.detectOffers(),wi.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new wi.ContractWrapper(e,t,i,a);nd._defineProperty(this,"abi",void 0),nd._defineProperty(this,"contractWrapper",void 0),nd._defineProperty(this,"storage",void 0),nd._defineProperty(this,"encoder",void 0),nd._defineProperty(this,"events",void 0),nd._defineProperty(this,"estimator",void 0),nd._defineProperty(this,"platformFees",void 0),nd._defineProperty(this,"metadata",void 0),nd._defineProperty(this,"app",void 0),nd._defineProperty(this,"roles",void 0),nd._defineProperty(this,"interceptor",void 0),nd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=wi.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new wi.ContractMetadata(this.contractWrapper,wi.MarketplaceContractSchema,this.storage),this.app=new wi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new wi.ContractRoles(this.contractWrapper,uV.contractRoles),this.encoder=new wi.ContractEncoder(this.contractWrapper),this.estimator=new wi.GasCostEstimator(this.contractWrapper),this.events=new wi.ContractEvents(this.contractWrapper),this.platformFees=new wi.ContractPlatformFee(this.contractWrapper),this.interceptor=new wi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return wi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectDirectListings(){if(wi.detectContractFeature(this.contractWrapper,"DirectListings"))return new wi.MarketplaceV3DirectListings(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(wi.detectContractFeature(this.contractWrapper,"EnglishAuctions"))return new wi.MarketplaceV3EnglishAuctions(this.contractWrapper,this.storage)}detectOffers(){if(wi.detectContractFeature(this.contractWrapper,"Offers"))return new wi.MarketplaceV3Offers(this.contractWrapper,this.storage)}};nd._defineProperty(uV,"contractRoles",["admin","lister","asset"]);hct.MarketplaceV3=uV});var eIe=_((oYn,A7r)=>{A7r.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var lV=_(mct=>{"use strict";d();p();var h2=bi(),Sg=os(),tIe=class{get chainId(){return this._chainId}constructor(e,t,n){h2._defineProperty(this,"contractWrapper",void 0),h2._defineProperty(this,"storage",void 0),h2._defineProperty(this,"erc721",void 0),h2._defineProperty(this,"_chainId",void 0),h2._defineProperty(this,"transfer",Sg.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),h2._defineProperty(this,"setApprovalForAll",Sg.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),h2._defineProperty(this,"setApprovalForToken",Sg.buildTransactionFunction(async(a,i)=>Sg.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Sg.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new Sg.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await Sg.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await Sg.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};mct.StandardErc721=tIe});var gct=_(yct=>{"use strict";d();p();var fp=bi(),xi=os(),P7r=lV(),S7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var dV=class extends P7r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new xi.ContractWrapper(e,t,i,a);super(o,n,s),fp._defineProperty(this,"abi",void 0),fp._defineProperty(this,"encoder",void 0),fp._defineProperty(this,"estimator",void 0),fp._defineProperty(this,"metadata",void 0),fp._defineProperty(this,"app",void 0),fp._defineProperty(this,"events",void 0),fp._defineProperty(this,"roles",void 0),fp._defineProperty(this,"royalties",void 0),fp._defineProperty(this,"owner",void 0),fp._defineProperty(this,"wrap",xi.buildTransactionFunction(async(c,u,l)=>{let h=await xi.uploadOrExtractURI(u,this.storage),f=await xi.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let I=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(I.length===0)throw new Error("TokensWrapped event not found");let C=I[0].args.tokenIdOfWrappedToken;return{id:C,receipt:y,data:()=>this.get(C)}}})})),fp._defineProperty(this,"unwrap",xi.buildTransactionFunction(async(c,u)=>{let l=await xi.resolveAddress(u||await this.contractWrapper.getSignerAddress());return xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=xi.AbiSchema.parse(i||[]),this.metadata=new xi.ContractMetadata(this.contractWrapper,xi.MultiwrapContractSchema,this.storage),this.app=new xi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new xi.ContractRoles(this.contractWrapper,dV.contractRoles),this.encoder=new xi.ContractEncoder(this.contractWrapper),this.estimator=new xi.GasCostEstimator(this.contractWrapper),this.events=new xi.ContractEvents(this.contractWrapper),this.royalties=new xi.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new xi.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await xi.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:S7r.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await xi.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await xi.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Ei.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await xi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Ei.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await xi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async prepare(e,t,n){return Ei.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{_Ar.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var jst=x(Hst=>{"use strict";d();p();var Ys=xi(),Ji=ds(),xAr=H_(),TAr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var z_=class extends xAr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ji.ContractWrapper(e,t,i,a);super(o,n,s),Ys._defineProperty(this,"abi",void 0),Ys._defineProperty(this,"metadata",void 0),Ys._defineProperty(this,"app",void 0),Ys._defineProperty(this,"roles",void 0),Ys._defineProperty(this,"encoder",void 0),Ys._defineProperty(this,"estimator",void 0),Ys._defineProperty(this,"events",void 0),Ys._defineProperty(this,"sales",void 0),Ys._defineProperty(this,"platformFees",void 0),Ys._defineProperty(this,"royalties",void 0),Ys._defineProperty(this,"owner",void 0),Ys._defineProperty(this,"signature",void 0),Ys._defineProperty(this,"interceptor",void 0),Ys._defineProperty(this,"erc721",void 0),Ys._defineProperty(this,"mint",Ji.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Ys._defineProperty(this,"mintTo",Ji.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Ys._defineProperty(this,"mintBatch",Ji.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Ys._defineProperty(this,"mintBatchTo",Ji.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Ys._defineProperty(this,"burn",Ji.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=Ji.AbiSchema.parse(i||[]),this.metadata=new Ji.ContractMetadata(this.contractWrapper,Ji.TokenErc721ContractSchema,this.storage),this.app=new Ji.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ji.ContractRoles(this.contractWrapper,z_.contractRoles),this.royalties=new Ji.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ji.ContractPrimarySale(this.contractWrapper),this.encoder=new Ji.ContractEncoder(this.contractWrapper),this.estimator=new Ji.GasCostEstimator(this.contractWrapper),this.events=new Ji.ContractEvents(this.contractWrapper),this.platformFees=new Ji.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ji.ContractInterceptor(this.contractWrapper),this.erc721=new Ji.Erc721(this.contractWrapper,this.storage,s),this.signature=new Ji.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new Ji.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ji.getRoleHash("transfer"),TAr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return Ji.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{EAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var Kst=x(zst=>{"use strict";d();p();var ai=xi(),ja=ds(),CAr=H_(),IAr=s8(),Ov=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var K_=class extends CAr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ja.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ai._defineProperty(this,"abi",void 0),ai._defineProperty(this,"encoder",void 0),ai._defineProperty(this,"estimator",void 0),ai._defineProperty(this,"metadata",void 0),ai._defineProperty(this,"app",void 0),ai._defineProperty(this,"sales",void 0),ai._defineProperty(this,"platformFees",void 0),ai._defineProperty(this,"events",void 0),ai._defineProperty(this,"roles",void 0),ai._defineProperty(this,"interceptor",void 0),ai._defineProperty(this,"royalties",void 0),ai._defineProperty(this,"claimConditions",void 0),ai._defineProperty(this,"revealer",void 0),ai._defineProperty(this,"checkout",void 0),ai._defineProperty(this,"erc721",void 0),ai._defineProperty(this,"owner",void 0),ai._defineProperty(this,"createBatch",ja.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ai._defineProperty(this,"claimTo",ja.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),ai._defineProperty(this,"claim",ja.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ai._defineProperty(this,"burn",ja.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ai._defineProperty(this,"transfer",ja.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ai._defineProperty(this,"setApprovalForAll",ja.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ai._defineProperty(this,"setApprovalForToken",ja.buildTransactionFunction(async(u,l)=>ja.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=ja.AbiSchema.parse(s||[]),this.metadata=new ja.ContractMetadata(this.contractWrapper,ja.DropErc721ContractSchema,this.storage),this.app=new ja.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ja.ContractRoles(this.contractWrapper,K_.contractRoles),this.royalties=new ja.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ja.ContractPrimarySale(this.contractWrapper),this.claimConditions=new ja.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new ja.ContractEncoder(this.contractWrapper),this.estimator=new ja.GasCostEstimator(this.contractWrapper),this.events=new ja.ContractEvents(this.contractWrapper),this.platformFees=new ja.ContractPlatformFee(this.contractWrapper),this.erc721=new ja.Erc721(this.contractWrapper,this.storage,o),this.revealer=new ja.DelayedReveal(this.contractWrapper,this.storage,ja.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new ja.ContractInterceptor(this.contractWrapper),this.owner=new ja.ContractOwner(this.contractWrapper),this.checkout=new IAr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Ov.BigNumber.from(e?.start||0).toNumber(),n=Ov.BigNumber.from(e?.count||ai.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Ov.BigNumber.from(e?.start||0).toNumber(),n=Ov.BigNumber.from(e?.count||ai.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Ov.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=Ov.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ja.getRoleHash("transfer"),Ov.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return ja.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{kAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var iee=x((dKn,AAr)=>{AAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var see=x((pKn,SAr)=>{SAr.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Zst=x(Qst=>{"use strict";d();p();var Za=xi(),xt=ds(),PAr=a8(),RAr=see(),MAr=sa(),gp=je(),S0=kr();Ir();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function Gst(r){return r&&r.__esModule?r:{default:r}}var NAr=Gst(RAr),BAr=Gst(MAr),cee=S0.z.object({contractAddress:xt.AddressOrEnsSchema}),DAr=cee.extend({quantity:Za.AmountSchema}),OAr=cee.extend({tokenId:xt.BigNumberishSchema}),LAr=cee.extend({tokenId:xt.BigNumberishSchema,quantity:xt.BigNumberishSchema}),Vst=DAr.omit({quantity:!0}).extend({quantityPerReward:Za.AmountSchema}),$st=OAr,Yst=LAr.omit({quantity:!0}).extend({quantityPerReward:xt.BigNumberishSchema}),FAr=Vst.extend({totalRewards:xt.BigNumberishSchema.default("1")}),qAr=$st,WAr=Yst.extend({totalRewards:xt.BigNumberishSchema.default("1")});S0.z.object({erc20Rewards:S0.z.array(Vst).default([]),erc721Rewards:S0.z.array($st).default([]),erc1155Rewards:S0.z.array(Yst).default([])});var Jst=S0.z.object({erc20Rewards:S0.z.array(FAr).default([]),erc721Rewards:S0.z.array(qAr).default([]),erc1155Rewards:S0.z.array(WAr).default([])}),UAr=Jst.extend({packMetadata:Za.NFTInputOrUriSchema,rewardsPerPack:xt.BigNumberishSchema.default("1"),openStartTime:xt.RawDateSchema.default(new Date)}),oee=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new xt.ContractWrapper(e,t,BAr.default,a);Za._defineProperty(this,"featureName",xt.FEATURE_PACK_VRF.name),Za._defineProperty(this,"contractWrapper",void 0),Za._defineProperty(this,"storage",void 0),Za._defineProperty(this,"chainId",void 0),Za._defineProperty(this,"events",void 0),Za._defineProperty(this,"open",xt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return xt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=gp.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),Za._defineProperty(this,"claimRewards",xt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return xt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new xt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await xt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:gp.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await xt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:gp.BigNumber.from(5e5)}),i=gp.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=xt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new xt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,NAr.default,this.contractWrapper.options);return new xt.Erc20(t,this.storage,this.chainId)}},G_=class extends PAr.StandardErc1155{get vrf(){return xt.assertEnabled(this._vrf,xt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new xt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,Za._defineProperty(this,"abi",void 0),Za._defineProperty(this,"metadata",void 0),Za._defineProperty(this,"app",void 0),Za._defineProperty(this,"roles",void 0),Za._defineProperty(this,"encoder",void 0),Za._defineProperty(this,"events",void 0),Za._defineProperty(this,"estimator",void 0),Za._defineProperty(this,"royalties",void 0),Za._defineProperty(this,"interceptor",void 0),Za._defineProperty(this,"erc1155",void 0),Za._defineProperty(this,"owner",void 0),Za._defineProperty(this,"_vrf",void 0),Za._defineProperty(this,"create",xt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),Za._defineProperty(this,"addPackContents",xt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await Jst.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:E=>{let I=this.contractWrapper.parseLogs("PackUpdated",E?.logs);if(I.length===0)throw new Error("PackUpdated event not found");let S=I[0].args.packId;return{id:S,receipt:E,data:()=>this.erc1155.get(S)}}})})),Za._defineProperty(this,"createTo",xt.buildTransactionFunction(async(u,l)=>{let h=await xt.uploadOrExtractURI(l.packMetadata,this.storage),f=await UAr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E}=f,I={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E},{contents:S,numOfRewardUnits:L}=await this.toPackContentArgs(I);return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[S,L,h,f.openStartTime,f.rewardsPerPack,await xt.resolveAddress(u)],parse:q=>{let W=this.contractWrapper.parseLogs("PackCreated",q?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:q,data:()=>this.erc1155.get(V)}}})})),Za._defineProperty(this,"open",xt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return xt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,E=[],I=[],S=[];for(let L of y)switch(L.tokenType){case 0:{let q=await xt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);E.push({contractAddress:L.assetContract,quantityPerReward:gp.ethers.utils.formatUnits(L.totalAmount,q.decimals).toString()});break}case 1:{I.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{S.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:E,erc721Rewards:I,erc1155Rewards:S}}})})),this.abi=xt.AbiSchema.parse(s||[]),this.erc1155=new xt.Erc1155(this.contractWrapper,this.storage,o),this.metadata=new xt.ContractMetadata(this.contractWrapper,xt.PackContractSchema,this.storage),this.app=new xt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new xt.ContractRoles(this.contractWrapper,G_.contractRoles),this.royalties=new xt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new xt.ContractEncoder(this.contractWrapper),this.estimator=new xt.GasCostEstimator(this.contractWrapper),this.events=new xt.ContractEvents(this.contractWrapper),this.interceptor=new xt.ContractInterceptor(this.contractWrapper),this.owner=new xt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(xt.getRoleHash("transfer"),gp.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o{R7r.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var vct=_(bct=>{"use strict";d();p();var po=bi(),cs=os(),M7r=lV(),N7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var pV=class extends M7r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new cs.ContractWrapper(e,t,i,a);super(o,n,s),po._defineProperty(this,"abi",void 0),po._defineProperty(this,"metadata",void 0),po._defineProperty(this,"app",void 0),po._defineProperty(this,"roles",void 0),po._defineProperty(this,"encoder",void 0),po._defineProperty(this,"estimator",void 0),po._defineProperty(this,"events",void 0),po._defineProperty(this,"sales",void 0),po._defineProperty(this,"platformFees",void 0),po._defineProperty(this,"royalties",void 0),po._defineProperty(this,"owner",void 0),po._defineProperty(this,"signature",void 0),po._defineProperty(this,"interceptor",void 0),po._defineProperty(this,"mint",cs.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),po._defineProperty(this,"mintTo",cs.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),po._defineProperty(this,"mintBatch",cs.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),po._defineProperty(this,"mintBatchTo",cs.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),po._defineProperty(this,"burn",cs.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=cs.AbiSchema.parse(i||[]),this.metadata=new cs.ContractMetadata(this.contractWrapper,cs.TokenErc721ContractSchema,this.storage),this.app=new cs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new cs.ContractRoles(this.contractWrapper,pV.contractRoles),this.royalties=new cs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new cs.ContractPrimarySale(this.contractWrapper),this.encoder=new cs.ContractEncoder(this.contractWrapper),this.estimator=new cs.GasCostEstimator(this.contractWrapper),this.events=new cs.ContractEvents(this.contractWrapper),this.platformFees=new cs.ContractPlatformFee(this.contractWrapper),this.interceptor=new cs.ContractInterceptor(this.contractWrapper),this.signature=new cs.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new cs.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(cs.getRoleHash("transfer"),N7r.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return cs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};po._defineProperty(pV,"contractRoles",["admin","minter","transfer"]);bct.NFTCollection=pV});var nIe=_((bYn,B7r)=>{B7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var xct=_(wct=>{"use strict";d();p();var oi=bi(),Ya=os(),D7r=lV(),L7r=AX(),f2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var hV=class extends D7r.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ya.ContractWrapper(e,t,s,i);super(c,n,o),a=this,oi._defineProperty(this,"abi",void 0),oi._defineProperty(this,"encoder",void 0),oi._defineProperty(this,"estimator",void 0),oi._defineProperty(this,"metadata",void 0),oi._defineProperty(this,"app",void 0),oi._defineProperty(this,"sales",void 0),oi._defineProperty(this,"platformFees",void 0),oi._defineProperty(this,"events",void 0),oi._defineProperty(this,"roles",void 0),oi._defineProperty(this,"interceptor",void 0),oi._defineProperty(this,"royalties",void 0),oi._defineProperty(this,"claimConditions",void 0),oi._defineProperty(this,"revealer",void 0),oi._defineProperty(this,"checkout",void 0),oi._defineProperty(this,"owner",void 0),oi._defineProperty(this,"createBatch",Ya.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),oi._defineProperty(this,"claimTo",Ya.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),oi._defineProperty(this,"claim",Ya.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),oi._defineProperty(this,"burn",Ya.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),oi._defineProperty(this,"transfer",Ya.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),oi._defineProperty(this,"setApprovalForAll",Ya.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),oi._defineProperty(this,"setApprovalForToken",Ya.buildTransactionFunction(async(u,l)=>Ya.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=Ya.AbiSchema.parse(s||[]),this.metadata=new Ya.ContractMetadata(this.contractWrapper,Ya.DropErc721ContractSchema,this.storage),this.app=new Ya.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ya.ContractRoles(this.contractWrapper,hV.contractRoles),this.royalties=new Ya.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ya.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Ya.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Ya.ContractEncoder(this.contractWrapper),this.estimator=new Ya.GasCostEstimator(this.contractWrapper),this.events=new Ya.ContractEvents(this.contractWrapper),this.platformFees=new Ya.ContractPlatformFee(this.contractWrapper),this.revealer=new Ya.DelayedReveal(this.contractWrapper,this.storage,Ya.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Ya.ContractInterceptor(this.contractWrapper),this.owner=new Ya.ContractOwner(this.contractWrapper),this.checkout=new L7r.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=f2.BigNumber.from(e?.start||0).toNumber(),n=f2.BigNumber.from(e?.count||oi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=f2.BigNumber.from(e?.start||0).toNumber(),n=f2.BigNumber.from(e?.count||oi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=f2.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=f2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ya.getRoleHash("transfer"),f2.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Ya.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};oi._defineProperty(hV,"contractRoles",["admin","minter","transfer"]);wct.NFTDrop=hV});var aIe=_((_Yn,O7r)=>{O7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var iIe=_((TYn,q7r)=>{q7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var sIe=_((IYn,F7r)=>{F7r.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Act=_(kct=>{"use strict";d();p();var ei=bi(),Rt=os(),W7r=CX(),U7r=sIe(),H7r=sa(),mp=je(),k0=kr();Cr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function _ct(r){return r&&r.__esModule?r:{default:r}}var j7r=_ct(U7r),z7r=_ct(H7r),cIe=k0.z.object({contractAddress:Rt.AddressOrEnsSchema}),K7r=cIe.extend({quantity:ei.AmountSchema}),G7r=cIe.extend({tokenId:Rt.BigNumberishSchema}),V7r=cIe.extend({tokenId:Rt.BigNumberishSchema,quantity:Rt.BigNumberishSchema}),Tct=K7r.omit({quantity:!0}).extend({quantityPerReward:ei.AmountSchema}),Ict=G7r,Ect=V7r.omit({quantity:!0}).extend({quantityPerReward:Rt.BigNumberishSchema}),Y7r=Tct.extend({totalRewards:Rt.BigNumberishSchema.default("1")}),$7r=Ict,Q7r=Ect.extend({totalRewards:Rt.BigNumberishSchema.default("1")});k0.z.object({erc20Rewards:k0.z.array(Tct).default([]),erc721Rewards:k0.z.array(Ict).default([]),erc1155Rewards:k0.z.array(Ect).default([])});var Cct=k0.z.object({erc20Rewards:k0.z.array(Y7r).default([]),erc721Rewards:k0.z.array($7r).default([]),erc1155Rewards:k0.z.array(Q7r).default([])}),J7r=Cct.extend({packMetadata:ei.NFTInputOrUriSchema,rewardsPerPack:Rt.BigNumberishSchema.default("1"),openStartTime:Rt.RawDateSchema.default(new Date)}),oIe=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Rt.ContractWrapper(e,t,z7r.default,a);ei._defineProperty(this,"featureName",Rt.FEATURE_PACK_VRF.name),ei._defineProperty(this,"contractWrapper",void 0),ei._defineProperty(this,"storage",void 0),ei._defineProperty(this,"chainId",void 0),ei._defineProperty(this,"events",void 0),ei._defineProperty(this,"open",Rt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=mp.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),ei._defineProperty(this,"claimRewards",Rt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Rt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Rt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:mp.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Rt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:mp.BigNumber.from(5e5)}),i=mp.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Rt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Rt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,j7r.default,this.contractWrapper.options);return new Rt.Erc20(t,this.storage,this.chainId)}},fV=class extends W7r.StandardErc1155{get vrf(){return Rt.assertEnabled(this._vrf,Rt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,ei._defineProperty(this,"abi",void 0),ei._defineProperty(this,"metadata",void 0),ei._defineProperty(this,"app",void 0),ei._defineProperty(this,"roles",void 0),ei._defineProperty(this,"encoder",void 0),ei._defineProperty(this,"events",void 0),ei._defineProperty(this,"estimator",void 0),ei._defineProperty(this,"royalties",void 0),ei._defineProperty(this,"interceptor",void 0),ei._defineProperty(this,"owner",void 0),ei._defineProperty(this,"_vrf",void 0),ei._defineProperty(this,"create",Rt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),ei._defineProperty(this,"addPackContents",Rt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await Cct.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:I=>{let C=this.contractWrapper.parseLogs("PackUpdated",I?.logs);if(C.length===0)throw new Error("PackUpdated event not found");let R=C[0].args.packId;return{id:R,receipt:I,data:()=>this.erc1155.get(R)}}})})),ei._defineProperty(this,"createTo",Rt.buildTransactionFunction(async(u,l)=>{let h=await Rt.uploadOrExtractURI(l.packMetadata,this.storage),f=await J7r.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I}=f,C={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I},{contents:R,numOfRewardUnits:L}=await this.toPackContentArgs(C);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[R,L,h,f.openStartTime,f.rewardsPerPack,await Rt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:F,data:()=>this.erc1155.get(V)}}})})),ei._defineProperty(this,"open",Rt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Rt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,I=[],C=[],R=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Rt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);I.push({contractAddress:L.assetContract,quantityPerReward:mp.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{C.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{R.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:I,erc721Rewards:C,erc1155Rewards:R}}})})),this.abi=Rt.AbiSchema.parse(s||[]),this.metadata=new Rt.ContractMetadata(this.contractWrapper,Rt.PackContractSchema,this.storage),this.app=new Rt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Rt.ContractRoles(this.contractWrapper,fV.contractRoles),this.royalties=new Rt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Rt.ContractEncoder(this.contractWrapper),this.estimator=new Rt.GasCostEstimator(this.contractWrapper),this.events=new Rt.ContractEvents(this.contractWrapper),this.interceptor=new Rt.ContractInterceptor(this.contractWrapper),this.owner=new Rt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Rt.getRoleHash("transfer"),mp.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o1?t-1:0),a=1;a{HAr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var eot=x(Xst=>{"use strict";d();p();var Ci=xi(),ii=ds(),jAr=H_(),zAr=s8(),Lv=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var V_=class extends jAr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ii.ContractWrapper(e,t,i,a);super(o,n,s),Ci._defineProperty(this,"abi",void 0),Ci._defineProperty(this,"erc721",void 0),Ci._defineProperty(this,"owner",void 0),Ci._defineProperty(this,"encoder",void 0),Ci._defineProperty(this,"estimator",void 0),Ci._defineProperty(this,"metadata",void 0),Ci._defineProperty(this,"app",void 0),Ci._defineProperty(this,"sales",void 0),Ci._defineProperty(this,"platformFees",void 0),Ci._defineProperty(this,"events",void 0),Ci._defineProperty(this,"roles",void 0),Ci._defineProperty(this,"interceptor",void 0),Ci._defineProperty(this,"royalties",void 0),Ci._defineProperty(this,"claimConditions",void 0),Ci._defineProperty(this,"revealer",void 0),Ci._defineProperty(this,"signature",void 0),Ci._defineProperty(this,"checkout",void 0),Ci._defineProperty(this,"createBatch",ii.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Ci._defineProperty(this,"claimTo",ii.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Ci._defineProperty(this,"claim",ii.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Ci._defineProperty(this,"burn",ii.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=ii.AbiSchema.parse(i||[]),this.metadata=new ii.ContractMetadata(this.contractWrapper,ii.DropErc721ContractSchema,this.storage),this.app=new ii.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ii.ContractRoles(this.contractWrapper,V_.contractRoles),this.royalties=new ii.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ii.ContractPrimarySale(this.contractWrapper),this.encoder=new ii.ContractEncoder(this.contractWrapper),this.estimator=new ii.GasCostEstimator(this.contractWrapper),this.events=new ii.ContractEvents(this.contractWrapper),this.platformFees=new ii.ContractPlatformFee(this.contractWrapper),this.interceptor=new ii.ContractInterceptor(this.contractWrapper),this.erc721=new ii.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new ii.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new ii.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new ii.DelayedReveal(this.contractWrapper,this.storage,ii.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new ii.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ii.ContractOwner(this.contractWrapper),this.checkout=new zAr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Lv.BigNumber.from(e?.start||0).toNumber(),n=Lv.BigNumber.from(e?.count||Ci.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Lv.BigNumber.from(e?.start||0).toNumber(),n=Lv.BigNumber.from(e?.count||Ci.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Lv.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=Lv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ii.getRoleHash("transfer"),Lv.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return ii.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{KAr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var dee=x((_Kn,GAr)=>{GAr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var rot=x(tot=>{"use strict";d();p();var gu=xi(),Ra=ds(),VAr=Sn(),pee=je();Ir();kr();Tn();En();Cn();In();kn();An();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function $Ar(r){return r&&r.__esModule?r:{default:r}}var YAr=$Ar(VAr),$_=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ra.ContractWrapper(e,t,i,a);gu._defineProperty(this,"contractWrapper",void 0),gu._defineProperty(this,"storage",void 0),gu._defineProperty(this,"abi",void 0),gu._defineProperty(this,"metadata",void 0),gu._defineProperty(this,"app",void 0),gu._defineProperty(this,"encoder",void 0),gu._defineProperty(this,"estimator",void 0),gu._defineProperty(this,"events",void 0),gu._defineProperty(this,"roles",void 0),gu._defineProperty(this,"interceptor",void 0),gu._defineProperty(this,"_chainId",void 0),gu._defineProperty(this,"withdraw",Ra.buildTransactionFunction(async c=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ra.resolveAddress(c)]}))),gu._defineProperty(this,"withdrawToken",Ra.buildTransactionFunction(async(c,u)=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ra.resolveAddress(u),await Ra.resolveAddress(c)]}))),gu._defineProperty(this,"distribute",Ra.buildTransactionFunction(async()=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),gu._defineProperty(this,"distributeToken",Ra.buildTransactionFunction(async c=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ra.resolveAddress(c)]}))),this._chainId=s,this.abi=Ra.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ra.ContractMetadata(this.contractWrapper,Ra.SplitsContractSchema,this.storage),this.app=new Ra.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ra.ContractRoles(this.contractWrapper,$_.contractRoles),this.encoder=new Ra.ContractEncoder(this.contractWrapper),this.estimator=new Ra.GasCostEstimator(this.contractWrapper),this.events=new Ra.ContractEvents(this.contractWrapper),this.interceptor=new Ra.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=pee.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ra.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ra.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ra.resolveAddress(t),a=await Ra.resolveAddress(e),s=await new pee.Contract(n,YAr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ra.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ra.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(pee.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ra.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{JAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var ED=x(not=>{"use strict";d();p();var Y_=xi(),fee=ds(),mee=class{get chainId(){return this._chainId}constructor(e,t,n){Y_._defineProperty(this,"contractWrapper",void 0),Y_._defineProperty(this,"storage",void 0),Y_._defineProperty(this,"erc20",void 0),Y_._defineProperty(this,"_chainId",void 0),Y_._defineProperty(this,"transfer",fee.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Y_._defineProperty(this,"transferFrom",fee.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.erc20=new fee.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}};not.StandardErc20=mee});var iot=x(aot=>{"use strict";d();p();var xc=xi(),Ii=ds(),QAr=ED(),ZAr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var J_=class extends QAr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ii.ContractWrapper(e,t,s,i);super(c,n,o),a=this,xc._defineProperty(this,"abi",void 0),xc._defineProperty(this,"metadata",void 0),xc._defineProperty(this,"app",void 0),xc._defineProperty(this,"roles",void 0),xc._defineProperty(this,"encoder",void 0),xc._defineProperty(this,"estimator",void 0),xc._defineProperty(this,"sales",void 0),xc._defineProperty(this,"platformFees",void 0),xc._defineProperty(this,"events",void 0),xc._defineProperty(this,"claimConditions",void 0),xc._defineProperty(this,"interceptor",void 0),xc._defineProperty(this,"claim",Ii.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),xc._defineProperty(this,"claimTo",Ii.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),xc._defineProperty(this,"delegateTo",Ii.buildTransactionFunction(async u=>Ii.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Ii.resolveAddress(u)]}))),xc._defineProperty(this,"burnTokens",Ii.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),xc._defineProperty(this,"burnFrom",Ii.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=Ii.AbiSchema.parse(s||[]),this.metadata=new Ii.ContractMetadata(this.contractWrapper,Ii.DropErc20ContractSchema,this.storage),this.app=new Ii.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ii.ContractRoles(this.contractWrapper,J_.contractRoles),this.encoder=new Ii.ContractEncoder(this.contractWrapper),this.estimator=new Ii.GasCostEstimator(this.contractWrapper),this.events=new Ii.ContractEvents(this.contractWrapper),this.sales=new Ii.ContractPrimarySale(this.contractWrapper),this.platformFees=new Ii.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ii.ContractInterceptor(this.contractWrapper),this.claimConditions=new Ii.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Ii.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Ii.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ii.getRoleHash("transfer"),ZAr.constants.AddressZero)}async prepare(e,t,n){return Ii.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{XAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var gee=x((NKn,eSr)=>{eSr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var vee=x(oot=>{"use strict";d();p();var sot=xi(),tSr=ds(),CD=je(),bee=class{constructor(e,t){sot._defineProperty(this,"events",void 0),sot._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==CD.constants.AddressZero&&(i in n||(n[i]=CD.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==CD.constants.AddressZero&&(s in n||(n[s]=CD.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await tSr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};oot.TokenERC20History=bee});var uot=x(cot=>{"use strict";d();p();var yo=xi(),ki=ds(),rSr=vee(),nSr=ED(),aSr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Q_=class extends nSr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ki.ContractWrapper(e,t,i,a);super(o,n,s),yo._defineProperty(this,"abi",void 0),yo._defineProperty(this,"metadata",void 0),yo._defineProperty(this,"app",void 0),yo._defineProperty(this,"roles",void 0),yo._defineProperty(this,"encoder",void 0),yo._defineProperty(this,"estimator",void 0),yo._defineProperty(this,"history",void 0),yo._defineProperty(this,"events",void 0),yo._defineProperty(this,"platformFees",void 0),yo._defineProperty(this,"sales",void 0),yo._defineProperty(this,"signature",void 0),yo._defineProperty(this,"interceptor",void 0),yo._defineProperty(this,"mint",ki.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),yo._defineProperty(this,"mintTo",ki.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),yo._defineProperty(this,"mintBatchTo",ki.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),yo._defineProperty(this,"delegateTo",ki.buildTransactionFunction(async c=>ki.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await ki.resolveAddress(c)]}))),yo._defineProperty(this,"burn",ki.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),yo._defineProperty(this,"burnFrom",ki.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=ki.AbiSchema.parse(i||[]),this.metadata=new ki.ContractMetadata(this.contractWrapper,ki.TokenErc20ContractSchema,this.storage),this.app=new ki.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ki.ContractRoles(this.contractWrapper,Q_.contractRoles),this.sales=new ki.ContractPrimarySale(this.contractWrapper),this.events=new ki.ContractEvents(this.contractWrapper),this.history=new rSr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new ki.ContractEncoder(this.contractWrapper),this.estimator=new ki.GasCostEstimator(this.contractWrapper),this.platformFees=new ki.ContractPlatformFee(this.contractWrapper),this.interceptor=new ki.ContractInterceptor(this.contractWrapper),this.signature=new ki.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await ki.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ki.getRoleHash("transfer"),aSr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return ki.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{iSr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var _ee=x(lot=>{"use strict";d();p();var sSr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});lot.VoteType=sSr});var pot=x(dot=>{"use strict";d();p();var sd=xi(),Js=ds(),oSr=Sn(),o8=je(),xee=_ee();Ir();kr();Tn();En();Cn();In();kn();An();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function cSr(r){return r&&r.__esModule?r:{default:r}}var uSr=cSr(oSr),Tee=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Js.ContractWrapper(e,t,s,i);sd._defineProperty(this,"contractWrapper",void 0),sd._defineProperty(this,"storage",void 0),sd._defineProperty(this,"abi",void 0),sd._defineProperty(this,"metadata",void 0),sd._defineProperty(this,"app",void 0),sd._defineProperty(this,"encoder",void 0),sd._defineProperty(this,"estimator",void 0),sd._defineProperty(this,"events",void 0),sd._defineProperty(this,"interceptor",void 0),sd._defineProperty(this,"_chainId",void 0),sd._defineProperty(this,"propose",Js.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return Js.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),sd._defineProperty(this,"vote",Js.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),Js.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),sd._defineProperty(this,"execute",Js.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(E=>E.toAddress),f=l.executions.map(E=>E.nativeTokenValue),m=l.executions.map(E=>E.transactionData),y=o8.ethers.utils.id(l.description);return Js.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=Js.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new Js.ContractMetadata(this.contractWrapper,Js.VoteContractSchema,this.storage),this.app=new Js.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new Js.ContractEncoder(this.contractWrapper),this.estimator=new Js.GasCostEstimator(this.contractWrapper),this.events=new Js.ContractEvents(this.contractWrapper),this.interceptor=new Js.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(o8.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:xee.VoteType.Against,label:"Against",count:t.againstVotes},{type:xee.VoteType.For,label:"For",count:t.forVotes},{type:xee.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await Js.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=o8.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:o8.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new o8.Contract(await Js.resolveAddress(e),uSr.default,this.contractWrapper.getProvider());return await Js.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await Js.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return Js.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{lSr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var fot=x(hot=>{"use strict";d();p();function dSr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function pSr(r){var e=dSr(r,"string");return typeof e=="symbol"?e:String(e)}function hSr(r,e,t){return e=pSr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}hot._defineProperty=hSr});var kee=x(Iee=>{"use strict";d();p();Object.defineProperty(Iee,"__esModule",{value:!0});var mot=fot(),Cee=je(),ID=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],yot="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122021848ba6bc44b36a69178dfbcc49ad6f4ba35ff12408d3dd35eee774bfe7426964736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",fSr=r=>r.length>1,c8=class extends Cee.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";d();p();var mSr=Tn(),Q=je(),ySr=En(),gSr=Cn(),bSr=In(),vSr=kn(),wSr=An(),_Sr=Sn(),xSr=Pn(),TSr=Rn(),ESr=Mn(),CSr=Nn(),ISr=Bn(),kSr=Dn(),ASr=On(),SSr=Ln(),PSr=pn(),RSr=Fn(),MSr=qn(),NSr=Wn(),BSr=Un(),DSr=Hn(),OSr=jn(),LSr=zn(),FSr=Kn(),qSr=Gn(),WSr=Vn(),USr=$n(),HSr=Yn(),jSr=Jn(),zSr=hn(),KSr=Qn(),GSr=Zn(),VSr=Xn(),$Sr=ea(),YSr=ta(),JSr=ra(),QSr=na(),ZSr=aa(),XSr=ia(),ePr=sa(),tPr=oa(),rPr=ca(),nPr=ua(),aPr=la(),iPr=da(),sPr=pa(),$=xi(),de=kr(),L8=vt(),oPr=ha(),cPr=tn(),Yot=Qe(),uPr=fa(),Kv=bn(),lPr=Gr(),dPr=Xr(),pPr=ma(),Aee=ya(),hPr=ga(),fPr=qr(),mPr=mn(),yPr=ba(),gPr=va(),bPr=wa(),vPr=_a(),wPr=xa(),_Pr=Ta(),got=yn(),xPr=Ea(),TPr=Ca();function tt(r){return r&&r.__esModule?r:{default:r}}function $o(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Cte=tt(mSr),EPr=tt(ySr),Jot=tt(gSr),CPr=tt(bSr),Qot=tt(vSr),Zot=tt(wSr),bu=tt(_Sr),IPr=tt(xSr),Xot=tt(TSr),Ite=tt(ESr),kPr=tt(CSr),APr=tt(ISr),SPr=tt(kSr),ect=tt(ASr),PPr=tt(SSr),Ec=tt(PSr),RPr=tt(RSr),MPr=tt(MSr),xp=tt(NSr),tct=tt(BSr),NPr=tt(DSr),BPr=tt(OSr),DPr=tt(LSr),OPr=tt(FSr),LPr=tt(qSr),FPr=tt(WSr),rct=tt(USr),qPr=tt(HSr),WPr=tt(jSr),Ku=tt(zSr),UPr=tt(KSr),nct=tt(GSr),HPr=tt(VSr),jPr=tt($Sr),zPr=tt(YSr),KPr=tt(JSr),GPr=tt(QSr),VPr=tt(ZSr),$Pr=tt(XSr),YPr=tt(ePr),JPr=tt(tPr),QPr=tt(rPr),ZPr=tt(nPr),XPr=tt(aPr),e7r=tt(iPr),t7r=tt(sPr),r7r=tt(oPr),f8=tt(cPr),Dee=tt(Yot),act=tt(uPr),Tt=tt(lPr),n7r=tt(pPr),ict=tt(hPr),ZO=tt(mPr),a7r=tt(yPr),i7r=tt(gPr),s7r=tt(bPr),o7r=tt(vPr),c7r=tt(wPr),u7r=tt(_Pr),l7r=tt(xPr),d7r=tt(TPr);function p7r(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Oee(r,e,t){p7r(r,e),e.set(r,t)}function h7r(r,e){return e.get?e.get.call(r):e.value}function sct(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function RD(r,e){var t=sct(r,e,"get");return h7r(r,t)}function f7r(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function Lee(r,e,t){var n=sct(r,e,"set");return f7r(r,n,t),t}var Ne=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),oct=[Ne.Mainnet,Ne.Goerli,Ne.Polygon,Ne.Mumbai,Ne.Fantom,Ne.FantomTestnet,Ne.Avalanche,Ne.AvalancheFujiTestnet,Ne.Optimism,Ne.OptimismGoerli,Ne.Arbitrum,Ne.ArbitrumGoerli,Ne.BinanceSmartChainMainnet,Ne.BinanceSmartChainTestnet,Ne.Hardhat,Ne.Localhost],Fee=L8.defaultChains;function cct(r){r&&r.length>0?Fee=r:Fee=L8.defaultChains}function uct(){return Fee}var lct="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",D1="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",N1="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",Fv="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",m7r="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",y7r="0xcdAD8FA86e18538aC207872E8ff3536501431B73",O1={[Ne.Mainnet]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:Fv,twRegistry:N1,twBYOCRegistry:Q.constants.AddressZero},[Ne.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:Fv,twRegistry:N1,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Ne.Polygon]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:Fv,twRegistry:N1,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Ne.Mumbai]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:Fv,twRegistry:N1,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Ne.Avalanche]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:Fv,twRegistry:N1,twBYOCRegistry:Q.constants.AddressZero},[Ne.AvalancheFujiTestnet]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:Fv,twRegistry:N1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Fantom]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:N1,twBYOCRegistry:Q.constants.AddressZero},[Ne.FantomTestnet]:{openzeppelinForwarder:D1,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:Fv,twRegistry:N1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.Hardhat]:{openzeppelinForwarder:Q.constants.AddressZero,openzeppelinForwarderEOA:Q.constants.AddressZero,biconomyForwarder:Q.constants.AddressZero,twFactory:Q.constants.AddressZero,twRegistry:Q.constants.AddressZero,twBYOCRegistry:Q.constants.AddressZero},[Ne.Localhost]:{openzeppelinForwarder:Q.constants.AddressZero,openzeppelinForwarderEOA:Q.constants.AddressZero,biconomyForwarder:Q.constants.AddressZero,twFactory:Q.constants.AddressZero,twRegistry:Q.constants.AddressZero,twBYOCRegistry:Q.constants.AddressZero}},qee={[Ne.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Ne.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Ne.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Ne.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Ne.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Ne.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Ne.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Ne.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Ne.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Ne.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function dct(r,e){if(r in qee){let t=qee[r];if(e in t)return t[e]}return null}function m8(r,e){return r===Ne.Hardhat||r===Ne.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Q.constants.AddressZero:O1[r]?.[e]}function pct(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:m7r}function Wee(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:y7r}function kte(r){let e=oct.find(a=>a===r),t=e?O1[e].biconomyForwarder:Q.constants.AddressZero,n=e?O1[e].openzeppelinForwarder:Q.constants.AddressZero;return t!==Q.constants.AddressZero?[n,t]:[n]}var F8=Q.utils.arrayify("0x80ac58cd"),q8=Q.utils.arrayify("0xd9b67a26"),zu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",y8={[Ne.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Ne.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Ne.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Ne.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function MD(r){let e=uct().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Q.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:y8[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Q.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var g7r={[Ne.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Ne.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Ne.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Ne.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Ne.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Ne.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Ne.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},_l=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function XO(r){return!!(r&&r._isSigner)}function Ate(r){return!!(r&&r._isProvider)}function fi(r,e){let t,n;if(XO(r)?(t=r,r.provider&&(n=r.provider)):Ate(r)?n=r:n=g8(r,e),e?.readonlySettings&&(n=BD(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var hct=50,fct=250,b7r={timeLimitMs:hct,sizeLimit:fct},Uee=class extends Q.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b7r;super(e,t),$._defineProperty(this,"_timeLimitMs",void 0),$._defineProperty(this,"_sizeLimit",void 0),$._defineProperty(this,"_pendingBatchAggregator",void 0),$._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||fct,this._sizeLimit=n.sizeLimit||hct,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Q.utils.deepCopy(e),provider:this}),Q.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},See,Pee=new Map;async function mct(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;See||(See=fi("ethereum")[1]);let t;Pee.has(r)?t=Pee.get(r):t=See.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>mct(r)).refine(r=>!!r&&Q.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Rs=de.z.union([de.z.string(),de.z.number(),de.z.bigint(),de.z.custom(r=>Q.BigNumber.isBigNumber(r))]).transform(r=>Q.BigNumber.from(r)),Qs=Rs.transform(r=>r.toString()),yct=de.z.union([de.z.bigint(),de.z.custom(r=>Q.BigNumber.isBigNumber(r))]).transform(r=>Q.BigNumber.from(r).toString()),Ste=de.z.custom(r=>typeof r=="string"&&Q.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ai=de.z.union([Ste,v7r],{invalid_type_error:"Provided value was not a valid address or ENS name"}),W8=de.z.date().transform(r=>Q.BigNumber.from(Math.floor(r.getTime()/1e3))),Pte=W8.default(new Date(0)),U8=W8.default(new Date(Date.now()+1e3*60*60*24*365*10)),gct=de.z.object({gasLimit:Qs.optional(),gasPrice:Qs.optional(),maxFeePerGas:Qs.optional(),maxPriorityFeePerGas:Qs.optional(),nonce:Qs.optional(),value:Qs.optional(),blockTag:de.z.union([de.z.string(),de.z.number()]).optional(),from:Ai.optional(),type:de.z.number().optional()}).strict(),bct=de.z.object({rpc:de.z.array(de.z.string().url()),chainId:de.z.number(),nativeCurrency:de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),slug:de.z.string()}),Hee=de.z.object({supportedChains:de.z.array(bct).default(L8.defaultChains),thirdwebApiKey:de.z.string().default($.DEFAULT_API_KEY),alchemyApiKey:de.z.string().optional(),infuraApiKey:de.z.string().optional(),readonlySettings:de.z.object({rpcUrl:de.z.string().url(),chainId:de.z.number().optional()}).optional(),gasSettings:de.z.object({maxPriceInGwei:de.z.number().min(1,"gas price cannot be less than 1").default(300),speed:de.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:de.z.union([de.z.object({openzeppelin:de.z.object({relayerUrl:de.z.string().url(),relayerForwarderAddress:de.z.string().optional(),useEOAForwarder:de.z.boolean().default(!1)}),experimentalChainlessSupport:de.z.boolean().default(!1)}),de.z.object({biconomy:de.z.object({apiId:de.z.string(),apiKey:de.z.string(),deadlineSeconds:de.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:de.z.array(de.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),vct=de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),wct=vct.extend({value:Rs,displayValue:de.z.string()}),L0=de.z.object({merkle:de.z.record(de.z.string()).default({})}),ND=de.z.object({address:Ai,maxClaimable:$.QuantitySchema.default(0),price:$.QuantitySchema.optional(),currencyAddress:Ai.default(Q.ethers.constants.AddressZero).optional()}),H8=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>ND.parseAsync({address:e})))),de.z.array(ND)]),Rte=ND.extend({proof:de.z.array(de.z.string())}),Mte=de.z.object({merkleRoot:de.z.string(),claims:de.z.array(Rte)}),w7r=de.z.object({merkleRoot:de.z.string(),snapshotUri:de.z.string()}),_ct=de.z.object({name:de.z.string().optional()}).catchall(de.z.unknown()),j8=de.z.object({startTime:Pte,currencyAddress:de.z.string().default(zu),price:$.AmountSchema.default(0),maxClaimableSupply:$.QuantitySchema,maxClaimablePerWallet:$.QuantitySchema,waitInSeconds:Qs.default(0),merkleRootHash:$.BytesLikeSchema.default(Q.utils.hexZeroPad([0],32)),snapshot:de.z.optional(H8).nullable(),metadata:_ct.optional()}),xct=de.z.array(j8),_7r=j8.partial(),Nte=j8.extend({availableSupply:$.QuantitySchema,currentMintSupply:$.QuantitySchema,currencyMetadata:wct.default({value:Q.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Rs,waitInSeconds:Rs,startTime:Rs.transform(r=>new Date(r.toNumber()*1e3)),snapshot:H8.optional().nullable()});function x7r(r){if(r===void 0){let e=b.Buffer.alloc(16);return fPr.v4({},e),Q.utils.hexlify(Q.utils.toUtf8Bytes(e.toString("hex")))}else return Q.utils.hexlify(r)}var eL=de.z.object({to:Ai.refine(r=>r.toLowerCase()!==Q.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:$.AmountSchema.default(0),currencyAddress:Ste.default(zu),mintStartTime:Pte,mintEndTime:U8,uid:de.z.string().optional().transform(r=>x7r(r)),primarySaleRecipient:Ai.default(Q.constants.AddressZero)}),Bte=eL.extend({quantity:$.AmountSchema}),Tct=Bte.extend({mintStartTime:Rs,mintEndTime:Rs}),tL=eL.extend({metadata:$.NFTInputOrUriSchema,royaltyRecipient:de.z.string().default(Q.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0)}),Dte=tL.extend({uri:de.z.string(),royaltyBps:Rs,mintStartTime:Rs,mintEndTime:Rs}),Ect=tL.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Qs}),Cct=Ect.extend({tokenId:Qs}),Ict=Dte.extend({tokenId:Rs,quantity:Rs}),kct=tL.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Rs.default(1)}),Act=Dte.extend({quantity:Rs.default(1)}),Sct=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Pct=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Rct=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Mct=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Nct=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],El=de.z.object({name:de.z.string(),description:de.z.string().optional(),image:$.FileOrBufferOrStringSchema.optional(),external_link:de.z.string().optional(),app_uri:de.z.string().optional()}),od=El.extend({image:de.z.string().optional()}).catchall(de.z.unknown()),Vo=de.z.object({seller_fee_basis_points:$.BasisPointsSchema.default(0),fee_recipient:Ai.default(Q.constants.AddressZero)}),L1=de.z.object({primary_sale_recipient:Ai}),_p=de.z.object({platform_fee_basis_points:$.BasisPointsSchema.default(0),platform_fee_recipient:Ai.default(Q.constants.AddressZero)}),cd=de.z.object({trusted_forwarders:de.z.array(Ai).default([])}),vo=de.z.object({symbol:de.z.string().default("")}),Bct=El.merge(Vo).merge(L0).merge(vo),T7r=od.merge(Vo).merge(L0).merge(vo),E7r=Bct.merge(_p).merge(L1).merge(cd),Ote={deploy:E7r,output:T7r,input:Bct},Dct=El.merge(Vo).merge(L0).merge(vo),C7r=od.merge(Vo).merge(L0).merge(vo),I7r=Dct.merge(_p).merge(L1).merge(cd),Oct={deploy:I7r,output:C7r,input:Dct},Lct=El,k7r=od,A7r=Lct.merge(_p).merge(cd),Lte={deploy:A7r,output:k7r,input:Lct},Fct=El.merge(Vo).merge(vo),S7r=od.merge(Vo).merge(vo),P7r=Fct.merge(_p).merge(cd),qct={deploy:P7r,output:S7r,input:Fct},Wct=de.z.object({address:Ai,sharesBps:$.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),R7r=Wct.extend({address:Ai,sharesBps:$.BasisPointsSchema}),jee=El.extend({recipients:de.z.array(Wct).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),M7r=od.extend({recipients:de.z.array(R7r)}),N7r=jee.merge(jee).merge(cd),Uct={deploy:N7r,output:M7r,input:jee},Hct=El.merge(vo),B7r=od.merge(vo),D7r=Hct.merge(_p).merge(L1).merge(cd),jct={deploy:D7r,output:B7r,input:Hct},zct=El.merge(Vo).merge(vo),O7r=od.merge(Vo).merge(vo),L7r=zct.merge(_p).merge(L1).merge(cd),Kct={deploy:L7r,output:O7r,input:zct},Gct=El.merge(Vo).merge(vo),F7r=od.merge(Vo).merge(vo),q7r=Gct.merge(_p).merge(L1).merge(cd),Vct={deploy:q7r,output:F7r,input:Gct},$ct=de.z.object({voting_delay_in_blocks:de.z.number().min(0).default(0),voting_period_in_blocks:de.z.number().min(1).default(1),voting_token_address:Ai,voting_quorum_fraction:$.PercentSchema.default(0),proposal_token_threshold:Qs.default(1)}),W7r=$ct.extend({proposal_token_threshold:Rs}),Yct=El.merge($ct),U7r=od.merge(W7r),H7r=Yct.merge(cd),Jct={deploy:H7r,output:U7r,input:Yct};de.z.object({proposalId:Rs,proposer:de.z.string(),targets:de.z.array(de.z.string()),values:de.z.array(Rs),signatures:de.z.array(de.z.string()),calldatas:de.z.array(de.z.string()),startBlock:Rs,endBlock:Rs,description:de.z.string()});function j7r(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function g8(r,e){if(typeof r=="string"&&z7r(r))return BD(r);let t=Hee.parse(e);rL(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=j7r(t),a="",i;try{i=Qct(r,t),a=L8.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||$.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||$.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return BD(a,i)}function Qct(r,e){if(rL(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function rL(r){return typeof r!="string"&&typeof r!="number"&&!XO(r)&&!Ate(r)}function z7r(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var bot=new Map;function BD(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=bot.get(n);if(a)return a;let i=e?new Uee(r,e):new Q.providers.JsonRpcBatchProvider(r);return bot.set(n,i),i;case"ws":case"wss":return new Q.providers.WebSocketProvider(r,e)}}catch{}return Q.providers.getDefaultProvider(r)}var b8=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},zee=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},DD=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},Kee=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},Gee=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},Vee=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},$ee=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},Yee=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},Jee=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},Qee=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},Zee=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),$._defineProperty(this,"innerError",void 0),this.innerError=t}},OD=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},Xee=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},ete=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},tte=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},rte=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},nte=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},ate=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},rx=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},R0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},Ree=new WeakMap,Mee=new WeakMap,v8=class extends Error{constructor(e){let t=` +`);n.push(u.totalRewards),t.push({assetContract:u.contractAddress,tokenType:2,totalAmount:mp.BigNumber.from(u.quantityPerReward).mul(mp.BigNumber.from(u.totalRewards)),tokenId:u.tokenId})}return{contents:t,numOfRewardUnits:n}}async prepare(e,t,n){return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectVrf(){if(Rt.detectContractFeature(this.contractWrapper,"PackVRF"))return new oIe(this.contractWrapper.getSignerOrProvider(),this.contractWrapper.readContract.address,this.storage,this.contractWrapper.options,this.chainId)}};ei._defineProperty(fV,"contractRoles",["admin","minter","asset","transfer"]);kct.Pack=fV});var uIe=_((AYn,Z7r)=>{Z7r.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Sct=_(Pct=>{"use strict";d();p();var zi=bi(),ci=os(),X7r=lV(),eRr=AX(),m2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var mV=class extends X7r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ci.ContractWrapper(e,t,i,a);super(o,n,s),zi._defineProperty(this,"abi",void 0),zi._defineProperty(this,"owner",void 0),zi._defineProperty(this,"encoder",void 0),zi._defineProperty(this,"estimator",void 0),zi._defineProperty(this,"metadata",void 0),zi._defineProperty(this,"app",void 0),zi._defineProperty(this,"sales",void 0),zi._defineProperty(this,"platformFees",void 0),zi._defineProperty(this,"events",void 0),zi._defineProperty(this,"roles",void 0),zi._defineProperty(this,"interceptor",void 0),zi._defineProperty(this,"royalties",void 0),zi._defineProperty(this,"claimConditions",void 0),zi._defineProperty(this,"revealer",void 0),zi._defineProperty(this,"signature",void 0),zi._defineProperty(this,"checkout",void 0),zi._defineProperty(this,"createBatch",ci.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),zi._defineProperty(this,"claimTo",ci.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),zi._defineProperty(this,"claim",ci.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),zi._defineProperty(this,"burn",ci.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=ci.AbiSchema.parse(i||[]),this.metadata=new ci.ContractMetadata(this.contractWrapper,ci.DropErc721ContractSchema,this.storage),this.app=new ci.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ci.ContractRoles(this.contractWrapper,mV.contractRoles),this.royalties=new ci.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ci.ContractPrimarySale(this.contractWrapper),this.encoder=new ci.ContractEncoder(this.contractWrapper),this.estimator=new ci.GasCostEstimator(this.contractWrapper),this.events=new ci.ContractEvents(this.contractWrapper),this.platformFees=new ci.ContractPlatformFee(this.contractWrapper),this.interceptor=new ci.ContractInterceptor(this.contractWrapper),this.claimConditions=new ci.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new ci.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new ci.DelayedReveal(this.contractWrapper,this.storage,ci.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new ci.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ci.ContractOwner(this.contractWrapper),this.checkout=new eRr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=m2.BigNumber.from(e?.start||0).toNumber(),n=m2.BigNumber.from(e?.count||zi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=m2.BigNumber.from(e?.start||0).toNumber(),n=m2.BigNumber.from(e?.count||zi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=m2.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=m2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ci.getRoleHash("transfer"),m2.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return ci.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};zi._defineProperty(mV,"contractRoles",["admin","minter","transfer"]);Pct.SignatureDrop=mV});var lIe=_((MYn,tRr)=>{tRr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var dIe=_((NYn,rRr)=>{rRr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var Mct=_(Rct=>{"use strict";d();p();var gu=bi(),Ra=os(),nRr=Pn(),pIe=je();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function aRr(r){return r&&r.__esModule?r:{default:r}}var iRr=aRr(nRr),yV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ra.ContractWrapper(e,t,i,a);gu._defineProperty(this,"contractWrapper",void 0),gu._defineProperty(this,"storage",void 0),gu._defineProperty(this,"abi",void 0),gu._defineProperty(this,"metadata",void 0),gu._defineProperty(this,"app",void 0),gu._defineProperty(this,"encoder",void 0),gu._defineProperty(this,"estimator",void 0),gu._defineProperty(this,"events",void 0),gu._defineProperty(this,"roles",void 0),gu._defineProperty(this,"interceptor",void 0),gu._defineProperty(this,"_chainId",void 0),gu._defineProperty(this,"withdraw",Ra.buildTransactionFunction(async c=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ra.resolveAddress(c)]}))),gu._defineProperty(this,"withdrawToken",Ra.buildTransactionFunction(async(c,u)=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ra.resolveAddress(u),await Ra.resolveAddress(c)]}))),gu._defineProperty(this,"distribute",Ra.buildTransactionFunction(async()=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),gu._defineProperty(this,"distributeToken",Ra.buildTransactionFunction(async c=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ra.resolveAddress(c)]}))),this._chainId=s,this.abi=Ra.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ra.ContractMetadata(this.contractWrapper,Ra.SplitsContractSchema,this.storage),this.app=new Ra.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ra.ContractRoles(this.contractWrapper,yV.contractRoles),this.encoder=new Ra.ContractEncoder(this.contractWrapper),this.estimator=new Ra.GasCostEstimator(this.contractWrapper),this.events=new Ra.ContractEvents(this.contractWrapper),this.interceptor=new Ra.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=pIe.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ra.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ra.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ra.resolveAddress(t),a=await Ra.resolveAddress(e),s=await new pIe.Contract(n,iRr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ra.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ra.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(pIe.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ra.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};gu._defineProperty(yV,"contractRoles",["admin"]);Rct.Split=yV});var hIe=_((OYn,sRr)=>{sRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Zde=_(Nct=>{"use strict";d();p();var Rg=bi(),PX=os(),fIe=class{get chainId(){return this._chainId}constructor(e,t,n){Rg._defineProperty(this,"contractWrapper",void 0),Rg._defineProperty(this,"storage",void 0),Rg._defineProperty(this,"erc20",void 0),Rg._defineProperty(this,"_chainId",void 0),Rg._defineProperty(this,"transfer",PX.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Rg._defineProperty(this,"transferFrom",PX.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),Rg._defineProperty(this,"setAllowance",PX.buildTransactionFunction(async(a,i)=>this.erc20.setAllowance.prepare(a,i))),Rg._defineProperty(this,"transferBatch",PX.buildTransactionFunction(async a=>this.erc20.transferBatch.prepare(a))),this.contractWrapper=e,this.storage=t,this.erc20=new PX.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}};Nct.StandardErc20=fIe});var Dct=_(Bct=>{"use strict";d();p();var _c=bi(),_i=os(),oRr=Zde(),cRr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var gV=class extends oRr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new _i.ContractWrapper(e,t,s,i);super(c,n,o),a=this,_c._defineProperty(this,"abi",void 0),_c._defineProperty(this,"metadata",void 0),_c._defineProperty(this,"app",void 0),_c._defineProperty(this,"roles",void 0),_c._defineProperty(this,"encoder",void 0),_c._defineProperty(this,"estimator",void 0),_c._defineProperty(this,"sales",void 0),_c._defineProperty(this,"platformFees",void 0),_c._defineProperty(this,"events",void 0),_c._defineProperty(this,"claimConditions",void 0),_c._defineProperty(this,"interceptor",void 0),_c._defineProperty(this,"claim",_i.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),_c._defineProperty(this,"claimTo",_i.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),_c._defineProperty(this,"delegateTo",_i.buildTransactionFunction(async u=>_i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await _i.resolveAddress(u)]}))),_c._defineProperty(this,"burnTokens",_i.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),_c._defineProperty(this,"burnFrom",_i.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=_i.AbiSchema.parse(s||[]),this.metadata=new _i.ContractMetadata(this.contractWrapper,_i.DropErc20ContractSchema,this.storage),this.app=new _i.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new _i.ContractRoles(this.contractWrapper,gV.contractRoles),this.encoder=new _i.ContractEncoder(this.contractWrapper),this.estimator=new _i.GasCostEstimator(this.contractWrapper),this.events=new _i.ContractEvents(this.contractWrapper),this.sales=new _i.ContractPrimarySale(this.contractWrapper),this.platformFees=new _i.ContractPlatformFee(this.contractWrapper),this.interceptor=new _i.ContractInterceptor(this.contractWrapper),this.claimConditions=new _i.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await _i.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await _i.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(_i.getRoleHash("transfer"),cRr.constants.AddressZero)}async prepare(e,t,n){return _i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};_c._defineProperty(gV,"contractRoles",["admin","transfer"]);Bct.TokenDrop=gV});var mIe=_((zYn,uRr)=>{uRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var yIe=_((KYn,lRr)=>{lRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var bIe=_(Oct=>{"use strict";d();p();var Lct=bi(),dRr=os(),Xde=je(),gIe=class{constructor(e,t){Lct._defineProperty(this,"events",void 0),Lct._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==Xde.constants.AddressZero&&(i in n||(n[i]=Xde.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==Xde.constants.AddressZero&&(s in n||(n[s]=Xde.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await dRr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};Oct.TokenERC20History=gIe});var Fct=_(qct=>{"use strict";d();p();var ho=bi(),Ti=os(),pRr=bIe(),hRr=Zde(),fRr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var bV=class extends hRr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ti.ContractWrapper(e,t,i,a);super(o,n,s),ho._defineProperty(this,"abi",void 0),ho._defineProperty(this,"metadata",void 0),ho._defineProperty(this,"app",void 0),ho._defineProperty(this,"roles",void 0),ho._defineProperty(this,"encoder",void 0),ho._defineProperty(this,"estimator",void 0),ho._defineProperty(this,"history",void 0),ho._defineProperty(this,"events",void 0),ho._defineProperty(this,"platformFees",void 0),ho._defineProperty(this,"sales",void 0),ho._defineProperty(this,"signature",void 0),ho._defineProperty(this,"interceptor",void 0),ho._defineProperty(this,"mint",Ti.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),ho._defineProperty(this,"mintTo",Ti.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),ho._defineProperty(this,"mintBatchTo",Ti.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),ho._defineProperty(this,"delegateTo",Ti.buildTransactionFunction(async c=>Ti.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Ti.resolveAddress(c)]}))),ho._defineProperty(this,"burn",Ti.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),ho._defineProperty(this,"burnFrom",Ti.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Ti.AbiSchema.parse(i||[]),this.metadata=new Ti.ContractMetadata(this.contractWrapper,Ti.TokenErc20ContractSchema,this.storage),this.app=new Ti.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ti.ContractRoles(this.contractWrapper,bV.contractRoles),this.sales=new Ti.ContractPrimarySale(this.contractWrapper),this.events=new Ti.ContractEvents(this.contractWrapper),this.history=new pRr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Ti.ContractEncoder(this.contractWrapper),this.estimator=new Ti.GasCostEstimator(this.contractWrapper),this.platformFees=new Ti.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ti.ContractInterceptor(this.contractWrapper),this.signature=new Ti.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Ti.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ti.getRoleHash("transfer"),fRr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Ti.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ho._defineProperty(bV,"contractRoles",["admin","minter","transfer"]);qct.Token=bV});var vIe=_((ZYn,mRr)=>{mRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var wIe=_(Wct=>{"use strict";d();p();var yRr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});Wct.VoteType=yRr});var Hct=_(Uct=>{"use strict";d();p();var ad=bi(),Gs=os(),gRr=Pn(),SX=je(),xIe=wIe();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function bRr(r){return r&&r.__esModule?r:{default:r}}var vRr=bRr(gRr),_Ie=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Gs.ContractWrapper(e,t,s,i);ad._defineProperty(this,"contractWrapper",void 0),ad._defineProperty(this,"storage",void 0),ad._defineProperty(this,"abi",void 0),ad._defineProperty(this,"metadata",void 0),ad._defineProperty(this,"app",void 0),ad._defineProperty(this,"encoder",void 0),ad._defineProperty(this,"estimator",void 0),ad._defineProperty(this,"events",void 0),ad._defineProperty(this,"interceptor",void 0),ad._defineProperty(this,"_chainId",void 0),ad._defineProperty(this,"propose",Gs.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return Gs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ad._defineProperty(this,"vote",Gs.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),Gs.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),ad._defineProperty(this,"execute",Gs.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(I=>I.toAddress),f=l.executions.map(I=>I.nativeTokenValue),m=l.executions.map(I=>I.transactionData),y=SX.ethers.utils.id(l.description);return Gs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=Gs.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new Gs.ContractMetadata(this.contractWrapper,Gs.VoteContractSchema,this.storage),this.app=new Gs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new Gs.ContractEncoder(this.contractWrapper),this.estimator=new Gs.GasCostEstimator(this.contractWrapper),this.events=new Gs.ContractEvents(this.contractWrapper),this.interceptor=new Gs.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(SX.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:xIe.VoteType.Against,label:"Against",count:t.againstVotes},{type:xIe.VoteType.For,label:"For",count:t.forVotes},{type:xIe.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await Gs.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=SX.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:SX.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new SX.Contract(await Gs.resolveAddress(e),vRr.default,this.contractWrapper.getProvider());return await Gs.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await Gs.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return Gs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Uct.Vote=_Ie});var TIe=_((i$n,wRr)=>{wRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var zct=_(jct=>{"use strict";d();p();function xRr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function _Rr(r){var e=xRr(r,"string");return typeof e=="symbol"?e:String(e)}function TRr(r,e,t){return e=_Rr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}jct._defineProperty=TRr});var CIe=_(EIe=>{"use strict";d();p();Object.defineProperty(EIe,"__esModule",{value:!0});var Kct=zct(),IIe=je(),epe=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],Gct="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122021848ba6bc44b36a69178dfbcc49ad6f4ba35ff12408d3dd35eee774bfe7426964736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",IRr=r=>r.length>1,RX=class extends IIe.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";d();p();var ERr=Tn(),J=je(),CRr=In(),kRr=En(),ARr=Cn(),PRr=kn(),SRr=An(),RRr=Pn(),MRr=Sn(),NRr=Rn(),BRr=Mn(),DRr=Nn(),LRr=Bn(),ORr=Dn(),qRr=Ln(),FRr=On(),WRr=pn(),URr=qn(),HRr=Fn(),jRr=Wn(),zRr=Un(),KRr=Hn(),GRr=jn(),VRr=zn(),YRr=Kn(),$Rr=Gn(),QRr=Vn(),JRr=Yn(),ZRr=$n(),XRr=Qn(),e9r=hn(),t9r=Jn(),r9r=Zn(),n9r=Xn(),a9r=ea(),i9r=ta(),s9r=ra(),o9r=na(),c9r=aa(),u9r=ia(),l9r=sa(),d9r=oa(),p9r=ca(),h9r=ua(),f9r=la(),m9r=da(),y9r=pa(),Y=bi(),de=kr(),iee=vt(),g9r=ha(),b9r=tn(),Eut=Je(),v9r=fa(),Dg=bn(),w9r=Gr(),x9r=Xr(),_9r=ma(),kIe=ya(),T9r=ga(),I9r=Fr(),E9r=mn(),C9r=ba(),k9r=va(),A9r=wa(),P9r=xa(),S9r=_a(),R9r=Ta(),Vct=yn(),M9r=Ia(),N9r=Ea();function tt(r){return r&&r.__esModule?r:{default:r}}function Vo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var IEe=tt(ERr),B9r=tt(CRr),Cut=tt(kRr),D9r=tt(ARr),kut=tt(PRr),Aut=tt(SRr),bu=tt(RRr),L9r=tt(MRr),Put=tt(NRr),EEe=tt(BRr),O9r=tt(DRr),q9r=tt(LRr),F9r=tt(ORr),Sut=tt(qRr),W9r=tt(FRr),Ic=tt(WRr),U9r=tt(URr),H9r=tt(HRr),wp=tt(jRr),Rut=tt(zRr),j9r=tt(KRr),z9r=tt(GRr),K9r=tt(VRr),G9r=tt(YRr),V9r=tt($Rr),Y9r=tt(QRr),Mut=tt(JRr),$9r=tt(ZRr),Q9r=tt(XRr),ju=tt(e9r),J9r=tt(t9r),Nut=tt(r9r),Z9r=tt(n9r),X9r=tt(a9r),eMr=tt(i9r),tMr=tt(s9r),rMr=tt(o9r),nMr=tt(c9r),aMr=tt(u9r),iMr=tt(l9r),sMr=tt(d9r),oMr=tt(p9r),cMr=tt(h9r),uMr=tt(f9r),lMr=tt(m9r),dMr=tt(y9r),pMr=tt(g9r),OX=tt(b9r),BIe=tt(Eut),But=tt(v9r),_t=tt(w9r),hMr=tt(_9r),Dut=tt(T9r),Ahe=tt(E9r),fMr=tt(C9r),mMr=tt(k9r),yMr=tt(A9r),gMr=tt(P9r),bMr=tt(S9r),vMr=tt(R9r),wMr=tt(M9r),xMr=tt(N9r);function _Mr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function DIe(r,e,t){_Mr(r,e),e.set(r,t)}function TMr(r,e){return e.get?e.get.call(r):e.value}function Lut(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function ipe(r,e){var t=Lut(r,e,"get");return TMr(r,t)}function IMr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function LIe(r,e,t){var n=Lut(r,e,"set");return IMr(r,n,t),t}var Ne=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),Out=[Ne.Mainnet,Ne.Goerli,Ne.Polygon,Ne.Mumbai,Ne.Fantom,Ne.FantomTestnet,Ne.Avalanche,Ne.AvalancheFujiTestnet,Ne.Optimism,Ne.OptimismGoerli,Ne.Arbitrum,Ne.ArbitrumGoerli,Ne.BinanceSmartChainMainnet,Ne.BinanceSmartChainTestnet,Ne.Hardhat,Ne.Localhost],OIe=iee.defaultChains;function qut(r){r&&r.length>0?OIe=r:OIe=iee.defaultChains}function Fut(){return OIe}var Wut="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",Bg="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",Mg="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",y2="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",EMr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",CMr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Lg={[Ne.Mainnet]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:y2,twRegistry:Mg,twBYOCRegistry:J.constants.AddressZero},[Ne.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Ne.Polygon]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Ne.Mumbai]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Ne.Avalanche]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:y2,twRegistry:Mg,twBYOCRegistry:J.constants.AddressZero},[Ne.AvalancheFujiTestnet]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Fantom]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:Mg,twBYOCRegistry:J.constants.AddressZero},[Ne.FantomTestnet]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.Hardhat]:{openzeppelinForwarder:J.constants.AddressZero,openzeppelinForwarderEOA:J.constants.AddressZero,biconomyForwarder:J.constants.AddressZero,twFactory:J.constants.AddressZero,twRegistry:J.constants.AddressZero,twBYOCRegistry:J.constants.AddressZero},[Ne.Localhost]:{openzeppelinForwarder:J.constants.AddressZero,openzeppelinForwarderEOA:J.constants.AddressZero,biconomyForwarder:J.constants.AddressZero,twFactory:J.constants.AddressZero,twRegistry:J.constants.AddressZero,twBYOCRegistry:J.constants.AddressZero}},qIe={[Ne.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Ne.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Ne.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Ne.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Ne.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Ne.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Ne.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Ne.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Ne.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Ne.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function Uut(r,e){if(r in qIe){let t=qIe[r];if(e in t)return t[e]}return null}function qX(r,e){return r===Ne.Hardhat||r===Ne.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:J.constants.AddressZero:Lg[r]?.[e]}function Hut(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:EMr}function FIe(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:CMr}function CEe(r){let e=Out.find(a=>a===r),t=e?Lg[e].biconomyForwarder:J.constants.AddressZero,n=e?Lg[e].openzeppelinForwarder:J.constants.AddressZero;return t!==J.constants.AddressZero?[n,t]:[n]}var see=J.utils.arrayify("0x80ac58cd"),oee=J.utils.arrayify("0xd9b67a26"),Hu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",FX={[Ne.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Ne.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Ne.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Ne.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function spe(r){let e=Fut().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:J.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:FX[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:J.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var kMr={[Ne.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Ne.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Ne.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Ne.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Ne.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Ne.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Ne.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},xl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function Phe(r){return!!(r&&r._isSigner)}function kEe(r){return!!(r&&r._isProvider)}function ui(r,e){let t,n;if(Phe(r)?(t=r,r.provider&&(n=r.provider)):kEe(r)?n=r:n=WX(r,e),e?.readonlySettings&&(n=cpe(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var jut=50,zut=250,AMr={timeLimitMs:jut,sizeLimit:zut},WIe=class extends J.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:AMr;super(e,t),Y._defineProperty(this,"_timeLimitMs",void 0),Y._defineProperty(this,"_sizeLimit",void 0),Y._defineProperty(this,"_pendingBatchAggregator",void 0),Y._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||zut,this._sizeLimit=n.sizeLimit||jut,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:J.utils.deepCopy(e),provider:this}),J.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},AIe,PIe=new Map;async function Kut(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;AIe||(AIe=ui("ethereum")[1]);let t;PIe.has(r)?t=PIe.get(r):t=AIe.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>Kut(r)).refine(r=>!!r&&J.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Cs=de.z.union([de.z.string(),de.z.number(),de.z.bigint(),de.z.custom(r=>J.BigNumber.isBigNumber(r))]).transform(r=>J.BigNumber.from(r)),Vs=Cs.transform(r=>r.toString()),Gut=de.z.union([de.z.bigint(),de.z.custom(r=>J.BigNumber.isBigNumber(r))]).transform(r=>J.BigNumber.from(r).toString()),AEe=de.z.custom(r=>typeof r=="string"&&J.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ii=de.z.union([AEe,PMr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),cee=de.z.union([de.z.date().transform(r=>J.BigNumber.from(Math.floor(r.getTime()/1e3))),de.z.number().transform(r=>J.BigNumber.from(r))]),PEe=cee.default(new Date(0)),uee=cee.default(new Date(Date.now()+1e3*60*60*24*365*10)),Vut=de.z.object({gasLimit:Vs.optional(),gasPrice:Vs.optional(),maxFeePerGas:Vs.optional(),maxPriorityFeePerGas:Vs.optional(),nonce:Vs.optional(),value:Vs.optional(),blockTag:de.z.union([de.z.string(),de.z.number()]).optional(),from:Ii.optional(),type:de.z.number().optional()}).strict(),Yut=de.z.object({rpc:de.z.array(de.z.string().url()),chainId:de.z.number(),nativeCurrency:de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),slug:de.z.string()}),UIe=de.z.object({supportedChains:de.z.array(Yut).default(iee.defaultChains),thirdwebApiKey:de.z.string().default(Y.DEFAULT_API_KEY),alchemyApiKey:de.z.string().optional(),infuraApiKey:de.z.string().optional(),readonlySettings:de.z.object({rpcUrl:de.z.string().url(),chainId:de.z.number().optional()}).optional(),gasSettings:de.z.object({maxPriceInGwei:de.z.number().min(1,"gas price cannot be less than 1").default(300),speed:de.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:de.z.union([de.z.object({openzeppelin:de.z.object({relayerUrl:de.z.string().url(),relayerForwarderAddress:de.z.string().optional(),useEOAForwarder:de.z.boolean().default(!1)}),experimentalChainlessSupport:de.z.boolean().default(!1)}),de.z.object({biconomy:de.z.object({apiId:de.z.string(),apiKey:de.z.string(),deadlineSeconds:de.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:de.z.array(de.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),$ut=de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),Qut=$ut.extend({value:Cs,displayValue:de.z.string()}),D0=de.z.object({merkle:de.z.record(de.z.string()).default({})}),ope=de.z.object({address:Ii,maxClaimable:Y.QuantitySchema.default(0),price:Y.QuantitySchema.optional(),currencyAddress:Ii.default(J.ethers.constants.AddressZero).optional()}),lee=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>ope.parseAsync({address:e})))),de.z.array(ope)]),SEe=ope.extend({proof:de.z.array(de.z.string())}),REe=de.z.object({merkleRoot:de.z.string(),claims:de.z.array(SEe)}),SMr=de.z.object({merkleRoot:de.z.string(),snapshotUri:de.z.string()}),Jut=de.z.object({name:de.z.string().optional()}).catchall(de.z.unknown()),dee=de.z.object({startTime:PEe,currencyAddress:de.z.string().default(Hu),price:Y.AmountSchema.default(0),maxClaimableSupply:Y.QuantitySchema,maxClaimablePerWallet:Y.QuantitySchema,waitInSeconds:Vs.default(0),merkleRootHash:Y.BytesLikeSchema.default(J.utils.hexZeroPad([0],32)),snapshot:de.z.optional(lee).nullable(),metadata:Jut.optional()}),Zut=de.z.array(dee),RMr=dee.partial(),MEe=dee.extend({availableSupply:Y.QuantitySchema,currentMintSupply:Y.QuantitySchema,currencyMetadata:Qut.default({value:J.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Cs,waitInSeconds:Cs,startTime:Cs.transform(r=>new Date(r.toNumber()*1e3)),snapshot:lee.optional().nullable()});function MMr(r){if(r===void 0){let e=b.Buffer.alloc(16);return I9r.v4({},e),J.utils.hexlify(J.utils.toUtf8Bytes(e.toString("hex")))}else return J.utils.hexlify(r)}var She=de.z.object({to:Ii.refine(r=>r.toLowerCase()!==J.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Y.AmountSchema.default(0),currencyAddress:AEe.default(Hu),mintStartTime:PEe,mintEndTime:uee,uid:de.z.string().optional().transform(r=>MMr(r)),primarySaleRecipient:Ii.default(J.constants.AddressZero)}),NEe=She.extend({quantity:Y.AmountSchema}),Xut=NEe.extend({mintStartTime:Cs,mintEndTime:Cs}),Rhe=She.extend({metadata:Y.NFTInputOrUriSchema,royaltyRecipient:de.z.string().default(J.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0)}),BEe=Rhe.extend({metadata:Y.NFTInputOrUriSchema.default(""),uri:de.z.string(),royaltyBps:Cs,mintStartTime:Cs,mintEndTime:Cs}),elt=Rhe.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Vs}),tlt=elt.extend({tokenId:Vs}),rlt=BEe.extend({tokenId:Cs,quantity:Cs}),nlt=Rhe.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Cs.default(1)}),alt=BEe.extend({quantity:Cs.default(1)}),ilt=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],slt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],olt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],clt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],ult=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Il=de.z.object({name:de.z.string(),description:de.z.string().optional(),image:Y.FileOrBufferOrStringSchema.optional(),external_link:de.z.string().optional(),app_uri:de.z.string().optional()}),id=Il.extend({image:de.z.string().optional()}).catchall(de.z.unknown()),Go=de.z.object({seller_fee_basis_points:Y.BasisPointsSchema.default(0),fee_recipient:Ii.default(J.constants.AddressZero)}),Og=de.z.object({primary_sale_recipient:Ii}),vp=de.z.object({platform_fee_basis_points:Y.BasisPointsSchema.default(0),platform_fee_recipient:Ii.default(J.constants.AddressZero)}),sd=de.z.object({trusted_forwarders:de.z.array(Ii).default([])}),yo=de.z.object({symbol:de.z.string().default("")}),llt=Il.merge(Go).merge(D0).merge(yo),NMr=id.merge(Go).merge(D0).merge(yo),BMr=llt.merge(vp).merge(Og).merge(sd),DEe={deploy:BMr,output:NMr,input:llt},dlt=Il.merge(Go).merge(D0).merge(yo),DMr=id.merge(Go).merge(D0).merge(yo),LMr=dlt.merge(vp).merge(Og).merge(sd),plt={deploy:LMr,output:DMr,input:dlt},hlt=Il,OMr=id,qMr=hlt.merge(vp).merge(sd),LEe={deploy:qMr,output:OMr,input:hlt},flt=Il.merge(Go).merge(yo),FMr=id.merge(Go).merge(yo),WMr=flt.merge(vp).merge(sd),mlt={deploy:WMr,output:FMr,input:flt},ylt=de.z.object({address:Ii,sharesBps:Y.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),UMr=ylt.extend({address:Ii,sharesBps:Y.BasisPointsSchema}),HIe=Il.extend({recipients:de.z.array(ylt).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),HMr=id.extend({recipients:de.z.array(UMr)}),jMr=HIe.merge(HIe).merge(sd),glt={deploy:jMr,output:HMr,input:HIe},blt=Il.merge(yo),zMr=id.merge(yo),KMr=blt.merge(vp).merge(Og).merge(sd),vlt={deploy:KMr,output:zMr,input:blt},wlt=Il.merge(Go).merge(yo),GMr=id.merge(Go).merge(yo),VMr=wlt.merge(vp).merge(Og).merge(sd),xlt={deploy:VMr,output:GMr,input:wlt},_lt=Il.merge(Go).merge(yo),YMr=id.merge(Go).merge(yo),$Mr=_lt.merge(vp).merge(Og).merge(sd),Tlt={deploy:$Mr,output:YMr,input:_lt},Ilt=de.z.object({voting_delay_in_blocks:de.z.number().min(0).default(0),voting_period_in_blocks:de.z.number().min(1).default(1),voting_token_address:Ii,voting_quorum_fraction:Y.PercentSchema.default(0),proposal_token_threshold:Vs.default(1)}),QMr=Ilt.extend({proposal_token_threshold:Cs}),Elt=Il.merge(Ilt),JMr=id.merge(QMr),ZMr=Elt.merge(sd),Clt={deploy:ZMr,output:JMr,input:Elt};de.z.object({proposalId:Cs,proposer:de.z.string(),targets:de.z.array(de.z.string()),values:de.z.array(Cs),signatures:de.z.array(de.z.string()),calldatas:de.z.array(de.z.string()),startBlock:Cs,endBlock:Cs,description:de.z.string()});function XMr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function WX(r,e){if(typeof r=="string"&&eNr(r))return cpe(r);let t=UIe.parse(e);Mhe(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=XMr(t),a="",i;try{i=klt(r,t),a=iee.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Y.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Y.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return cpe(a,i)}function klt(r,e){if(Mhe(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function Mhe(r){return typeof r!="string"&&typeof r!="number"&&!Phe(r)&&!kEe(r)}function eNr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var Yct=new Map;function cpe(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=Yct.get(n);if(a)return a;let i=e?new WIe(r,e):new J.providers.JsonRpcBatchProvider(r);return Yct.set(n,i),i;case"ws":case"wss":return new J.providers.WebSocketProvider(r,e)}}catch{}return J.providers.getDefaultProvider(r)}var UX=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},jIe=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},upe=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},zIe=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},KIe=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},GIe=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},VIe=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},YIe=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},$Ie=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},QIe=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},JIe=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Y._defineProperty(this,"innerError",void 0),this.innerError=t}},lpe=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},ZIe=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},XIe=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},eEe=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},tEe=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},rEe=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},nEe=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},TV=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},P0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},SIe=new WeakMap,RIe=new WeakMap,CV=class extends Error{constructor(e){let t=` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 @@ -94,7 +94,7 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=B1("from",e.from),t+=B1("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=B1("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=B1("rpc",n.hostname)}catch{}if(e.hash&&(t+=B1("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=B1("value",`${Q.ethers.utils.formatEther(e.value)} ${y8[e.network.chainId]?.symbol||""}`)),t+=B1("data",`${e.data}`),e.method&&(t+=B1("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` +`,t+=Ng("from",e.from),e.to&&(t+=Ng("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),t+=Ng("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Ng("rpc",n.hostname)}catch{}if(e.hash&&(t+=Ng("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Ng("value",`${J.ethers.utils.formatEther(e.value)} ${FX[e.network.chainId]?.symbol||""}`)),t+=Ng("data",`${e.data}`),e.method&&(t+=Ng("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` `).map((o,c)=>`${c+1} ${o}`),i=a.findIndex(o=>o.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` @@ -114,71 +114,76 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres `,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` -`,super(t),Oee(this,Ree,{writable:!0,value:void 0}),Oee(this,Mee,{writable:!0,value:void 0}),Lee(this,Ree,e.reason),Lee(this,Mee,e)}get reason(){return RD(this,Ree)}get info(){return RD(this,Mee)}};function Fte(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),vot(/.*?"message":"([^"\\]*).*?/,e)||vot(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function B1(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` +`,super(t),DIe(this,SIe,{writable:!0,value:void 0}),DIe(this,RIe,{writable:!0,value:void 0}),LIe(this,SIe,e.reason),LIe(this,RIe,e)}get reason(){return ipe(this,SIe)}get info(){return ipe(this,RIe)}};function Nhe(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),$ct(/.*?"message":"([^"\\]*).*?/,e)||$ct(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Ng(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` `)?e=` `+e.split(` `).join(` `):e=`${t}${e}`,` -${r}:${e}`}function vot(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function w8(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Zct=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Xct=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],eut=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],Z_={},wot={};async function LD(r,e,t){let n=t.join("|"),a=wot[n],i=Date.now()-a>=2e3;if(!(n in Z_)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?Z_[n]=Q.BigNumber.from(o[0]):Z_[n]=Q.BigNumber.from(o),wot[n]=Date.now()}let s=Z_[n];return Z_[n]=Q.BigNumber.from(Z_[n]).add(1),s}function K7r(r){switch(r){case Ne.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Ne.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var G7r=Q.ethers.utils.parseUnits("31","gwei"),V7r=Q.ethers.utils.parseUnits("1","gwei");function $7r(r){switch(r){case Ne.Polygon:return G7r;case Ne.Mumbai:return V7r}}async function tut(r){let e=K7r(r);try{let n=(await(await f8.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Q.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return $7r(r)}async function _8(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Q.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Q.utils.joinSignature(Q.utils.splitSignature(s))}}var Y7r=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],J7r=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],Q7r=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function Z7r(r,e){let t=new Q.Contract(e,Q7r,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function X7r(r,e){let t=new Q.Contract(e,J7r,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function eRr(r,e){return new Q.Contract(e,Y7r,r).name()}async function tRr(r,e){let t=await X7r(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Q.ethers.utils.hexZeroPad(Q.BigNumber.from(e.chainId).toHexString(),32)};return Q.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function rut(r,e,t,n,a,i,s){let o=await tRr(r,{name:await eRr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await Z7r(r,e)).toString(),i=i||Q.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await _8(r,o,u,c);return{message:c,signature:l}}var qte=()=>typeof window<"u",nut=()=>!qte();function rRr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),$._defineProperty(this,"writeContract",void 0),$._defineProperty(this,"readContract",void 0),$._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Q.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),Lee(this,kD,new Kv.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(qte())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Q.ethers.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await tut(n):s=Q.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Q.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Q.ethers.utils.parseUnits(n.toString(),"gwei"),o=Q.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Q.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Q.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(_l.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let l=n[n.length-1];i=await gct.parseAsync(l),n=n.slice(0,n.length-1)}}catch{}let s=cx(Si.parse(this.abi)).filter(l=>l.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=s.find(l=>l.name===e&&l.inputs.length===n.length);if(!o)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. -Expected function signature: ${s[0].signature}`);let c=`${e}(${o.inputs.map(l=>l.type).join()})`,u=c in this.readContract.functions?c:e;return o.stateMutability==="view"||o.stateMutability==="pure"?this.readContract[u](...n):{receipt:await this.sendTransaction(u,n,i)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Q.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Q.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` +${r}:${e}`}function $ct(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function HX(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Alt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Plt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],Slt=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],vV={},Qct={};async function dpe(r,e,t){let n=t.join("|"),a=Qct[n],i=Date.now()-a>=2e3;if(!(n in vV)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?vV[n]=J.BigNumber.from(o[0]):vV[n]=J.BigNumber.from(o),Qct[n]=Date.now()}let s=vV[n];return vV[n]=J.BigNumber.from(vV[n]).add(1),s}function tNr(r){switch(r){case Ne.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Ne.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var rNr=J.ethers.utils.parseUnits("31","gwei"),nNr=J.ethers.utils.parseUnits("1","gwei");function aNr(r){switch(r){case Ne.Polygon:return rNr;case Ne.Mumbai:return nNr}}async function Rlt(r){let e=tNr(r);try{let n=(await(await OX.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return J.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return aNr(r)}async function jX(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=J.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:J.utils.joinSignature(J.utils.splitSignature(s))}}var iNr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],sNr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],oNr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function cNr(r,e){let t=new J.Contract(e,oNr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function uNr(r,e){let t=new J.Contract(e,sNr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function lNr(r,e){return new J.Contract(e,iNr,r).name()}async function dNr(r,e){let t=await uNr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:J.ethers.utils.hexZeroPad(J.BigNumber.from(e.chainId).toHexString(),32)};return J.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function Mlt(r,e,t,n,a,i,s){let o=await dNr(r,{name:await lNr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await cNr(r,e)).toString(),i=i||J.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await jX(r,o,u,c);return{message:c,signature:l}}var OEe=()=>typeof window<"u",Nlt=()=>!OEe();function pNr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Y._defineProperty(this,"writeContract",void 0),Y._defineProperty(this,"readContract",void 0),Y._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new J.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),LIe(this,tpe,new Dg.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(OEe())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:J.ethers.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await Rlt(n):s=J.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=J.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=J.ethers.utils.parseUnits(n.toString(),"gwei"),o=J.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=J.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=J.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(xl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=n?await Vut.parseAsync(n):void 0,i=SV(Gi.parse(this.abi)).filter(u=>u.name===e);if(!i.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let s=i.find(u=>u.name===e&&u.inputs.length===t.length);if(!s)throw new Error(`Function "${e}" requires ${i[0].inputs.length} arguments, but ${t.length} were provided. +Expected function signature: ${i[0].signature}`);let o=`${e}(${s.inputs.map(u=>u.type).join()})`,c=o in this.readContract.functions?o:e;return s.stateMutability==="view"||s.stateMutability==="pure"?this.readContract[c](...t):{receipt:await this.sendTransaction(c,t,a)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>J.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=J.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` `+m.map(W=>" "+W.split(` `).join(` `)).join(`, `)+` -`,E=`${f.name}(${y})`,I=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,S=Fte(e),L,q;try{let W=await O0(this.readContract.address,this.getProvider(),RD(this,kD));W.name&&(q=W.name),W.metadata.sources&&(L=await sL(W,RD(this,kD)))}catch{}return new v8({reason:S,from:o,to:c,method:E,data:u,network:s,rpcUrl:h,value:l,hash:I,contractName:q,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Tt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Q.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Q.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Q.BigNumber.from(5e5)),n.gasLimit&&Q.BigNumber.from(n.gasLimit).gt(l)&&(l=Q.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(_l.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await _8(e,t,n,a);return this.emit(_l.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Tt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Tt.default(t&&n,"signer and provider must be set");let a=new Q.ethers.Contract(m8(e.chainId,"biconomyForwarder"),eut,n),i=0,s=await LD(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Q.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Q.ethers.utils.arrayify(Q.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Q.ethers.utils.keccak256(o.data)]));this.emit(_l.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(_l.Signature,{status:"completed",message:c,signature:u});let l=await f8.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Tt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Tt.default(t,"provider is not set"),Tt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?O1[e.chainId].openzeppelinForwarderEOA:O1[e.chainId].openzeppelinForwarder),i=new Q.Contract(a,act.default,n),s=await LD(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Xct},u={from:e.from,to:e.to,value:Q.BigNumber.from(0).toString(),gas:Q.BigNumber.from(e.gasLimit).toString(),nonce:Q.BigNumber.from(s).toString(),data:e.data,chainid:Q.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Zct},u={from:e.from,to:e.to,value:Q.BigNumber.from(0).toString(),gas:Q.BigNumber.from(e.gasLimit).toString(),nonce:Q.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(_l.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],E=e.functionArgs[1],{message:I,signature:S}=await rut(t,this.writeContract.address,e.from,y,E),{r:L,s:q,v:W}=Q.ethers.utils.splitSignature(S);u={to:this.readContract.address,owner:I.owner,spender:I.spender,value:Q.BigNumber.from(I.value).toString(),nonce:Q.BigNumber.from(I.nonce).toString(),deadline:Q.BigNumber.from(I.deadline).toString(),r:L,s:q,v:W},l=S}else{let{signature:y}=await _8(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(_l.Signature,{status:"completed",message:u,signature:l});let m=await f8.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Oh(r){return r.toLowerCase()===zu||r.toLowerCase()===Q.constants.AddressZero}function FD(r){return Oh(r)?zu:r}async function Tc(r,e,t){let n=await fx(r,t);return Q.utils.parseUnits($.AmountSchema.parse(e),n.decimals)}async function fx(r,e){if(Oh(e)){let t=await r.getNetwork(),n=MD(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Q.Contract(e,n7r.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function bp(r,e,t){let n=await fx(r,e);return{...n,value:Q.BigNumber.from(t),displayValue:Q.utils.formatUnits(t,n.decimals)}}async function M0(r,e,t,n){if(Oh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Ms(a||i,t,bu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function Wte(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Ms(i||s,e,bu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Q.BigNumber.from(t).mul(Q.BigNumber.from(n)).div(Q.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function nRr(r,e,t){let n=r.getProvider(),a=new Ms(n,e,bu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function aRr(r,e){let t=await r.readContract.decimals();return Q.utils.parseUnits($.AmountSchema.parse(e),t)}function iRr(r){return Q.utils.formatEther(r)}function sRr(r){return Q.utils.parseEther($.AmountSchema.parse(r))}function oRr(r,e){return Q.utils.parseUnits($.AmountSchema.parse(r),e)}function cRr(r,e){return Q.utils.formatUnits(r,e)}async function aut(r,e,t,n,a,i,s,o,c){let u=sm(t.maxClaimablePerWallet,a),l=[Q.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Q.constants.AddressZero)){let I=await nL(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(I)l=I.proof,u=I.maxClaimable==="unlimited"?Q.ethers.constants.MaxUint256:Q.ethers.utils.parseUnits(I.maxClaimable,a),h=I.price===void 0||I.price==="unlimited"?Q.ethers.constants.MaxUint256:await Tc(i.getProvider(),I.price,I.currencyAddress||Q.ethers.constants.AddressZero),f=I.currencyAddress||Q.ethers.constants.AddressZero;else if(c===Vv.V1)throw new Error("No claim found for this address")}}catch(I){if(I?.message==="No claim found for this address")throw I;console.warn("failed to check claim condition merkle root hash, continuing anyways",I)}let m=await i.getCallOverrides()||{},y=h.toString()!==Q.ethers.constants.MaxUint256.toString()?h:t.price,E=f!==Q.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Oh(E)?m.value=Q.BigNumber.from(y).mul(e).div(Q.ethers.utils.parseUnits("1",a)):o&&await Wte(i,E,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:E,priceInProof:h,currencyAddressInProof:f}}async function uRr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await wl.fromUri(n,t))?.getAllEntries()||null;{let i=await Mte.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function nL(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await wl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await Mte.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function iut(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Q.ethers.utils.formatUnits(a,n),s=await j8.parseAsync({...t[r],price:i,...e}),o=await Nte.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Q.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function lRr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await cut(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Q.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function dRr(r,e){let t=Q.BigNumber.from(r),n=Q.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function sut(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await lRr(r,e,t,n,a),o=await xct.parseAsync(i),c=(await Promise.all(o.map(u=>pRr(u,e,t,n)))).sort((u,l)=>dRr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function pRr(r,e,t,n){let a=r.currencyAddress===Q.constants.AddressZero?zu:r.currencyAddress,i=sm(r.maxClaimableSupply,e),s=sm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Tc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function qD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function WD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function UD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function HD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function jD(r,e,t,n,a,i){let s=await bp(t,r.currency,r.pricePerToken),o=u8(r.maxClaimableSupply,e),c=u8(r.maxClaimablePerWallet,e),u=u8(Q.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=u8(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),Nte.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Q.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await uRr(r.merkleRoot,n,a):void 0,metadata:h})}function u8(r,e){return r.toString()===Q.ethers.constants.MaxUint256.toString()?"unlimited":Q.ethers.utils.formatUnits(r,e)}function sm(r,e){return r==="unlimited"?Q.ethers.constants.MaxUint256:Q.ethers.utils.parseUnits(r,e)}async function out(r,e,t,n,a){let i={},s=n||zu,c=(await Tc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===zu?i={value:c}:s!==zu&&a&&await Wte(r,s,c,t,0)),i}var hRr=2,Vv=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),wl=class{constructor(e,t,n,a,i){$._defineProperty(this,"shardNybbles",void 0),$._defineProperty(this,"shards",void 0),$._defineProperty(this,"trees",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"baseUri",void 0),$._defineProperty(this,"originalEntriesUri",void 0),$._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return wl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new wl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case Vv.V1:return Q.utils.solidityKeccak256(["address","uint256"],[e.address,sm(e.maxClaimable,t)]);case Vv.V2:return Q.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,sm(e.maxClaimable,t),sm(e.price||"unlimited",n),e.currencyAddress||Q.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await fx(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:hRr,o=await H8.parseAsync(e),c={};for(let q of o){let W=q.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(q)}let u={},l=await Promise.all(Object.entries(c).map(async q=>{let[W,V]=q;return[W,new Aee.MerkleTree(await Promise.all(V.map(async K=>{let H=await wl.fetchAndCacheDecimals(u,n,K.currencyAddress);return wl.hashEntry(K,t,H,i)})),Q.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new Aee.MerkleTree(Object.values(h),Q.utils.keccak256,{sort:!0}),m=[];for(let[q,W]of Object.entries(c)){let V={proofs:f.getProof(h[q]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${q}.json`})}let y=await a.uploadBatch(m),E=y[0].slice(0,y[0].lastIndexOf("/")),I=await a.upload(o),S={merkleRoot:f.getHexRoot(),baseUri:E,originalEntriesUri:I,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(S);return{shardedMerkleInfo:S,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await wl.fetchAndCacheDecimals(s,t,f.currencyAddress);return wl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new Aee.MerkleTree(h,Q.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await wl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=wl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return Rte.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function cut(r,e,t,n,a){let i=await H8.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(yut(),this?this.decode(e,t):sx.prototype.decode.call(qot,e,t)));jv=t>-1?t:e.length,Ce=0,R8=0,hO=null,bo=null,Ze=e;try{ju=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Ze=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof sx){if(Vr=this,xl=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return fs=this.structures,Wot();(!fs||fs.length>0)&&(fs=[])}else Vr=qot,(!fs||fs.length>0)&&(fs=[]),xl=null;return Wot()}};function Wot(){try{let r=vn();if(bo){if(Ce>=bo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ce=bo.postBundlePosition,bo=null}if(Ce==jv)fs=null,Ze=null,Sh&&(Sh=null);else if(Ce>jv){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!ute)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw yut(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function vn(){let r=Ze[Ce++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Ze[Ce++];break;case 25:if(e==7)return ERr();r=ju.getUint16(Ce),Ce+=2;break;case 26:if(e==7){let t=ju.getFloat32(Ce);if(Vr.useFloat32>2){let n=gut[(Ze[Ce]&127)<<1|Ze[Ce+1]>>7];return Ce+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ce+=4,t}r=ju.getUint32(Ce),Ce+=4;break;case 27:if(e==7){let t=ju.getFloat64(Ce);return Ce+=8,t}if(e>1){if(ju.getUint32(Ce)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=ju.getUint32(Ce+4)}else Vr.int64AsNumber?(r=ju.getUint32(Ce)*4294967296,r+=ju.getUint32(Ce+4)):r=ju.getBigUint64(Ce);Ce+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=vn())!=X_;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Vr.mapsAsObjects){let s={};if(Vr.keyMap)for(;(i=vn())!=X_;)s[om(Vr.decodeKey(i))]=vn();else for(;(i=vn())!=X_;)s[om(i)]=vn();return s}else{l8&&(Vr.mapsAsObjects=!0,l8=!1);let s=new Map;if(Vr.keyMap)for(;(i=vn())!=X_;)s.set(Vr.decodeKey(i),vn());else for(;(i=vn())!=X_;)s.set(i,vn());return s}case 7:return X_;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return TRr(r);case 3:if(R8>=Ce)return hO.slice(Ce-fO,(Ce+=r)-fO);if(R8==0&&jv<140&&r<32){let a=r<16?put(r):xRr(r);if(a!=null)return a}return _Rr(r);case 4:let t=new Array(r);for(let a=0;a=Lot){let a=fs[r&8191];if(a)return a.read||(a.read=lte(a)),a.read();if(r<65536){if(r==wRr)return pte(vn());if(r==vRr){let i=d8(),s=vn();for(let o=2;o23)switch(t){case 24:t=Ze[Ce++];break;case 25:t=ju.getUint16(Ce),Ce+=2;break;case 26:t=ju.getUint32(Ce),Ce+=4;break;default:throw new Error("Expected array header, but got "+Ze[Ce-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(vn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Vr.keyMap?new Function("r","return {"+i.map(s=>Vr.decodeKey(s)).map(s=>Uot.test(s)?om(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>Uot.test(s)?om(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(vn)}let a={};if(Vr.keyMap)for(let i=0;i64&&ote)return ote.decode(Ze.subarray(Ce,Ce+=r));let t=Ce+r,n=[];for(e="";Ce65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=Ko.apply(String,n),n.length=0)}return n.length>0&&(e+=Ko.apply(String,n)),e}var Ko=String.fromCharCode;function xRr(r){let e=Ce,t=new Array(r);for(let n=0;n0){Ce=e;return}t[n]=a}return Ko.apply(String,t)}function put(r){if(r<4)if(r<2){if(r===0)return"";{let e=Ze[Ce++];if((e&128)>1){Ce-=1;return}return Ko(e)}}else{let e=Ze[Ce++],t=Ze[Ce++];if((e&128)>0||(t&128)>0){Ce-=2;return}if(r<3)return Ko(e,t);let n=Ze[Ce++];if((n&128)>0){Ce-=3;return}return Ko(e,t,n)}else{let e=Ze[Ce++],t=Ze[Ce++],n=Ze[Ce++],a=Ze[Ce++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ce-=4;return}if(r<6){if(r===4)return Ko(e,t,n,a);{let i=Ze[Ce++];if((i&128)>0){Ce-=5;return}return Ko(e,t,n,a,i)}}else if(r<8){let i=Ze[Ce++],s=Ze[Ce++];if((i&128)>0||(s&128)>0){Ce-=6;return}if(r<7)return Ko(e,t,n,a,i,s);let o=Ze[Ce++];if((o&128)>0){Ce-=7;return}return Ko(e,t,n,a,i,s,o)}else{let i=Ze[Ce++],s=Ze[Ce++],o=Ze[Ce++],c=Ze[Ce++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ce-=8;return}if(r<10){if(r===8)return Ko(e,t,n,a,i,s,o,c);{let u=Ze[Ce++];if((u&128)>0){Ce-=9;return}return Ko(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Ze[Ce++],l=Ze[Ce++];if((u&128)>0||(l&128)>0){Ce-=10;return}if(r<11)return Ko(e,t,n,a,i,s,o,c,u,l);let h=Ze[Ce++];if((h&128)>0){Ce-=11;return}return Ko(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Ze[Ce++],l=Ze[Ce++],h=Ze[Ce++],f=Ze[Ce++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ce-=12;return}if(r<14){if(r===12)return Ko(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Ze[Ce++];if((m&128)>0){Ce-=13;return}return Ko(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Ze[Ce++],y=Ze[Ce++];if((m&128)>0||(y&128)>0){Ce-=14;return}if(r<15)return Ko(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let E=Ze[Ce++];if((E&128)>0){Ce-=15;return}return Ko(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E)}}}}}function TRr(r){return Vr.copyBuffers?Uint8Array.prototype.slice.call(Ze,Ce,Ce+=r):Ze.subarray(Ce,Ce+=r)}var hut=new Float32Array(1),AD=new Uint8Array(hut.buffer,0,4);function ERr(){let r=Ze[Ce++],e=Ze[Ce++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return AD[3]=r&128|(t>>1)+56,AD[2]=(r&7)<<5|e>>3,AD[1]=e<<5,AD[0]=0,hut[0]}var ox=class{constructor(e,t){this.value=e,this.tag=t}};Qi[0]=r=>new Date(r);Qi[1]=r=>new Date(Math.round(r*1e3));Qi[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Qi[2](r);Qi[4]=r=>Number(r[1]+"e"+r[0]);Qi[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var pte=r=>{let e=r[0]-57344,t=r[1],n=fs[e];n&&n.isShared&&((fs.restoreStructures||(fs.restoreStructures=[]))[e]=n),fs[e]=t,t.read=lte(t);let a={};if(Vr.keyMap)for(let i=2,s=r.length;ibo?bo[0].slice(bo.position0,bo.position0+=r):new ox(r,14);Qi[15]=r=>bo?bo[1].slice(bo.position1,bo.position1+=r):new ox(r,15);var CRr={Error,RegExp};Qi[27]=r=>(CRr[r[0]]||Error)(r[1],r[2]);var fut=r=>{if(Ze[Ce++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return xl=xl?e.concat(xl.slice(e.length)):e,xl.prefixes=r(),xl.suffixes=r(),r()};fut.handlesRead=!0;Qi[51]=fut;Qi[Fot]=r=>{if(!xl)if(Vr.getShared)Hte();else return new ox(r,Fot);if(typeof r=="number")return xl[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Qi[25]=r=>stringRefs[r];Qi[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Qi[256].handlesRead=!0;Qi[28]=r=>{Sh||(Sh=new Map,Sh.id=0);let e=Sh.id++,t=Ze[Ce],n;t>>5==4?n=[]:n={};let a={target:n};Sh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Qi[28].handlesRead=!0;Qi[29]=r=>{let e=Sh.get(r);return e.used=!0,e.target};Qi[258]=r=>new Set(r);(Qi[259]=r=>(Vr.mapsAsObjects&&(Vr.mapsAsObjects=!1,l8=!0),r())).handlesRead=!0;function ex(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function qv(){if(!xl)if(Vr.getShared)Hte();else throw new Error("No packed values available");return xl}var IRr=1399353956;cte.push((r,e)=>{if(r>=225&&r<=255)return ex(qv().prefixes[r-224],e);if(r>=28704&&r<=32767)return ex(qv().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return ex(qv().prefixes[r-1879048192],e);if(r>=216&&r<=223)return ex(e,qv().suffixes[r-216]);if(r>=27647&&r<=28671)return ex(e,qv().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return ex(e,qv().suffixes[r-1811939328]);if(r==IRr)return{packedValues:xl,structures:fs.slice(0),version:e};if(r==55799)return e});var kRr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Hot=[Uint8Array],ARr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Ze[Ce++];break;case 25:r=ju.getUint16(Ce),Ce+=2;break;case 26:r=ju.getUint32(Ce),Ce+=4;break}return r}function Hte(){if(Vr.getShared){let r=mut(()=>(Ze=null,Vr.getShared()))||{},e=r.structures||[];Vr.sharedVersion=r.version,xl=Vr.sharedValues=r.packedValues,fs===!0?Vr.structures=fs=e:fs.splice.apply(fs,[0,e.length].concat(e))}}function mut(r){let e=jv,t=Ce,n=fO,a=R8,i=hO,s=Sh,o=bo,c=new Uint8Array(Ze.slice(0,jv)),u=fs,l=Vr,h=ute,f=r();return jv=e,Ce=t,fO=n,R8=a,hO=i,Sh=s,bo=o,Ze=c,ute=h,fs=u,Vr=l,ju=new DataView(Ze.buffer,Ze.byteOffset,Ze.byteLength),f}function yut(){Ze=null,Sh=null,fs=null}var gut=new Array(147);for(let r=0;r<256;r++)gut[r]=Number("1e"+Math.floor(45.15-r*.30103));var RRr=new sx({useRecords:!1}),MRr=RRr.decode;function NRr(r,e){return jte(r,e.abis)}function BRr(r,e){return jte(Si.parse(r.abi||[]),[e])}function jte(r,e){let t=cx(r),n=e.flatMap(i=>cx(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function but(r,e){let t=await ux(r,e);return zte(t.abi)}async function vut(r,e){let t=await ux(r,e);return cx(t.abi,t.metadata)}function wut(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function zte(r){let e=Si.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function _ut(r,e){let t=Si.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function cx(r,e){let n=Si.parse(r||[]).filter(i=>i.type==="function"),a=[];for(let i of n){let s=wut(i.name,e,"methods"),o=i.inputs?.map(f=>`${f.name||"key"}: ${hte(f)}`)?.join(", ")||"",c=o?`, ${o}`:"",u=i.outputs?.map(f=>hte(f,!0))?.join(", "),l=u?`: Promise<${u}>`:": Promise",h=`contract.call("${i.name}"${c})${l}`;a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",signature:h,stateMutability:i.stateMutability||"",comment:s})}return a}function xut(r,e){let n=Si.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=wut(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function hte(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>hte(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function Tut(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function M8(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=Tut(t);if(n)return await M8(n,e)}catch{}try{let n=await e.getStorageAt(r,Q.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Q.ethers.utils.hexStripZeros(n);if(a!=="0x")return await M8(a,e)}catch{}return await Eut(t)}function Eut(r){let e=DRr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=MRr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${r7r.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function DRr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!ORr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:gRr,t={};for(let n in e){let a=e[n],i=NRr(r,a),s=z8(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function Vte(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),Vte(n.features,e)}}function LRr(r){let e=[];return Vte(z8(r),e),e}function fte(r){let e=[];return Vte(z8(r),e),e.map(t=>t.name)}function lx(r,e){let t=Si.parse(r||[]),n=z8(t);return Cut(n,e)}function Xt(r,e){if(!r)throw new R0(e);return r}function $e(r,e){return lx(Si.parse(r.abi),e)}function Cut(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=Cut(s.features,e),a)break}return a}return r[e].enabled}function go(r,e){return r in e.readContract.functions}async function mO(r,e,t,n,a){let i=[];try{let s=lx(Si.parse(e),"PluginRouter");if(lx(Si.parse(e),"ExtensionRouter")){let l=(await new Ms(t,r,dut,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await jot(l,t,a)}else if(s){let l=(await new Ms(t,r,lut,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await jot(h,t,a)}}catch{}return i.length>0?qRr([e,...i]):e}function FRr(r){let e=lx(Si.parse(r),"PluginRouter");return lx(Si.parse(r),"ExtensionRouter")||e}async function jot(r,e,t){return(await Promise.all(r.map(n=>O0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function qRr(r){let e=r.map(a=>Si.parse(a)).flat(),n=rRr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Si.parse(n)}var De=class{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new De(n)}static async fromContractInfo(e){let t=e.storage||new Kv.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await O0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Q.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new De(i)}constructor(e){$._defineProperty(this,"contract",void 0),$._defineProperty(this,"method",void 0),$._defineProperty(this,"args",void 0),$._defineProperty(this,"overrides",void 0),$._defineProperty(this,"provider",void 0),$._defineProperty(this,"signer",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"gaslessOptions",void 0),$._defineProperty(this,"parse",void 0),$._defineProperty(this,"gasMultiple",void 0),this.method=e.method,this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.gaslessOptions=e.gasless,this.parse=e.parse,this.signer.provider||(this.signer=this.signer.connect(this.provider)),this.contract=e.contract.connect(this.signer),this.storage=e.storage||new Kv.ThirdwebStorage}getMethod(){return this.method}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}getGaslessOptions(){return this.gaslessOptions}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}setGasLimitMultiple(e){Q.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Q.BigNumber.from(Math.floor(Q.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Q.BigNumber.from(Math.floor(Q.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),this.transactionError(e)}}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Q.utils.formatEther(n),wei:n}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(dPr.FormatTypes.json));FRr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async getSignerAddress(){return this.signer.getAddress()}async sendGasless(){Tt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Q.utils.solidityPack(["bytes","address"],[m,f]))}Tt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Q.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Q.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Q.BigNumber.from(5e5)),this.overrides.gasLimit&&Q.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Q.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await fRr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}async getGasOverrides(){if(qte())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Q.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await tut(n):s=Q.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Q.utils.parseUnits("300","gwei"),i=Q.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Q.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Q.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(S=>JSON.stringify(S).length<=80?JSON.stringify(S):JSON.stringify(S,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` -`+l.map(S=>" "+S.split(` +`,I=`${f.name}(${y})`,C=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,R=Nhe(e),L,F;try{let W=await B0(this.readContract.address,this.getProvider(),ipe(this,tpe));W.name&&(F=W.name),W.metadata.sources&&(L=await Ohe(W,ipe(this,tpe)))}catch{}return new CV({reason:R,from:o,to:c,method:I,data:u,network:s,rpcUrl:h,value:l,hash:C,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();_t.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(J.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=J.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=J.BigNumber.from(5e5)),n.gasLimit&&J.BigNumber.from(n.gasLimit).gt(l)&&(l=J.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(xl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await jX(e,t,n,a);return this.emit(xl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){_t.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();_t.default(t&&n,"signer and provider must be set");let a=new J.ethers.Contract(qX(e.chainId,"biconomyForwarder"),Slt,n),i=0,s=await dpe(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:J.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=J.ethers.utils.arrayify(J.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,J.ethers.utils.keccak256(o.data)]));this.emit(xl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(xl.Signature,{status:"completed",message:c,signature:u});let l=await OX.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){_t.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();_t.default(t,"provider is not set"),_t.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Lg[e.chainId].openzeppelinForwarderEOA:Lg[e.chainId].openzeppelinForwarder),i=new J.Contract(a,But.default,n),s=await dpe(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Plt},u={from:e.from,to:e.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(e.gasLimit).toString(),nonce:J.BigNumber.from(s).toString(),data:e.data,chainid:J.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Alt},u={from:e.from,to:e.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(e.gasLimit).toString(),nonce:J.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(xl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],I=e.functionArgs[1],{message:C,signature:R}=await Mlt(t,this.writeContract.address,e.from,y,I),{r:L,s:F,v:W}=J.ethers.utils.splitSignature(R);u={to:this.readContract.address,owner:C.owner,spender:C.spender,value:J.BigNumber.from(C.value).toString(),nonce:J.BigNumber.from(C.nonce).toString(),deadline:J.BigNumber.from(C.deadline).toString(),r:L,s:F,v:W},l=R}else{let{signature:y}=await jX(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(xl.Signature,{status:"completed",message:u,signature:l});let m=await OX.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Bh(r){return r.toLowerCase()===Hu||r.toLowerCase()===J.constants.AddressZero}function ppe(r){return Bh(r)?Hu:r}async function Tc(r,e,t){let n=await LV(r,t);return J.utils.parseUnits(Y.AmountSchema.parse(e),n.decimals)}async function LV(r,e){if(Bh(e)){let t=await r.getNetwork(),n=spe(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new J.Contract(e,hMr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function yp(r,e,t){let n=await LV(r,e);return{...n,value:J.BigNumber.from(t),displayValue:J.utils.formatUnits(t,n.decimals)}}async function S0(r,e,t,n){if(Bh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new ks(a||i,t,bu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function qEe(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new ks(i||s,e,bu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=J.BigNumber.from(t).mul(J.BigNumber.from(n)).div(J.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function hNr(r,e,t){let n=r.getProvider(),a=new ks(n,e,bu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function fNr(r,e){let t=await r.readContract.decimals();return J.utils.parseUnits(Y.AmountSchema.parse(e),t)}function mNr(r){return J.utils.formatEther(r)}function yNr(r){return J.utils.parseEther(Y.AmountSchema.parse(r))}function gNr(r,e){return J.utils.parseUnits(Y.AmountSchema.parse(r),e)}function bNr(r,e){return J.utils.formatUnits(r,e)}async function Blt(r,e,t,n,a,i,s,o,c){let u=am(t.maxClaimablePerWallet,a),l=[J.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(J.constants.AddressZero)){let C=await Bhe(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(C)l=C.proof,u=C.maxClaimable==="unlimited"?J.ethers.constants.MaxUint256:J.ethers.utils.parseUnits(C.maxClaimable,a),h=C.price===void 0||C.price==="unlimited"?J.ethers.constants.MaxUint256:await Tc(i.getProvider(),C.price,C.currencyAddress||J.ethers.constants.AddressZero),f=C.currencyAddress||J.ethers.constants.AddressZero;else if(c===I2.V1)throw new Error("No claim found for this address")}}catch(C){if(C?.message==="No claim found for this address")throw C;console.warn("failed to check claim condition merkle root hash, continuing anyways",C)}let m=await i.getCallOverrides()||{},y=h.toString()!==J.ethers.constants.MaxUint256.toString()?h:t.price,I=f!==J.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Bh(I)?m.value=J.BigNumber.from(y).mul(e).div(J.ethers.utils.parseUnits("1",a)):o&&await qEe(i,I,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:I,priceInProof:h,currencyAddressInProof:f}}async function vNr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await wl.fromUri(n,t))?.getAllEntries()||null;{let i=await REe.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Bhe(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await wl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await REe.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function Dlt(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=J.ethers.utils.formatUnits(a,n),s=await dee.parseAsync({...t[r],price:i,...e}),o=await MEe.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=J.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function wNr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await qlt(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=J.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function xNr(r,e){let t=J.BigNumber.from(r),n=J.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function Llt(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await wNr(r,e,t,n,a),o=await Zut.parseAsync(i),c=(await Promise.all(o.map(u=>_Nr(u,e,t,n)))).sort((u,l)=>xNr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function _Nr(r,e,t,n){let a=r.currencyAddress===J.constants.AddressZero?Hu:r.currencyAddress,i=am(r.maxClaimableSupply,e),s=am(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Tc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function hpe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function fpe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function mpe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function ype(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function gpe(r,e,t,n,a,i){let s=await yp(t,r.currency,r.pricePerToken),o=MX(r.maxClaimableSupply,e),c=MX(r.maxClaimablePerWallet,e),u=MX(J.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=MX(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),MEe.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:J.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await vNr(r.merkleRoot,n,a):void 0,metadata:h})}function MX(r,e){return r.toString()===J.ethers.constants.MaxUint256.toString()?"unlimited":J.ethers.utils.formatUnits(r,e)}function am(r,e){return r==="unlimited"?J.ethers.constants.MaxUint256:J.ethers.utils.parseUnits(r,e)}async function Olt(r,e,t,n,a){let i={},s=n||Hu,c=(await Tc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Hu?i={value:c}:s!==Hu&&a&&await qEe(r,s,c,t,0)),i}var TNr=2,I2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),wl=class{constructor(e,t,n,a,i){Y._defineProperty(this,"shardNybbles",void 0),Y._defineProperty(this,"shards",void 0),Y._defineProperty(this,"trees",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"baseUri",void 0),Y._defineProperty(this,"originalEntriesUri",void 0),Y._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return wl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new wl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case I2.V1:return J.utils.solidityKeccak256(["address","uint256"],[e.address,am(e.maxClaimable,t)]);case I2.V2:return J.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,am(e.maxClaimable,t),am(e.price||"unlimited",n),e.currencyAddress||J.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await LV(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:TNr,o=await lee.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,V]=F;return[W,new kIe.MerkleTree(await Promise.all(V.map(async K=>{let H=await wl.fetchAndCacheDecimals(u,n,K.currencyAddress);return wl.hashEntry(K,t,H,i)})),J.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new kIe.MerkleTree(Object.values(h),J.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let V={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${F}.json`})}let y=await a.uploadBatch(m),I=y[0].slice(0,y[0].lastIndexOf("/")),C=await a.upload(o),R={merkleRoot:f.getHexRoot(),baseUri:I,originalEntriesUri:C,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(R);return{shardedMerkleInfo:R,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await wl.fetchAndCacheDecimals(s,t,f.currencyAddress);return wl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new kIe.MerkleTree(h,J.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await wl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=wl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return SEe.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function qlt(r,e,t,n,a){let i=await lee.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(Glt(),this?this.decode(e,t):AV.prototype.decode.call(mut,e,t)));x2=t>-1?t:e.length,Ee=0,XX=0,Upe=null,mo=null,Ze=e;try{Uu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Ze=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof AV){if(Vr=this,_l=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return us=this.structures,yut();(!us||us.length>0)&&(us=[])}else Vr=mut,(!us||us.length>0)&&(us=[]),_l=null;return yut()}};function yut(){try{let r=vn();if(mo){if(Ee>=mo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ee=mo.postBundlePosition,mo=null}if(Ee==x2)us=null,Ze=null,kh&&(kh=null);else if(Ee>x2){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!cEe)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw Glt(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function vn(){let r=Ze[Ee++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Ze[Ee++];break;case 25:if(e==7)return BNr();r=Uu.getUint16(Ee),Ee+=2;break;case 26:if(e==7){let t=Uu.getFloat32(Ee);if(Vr.useFloat32>2){let n=Vlt[(Ze[Ee]&127)<<1|Ze[Ee+1]>>7];return Ee+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ee+=4,t}r=Uu.getUint32(Ee),Ee+=4;break;case 27:if(e==7){let t=Uu.getFloat64(Ee);return Ee+=8,t}if(e>1){if(Uu.getUint32(Ee)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Uu.getUint32(Ee+4)}else Vr.int64AsNumber?(r=Uu.getUint32(Ee)*4294967296,r+=Uu.getUint32(Ee+4)):r=Uu.getBigUint64(Ee);Ee+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=vn())!=wV;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Vr.mapsAsObjects){let s={};if(Vr.keyMap)for(;(i=vn())!=wV;)s[im(Vr.decodeKey(i))]=vn();else for(;(i=vn())!=wV;)s[im(i)]=vn();return s}else{NX&&(Vr.mapsAsObjects=!0,NX=!1);let s=new Map;if(Vr.keyMap)for(;(i=vn())!=wV;)s.set(Vr.decodeKey(i),vn());else for(;(i=vn())!=wV;)s.set(i,vn());return s}case 7:return wV;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return NNr(r);case 3:if(XX>=Ee)return Upe.slice(Ee-Hpe,(Ee+=r)-Hpe);if(XX==0&&x2<140&&r<32){let a=r<16?Hlt(r):MNr(r);if(a!=null)return a}return RNr(r);case 4:let t=new Array(r);for(let a=0;a=hut){let a=us[r&8191];if(a)return a.read||(a.read=uEe(a)),a.read();if(r<65536){if(r==SNr)return dEe(vn());if(r==PNr){let i=BX(),s=vn();for(let o=2;o23)switch(t){case 24:t=Ze[Ee++];break;case 25:t=Uu.getUint16(Ee),Ee+=2;break;case 26:t=Uu.getUint32(Ee),Ee+=4;break;default:throw new Error("Expected array header, but got "+Ze[Ee-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(vn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Vr.keyMap?new Function("r","return {"+i.map(s=>Vr.decodeKey(s)).map(s=>gut.test(s)?im(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>gut.test(s)?im(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(vn)}let a={};if(Vr.keyMap)for(let i=0;i64&&sEe)return sEe.decode(Ze.subarray(Ee,Ee+=r));let t=Ee+r,n=[];for(e="";Ee65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=zo.apply(String,n),n.length=0)}return n.length>0&&(e+=zo.apply(String,n)),e}var zo=String.fromCharCode;function MNr(r){let e=Ee,t=new Array(r);for(let n=0;n0){Ee=e;return}t[n]=a}return zo.apply(String,t)}function Hlt(r){if(r<4)if(r<2){if(r===0)return"";{let e=Ze[Ee++];if((e&128)>1){Ee-=1;return}return zo(e)}}else{let e=Ze[Ee++],t=Ze[Ee++];if((e&128)>0||(t&128)>0){Ee-=2;return}if(r<3)return zo(e,t);let n=Ze[Ee++];if((n&128)>0){Ee-=3;return}return zo(e,t,n)}else{let e=Ze[Ee++],t=Ze[Ee++],n=Ze[Ee++],a=Ze[Ee++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ee-=4;return}if(r<6){if(r===4)return zo(e,t,n,a);{let i=Ze[Ee++];if((i&128)>0){Ee-=5;return}return zo(e,t,n,a,i)}}else if(r<8){let i=Ze[Ee++],s=Ze[Ee++];if((i&128)>0||(s&128)>0){Ee-=6;return}if(r<7)return zo(e,t,n,a,i,s);let o=Ze[Ee++];if((o&128)>0){Ee-=7;return}return zo(e,t,n,a,i,s,o)}else{let i=Ze[Ee++],s=Ze[Ee++],o=Ze[Ee++],c=Ze[Ee++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ee-=8;return}if(r<10){if(r===8)return zo(e,t,n,a,i,s,o,c);{let u=Ze[Ee++];if((u&128)>0){Ee-=9;return}return zo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Ze[Ee++],l=Ze[Ee++];if((u&128)>0||(l&128)>0){Ee-=10;return}if(r<11)return zo(e,t,n,a,i,s,o,c,u,l);let h=Ze[Ee++];if((h&128)>0){Ee-=11;return}return zo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Ze[Ee++],l=Ze[Ee++],h=Ze[Ee++],f=Ze[Ee++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ee-=12;return}if(r<14){if(r===12)return zo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Ze[Ee++];if((m&128)>0){Ee-=13;return}return zo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Ze[Ee++],y=Ze[Ee++];if((m&128)>0||(y&128)>0){Ee-=14;return}if(r<15)return zo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let I=Ze[Ee++];if((I&128)>0){Ee-=15;return}return zo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,I)}}}}}function NNr(r){return Vr.copyBuffers?Uint8Array.prototype.slice.call(Ze,Ee,Ee+=r):Ze.subarray(Ee,Ee+=r)}var jlt=new Float32Array(1),rpe=new Uint8Array(jlt.buffer,0,4);function BNr(){let r=Ze[Ee++],e=Ze[Ee++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return rpe[3]=r&128|(t>>1)+56,rpe[2]=(r&7)<<5|e>>3,rpe[1]=e<<5,rpe[0]=0,jlt[0]}var PV=class{constructor(e,t){this.value=e,this.tag=t}};Ki[0]=r=>new Date(r);Ki[1]=r=>new Date(Math.round(r*1e3));Ki[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Ki[2](r);Ki[4]=r=>Number(r[1]+"e"+r[0]);Ki[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var dEe=r=>{let e=r[0]-57344,t=r[1],n=us[e];n&&n.isShared&&((us.restoreStructures||(us.restoreStructures=[]))[e]=n),us[e]=t,t.read=uEe(t);let a={};if(Vr.keyMap)for(let i=2,s=r.length;imo?mo[0].slice(mo.position0,mo.position0+=r):new PV(r,14);Ki[15]=r=>mo?mo[1].slice(mo.position1,mo.position1+=r):new PV(r,15);var DNr={Error,RegExp};Ki[27]=r=>(DNr[r[0]]||Error)(r[1],r[2]);var zlt=r=>{if(Ze[Ee++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return _l=_l?e.concat(_l.slice(e.length)):e,_l.prefixes=r(),_l.suffixes=r(),r()};zlt.handlesRead=!0;Ki[51]=zlt;Ki[fut]=r=>{if(!_l)if(Vr.getShared)WEe();else return new PV(r,fut);if(typeof r=="number")return _l[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Ki[25]=r=>stringRefs[r];Ki[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Ki[256].handlesRead=!0;Ki[28]=r=>{kh||(kh=new Map,kh.id=0);let e=kh.id++,t=Ze[Ee],n;t>>5==4?n=[]:n={};let a={target:n};kh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Ki[28].handlesRead=!0;Ki[29]=r=>{let e=kh.get(r);return e.used=!0,e.target};Ki[258]=r=>new Set(r);(Ki[259]=r=>(Vr.mapsAsObjects&&(Vr.mapsAsObjects=!1,NX=!0),r())).handlesRead=!0;function xV(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function g2(){if(!_l)if(Vr.getShared)WEe();else throw new Error("No packed values available");return _l}var LNr=1399353956;oEe.push((r,e)=>{if(r>=225&&r<=255)return xV(g2().prefixes[r-224],e);if(r>=28704&&r<=32767)return xV(g2().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return xV(g2().prefixes[r-1879048192],e);if(r>=216&&r<=223)return xV(e,g2().suffixes[r-216]);if(r>=27647&&r<=28671)return xV(e,g2().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return xV(e,g2().suffixes[r-1811939328]);if(r==LNr)return{packedValues:_l,structures:us.slice(0),version:e};if(r==55799)return e});var ONr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,but=[Uint8Array],qNr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Ze[Ee++];break;case 25:r=Uu.getUint16(Ee),Ee+=2;break;case 26:r=Uu.getUint32(Ee),Ee+=4;break}return r}function WEe(){if(Vr.getShared){let r=Klt(()=>(Ze=null,Vr.getShared()))||{},e=r.structures||[];Vr.sharedVersion=r.version,_l=Vr.sharedValues=r.packedValues,us===!0?Vr.structures=us=e:us.splice.apply(us,[0,e.length].concat(e))}}function Klt(r){let e=x2,t=Ee,n=Hpe,a=XX,i=Upe,s=kh,o=mo,c=new Uint8Array(Ze.slice(0,x2)),u=us,l=Vr,h=cEe,f=r();return x2=e,Ee=t,Hpe=n,XX=a,Upe=i,kh=s,mo=o,Ze=c,cEe=h,us=u,Vr=l,Uu=new DataView(Ze.buffer,Ze.byteOffset,Ze.byteLength),f}function Glt(){Ze=null,kh=null,us=null}var Vlt=new Array(147);for(let r=0;r<256;r++)Vlt[r]=Number("1e"+Math.floor(45.15-r*.30103));var UNr=new AV({useRecords:!1}),HNr=UNr.decode;function jNr(r,e){return UEe(r,e.abis)}function zNr(r,e){return UEe(Gi.parse(r.abi||[]),[e])}function UEe(r,e){let t=SV(r),n=e.flatMap(i=>SV(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function Ylt(r,e){let t=await RV(r,e);return HEe(t.abi)}async function $lt(r,e){let t=await RV(r,e);return SV(t.abi,t.metadata)}function Qlt(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function HEe(r){let e=Gi.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function Jlt(r,e){let t=Gi.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function SV(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=Qlt(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${pEe(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>pEe(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function Zlt(r,e){let n=Gi.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=Qlt(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function pEe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>pEe(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function Xlt(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function eee(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=Xlt(t);if(n)return await eee(n,e)}catch{}try{let n=await e.getStorageAt(r,J.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=J.ethers.utils.hexStripZeros(n);if(a!=="0x")return await eee(a,e)}catch{}return await edt(t)}function edt(r){let e=KNr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=HNr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${pMr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function KNr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!GNr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:kNr,t={};for(let n in e){let a=e[n],i=jNr(r,a),s=pee(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function KEe(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),KEe(n.features,e)}}function VNr(r){let e=[];return KEe(pee(r),e),e}function hEe(r){let e=[];return KEe(pee(r),e),e.map(t=>t.name)}function MV(r,e){let t=Gi.parse(r||[]),n=pee(t);return tdt(n,e)}function Xt(r,e){if(!r)throw new P0(e);return r}function Ye(r,e){return MV(Gi.parse(r.abi),e)}function tdt(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=tdt(s.features,e),a)break}return a}return r[e].enabled}function fo(r,e){return r in e.readContract.functions}async function jpe(r,e,t,n,a){let i=[];try{let s=MV(Gi.parse(e),"PluginRouter");if(MV(Gi.parse(e),"ExtensionRouter")){let l=(await new ks(t,r,Ult,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await vut(l,t,a)}else if(s){let l=(await new ks(t,r,Wlt,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await vut(h,t,a)}}catch{}return i.length>0?$Nr([e,...i]):e}function YNr(r){let e=MV(Gi.parse(r),"PluginRouter");return MV(Gi.parse(r),"ExtensionRouter")||e}async function vut(r,e,t){return(await Promise.all(r.map(n=>B0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function $Nr(r){let e=r.map(a=>Gi.parse(a)).flat(),n=pNr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Gi.parse(n)}var zpe=class{constructor(e){Y._defineProperty(this,"args",void 0),Y._defineProperty(this,"overrides",void 0),Y._defineProperty(this,"provider",void 0),Y._defineProperty(this,"signer",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"gasMultiple",void 0),this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage||new Dg.ThirdwebStorage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){J.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=J.BigNumber.from(Math.floor(J.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:J.utils.formatEther(n),wei:n}}async getGasPrice(){let e=await this.provider.getGasPrice(),t=J.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){if(OEe())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:J.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await Rlt(n):s=J.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=J.utils.parseUnits("300","gwei"),i=J.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}},De=class extends zpe{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new De(n)}static async fromContractInfo(e){let t=e.storage||new Dg.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await B0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new J.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new De(i)}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),Y._defineProperty(this,"method",void 0),Y._defineProperty(this,"contract",void 0),Y._defineProperty(this,"gaslessOptions",void 0),Y._defineProperty(this,"parse",void 0),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage||new Dg.ThirdwebStorage}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?J.BigNumber.from(Math.floor(J.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(x9r.FormatTypes.json));YNr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async sendGasless(){_t.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>J.utils.solidityPack(["bytes","address"],[m,f]))}_t.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(J.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=J.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=J.BigNumber.from(5e5)),this.overrides.gasLimit&&J.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=J.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await INr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=J.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(R=>JSON.stringify(R).length<=80?JSON.stringify(R):JSON.stringify(R,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` +`+l.map(R=>" "+R.split(` `).join(` `)).join(`, `)+` -`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Fte(e),E,I;try{let S=await O0(this.contract.address,this.provider,this.storage);S.name&&(I=S.name),S.metadata.sources&&(E=await sL(S,this.storage))}catch{}return new v8({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:I,sources:E})}},P0=class{constructor(e,t,n){$._defineProperty(this,"featureName",$D.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"schema",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new R0($D)})),$._defineProperty(this,"update",Te(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{go("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{go("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await O0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return $e(e,"ContractMetadata")}},yO=class{constructor(e,t){$._defineProperty(this,"featureName",VD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"setAll",Te(async n=>{let a=Object.keys(n);Tt.default(a.length,"you must provide at least one role to set"),Tt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Pe(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Pe(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[tx(u),y]))}),m.length)for(let y=0;y{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Pe(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[tx(n),i]})})),$._defineProperty(this,"revoke",Te(async(n,a)=>{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Pe(a),s=await this.getRevokeRoleFunctionName(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[tx(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Tt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Tt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(go("getRoleMemberCount",t)&&go("getRoleMember",t)){let n=tx(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Pe(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new DD(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Pe(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},gO=class{constructor(e,t){$._defineProperty(this,"featureName",zD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"setDefaultRoyaltyInfo",Te(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(go("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),$._defineProperty(this,"setTokenRoyaltyInfo",Te(async(n,a)=>{let i=Vo.parse(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Vo.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Vo.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},bO=class{constructor(e){$._defineProperty(this,"featureName",KD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"setRecipient",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},aL={name:"Failed to load NFT metadata"};async function $te(r,e,t){let n=e.replace("{id}",Q.ethers.utils.hexZeroPad(Q.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Q.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=aL}}return $.CommonNFTOutput.parse({...a,id:Q.BigNumber.from(r).toString(),uri:e})}async function K8(r,e,t,n){let a,i=new Q.Contract(r,ZO.default,e),s=await i.supportsInterface(F8),o=await i.supportsInterface(q8);if(s)a=await new Q.Contract(r,a7r.default,e).tokenURI(t);else if(o)a=await new Q.Contract(r,i7r.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?$te(t,a,n):$.CommonNFTOutput.parse({...aL,id:Q.BigNumber.from(t).toString(),uri:""})}async function Yte(r,e){return typeof r=="string"?r:await e.upload($.CommonNFTInput.parse(r))}async function Zv(r,e,t,n){if(WRr(r))return r;if(URr(r))return await e.uploadBatch(r.map(i=>$.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function ax(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function URr(r){return r.find(e=>typeof e!="object")===void 0}var N8=class{constructor(e,t,n,a){$._defineProperty(this,"featureName",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"nextTokenIdToMintFn",void 0),$._defineProperty(this,"createDelayedRevealBatch",Te(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([$.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=ax(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(q=>$.CommonNFTInput.parse(q)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=ax(f),y=await this.contractWrapper.readContract.getBaseURICount(),E=await this.hashDelayRevealPassword(y,o),I=await this.contractWrapper.readContract.encryptDecrypt(Q.ethers.utils.toUtf8Bytes(m),E),S;if(await this.isLegacyContract())S=I;else{let q=await this.contractWrapper.getChainID(),W=Q.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Q.ethers.utils.toUtf8Bytes(m),E,q]);S=Q.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[I,W])}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,S],parse:q=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",q?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:q});return H}})})),$._defineProperty(this,"reveal",Te(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(go("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(go("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Q.ethers.utils.hexDataLength(u)>0?s?u:Q.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Q.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Q.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return K8(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(go("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Q.ethers.Contract(this.contractWrapper.readContract.address,s7r.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Go=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),Ia=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),B8=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Q.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Q.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Nhe(e),I,C;try{let R=await B0(this.contract.address,this.provider,this.storage);R.name&&(C=R.name),R.metadata.sources&&(I=await Ohe(R,this.storage))}catch{}return new CV({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:C,sources:I})}},Kpe=class extends zpe{constructor(e){super(e),Y._defineProperty(this,"factory",void 0),Y._defineProperty(this,"events",void 0),this.factory=e.factory,this.events=e.events}encode(){return J.utils.hexlify(J.utils.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();this.signer.call(e)}async estimateGasLimit(){try{let t={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,t);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(n){throw await this.simulate(),await this.deployError(n)}let t=J.utils.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:t,transactionHash:e.hash}),t}async populateTransaction(){let t={...await this.getGasOverrides(),...this.overrides};return t.gasLimit||(t.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,t)}async deployError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.encode(),s=J.BigNumber.from(this.overrides.value||0),o=t.connection?.url,c=this.args.map(m=>JSON.stringify(m).length<=80?JSON.stringify(m):JSON.stringify(m,void 0,2)),l=`deployContract(${c.join(", ").length<=80?c.join(", "):` +`+c.map(m=>" "+m.split(` +`).join(` + `)).join(`, +`)+` +`})`,h=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,f=Nhe(e);return new CV({reason:f,from:a,method:l,data:i,network:n,rpcUrl:o,value:s,hash:h})}},A0=class{constructor(e,t,n){Y._defineProperty(this,"featureName",_pe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"schema",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new P0(_pe)})),Y._defineProperty(this,"update",Te(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{fo("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{fo("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await B0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return Ye(e,"ContractMetadata")}},Gpe=class{constructor(e,t){Y._defineProperty(this,"featureName",xpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"setAll",Te(async n=>{let a=Object.keys(n);_t.default(a.length,"you must provide at least one role to set"),_t.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Se(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Se(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[_V(u),y]))}),m.length)for(let y=0;y{_t.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Se(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[_V(n),i]})})),Y._defineProperty(this,"revoke",Te(async(n,a)=>{_t.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Se(a),s=await this.getRevokeRoleFunctionName(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[_V(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){_t.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){_t.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(fo("getRoleMemberCount",t)&&fo("getRoleMember",t)){let n=_V(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Se(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new upe(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Se(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},Vpe=class{constructor(e,t){Y._defineProperty(this,"featureName",bpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"setDefaultRoyaltyInfo",Te(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(fo("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Y._defineProperty(this,"setTokenRoyaltyInfo",Te(async(n,a)=>{let i=Go.parse(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Go.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Go.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},Ype=class{constructor(e){Y._defineProperty(this,"featureName",vpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"setRecipient",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},Dhe={name:"Failed to load NFT metadata"};async function GEe(r,e,t){let n=e.replace("{id}",J.ethers.utils.hexZeroPad(J.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",J.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=Dhe}}return Y.CommonNFTOutput.parse({...a,id:J.BigNumber.from(r).toString(),uri:e})}async function hee(r,e,t,n){let a,i=new J.Contract(r,Ahe.default,e),s=await i.supportsInterface(see),o=await i.supportsInterface(oee);if(s)a=await new J.Contract(r,fMr.default,e).tokenURI(t);else if(o)a=await new J.Contract(r,mMr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?GEe(t,a,n):Y.CommonNFTOutput.parse({...Dhe,id:J.BigNumber.from(t).toString(),uri:""})}async function VEe(r,e){return typeof r=="string"?r:await e.upload(Y.CommonNFTInput.parse(r))}async function P2(r,e,t,n){if(QNr(r))return r;if(JNr(r))return await e.uploadBatch(r.map(i=>Y.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function EV(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function JNr(r){return r.find(e=>typeof e!="object")===void 0}var tee=class{constructor(e,t,n,a){Y._defineProperty(this,"featureName",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"nextTokenIdToMintFn",void 0),Y._defineProperty(this,"createDelayedRevealBatch",Te(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=EV(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>Y.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=EV(f),y=await this.contractWrapper.readContract.getBaseURICount(),I=await this.hashDelayRevealPassword(y,o),C=await this.contractWrapper.readContract.encryptDecrypt(J.ethers.utils.toUtf8Bytes(m),I),R;if(await this.isLegacyContract())R=C;else{let F=await this.contractWrapper.getChainID(),W=J.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[J.ethers.utils.toUtf8Bytes(m),I,F]);R=J.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[C,W])}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,R],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:F});return H}})})),Y._defineProperty(this,"reveal",Te(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(fo("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(fo("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>J.ethers.utils.hexDataLength(u)>0?s?u:J.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:J.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>J.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return hee(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(fo("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new J.ethers.Contract(this.contractWrapper.readContract.address,yMr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Ko=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),Ca=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),ree=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:J.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:J.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(E=>typeof E=="string"?0:Number(E.maxClaimable?.toString()||0)).reduce((E,I)=>E+I,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await sut(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!ict.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),E=await a.metadata._parseAndUploadMetadata(y);if(go("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[E]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[qD(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(qD),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[WD(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(WD),s]));else throw new Error("Contract does not support claim conditions");return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"update",Te(async(i,s)=>{let o=await this.getAll(),c=await iut(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await jD(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return UD(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return UD(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return HD(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return HD(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cjD(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Pe(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Q.ethers.utils.parseUnits($.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[Ia.NoWallet];let c=await Pe(t);try{i=await this.getActive()}catch(f){return w8(f,"!CONDITION")||w8(f,"no active mint condition")?(n.push(Ia.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(Ia.Unknown),n)}i.availableSupply!=="unlimited"&&Q.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(Ia.NotEnoughSupply);let l=Q.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Ia.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(Ia.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(Ia.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),sm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Q.ethers.constants.MaxUint256||f.maxClaimable===Q.BigNumber.from(0))return n.push(Ia.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),sm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Q.ethers.constants.MaxUint256||f.maxClaimable===Q.BigNumber.from(0)))return n.push(Ia.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(Ia.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Q.BigNumber.from(0),y=sm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let E=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(E,c)}if(f&&(y=sm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(Ia.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Q.BigNumber.from(0),Q.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Q.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Q.constants.MaxUint256)?n.push(Ia.AlreadyClaimed):n.push(Ia.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&nut()){let f=i.price.mul(Q.BigNumber.from(e)),m=this.contractWrapper.getProvider();Oh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(Ia.NotEnoughTokens):(await new Ms(m,i.currencyAddress,bu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(Ia.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Q.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Pe(e);return await nL(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return $e(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return aut(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Pe(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Q.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Q.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV2")||$e(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC721ClaimPhasesV2")||$e(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV1")||$e(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC721ClaimPhasesV1")||$e(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?Vv.V1:Vv.V2}},vO=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),$._defineProperty(this,"setBatch",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Q.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Q.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(S=>{if(S.snapshot&&S.snapshot.length>0&&(S.maxClaimablePerWallet===void 0||S.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(I=>typeof I=="string"?0:Number(I.maxClaimable?.toString()||0)).reduce((I,C)=>I+C,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await Llt(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!Dut.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),I=await a.metadata._parseAndUploadMetadata(y);if(fo("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[I]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[hpe(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(hpe),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[fpe(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(fpe),s]));else throw new Error("Contract does not support claim conditions");return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"update",Te(async(i,s)=>{let o=await this.getAll(),c=await Dlt(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await gpe(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return mpe(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return mpe(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return ype(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return ype(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cgpe(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Se(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=J.ethers.utils.parseUnits(Y.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[Ca.NoWallet];let c=await Se(t);try{i=await this.getActive()}catch(f){return HX(f,"!CONDITION")||HX(f,"no active mint condition")?(n.push(Ca.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(Ca.Unknown),n)}i.availableSupply!=="unlimited"&&J.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(Ca.NotEnoughSupply);let l=J.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Ca.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(Ca.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(Ca.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),am(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===J.ethers.constants.MaxUint256||f.maxClaimable===J.BigNumber.from(0))return n.push(Ca.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),am(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===J.ethers.constants.MaxUint256||f.maxClaimable===J.BigNumber.from(0)))return n.push(Ca.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(Ca.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=J.BigNumber.from(0),y=am(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let I=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(I,c)}if(f&&(y=am(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(Ca.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[J.BigNumber.from(0),J.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=J.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(J.constants.MaxUint256)?n.push(Ca.AlreadyClaimed):n.push(Ca.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&Nlt()){let f=i.price.mul(J.BigNumber.from(e)),m=this.contractWrapper.getProvider();Bh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(Ca.NotEnoughTokens):(await new ks(m,i.currencyAddress,bu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(Ca.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(J.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Se(e);return await Bhe(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return Ye(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return Blt(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Se(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},J.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},J.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV2")||Ye(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC721ClaimPhasesV2")||Ye(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV1")||Ye(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC721ClaimPhasesV1")||Ye(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?I2.V1:I2.V2}},$pe=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Y._defineProperty(this,"setBatch",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:J.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:J.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(R=>{if(R.snapshot&&R.snapshot.length>0&&(R.maxClaimablePerWallet===void 0||R.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(S.snapshot&&S.snapshot.length>0&&S.maxClaimablePerWallet?.toString()==="0"&&S.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,q)=>L+q,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:E,sortedConditions:I}=await sut(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return E.forEach(S=>{o[S.merkleRoot]=S.snapshotUri}),{tokenId:f,sortedConditions:I}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!ict.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(go("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,qD(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(qD),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,WD(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(WD),s]));else throw new Error("Contract does not support claim conditions")}),De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),$._defineProperty(this,"update",Te(async(i,s,o)=>{let c=await this.getAll(i),u=await iut(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await jD(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return UD(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return UD(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return HD(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return HD(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cjD(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Pe(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[Ia.NoWallet];let o=await Pe(n);try{s=await this.getActive(e)}catch(y){return w8(y,"!CONDITION")||w8(y,"no active mint condition")?(a.push(Ia.NoClaimConditionSet),a):(a.push(Ia.Unknown),a)}s.availableSupply!=="unlimited"&&Q.BigNumber.from(s.availableSupply).lt(t)&&a.push(Ia.NotEnoughSupply);let u=Q.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Ia.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!E)return a.push(Ia.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!E)return a.push(Ia.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Q.ethers.constants.MaxUint256||y.maxClaimable===Q.BigNumber.from(0))return a.push(Ia.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Q.ethers.constants.MaxUint256||y.maxClaimable===Q.BigNumber.from(0)))return a.push(Ia.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(Ia.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(Ia.AddressNotAllowed),a;let[h,f]=[Q.BigNumber.from(0),Q.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Q.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Q.constants.MaxUint256)?a.push(Ia.AlreadyClaimed):a.push(Ia.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&nut()){let y=s.price.mul(t),E=this.contractWrapper.getProvider();Oh(s.currencyAddress)?(await E.getBalance(o)).lt(y)&&a.push(Ia.NotEnoughTokens):(await new Ms(E,s.currencyAddress,bu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(Ia.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Q.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Pe(t);return await nL(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Pe(a||await this.contractWrapper.getSignerAddress());return aut(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Pe(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Q.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Q.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?Vv.V1:Vv.V2}},wO=class{constructor(e,t){$._defineProperty(this,"featureName",I8.name),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),$._defineProperty(this,"from",Te(async(n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Pe(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},mte=class{constructor(e,t,n){$._defineProperty(this,"featureName",C8.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new P0(this.contractWrapper,zv,this.storage);this.conditions=new B8(this.contractWrapper,a,this.storage)}},yte=class{constructor(e,t,n){$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new mte(this.erc20,this.contractWrapper,this.storage)}},_O=class{constructor(e,t){$._defineProperty(this,"featureName",ZD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"to",Te(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Pe(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},xO=class{constructor(e,t){$._defineProperty(this,"featureName",k8.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if($e(this.contractWrapper,"ERC20BatchMintable"))return new _O(this.erc20,this.contractWrapper)}},TO=class{constructor(e,t){$._defineProperty(this,"featureName",QD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await M0(this.contractWrapper,Q.BigNumber.from(s.price),a.currencyAddress,o),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),$._defineProperty(this,"mintBatch",Te(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Q.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>Bte.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Tt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await Tct.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Sct},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Q.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},EO=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",XD.name),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"droppable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Pe(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferFrom",Te(async(a,i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Pe(a),await Pe(i),await this.normalizeAmount(s)]}))),$._defineProperty(this,"setAllowance",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Pe(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferBatch",Te(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Pe(s.toAddress),o])}));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),$._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,k8).to.prepare(a,i))),$._defineProperty(this,"mintBatchTo",Te(async a=>Xt(this.mintable?.batch,ZD).to.prepare(a))),$._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,I8).tokens.prepare(a))),$._defineProperty(this,"burnFrom",Te(async(a,i)=>Xt(this.burnable,I8).from.prepare(a,i))),$._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Te(async(a,i,s)=>Xt(this.droppable?.claim,C8).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await fx(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Pe(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Pe(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Pe(e),await Pe(t)))}async getMintTransaction(e,t){return Xt(this.mintable,k8).getMintTransaction(e,t)}get claimConditions(){return Xt(this.droppable?.claim,C8).conditions}get signature(){return Xt(this.signatureMintable,QD)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Q.ethers.utils.parseUnits($.AmountSchema.parse(e),t)}async getValue(e){return await bp(this.contractWrapper.getProvider(),this.getAddress(),Q.BigNumber.from(e))}detectErc20Mintable(){if($e(this.contractWrapper,"ERC20"))return new xO(this,this.contractWrapper)}detectErc20Burnable(){if($e(this.contractWrapper,"ERC20Burnable"))return new wO(this,this.contractWrapper)}detectErc20Droppable(){if($e(this.contractWrapper,"ERC20ClaimConditionsV1")||$e(this.contractWrapper,"ERC20ClaimConditionsV2")||$e(this.contractWrapper,"ERC20ClaimPhasesV1")||$e(this.contractWrapper,"ERC20ClaimPhasesV2"))return new yte(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if($e(this.contractWrapper,"ERC20SignatureMintable"))return new TO(this.contractWrapper)}},CO=class{constructor(e){$._defineProperty(this,"featureName",eO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"token",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},gte=class{constructor(e,t){$._defineProperty(this,"featureName",S8.name),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Te(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await out(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},IO=class{constructor(e,t,n){$._defineProperty(this,"featureName",rO.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new P0(this.contractWrapper,zv,this.storage);this.conditions=new B8(this.contractWrapper,a,this.storage)}},kO=class{constructor(e,t,n){$._defineProperty(this,"featureName",nO.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await Zv(a,this.storage,s.toNumber(),i),c=ax(o);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Q.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if($e(this.contractWrapper,"ERC721Revealable"))return new N8(this.contractWrapper,this.storage,A8.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if($e(this.contractWrapper,"ERC721ClaimConditionsV1")||$e(this.contractWrapper,"ERC721ClaimConditionsV2")||$e(this.contractWrapper,"ERC721ClaimPhasesV1")||$e(this.contractWrapper,"ERC721ClaimPhasesV2"))return new IO(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if($e(this.contractWrapper,"ERC721ClaimCustom"))return new gte(this.erc721,this.contractWrapper)}},AO=class{constructor(e,t,n){$._defineProperty(this,"featureName",aO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await Zv(i,this.storage),o=await Pe(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},SO=class{constructor(e,t,n){$._defineProperty(this,"featureName",iO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await Yte(i,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Pe(e),t)}detectErc721BatchMintable(){if($e(this.contractWrapper,"ERC721BatchMintable"))return new AO(this.erc721,this.contractWrapper,this.storage)}},PO=class{constructor(e,t){$._defineProperty(this,"featureName",ste.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Pe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},RO=class{constructor(e,t){$._defineProperty(this,"featureName",nx.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Q.BigNumber.from(e?.start||0).toNumber(),n=Q.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Q.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if($e(this.contractWrapper,"ERC721Enumerable"))return new PO(this.erc721,this.contractWrapper)}},HRr=eL.extend({tierPriority:de.z.array(de.z.string()),royaltyRecipient:Ai.default(Q.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0),quantity:Rs.default(1)}),bte=class{constructor(e,t,n){$._defineProperty(this,"featureName",tO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([$.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=ax(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>$.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=ax(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Q.ethers.utils.toUtf8Bytes(l),m),E,I=Q.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Q.ethers.utils.toUtf8Bytes(l),m,f]);E=Q.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,I]);let S=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,E]),L=this.contractWrapper.parseLogs("TokensLazyMinted",S?.logs),q=L[0].args[1],W=L[0].args[2],V=[];for(let K=q;K.lte(W);K=K.add(1))V.push({id:K,receipt:S,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>HRr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Tt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Nct},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Tc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await M0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Q.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},MO=class{constructor(e,t){$._defineProperty(this,"featureName",sO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await M0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await M0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),$._defineProperty(this,"mintBatch",Te(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Q.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(go("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>kct.parseAsync(c))),a=n.map(c=>c.metadata),i=await Zv(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Tt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await Act.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Pct},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Mct},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return $e(this.contractWrapper,"ERC721SignatureMintV1")}},NO=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",oO.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"tieredDropable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Pe(a),i]})})),$._defineProperty(this,"setApprovalForAll",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Pe(a),i]}))),$._defineProperty(this,"setApprovalForToken",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Pe(a),i]}))),$._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,iO).to.prepare(a,i))),$._defineProperty(this,"mintBatch",Te(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintBatchTo",Te(async(a,i)=>Xt(this.mintable?.batch,aO).to.prepare(a,i))),$._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,eO).token.prepare(a))),$._defineProperty(this,"lazyMint",Te(async(a,i)=>Xt(this.lazyMintable,nO).lazyMint.prepare(a,i))),$._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Te(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new R0(S8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Q.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...aL}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Pe(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Pe(e),await Pe(t))}async getAll(e){return Xt(this.query,nx).all(e)}async getAllOwners(){return Xt(this.query,nx).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return Xt(this.query,nx).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Pe(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Pe(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Q.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new R0(S8)}async totalClaimedSupply(){let e=this.contractWrapper;if(go("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(go("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,rO).conditions}get tieredDrop(){return Xt(this.tieredDropable,tO)}get signature(){return Xt(this.signatureMintable,sO)}get revealer(){return Xt(this.lazyMintable?.revealer,A8)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new b8;return $te(e,t,this.storage)}async nextTokenIdToMint(){if(go("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(go("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if($e(this.contractWrapper,"ERC721Supply")||go("nextTokenIdToMint",this.contractWrapper))return new RO(this,this.contractWrapper)}detectErc721Mintable(){if($e(this.contractWrapper,"ERC721Mintable"))return new SO(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if($e(this.contractWrapper,"ERC721Burnable"))return new CO(this.contractWrapper)}detectErc721LazyMintable(){if($e(this.contractWrapper,"ERC721LazyMintable"))return new kO(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if($e(this.contractWrapper,"ERC721TieredDrop"))return new bte(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if($e(this.contractWrapper,"ERC721SignatureMintV1")||$e(this.contractWrapper,"ERC721SignatureMintV2"))return new MO(this.contractWrapper,this.storage)}},zot=de.z.object({address:Ai,quantity:$.AmountSchema.default(1)}),jRr=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>zot.parseAsync({address:e})))),de.z.array(zot)]),BO=class{constructor(e){$._defineProperty(this,"featureName",Wv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),$._defineProperty(this,"from",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Pe(t),n,a]}))),$._defineProperty(this,"batch",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),$._defineProperty(this,"batchFrom",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Pe(t),n,a]}))),this.contractWrapper=e}},DO=class{constructor(e,t){$._defineProperty(this,"featureName",Hv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Q.BigNumber.from(e?.start||0).toNumber(),n=Q.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Pe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function Jte(r,e){try{let t=new Q.ethers.Contract(r,Cte.default,e),[n,a]=await Promise.all([Q.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var vte=class{constructor(e){$._defineProperty(this,"featureName",P8.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Te(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await out(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Pe(e),t,n],overrides:i})}},wte=class{constructor(e,t){$._defineProperty(this,"featureName",cO.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new P0(this.contractWrapper,zv,this.storage);this.conditions=new vO(e,n,this.storage)}},OO=class{constructor(e,t,n){$._defineProperty(this,"featureName",uO.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await Zv(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,E=[];for(let I=m;I.lte(y);I=I.add(1))E.push({id:I,receipt:h,data:()=>this.erc1155.getTokenMetadata(I)});return E},l=await Jte(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Q.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if($e(this.contractWrapper,"ERC1155ClaimCustom"))return new vte(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if($e(this.contractWrapper,"ERC1155ClaimConditionsV1")||$e(this.contractWrapper,"ERC1155ClaimConditionsV2")||$e(this.contractWrapper,"ERC1155ClaimPhasesV1")||$e(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new wte(this.contractWrapper,this.storage)}detectErc1155Revealable(){if($e(this.contractWrapper,"ERC1155Revealable"))return new N8(this.contractWrapper,this.storage,ix.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},LO=class{constructor(e,t,n){$._defineProperty(this,"featureName",dO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await Zv(s,this.storage),u=await Pe(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Q.ethers.constants.MaxUint256,h,o[f]])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},FO=class{constructor(e,t,n){$._defineProperty(this,"featureName",Uv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),$._defineProperty(this,"additionalSupplyTo",Te(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(a),i,o.uri,s],parse:c=>({id:Q.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Yte(t.metadata,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(e),Q.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if($e(this.contractWrapper,"ERC1155BatchMintable"))return new LO(this.erc1155,this.contractWrapper,this.storage)}},qO=class{constructor(e,t,n){$._defineProperty(this,"featureName",lO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Te(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await M0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),$._defineProperty(this,"mintBatch",Te(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Q.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(go("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Q.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Q.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>Cct.parseAsync(u))),n=t.map(u=>u.metadata),a=await Zv(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Tt.default(s,"No signer available");let c=(await Jte(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await Ict.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Rct},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},WO=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;$._defineProperty(this,"featureName",pO.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Pe(i),s,o,c]})})),$._defineProperty(this,"setApprovalForAll",Te(async(i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),$._defineProperty(this,"airdrop",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await jRr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:E}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,E,o])});return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"mint",Te(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintTo",Te(async(i,s)=>Xt(this.mintable,Uv).to.prepare(i,s))),$._defineProperty(this,"mintAdditionalSupply",Te(async(i,s)=>Xt(this.mintable,Uv).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),$._defineProperty(this,"mintAdditionalSupplyTo",Te(async(i,s,o)=>Xt(this.mintable,Uv).additionalSupplyTo.prepare(i,s,o))),$._defineProperty(this,"mintBatch",Te(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintBatchTo",Te(async(i,s)=>Xt(this.mintable?.batch,dO).to.prepare(i,s))),$._defineProperty(this,"burn",Te(async(i,s)=>Xt(this.burnable,Wv).tokens.prepare(i,s))),$._defineProperty(this,"burnFrom",Te(async(i,s,o)=>Xt(this.burnable,Wv).from.prepare(i,s,o))),$._defineProperty(this,"burnBatch",Te(async(i,s)=>Xt(this.burnable,Wv).batch.prepare(i,s))),$._defineProperty(this,"burnBatchFrom",Te(async(i,s,o)=>Xt(this.burnable,Wv).batchFrom.prepare(i,s,o))),$._defineProperty(this,"lazyMint",Te(async(i,s)=>Xt(this.lazyMintable,uO).lazyMint.prepare(i,s))),$._defineProperty(this,"claim",Te(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),$._defineProperty(this,"claimTo",Te(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new R0(P8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Q.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...aL}))]);return{owner:Q.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Pe(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Pe(e),await Pe(t))}async nextTokenIdToMint(){if(go("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return Xt(this.query,Hv).all(e)}async totalCount(){return Xt(this.query,Hv).totalCount()}async totalCirculatingSupply(e){return Xt(this.query,Hv).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Pe(e)),Xt(this.query,Hv).owned(e)}async getMintTransaction(e,t){return Xt(this.mintable,Uv).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new R0(P8)}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,cO).conditions}get signature(){return Xt(this.signatureMintable,lO)}get revealer(){return Xt(this.lazyMintable?.revealer,ix)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new b8;return $te(e,t,this.storage)}detectErc1155Enumerable(){if($e(this.contractWrapper,"ERC1155Enumerable"))return new DO(this,this.contractWrapper)}detectErc1155Mintable(){if($e(this.contractWrapper,"ERC1155Mintable"))return new FO(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if($e(this.contractWrapper,"ERC1155Burnable"))return new BO(this.contractWrapper)}detectErc1155LazyMintable(){if($e(this.contractWrapper,"ERC1155LazyMintableV1")||$e(this.contractWrapper,"ERC1155LazyMintableV2"))return new OO(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if($e(this.contractWrapper,"ERC1155SignatureMintable"))return new qO(this.contractWrapper,this.storage)}};async function Iut(r,e,t,n,a){try{let i=new Q.Contract(t,ZO.default,r),s=await i.supportsInterface(F8),o=await i.supportsInterface(q8);if(s){let c=new Q.Contract(t,Ec.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Q.Contract(t,Ku.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function D8(r,e,t,n,a){let i=new Ms(r.getSignerOrProvider(),t,ZO.default,r.options),s=await i.readContract.supportsInterface(F8),o=await i.readContract.supportsInterface(q8);if(s){let c=new Ms(r.getSignerOrProvider(),t,Ec.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Ms(r.getSignerOrProvider(),t,Ku.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function zRr(r){switch(Tt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Tt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Tt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Tt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Tt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Tt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Tt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function KRr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await bp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function GRr(r,e,t){return t=Q.BigNumber.from(t),r=Q.BigNumber.from(r),e=Q.BigNumber.from(e),r.eq(Q.BigNumber.from(0))?!1:e.sub(r).mul($.MAX_BPS).div(r).gte(t)}async function dx(r,e,t){let n=[];for(;e-r>$.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+$.DEFAULT_QUERY_ALL_COUNT-1)),r+=$.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var Kot=de.z.object({assetContractAddress:Ai,tokenId:Qs,quantity:Qs.default(1),currencyContractAddress:Ai.default(zu),pricePerToken:$.AmountSchema,startTimestamp:W8.default(new Date),endTimestamp:U8,isReservedListing:de.z.boolean().default(!1)}),Yv=class{constructor(e){$._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(_l.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(_l.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await Kot.parseAsync(n);await D8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Tc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Q.BigNumber.from(o)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:FD(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),$._defineProperty(this,"updateListing",Te(async(n,a)=>{let i=await Kot.parseAsync(a);await D8(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Tc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:FD(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),$._defineProperty(this,"cancelListing",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),$._defineProperty(this,"buyFromListing",Te(async(n,a,i)=>{i&&(i=await Pe(i));let s=await this.validateListing(Q.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Q.BigNumber.from(a),h=Q.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await M0(this.contractWrapper,h,s.currencyContractAddress,f),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),$._defineProperty(this,"approveBuyerForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),$._defineProperty(this,"revokeBuyerApprovalForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),$._defineProperty(this,"approveCurrencyForListing",Te(async(n,a,i)=>{let s=await this.validateListing(Q.BigNumber.from(n)),o=await Pe(a);o===s.currencyContractAddress&&Tt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Tt.default(i===c,"Currency already approved with this price."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),$._defineProperty(this,"revokeCurrencyApprovalForListing",Te(async(n,a)=>{let i=await this.validateListing(Q.BigNumber.from(n)),s=await Pe(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Tt.default(!o.isZero(),"Currency not approved."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Q.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new Yv(this.contractWrapper),this.encoder=new $v(this.contractWrapper),this.interceptor=new Jv(this.contractWrapper),this.estimator=new Qv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Q.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Pe(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Q.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Pe(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Q.BigNumber.from(e)),a=await Pe(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Go.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.startTimestamp).gt(a)?Go.Created:Q.BigNumber.from(e.endTimestamp).lt(a)?Go.Expired:Go.Active;break;case 2:t=Go.Completed;break;case 3:t=Go.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await bp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Q.BigNumber.from(e.startTimestamp).toNumber(),asset:await K8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Q.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await Iut(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Q.Contract(e.assetContractAddress,ZO.default,a),s=await i.supportsInterface(F8),o=await i.supportsInterface(q8);if(s){let u=(await new Q.Contract(e.assetContractAddress,Ec.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Q.Contract(e.assetContractAddress,Ku.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Pe(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=VRr.parse(n);await D8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Tc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Tc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Q.BigNumber.from(c)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:FD(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),$._defineProperty(this,"buyoutAuction",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n)),i=await fx(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Q.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),$._defineProperty(this,"makeBid",Te(async(n,a)=>{let i=await this.validateAuction(Q.BigNumber.from(n)),s=await Tc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Q.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Q.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Tt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Q.BigNumber.from(i.minimumBidAmount);Tt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await M0(this.contractWrapper,s,i.currencyContractAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),$._defineProperty(this,"cancelAuction",Te(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),$._defineProperty(this,"closeAuctionForBidder",Te(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Q.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Q.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new rx(n.toString(),i.endTimeInSeconds.toString()):s}})),$._defineProperty(this,"closeAuctionForSeller",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Q.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new rx(n.toString(),a.endTimeInSeconds.toString()):i}})),$._defineProperty(this,"executeSale",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n));try{let i=await this.getWinningBid(n);Tt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new rx(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new Yv(this.contractWrapper),this.encoder=new $v(this.contractWrapper),this.interceptor=new Jv(this.contractWrapper),this.estimator=new Qv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Q.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Q.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Q.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Q.BigNumber.from(Math.floor(Date.now()/1e3)),i=Q.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Q.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Q.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Q.BigNumber.from(e))]),i=n?Q.BigNumber.from(n.bidAmount):Q.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return bp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Go.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.startTimestamp).gt(a)?Go.Created:Q.BigNumber.from(e.endTimestamp).lt(a)?Go.Expired:Go.Active;break;case 2:t=Go.Completed;break;case 3:t=Go.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await bp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await bp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Q.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Q.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Q.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Q.BigNumber.from(e.endTimestamp).toNumber(),asset:await K8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Pe(t),s=await Pe(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await bp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Pe(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await $Rr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Oh(a.currencyContractAddress)?y8[i].wrapped.address:a.currencyContractAddress,o=await Tc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await M0(this.contractWrapper,o,s,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),$._defineProperty(this,"cancelOffer",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),$._defineProperty(this,"acceptOffer",Te(async n=>{let a=await this.validateOffer(Q.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await D8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new Yv(this.contractWrapper),this.encoder=new $v(this.contractWrapper),this.interceptor=new Jv(this.contractWrapper),this.estimator=new Qv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Go.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.expirationTimestamp).lt(a)?Go.Expired:Go.Active;break;case 2:t=Go.Completed;break;case 3:t=Go.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await bp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await K8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Q.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Q.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Oh(e.currencyContractAddress)?y8[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Ms(i,a,bu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Pe(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return $o(VX())})).default:(await Promise.resolve().then(function(){return $o($X())})).default}},N0={name:"TokenERC1155",contractType:"edition",schema:Vct,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(YX())})).default}},vp={name:"Marketplace",contractType:"marketplace",schema:Lte,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(XX())})).default}},um={name:"MarketplaceV3",contractType:"marketplace-v3",schema:Lte,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return await mO(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return $o(eee())})).default;return await mO(r,Si.parse(a||[]),e,{},t)}},wp={name:"Multiwrap",contractType:"multiwrap",schema:Put,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(ree())})).default}},B0={name:"TokenERC721",contractType:"nft-collection",schema:Kct,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(nee())})).default}},Rh={name:"DropERC721",contractType:"nft-drop",schema:Ote,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return $o(aee())})).default:(await Promise.resolve().then(function(){return $o(iee())})).default}},Tl={name:"Pack",contractType:"pack",schema:qct,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||Si.parse((await Promise.resolve().then(function(){return $o(uee())})).default||[])}},Mh={name:"SignatureDrop",contractType:"signature-drop",schema:Ote,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return $o(lee())})).default:(await Promise.resolve().then(function(){return $o(dee())})).default}},Nh={name:"Split",contractType:"split",schema:Uct,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(hee())})).default}},D0={name:"DropERC20",contractType:"token-drop",schema:Aut,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return $o(yee())})).default:(await Promise.resolve().then(function(){return $o(gee())})).default}},Bh={name:"TokenERC20",contractType:"token",schema:jct,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(wee())})).default}},Dh={name:"VoteERC20",contractType:"vote",schema:Jct,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return $o(Eee())})).default}};async function iL(r,e){try{return await Jte(r,e)}catch{return}}var lm={[Ph.contractType]:Ph,[N0.contractType]:N0,[vp.contractType]:vp,[um.contractType]:um,[wp.contractType]:wp,[B0.contractType]:B0,[Rh.contractType]:Rh,[Tl.contractType]:Tl,[Mh.contractType]:Mh,[Nh.contractType]:Nh,[D0.contractType]:D0,[Bh.contractType]:Bh,[Dh.contractType]:Dh},Rut={[Ph.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[N0.contractType]:"",[vp.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[um.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[wp.contractType]:"",[B0.contractType]:"",[Rh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Tl.contractType]:"",[Mh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Nh.contractType]:"",[D0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Bh.contractType]:"",[Dh.contractType]:""},Got={name:"SmartContract",contractType:"custom",schema:{},roles:Ute},Qte={...lm,[Got.contractType]:Got};function Zte(r){return Object.values(Qte).find(e=>e.name===r)?.contractType||"custom"}function Xte(r){return Object.values(Qte).find(e=>e.contractType===r)?.name}async function Mut(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Tl.contractType?[]:kte(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Rh.contractType:case B0.contractType:let o=await Rh.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Mh.contractType:let c=await Mh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case wp.contractType:let u=await wp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Ph.contractType:case N0.contractType:let l=await Ph.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case D0.contractType:case Bh.contractType:let h=await Bh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Dh.contractType:let f=await Dh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Q.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Nh.contractType:let m=await Nh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(I=>I.address),m.recipients.map(I=>Q.BigNumber.from(I.sharesBps))];case vp.contractType:case um.contractType:let y=await vp.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Tl.contractType:let E=await Tl.schema.deploy.parseAsync(e);return[i,E.name,E.symbol,t,s,E.fee_recipient,E.seller_fee_basis_points];default:return[]}}function XRr(r,e){return r||(e?.gatewayUrls?new Kv.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new Kv.ThirdwebStorage)}var O8=class{constructor(e,t,n){$._defineProperty(this,"featureName",YD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async a=>$e(this.contractWrapper,"AppURI")?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return $e(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():Kv.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},zO=class{constructor(e){$._defineProperty(this,"featureName",GD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Te(async t=>{let n=await _p.parseAsync(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return _p.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},KO=class{constructor(e,t){$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await O0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return cx(Si.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return xut(Si.parse(this.contractWrapper.abi),e?.metadata)}},GO=class{get royalties(){return Xt(this.detectRoyalties(),zD)}get roles(){return Xt(this.detectRoles(),VD)}get sales(){return Xt(this.detectPrimarySales(),KD)}get platformFees(){return Xt(this.detectPlatformFees(),GD)}get owner(){return Xt(this.detectOwnable(),JD)}get erc20(){return Xt(this.detectErc20(),XD)}get erc721(){return Xt(this.detectErc721(),oO)}get erc1155(){return Xt(this.detectErc1155(),pO)}get app(){return Xt(this.detectApp(),YD)}get directListings(){return Xt(this.detectDirectListings(),x8)}get englishAuctions(){return Xt(this.detectEnglishAuctions(),T8)}get offers(){return Xt(this.detectOffers(),E8)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ms(e,t,n,i);$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"interceptor",void 0),$._defineProperty(this,"encoder",void 0),$._defineProperty(this,"estimator",void 0),$._defineProperty(this,"publishedMetadata",void 0),$._defineProperty(this,"abi",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Si.parse(n||[]),this.events=new Yv(this.contractWrapper),this.encoder=new $v(this.contractWrapper),this.interceptor=new Jv(this.contractWrapper),this.estimator=new Qv(this.contractWrapper),this.publishedMetadata=new KO(this.contractWrapper,this.storage),this.metadata=new P0(this.contractWrapper,zv,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let i=this.getSigner();Tt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),$._defineProperty(this,"publish",Te(async(a,i)=>{let s=this.getSigner();Tt.default(s,"A signer is required");let o=await s.getAddress(),c=await Kte(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let S=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Dut(S,i.version))throw Error(`Version ${i.version} is not greater than ${S}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Q.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=Hut.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),E=await this.storage.upload(y);return De.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,E,c.metadataUri,f,Q.constants.AddressZero],parse:I=>{let S=this.publisher.parseLogs("ContractPublished",I.logs);if(S.length<1)throw new Error("No ContractPublished event found");let L=S[0].args.publishedContract;return{receipt:I,data:async()=>this.toPublishedContract(L)}}})})),$._defineProperty(this,"unpublish",Te(async(a,i)=>{let s=await Pe(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Ms(e,pct(),o7r.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return but(e,this.storage)}async extractFunctions(e){return vut(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return ux(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await ux(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Pe(e);return O0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return Gte(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Pe(e),n=await M8(t,this.getProvider());return Tt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Pe(e),n=await this.fetchCompilerMetadataFromAddress(t);return await sL(n,this.storage)}async getPublisherProfile(e){let t=await Pe(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:Kut.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Pe(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Pe(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Pe(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Tt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Pe(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return Gut.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},_te=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$._defineProperty(this,"registryLogic",void 0),$._defineProperty(this,"registryRouter",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Pe(o.address),o.chainId])));return De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Ms(e,Wee(),c7r.default,n),this.registryRouter=new Ms(e,Wee(),u7r.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Pe(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Pe(e))).filter(t=>Q.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Q.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},px=class{constructor(e,t){$._defineProperty(this,"connection",void 0),$._defineProperty(this,"options",void 0),$._defineProperty(this,"events",new Dee.default),this.connection=new Gv(e,t),this.options=t,this.events=new Dee.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zu,a=await Pe(e),i=await Pe(n),s=this.requireWallet(),o=await Tc(this.connection.getProvider(),t,n);if(Oh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zu;this.requireWallet();let t=await Pe(e),n=this.connection.getProvider(),a;return Oh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await bp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await _8(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Q.ethers.utils.hashMessage(e),a=Q.ethers.utils.arrayify(n);return Q.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Ne.Localhost||t===Ne.Hardhat)return new px(new Q.ethers.Wallet(lct,g8(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Tt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Ms(this.connection.getSignerOrProvider(),e,bu.default,this.options)}},cm=class extends Gv{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return cm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=g8(t,n);i=e.connect(o)}let s=new cm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=g8(t,n),s=new Q.Wallet(e,i);return new cm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;rL(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),$._defineProperty(this,"contractCache",new Map),$._defineProperty(this,"_publisher",void 0),$._defineProperty(this,"storageHandler",void 0),$._defineProperty(this,"deployer",void 0),$._defineProperty(this,"multiChainRegistry",void 0),$._defineProperty(this,"wallet",void 0),$._defineProperty(this,"storage",void 0),cct(t?.supportedChains);let a=XRr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new px(e,t),this.deployer=new YO(e,t,a),this.multiChainRegistry=new _te(e,this.storageHandler,this.options),this._publisher=new VO(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(R.snapshot&&R.snapshot.length>0&&R.maxClaimablePerWallet?.toString()==="0"&&R.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:I,sortedConditions:C}=await Llt(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return I.forEach(R=>{o[R.merkleRoot]=R.snapshotUri}),{tokenId:f,sortedConditions:C}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!Dut.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(fo("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,hpe(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(hpe),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,fpe(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(fpe),s]));else throw new Error("Contract does not support claim conditions")}),De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Y._defineProperty(this,"update",Te(async(i,s,o)=>{let c=await this.getAll(i),u=await Dlt(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await gpe(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return mpe(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return mpe(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return ype(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return ype(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cgpe(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Se(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[Ca.NoWallet];let o=await Se(n);try{s=await this.getActive(e)}catch(y){return HX(y,"!CONDITION")||HX(y,"no active mint condition")?(a.push(Ca.NoClaimConditionSet),a):(a.push(Ca.Unknown),a)}s.availableSupply!=="unlimited"&&J.BigNumber.from(s.availableSupply).lt(t)&&a.push(Ca.NotEnoughSupply);let u=J.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Ca.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),I;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!I)return a.push(Ca.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!I)return a.push(Ca.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===J.ethers.constants.MaxUint256||y.maxClaimable===J.BigNumber.from(0))return a.push(Ca.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===J.ethers.constants.MaxUint256||y.maxClaimable===J.BigNumber.from(0)))return a.push(Ca.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(Ca.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(Ca.AddressNotAllowed),a;let[h,f]=[J.BigNumber.from(0),J.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=J.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(J.constants.MaxUint256)?a.push(Ca.AlreadyClaimed):a.push(Ca.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&Nlt()){let y=s.price.mul(t),I=this.contractWrapper.getProvider();Bh(s.currencyAddress)?(await I.getBalance(o)).lt(y)&&a.push(Ca.NotEnoughTokens):(await new ks(I,s.currencyAddress,bu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(Ca.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(J.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Se(t);return await Bhe(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Se(a||await this.contractWrapper.getSignerAddress());return Blt(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Se(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},J.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},J.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?I2.V1:I2.V2}},Qpe=class{constructor(e,t){Y._defineProperty(this,"featureName",YX.name),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Y._defineProperty(this,"from",Te(async(n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Se(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},fEe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",VX.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new A0(this.contractWrapper,_2,this.storage);this.conditions=new ree(this.contractWrapper,a,this.storage)}},mEe=class{constructor(e,t,n){Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new fEe(this.erc20,this.contractWrapper,this.storage)}},Jpe=class{constructor(e,t){Y._defineProperty(this,"featureName",Cpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"to",Te(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Se(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},Zpe=class{constructor(e,t){Y._defineProperty(this,"featureName",$X.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Te(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Ye(this.contractWrapper,"ERC20BatchMintable"))return new Jpe(this.erc20,this.contractWrapper)}},Xpe=class{constructor(e,t){Y._defineProperty(this,"featureName",Epe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await S0(this.contractWrapper,J.BigNumber.from(s.price),a.currencyAddress,o),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Y._defineProperty(this,"mintBatch",Te(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(J.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>NEe.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();_t.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await Xut.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:ilt},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=J.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},ehe=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",kpe.name),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"droppable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Se(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferFrom",Te(async(a,i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Se(a),await Se(i),await this.normalizeAmount(s)]}))),Y._defineProperty(this,"setAllowance",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Se(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferBatch",Te(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Se(s.toAddress),o])}));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Y._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,$X).to.prepare(a,i))),Y._defineProperty(this,"mintBatchTo",Te(async a=>Xt(this.mintable?.batch,Cpe).to.prepare(a))),Y._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,YX).tokens.prepare(a))),Y._defineProperty(this,"burnFrom",Te(async(a,i)=>Xt(this.burnable,YX).from.prepare(a,i))),Y._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Te(async(a,i,s)=>Xt(this.droppable?.claim,VX).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await LV(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Se(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Se(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Se(e),await Se(t)))}async getMintTransaction(e,t){return Xt(this.mintable,$X).getMintTransaction(e,t)}get claimConditions(){return Xt(this.droppable?.claim,VX).conditions}get signature(){return Xt(this.signatureMintable,Epe)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return J.ethers.utils.parseUnits(Y.AmountSchema.parse(e),t)}async getValue(e){return await yp(this.contractWrapper.getProvider(),this.getAddress(),J.BigNumber.from(e))}detectErc20Mintable(){if(Ye(this.contractWrapper,"ERC20"))return new Zpe(this,this.contractWrapper)}detectErc20Burnable(){if(Ye(this.contractWrapper,"ERC20Burnable"))return new Qpe(this,this.contractWrapper)}detectErc20Droppable(){if(Ye(this.contractWrapper,"ERC20ClaimConditionsV1")||Ye(this.contractWrapper,"ERC20ClaimConditionsV2")||Ye(this.contractWrapper,"ERC20ClaimPhasesV1")||Ye(this.contractWrapper,"ERC20ClaimPhasesV2"))return new mEe(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Ye(this.contractWrapper,"ERC20SignatureMintable"))return new Xpe(this.contractWrapper)}},the=class{constructor(e){Y._defineProperty(this,"featureName",Ape.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"token",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},yEe=class{constructor(e,t){Y._defineProperty(this,"featureName",JX.name),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Te(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await Olt(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},rhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Spe.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new A0(this.contractWrapper,_2,this.storage);this.conditions=new ree(this.contractWrapper,a,this.storage)}},nhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Rpe.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await P2(a,this.storage,s.toNumber(),i),c=EV(o);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,J.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if(Ye(this.contractWrapper,"ERC721Revealable"))return new tee(this.contractWrapper,this.storage,QX.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC721ClaimConditionsV1")||Ye(this.contractWrapper,"ERC721ClaimConditionsV2")||Ye(this.contractWrapper,"ERC721ClaimPhasesV1")||Ye(this.contractWrapper,"ERC721ClaimPhasesV2"))return new rhe(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Ye(this.contractWrapper,"ERC721ClaimCustom"))return new yEe(this.erc721,this.contractWrapper)}},ahe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Mpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=await P2(i,this.storage),o=await Se(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},ihe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Npe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=await VEe(i,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Se(e),t)}detectErc721BatchMintable(){if(Ye(this.contractWrapper,"ERC721BatchMintable"))return new ahe(this.erc721,this.contractWrapper,this.storage)}},she=class{constructor(e,t){Y._defineProperty(this,"featureName",iEe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Se(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},ohe=class{constructor(e,t){Y._defineProperty(this,"featureName",IV.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=J.BigNumber.from(e?.start||0).toNumber(),n=J.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>J.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Ye(this.contractWrapper,"ERC721Enumerable"))return new she(this.erc721,this.contractWrapper)}},ZNr=She.extend({tierPriority:de.z.array(de.z.string()),royaltyRecipient:Ii.default(J.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0),quantity:Cs.default(1)}),gEe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Ppe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([Y.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=EV(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>Y.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=EV(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(J.ethers.utils.toUtf8Bytes(l),m),I,C=J.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[J.ethers.utils.toUtf8Bytes(l),m,f]);I=J.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,C]);let R=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,I]),L=this.contractWrapper.parseLogs("TokensLazyMinted",R?.logs),F=L[0].args[1],W=L[0].args[2],V=[];for(let K=F;K.lte(W);K=K.add(1))V.push({id:K,receipt:R,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>ZNr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return _t.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:ult},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Tc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await S0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=J.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},che=class{constructor(e,t){Y._defineProperty(this,"featureName",Bpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await S0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await S0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Y._defineProperty(this,"mintBatch",Te(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(J.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(fo("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>nlt.parseAsync(c))),a=n.map(c=>c.metadata),i=await P2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return _t.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await alt.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:slt},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:clt},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Ye(this.contractWrapper,"ERC721SignatureMintV1")}},uhe=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",Dpe.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"tieredDropable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Te(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Se(a),i]})})),Y._defineProperty(this,"setApprovalForAll",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Se(a),i]}))),Y._defineProperty(this,"setApprovalForToken",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Se(a),i]}))),Y._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,Npe).to.prepare(a,i))),Y._defineProperty(this,"mintBatch",Te(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintBatchTo",Te(async(a,i)=>Xt(this.mintable?.batch,Mpe).to.prepare(a,i))),Y._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,Ape).token.prepare(a))),Y._defineProperty(this,"lazyMint",Te(async(a,i)=>Xt(this.lazyMintable,Rpe).lazyMint.prepare(a,i))),Y._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Te(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new P0(JX)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>J.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Dhe}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Se(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Se(e),await Se(t))}async getAll(e){return Xt(this.query,IV).all(e)}async getAllOwners(){return Xt(this.query,IV).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return Xt(this.query,IV).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Se(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Se(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>J.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new P0(JX)}async totalClaimedSupply(){let e=this.contractWrapper;if(fo("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(fo("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,Spe).conditions}get tieredDrop(){return Xt(this.tieredDropable,Ppe)}get signature(){return Xt(this.signatureMintable,Bpe)}get revealer(){return Xt(this.lazyMintable?.revealer,QX)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new UX;return GEe(e,t,this.storage)}async nextTokenIdToMint(){if(fo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(fo("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Ye(this.contractWrapper,"ERC721Supply")||fo("nextTokenIdToMint",this.contractWrapper))return new ohe(this,this.contractWrapper)}detectErc721Mintable(){if(Ye(this.contractWrapper,"ERC721Mintable"))return new ihe(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Ye(this.contractWrapper,"ERC721Burnable"))return new the(this.contractWrapper)}detectErc721LazyMintable(){if(Ye(this.contractWrapper,"ERC721LazyMintable"))return new nhe(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Ye(this.contractWrapper,"ERC721TieredDrop"))return new gEe(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Ye(this.contractWrapper,"ERC721SignatureMintV1")||Ye(this.contractWrapper,"ERC721SignatureMintV2"))return new che(this.contractWrapper,this.storage)}},wut=de.z.object({address:Ii,quantity:Y.AmountSchema.default(1)}),XNr=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>wut.parseAsync({address:e})))),de.z.array(wut)]),lhe=class{constructor(e){Y._defineProperty(this,"featureName",b2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Y._defineProperty(this,"from",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Se(t),n,a]}))),Y._defineProperty(this,"batch",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Y._defineProperty(this,"batchFrom",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Se(t),n,a]}))),this.contractWrapper=e}},dhe=class{constructor(e,t){Y._defineProperty(this,"featureName",w2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=J.BigNumber.from(e?.start||0).toNumber(),n=J.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Se(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function YEe(r,e){try{let t=new J.ethers.Contract(r,IEe.default,e),[n,a]=await Promise.all([J.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var bEe=class{constructor(e){Y._defineProperty(this,"featureName",ZX.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Te(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await Olt(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Se(e),t,n],overrides:i})}},vEe=class{constructor(e,t){Y._defineProperty(this,"featureName",Lpe.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new A0(this.contractWrapper,_2,this.storage);this.conditions=new $pe(e,n,this.storage)}},phe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Ope.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await P2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,I=[];for(let C=m;C.lte(y);C=C.add(1))I.push({id:C,receipt:h,data:()=>this.erc1155.getTokenMetadata(C)});return I},l=await YEe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,J.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if(Ye(this.contractWrapper,"ERC1155ClaimCustom"))return new bEe(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC1155ClaimConditionsV1")||Ye(this.contractWrapper,"ERC1155ClaimConditionsV2")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV1")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new vEe(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Ye(this.contractWrapper,"ERC1155Revealable"))return new tee(this.contractWrapper,this.storage,kV.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},hhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Fpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await P2(s,this.storage),u=await Se(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,J.ethers.constants.MaxUint256,h,o[f]])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},fhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",v2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Y._defineProperty(this,"additionalSupplyTo",Te(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(a),i,o.uri,s],parse:c=>({id:J.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await VEe(t.metadata,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(e),J.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(Ye(this.contractWrapper,"ERC1155BatchMintable"))return new hhe(this.erc1155,this.contractWrapper,this.storage)}},mhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",qpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Te(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await S0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Y._defineProperty(this,"mintBatch",Te(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(J.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(fo("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:J.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:J.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>tlt.parseAsync(u))),n=t.map(u=>u.metadata),a=await P2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();_t.default(s,"No signer available");let c=(await YEe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await rlt.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:olt},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},yhe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Y._defineProperty(this,"featureName",Wpe.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Te(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Se(i),s,o,c]})})),Y._defineProperty(this,"setApprovalForAll",Te(async(i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Y._defineProperty(this,"airdrop",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await XNr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:I}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,I,o])});return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"mint",Te(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintTo",Te(async(i,s)=>Xt(this.mintable,v2).to.prepare(i,s))),Y._defineProperty(this,"mintAdditionalSupply",Te(async(i,s)=>Xt(this.mintable,v2).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Y._defineProperty(this,"mintAdditionalSupplyTo",Te(async(i,s,o)=>Xt(this.mintable,v2).additionalSupplyTo.prepare(i,s,o))),Y._defineProperty(this,"mintBatch",Te(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintBatchTo",Te(async(i,s)=>Xt(this.mintable?.batch,Fpe).to.prepare(i,s))),Y._defineProperty(this,"burn",Te(async(i,s)=>Xt(this.burnable,b2).tokens.prepare(i,s))),Y._defineProperty(this,"burnFrom",Te(async(i,s,o)=>Xt(this.burnable,b2).from.prepare(i,s,o))),Y._defineProperty(this,"burnBatch",Te(async(i,s)=>Xt(this.burnable,b2).batch.prepare(i,s))),Y._defineProperty(this,"burnBatchFrom",Te(async(i,s,o)=>Xt(this.burnable,b2).batchFrom.prepare(i,s,o))),Y._defineProperty(this,"lazyMint",Te(async(i,s)=>Xt(this.lazyMintable,Ope).lazyMint.prepare(i,s))),Y._defineProperty(this,"claim",Te(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Y._defineProperty(this,"claimTo",Te(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new P0(ZX)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>J.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Dhe}))]);return{owner:J.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Se(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Se(e),await Se(t))}async nextTokenIdToMint(){if(fo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return Xt(this.query,w2).all(e)}async totalCount(){return Xt(this.query,w2).totalCount()}async totalCirculatingSupply(e){return Xt(this.query,w2).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Se(e)),Xt(this.query,w2).owned(e)}async getMintTransaction(e,t){return Xt(this.mintable,v2).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new P0(ZX)}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,Lpe).conditions}get signature(){return Xt(this.signatureMintable,qpe)}get revealer(){return Xt(this.lazyMintable?.revealer,kV)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new UX;return GEe(e,t,this.storage)}detectErc1155Enumerable(){if(Ye(this.contractWrapper,"ERC1155Enumerable"))return new dhe(this,this.contractWrapper)}detectErc1155Mintable(){if(Ye(this.contractWrapper,"ERC1155Mintable"))return new fhe(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Ye(this.contractWrapper,"ERC1155Burnable"))return new lhe(this.contractWrapper)}detectErc1155LazyMintable(){if(Ye(this.contractWrapper,"ERC1155LazyMintableV1")||Ye(this.contractWrapper,"ERC1155LazyMintableV2"))return new phe(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Ye(this.contractWrapper,"ERC1155SignatureMintable"))return new mhe(this.contractWrapper,this.storage)}};async function rdt(r,e,t,n,a){try{let i=new J.Contract(t,Ahe.default,r),s=await i.supportsInterface(see),o=await i.supportsInterface(oee);if(s){let c=new J.Contract(t,Ic.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new J.Contract(t,ju.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function nee(r,e,t,n,a){let i=new ks(r.getSignerOrProvider(),t,Ahe.default,r.options),s=await i.readContract.supportsInterface(see),o=await i.readContract.supportsInterface(oee);if(s){let c=new ks(r.getSignerOrProvider(),t,Ic.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new ks(r.getSignerOrProvider(),t,ju.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function eBr(r){switch(_t.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),_t.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),_t.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),_t.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),_t.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),_t.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":_t.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function tBr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await yp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function rBr(r,e,t){return t=J.BigNumber.from(t),r=J.BigNumber.from(r),e=J.BigNumber.from(e),r.eq(J.BigNumber.from(0))?!1:e.sub(r).mul(Y.MAX_BPS).div(r).gte(t)}async function NV(r,e,t){let n=[];for(;e-r>Y.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Y.DEFAULT_QUERY_ALL_COUNT-1)),r+=Y.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var xut=de.z.object({assetContractAddress:Ii,tokenId:Vs,quantity:Vs.default(1),currencyContractAddress:Ii.default(Hu),pricePerToken:Y.AmountSchema,startTimestamp:cee.default(new Date),endTimestamp:uee,isReservedListing:de.z.boolean().default(!1)}),C2=class{constructor(e){Y._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(xl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(xl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await xut.parseAsync(n);await nee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Tc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=J.BigNumber.from(o)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:ppe(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Y._defineProperty(this,"updateListing",Te(async(n,a)=>{let i=await xut.parseAsync(a);await nee(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Tc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:ppe(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Y._defineProperty(this,"cancelListing",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Y._defineProperty(this,"buyFromListing",Te(async(n,a,i)=>{i&&(i=await Se(i));let s=await this.validateListing(J.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=J.BigNumber.from(a),h=J.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await S0(this.contractWrapper,h,s.currencyContractAddress,f),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Y._defineProperty(this,"approveBuyerForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Y._defineProperty(this,"revokeBuyerApprovalForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Y._defineProperty(this,"approveCurrencyForListing",Te(async(n,a,i)=>{let s=await this.validateListing(J.BigNumber.from(n)),o=await Se(a);o===s.currencyContractAddress&&_t.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return _t.default(i===c,"Currency already approved with this price."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Y._defineProperty(this,"revokeCurrencyApprovalForListing",Te(async(n,a)=>{let i=await this.validateListing(J.BigNumber.from(n)),s=await Se(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return _t.default(!o.isZero(),"Currency not approved."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,J.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(J.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Se(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(J.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Se(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(J.BigNumber.from(e)),a=await Se(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Ko.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.startTimestamp).gt(a)?Ko.Created:J.BigNumber.from(e.endTimestamp).lt(a)?Ko.Expired:Ko.Active;break;case 2:t=Ko.Completed;break;case 3:t=Ko.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await yp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:J.BigNumber.from(e.startTimestamp).toNumber(),asset:await hee(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:J.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await rdt(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new J.Contract(e.assetContractAddress,Ahe.default,a),s=await i.supportsInterface(see),o=await i.supportsInterface(oee);if(s){let u=(await new J.Contract(e.assetContractAddress,Ic.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new J.Contract(e.assetContractAddress,ju.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Se(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Se(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=nBr.parse(n);await nee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Tc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Tc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=J.BigNumber.from(c)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:ppe(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Y._defineProperty(this,"buyoutAuction",Te(async n=>{let a=await this.validateAuction(J.BigNumber.from(n)),i=await LV(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,J.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Y._defineProperty(this,"makeBid",Te(async(n,a)=>{let i=await this.validateAuction(J.BigNumber.from(n)),s=await Tc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(J.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(J.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);_t.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=J.BigNumber.from(i.minimumBidAmount);_t.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await S0(this.contractWrapper,s,i.currencyContractAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Y._defineProperty(this,"cancelAuction",Te(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Y._defineProperty(this,"closeAuctionForBidder",Te(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(J.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[J.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new TV(n.toString(),i.endTimeInSeconds.toString()):s}})),Y._defineProperty(this,"closeAuctionForSeller",Te(async n=>{let a=await this.validateAuction(J.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[J.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new TV(n.toString(),a.endTimeInSeconds.toString()):i}})),Y._defineProperty(this,"executeSale",Te(async n=>{let a=await this.validateAuction(J.BigNumber.from(n));try{let i=await this.getWinningBid(n);_t.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new TV(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(J.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==J.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(J.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=J.BigNumber.from(Math.floor(Date.now()/1e3)),i=J.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==J.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(J.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(J.BigNumber.from(e))]),i=n?J.BigNumber.from(n.bidAmount):J.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return yp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Ko.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.startTimestamp).gt(a)?Ko.Created:J.BigNumber.from(e.endTimestamp).lt(a)?Ko.Expired:Ko.Active;break;case 2:t=Ko.Completed;break;case 3:t=Ko.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await yp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await yp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:J.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:J.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:J.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:J.BigNumber.from(e.endTimestamp).toNumber(),asset:await hee(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Se(t),s=await Se(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await yp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Se(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Se(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await aBr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Bh(a.currencyContractAddress)?FX[i].wrapped.address:a.currencyContractAddress,o=await Tc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await S0(this.contractWrapper,o,s,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Y._defineProperty(this,"cancelOffer",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Y._defineProperty(this,"acceptOffer",Te(async n=>{let a=await this.validateOffer(J.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await nee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Ko.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.expirationTimestamp).lt(a)?Ko.Expired:Ko.Active;break;case 2:t=Ko.Completed;break;case 3:t=Ko.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await yp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await hee(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:J.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(J.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Bh(e.currencyContractAddress)?FX[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new ks(i,a,bu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Se(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Se(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Vo(V6e())})).default:(await Promise.resolve().then(function(){return Vo(Y6e())})).default}},R0={name:"TokenERC1155",contractType:"edition",schema:Tlt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo($6e())})).default}},gp={name:"Marketplace",contractType:"marketplace",schema:LEe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(X6e())})).default}},om={name:"MarketplaceV3",contractType:"marketplace-v3",schema:LEe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return await jpe(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Vo(eIe())})).default;return await jpe(r,Gi.parse(a||[]),e,{},t)}},bp={name:"Multiwrap",contractType:"multiwrap",schema:sdt,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(rIe())})).default}},M0={name:"TokenERC721",contractType:"nft-collection",schema:xlt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(nIe())})).default}},Ph={name:"DropERC721",contractType:"nft-drop",schema:DEe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Vo(aIe())})).default:(await Promise.resolve().then(function(){return Vo(iIe())})).default}},Tl={name:"Pack",contractType:"pack",schema:mlt,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||Gi.parse((await Promise.resolve().then(function(){return Vo(uIe())})).default||[])}},Sh={name:"SignatureDrop",contractType:"signature-drop",schema:DEe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Vo(lIe())})).default:(await Promise.resolve().then(function(){return Vo(dIe())})).default}},Rh={name:"Split",contractType:"split",schema:glt,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(hIe())})).default}},N0={name:"DropERC20",contractType:"token-drop",schema:adt,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Vo(mIe())})).default:(await Promise.resolve().then(function(){return Vo(yIe())})).default}},Mh={name:"TokenERC20",contractType:"token",schema:vlt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(vIe())})).default}},Nh={name:"VoteERC20",contractType:"vote",schema:Clt,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(TIe())})).default}};async function Lhe(r,e){try{return await YEe(r,e)}catch{return}}var cm={[Ah.contractType]:Ah,[R0.contractType]:R0,[gp.contractType]:gp,[om.contractType]:om,[bp.contractType]:bp,[M0.contractType]:M0,[Ph.contractType]:Ph,[Tl.contractType]:Tl,[Sh.contractType]:Sh,[Rh.contractType]:Rh,[N0.contractType]:N0,[Mh.contractType]:Mh,[Nh.contractType]:Nh},odt={[Ah.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[R0.contractType]:"",[gp.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[om.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[bp.contractType]:"",[M0.contractType]:"",[Ph.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Tl.contractType]:"",[Sh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Rh.contractType]:"",[N0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Mh.contractType]:"",[Nh.contractType]:""},_ut={name:"SmartContract",contractType:"custom",schema:{},roles:FEe},$Ee={...cm,[_ut.contractType]:_ut};function QEe(r){return Object.values($Ee).find(e=>e.name===r)?.contractType||"custom"}function JEe(r){return Object.values($Ee).find(e=>e.contractType===r)?.name}async function cdt(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Tl.contractType?[]:CEe(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Ph.contractType:case M0.contractType:let o=await Ph.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Sh.contractType:let c=await Sh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case bp.contractType:let u=await bp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Ah.contractType:case R0.contractType:let l=await Ah.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case N0.contractType:case Mh.contractType:let h=await Mh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Nh.contractType:let f=await Nh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,J.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Rh.contractType:let m=await Rh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(C=>C.address),m.recipients.map(C=>J.BigNumber.from(C.sharesBps))];case gp.contractType:case om.contractType:let y=await gp.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Tl.contractType:let I=await Tl.schema.deploy.parseAsync(e);return[i,I.name,I.symbol,t,s,I.fee_recipient,I.seller_fee_basis_points];default:return[]}}function uBr(r,e){return r||(e?.gatewayUrls?new Dg.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new Dg.ThirdwebStorage)}var aee=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Tpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async a=>Ye(this.contractWrapper,"AppURI")?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return Ye(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():Dg.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},whe=class{constructor(e){Y._defineProperty(this,"featureName",wpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Te(async t=>{let n=await vp.parseAsync(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return vp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},xhe=class{constructor(e,t){Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await B0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return SV(Gi.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return Zlt(Gi.parse(this.contractWrapper.abi),e?.metadata)}},_he=class{get royalties(){return Xt(this.detectRoyalties(),bpe)}get roles(){return Xt(this.detectRoles(),xpe)}get sales(){return Xt(this.detectPrimarySales(),vpe)}get platformFees(){return Xt(this.detectPlatformFees(),wpe)}get owner(){return Xt(this.detectOwnable(),Ipe)}get erc20(){return Xt(this.detectErc20(),kpe)}get erc721(){return Xt(this.detectErc721(),Dpe)}get erc1155(){return Xt(this.detectErc1155(),Wpe)}get app(){return Xt(this.detectApp(),Tpe)}get directListings(){return Xt(this.detectDirectListings(),zX)}get englishAuctions(){return Xt(this.detectEnglishAuctions(),KX)}get offers(){return Xt(this.detectOffers(),GX)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ks(e,t,n,i);Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"interceptor",void 0),Y._defineProperty(this,"encoder",void 0),Y._defineProperty(this,"estimator",void 0),Y._defineProperty(this,"publishedMetadata",void 0),Y._defineProperty(this,"abi",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Gi.parse(n||[]),this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper),this.publishedMetadata=new xhe(this.contractWrapper,this.storage),this.metadata=new A0(this.contractWrapper,_2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectRoyalties(){if(Ye(this.contractWrapper,"Royalty")){let e=new A0(this.contractWrapper,_2,this.storage);return new Vpe(this.contractWrapper,e)}}detectRoles(){if(Ye(this.contractWrapper,"Permissions"))return new Gpe(this.contractWrapper,FEe)}detectPrimarySales(){if(Ye(this.contractWrapper,"PrimarySale"))return new Ype(this.contractWrapper)}detectPlatformFees(){if(Ye(this.contractWrapper,"PlatformFee"))return new whe(this.contractWrapper)}detectErc20(){if(Ye(this.contractWrapper,"ERC20"))return new ehe(this.contractWrapper,this.storage,this.chainId)}detectErc721(){if(Ye(this.contractWrapper,"ERC721"))return new uhe(this.contractWrapper,this.storage,this.chainId)}detectErc1155(){if(Ye(this.contractWrapper,"ERC1155"))return new yhe(this.contractWrapper,this.storage,this.chainId)}detectOwnable(){if(Ye(this.contractWrapper,"Ownable"))return new Che(this.contractWrapper)}detectApp(){let e=new A0(this.contractWrapper,_2,this.storage);if(Ye(this.contractWrapper,"AppURI"))return new aee(this.contractWrapper,e,this.storage);if(Ye(this.contractWrapper,"ContractMetadata"))return new aee(this.contractWrapper,e,this.storage)}detectDirectListings(){if(Ye(this.contractWrapper,"DirectListings"))return new ghe(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(Ye(this.contractWrapper,"EnglishAuctions"))return new bhe(this.contractWrapper,this.storage)}detectOffers(){if(Ye(this.contractWrapper,"Offers"))return new vhe(this.contractWrapper,this.storage)}},The=class extends T2{constructor(e,t,n){super(e,t),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"publisher",void 0),Y._defineProperty(this,"updatePublisherProfile",Te(async a=>{let i=this.getSigner();_t.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Y._defineProperty(this,"publish",Te(async(a,i)=>{let s=this.getSigner();_t.default(s,"A signer is required");let o=await s.getAddress(),c=await jEe(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let R=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!ddt(R,i.version))throw Error(`Version ${i.version} is not greater than ${R}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=J.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=bdt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),I=await this.storage.upload(y);return De.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,I,c.metadataUri,f,J.constants.AddressZero],parse:C=>{let R=this.publisher.parseLogs("ContractPublished",C.logs);if(R.length<1)throw new Error("No ContractPublished event found");let L=R[0].args.publishedContract;return{receipt:C,data:async()=>this.toPublishedContract(L)}}})})),Y._defineProperty(this,"unpublish",Te(async(a,i)=>{let s=await Se(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new ks(e,Hut(),gMr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return Ylt(e,this.storage)}async extractFunctions(e){return $lt(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return RV(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await RV(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Se(e);return B0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return zEe(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Se(e),n=await eee(t,this.getProvider());return _t.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Se(e),n=await this.fetchCompilerMetadataFromAddress(t);return await Ohe(n,this.storage)}async getPublisherProfile(e){let t=await Se(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:xdt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Se(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Se(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Se(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return _t.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Se(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return _dt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},wEe=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y._defineProperty(this,"registryLogic",void 0),Y._defineProperty(this,"registryRouter",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Se(o.address),o.chainId])));return De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new ks(e,FIe(),bMr.default,n),this.registryRouter=new ks(e,FIe(),vMr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Se(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Se(e))).filter(t=>J.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==J.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},BV=class{constructor(e,t){Y._defineProperty(this,"connection",void 0),Y._defineProperty(this,"options",void 0),Y._defineProperty(this,"events",new BIe.default),this.connection=new T2(e,t),this.options=t,this.events=new BIe.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hu,a=await Se(e),i=await Se(n),s=this.requireWallet(),o=await Tc(this.connection.getProvider(),t,n);if(Bh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hu;this.requireWallet();let t=await Se(e),n=this.connection.getProvider(),a;return Bh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await yp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await jX(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=J.ethers.utils.hashMessage(e),a=J.ethers.utils.arrayify(n);return J.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Ne.Localhost||t===Ne.Hardhat)return new BV(new J.ethers.Wallet(Wut,WX(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return _t.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new ks(this.connection.getSignerOrProvider(),e,bu.default,this.options)}},sm=class extends T2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return sm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=WX(t,n);i=e.connect(o)}let s=new sm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=WX(t,n),s=new J.Wallet(e,i);return new sm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Mhe(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Y._defineProperty(this,"contractCache",new Map),Y._defineProperty(this,"_publisher",void 0),Y._defineProperty(this,"storageHandler",void 0),Y._defineProperty(this,"deployer",void 0),Y._defineProperty(this,"multiChainRegistry",void 0),Y._defineProperty(this,"wallet",void 0),Y._defineProperty(this,"storage",void 0),qut(t?.supportedChains);let a=uBr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new BV(e,t),this.deployer=new Ehe(e,t,a),this.multiChainRegistry=new wEe(e,this.storageHandler,this.options),this._publisher=new The(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Pe(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in got.GENERATED_ABI)return await this.getContractFromAbi(n,got.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await lm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in lm?a=await lm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Q.Contract(await Pe(e),Cte.default,this.getProvider()),n=Q.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return Zte(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Pe(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>fte((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L8.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new cm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>fte((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Pe(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=fi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new GO(this.getSignerOrProvider(),n,await mO(n,Si.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return bp(this.getProvider(),zu,await this.getProvider().getBalance(await Pe(e)))}getPublisher(){return this._publisher}},$O=class extends Ms{constructor(e,t,n,a){super(t,e,l7r.default,a),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"DEFAULT_VERSION_MAP",{[Rh.contractType]:3,[B0.contractType]:1,[Mh.contractType]:4,[wp.contractType]:1,[Ph.contractType]:2,[N0.contractType]:1,[D0.contractType]:2,[Bh.contractType]:1,[Dh.contractType]:1,[Nh.contractType]:1,[vp.contractType]:2,[um.contractType]:1,[Tl.contractType]:2}),$._defineProperty(this,"deploy",Te(async(i,s,o,c)=>{let u=lm[i],l=await u.schema.deploy.parseAsync(s),h=await this.storage.upload(l),f=await this.getImplementation(u,c)||void 0;if(!f||f===Q.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let m=await u.getAbi(f,this.getProvider(),this.storage),y=this.getSigner();Tt.default(y,"A signer is required to deploy contracts");let E=await Mut(i,l,h,y),I=Q.Contract.getInterface(m).encodeFunctionData("initialize",E),S=await this.getProvider().getBlockNumber(),L=Q.ethers.utils.formatBytes32String(S.toString());return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[f,I,L],parse:q=>{let W=this.parseLogs("ProxyDeployed",q.logs);if(W.length<1)throw new Error("No ProxyDeployed event found");let V=W[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:V,transactionHash:q.transactionHash}),V}})})),$._defineProperty(this,"deployProxyByImplementation",Te(async(i,s,o,c,u)=>{let l=Q.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,l,Q.ethers.utils.formatBytes32String(h.toString())],parse:f=>{let m=this.parseLogs("ProxyDeployed",f.logs);if(m.length<1)throw new Error("No ProxyDeployed event found");let y=m[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:y,transactionHash:f.transactionHash}),y}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Tl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Rh.contractType:case B0.contractType:let i=await Rh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Mh.contractType:let s=await Mh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case wp.contractType:let o=await wp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Ph.contractType:case N0.contractType:let c=await Ph.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case D0.contractType:case Bh.contractType:let u=await Bh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Dh.contractType:let l=await Dh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Q.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Nh.contractType:let h=await Nh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(E=>E.address),h.recipients.map(E=>Q.BigNumber.from(E.sharesBps))];case vp.contractType:let f=await vp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case um.contractType:let m=await um.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Tl.contractType:let y=await Tl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return kte(e)}async getImplementation(e,t){let n=Q.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=dct(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=Xte(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Q.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},xte=class extends Ms{constructor(e,t,n){super(t,e,d7r.default,n),$._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Pe(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Pe(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Pe(e))).filter(t=>Q.utils.isAddress(t)&&t.toLowerCase()!==Q.constants.AddressZero)}},e9r="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",YO=class extends Gv{constructor(e,t,n){super(e,t),$._defineProperty(this,"_factory",void 0),$._defineProperty(this,"_registry",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"deployMetadataCache",{}),$._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new Yot.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(B0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Rh.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Mh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(wp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(N0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(Ph.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(Bh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(D0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(vp.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(um.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(Tl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Nh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(Dh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();Tt.default(a,"A signer is required to deploy contracts");let i={app_uri:Rut[e],...await lm[e].schema.deploy.parseAsync(t)};if(this.hasLocalFactory()){let m;try{m=parseInt(n),isNaN(m)&&(m=void 0)}catch{m=void 0}let y=await this.getFactory();if(!y)throw new Error("Factory not found");y.on(_l.Transaction,this.transactionListener);let E=await y.deploy(e,i,this.events,m);return y.off(_l.Transaction,this.transactionListener),E}let s=Xte(e);Tt.default(s,"Contract name not found");let o=await this.storage.upload(i),c=await Mut(e,i,o,a),u=(await this.getProvider().getNetwork()).chainId,l=await this.fetchPublishedContractFromPolygon(e9r,s,n),h=await this.fetchAndCacheDeployMetadata(l.metadataUri),f=h.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[u];if(f)return this.deployContractFromUri(l.metadataUri,c);{f=await this.deployContractFromUri(l.metadataUri,this.getConstructorParamsForImplementation(e,u),{forceDirectDeploy:!0});let m=await Pe(f);return this.deployProxy(m,h.compilerMetadata.abi,"initialize",c)}}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchPublishedContractFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=await Pe(e),o=await Pe(t),c=this.getSigner();Tt.default(c,"signer is required");let u=new $O(s,this.getSignerOrProvider(),this.storage,this.options);u.on(_l.Transaction,this.transactionListener);let l=await u.deployProxyByImplementation(o,n,a,i,this.events);return u.off(_l.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=await Pe(e),s=Q.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:o}=await Promise.resolve().then(function(){return $o(kee())});return this.deployContractWithAbi(o.abi,o.bytecode,[i,s])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=m8(t,"twRegistry");if(!!n)return new xte(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=m8(t,"twFactory");return n?new $O(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();Tt.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),o=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!o){let h=(await this.getProvider().getNetwork()).chainId;Tt.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let f=s.factoryDeploymentData.implementationAddresses[h],m=await Pe(f);Tt.default(m,`implementationAddress not found for chainId '${h}'`),Tt.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let y=_ut(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(I=>I.type),E=this.convertParamValues(y,t);if(s.isDeployableViaFactory){Tt.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let I=s.factoryDeploymentData.factoryAddresses[h];Tt.default(I,`isDeployableViaFactory is true and factoryAddress not found for chainId '${h}'`);let S=await Pe(I);return await this.deployViaFactory(S,m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}else if(s.isDeployableViaProxy)return await this.deployProxy(m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}let c=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!Q.ethers.utils.isHexString(c))throw new Error(`Contract bytecode is invalid. + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Se(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in Vct.GENERATED_ABI)return await this.getContractFromAbi(n,Vct.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await cm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in cm?a=await cm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new J.Contract(await Se(e),IEe.default,this.getProvider()),n=J.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return QEe(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Se(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>hEe((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iee.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new sm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>hEe((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Se(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=ui(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new _he(this.getSignerOrProvider(),n,await jpe(n,Gi.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return yp(this.getProvider(),Hu,await this.getProvider().getBalance(await Se(e)))}getPublisher(){return this._publisher}},Ihe=class extends ks{constructor(e,t,n,a){super(t,e,wMr.default,a),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"DEFAULT_VERSION_MAP",{[Ph.contractType]:3,[M0.contractType]:1,[Sh.contractType]:4,[bp.contractType]:1,[Ah.contractType]:2,[R0.contractType]:1,[N0.contractType]:2,[Mh.contractType]:1,[Nh.contractType]:1,[Rh.contractType]:1,[gp.contractType]:2,[om.contractType]:1,[Tl.contractType]:2}),Y._defineProperty(this,"deploy",Te(async(i,s,o,c,u)=>{let l=cm[i],h=await l.schema.deploy.parseAsync(s),f=await this.storage.upload(h),m=await this.getImplementation(l,c)||void 0;if(!m||m===J.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let y=await l.getAbi(m,this.getProvider(),this.storage),I=this.getSigner();_t.default(I,"A signer is required to deploy contracts");let C=await cdt(i,h,f,I),R=J.Contract.getInterface(y).encodeFunctionData("initialize",C),L=await this.getProvider().getBlockNumber(),F=J.ethers.utils.formatBytes32String(L.toString());return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[m,R,F],parse:W=>{u&&u();let V=this.parseLogs("ProxyDeployed",W.logs);if(V.length<1)throw new Error("No ProxyDeployed event found");let K=V[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:K,transactionHash:W.transactionHash}),K}})})),Y._defineProperty(this,"deployProxyByImplementation",Te(async(i,s,o,c,u,l)=>{let h=J.Contract.getInterface(s).encodeFunctionData(o,c),f=await this.getProvider().getBlockNumber();return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,h,J.ethers.utils.formatBytes32String(f.toString())],parse:m=>{l&&l();let y=this.parseLogs("ProxyDeployed",m.logs);if(y.length<1)throw new Error("No ProxyDeployed event found");let I=y[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:I,transactionHash:m.transactionHash}),I}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Tl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Ph.contractType:case M0.contractType:let i=await Ph.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Sh.contractType:let s=await Sh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case bp.contractType:let o=await bp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Ah.contractType:case R0.contractType:let c=await Ah.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case N0.contractType:case Mh.contractType:let u=await Mh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Nh.contractType:let l=await Nh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,J.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Rh.contractType:let h=await Rh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(I=>I.address),h.recipients.map(I=>J.BigNumber.from(I.sharesBps))];case gp.contractType:let f=await gp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case om.contractType:let m=await om.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Tl.contractType:let y=await Tl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return CEe(e)}async getImplementation(e,t){let n=J.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=Uut(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=JEe(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=J.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},xEe=class extends ks{constructor(e,t,n){super(t,e,xMr.default,n),Y._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Se(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Se(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Se(e))).filter(t=>J.utils.isAddress(t)&&t.toLowerCase()!==J.constants.AddressZero)}},lBr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",Ehe=class extends T2{constructor(e,t,n){var a;super(e,t),a=this,Y._defineProperty(this,"_factory",void 0),Y._defineProperty(this,"_registry",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"deployMetadataCache",{}),Y._defineProperty(this,"transactionListener",i=>{i.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.transactionHash})}),Y._defineProperty(this,"deployNFTCollection",jo(async i=>await this.deployBuiltInContract.prepare(M0.contractType,i))),Y._defineProperty(this,"deployNFTDrop",jo(async i=>await this.deployBuiltInContract.prepare(Ph.contractType,i))),Y._defineProperty(this,"deploySignatureDrop",jo(async i=>await this.deployBuiltInContract.prepare(Sh.contractType,i))),Y._defineProperty(this,"deployMultiwrap",jo(async i=>await this.deployBuiltInContract.prepare(bp.contractType,i))),Y._defineProperty(this,"deployEdition",jo(async i=>await this.deployBuiltInContract.prepare(R0.contractType,i))),Y._defineProperty(this,"deployEditionDrop",jo(async i=>await this.deployBuiltInContract.prepare(Ah.contractType,i))),Y._defineProperty(this,"deployToken",jo(async i=>await this.deployBuiltInContract.prepare(Mh.contractType,i))),Y._defineProperty(this,"deployTokenDrop",jo(async i=>await this.deployBuiltInContract.prepare(N0.contractType,i))),Y._defineProperty(this,"deployMarketplace",jo(async i=>await this.deployBuiltInContract.prepare(gp.contractType,i))),Y._defineProperty(this,"deployMarketplaceV3",jo(async i=>await this.deployBuiltInContract.prepare(om.contractType,i))),Y._defineProperty(this,"deployPack",jo(async i=>await this.deployBuiltInContract.prepare(Tl.contractType,i))),Y._defineProperty(this,"deploySplit",jo(async i=>await this.deployBuiltInContract.prepare(Rh.contractType,i))),Y._defineProperty(this,"deployVote",jo(async i=>await this.deployBuiltInContract.prepare(Nh.contractType,i))),Y._defineProperty(this,"deployBuiltInContract",jo(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",c=a.getSigner();_t.default(c,"A signer is required to deploy contracts");let u={app_uri:odt[i],...await cm[i].schema.deploy.parseAsync(s)};if(a.hasLocalFactory()){let R;try{R=parseInt(o),isNaN(R)&&(R=void 0)}catch{R=void 0}let L=await a.getFactory();if(!L)throw new Error("Factory not found");return L.on(xl.Transaction,a.transactionListener),L.deploy.prepare(i,u,a.events,R,()=>{L.off(xl.Transaction,a.transactionListener)})}let l=JEe(i);_t.default(l,"Contract name not found");let h=await a.storage.upload(u),f=await cdt(i,u,h,c),m=(await a.getProvider().getNetwork()).chainId,y=await a.fetchPublishedContractFromPolygon(lBr,l,o),I=await a.fetchAndCacheDeployMetadata(y.metadataUri),C=I.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[m];if(C)return a.deployContractFromUri.prepare(y.metadataUri,f);{C=await a.deployContractFromUri(y.metadataUri,a.getConstructorParamsForImplementation(i,m),{forceDirectDeploy:!0});let R=await Se(C);return a.deployProxy.prepare(R,I.compilerMetadata.abi,"initialize",f)}})),Y._defineProperty(this,"deployReleasedContract",jo(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",u=arguments.length>4?arguments[4]:void 0,l=await a.fetchPublishedContractFromPolygon(i,s,c);return await a.deployContractFromUri.prepare(l.metadataUri,o,u)})),Y._defineProperty(this,"deployViaFactory",Te(async(i,s,o,c,u)=>{let l=await Se(i),h=await Se(s),f=this.getSigner();_t.default(f,"signer is required");let m=new Ihe(l,this.getSignerOrProvider(),this.storage,this.options);return m.on(xl.Transaction,this.transactionListener),await m.deployProxyByImplementation.prepare(h,o,c,u,this.events,()=>{m.off(xl.Transaction,this.transactionListener)})})),Y._defineProperty(this,"deployProxy",jo(async(i,s,o,c)=>{let u=await Se(i),l=J.Contract.getInterface(s).encodeFunctionData(o,c),{TWProxy__factory:h}=await Promise.resolve().then(function(){return Vo(CIe())});return this.deployContractWithAbi.prepare(h.abi,h.bytecode,[u,l])})),Y._defineProperty(this,"deployContractFromUri",jo(async(i,s,o)=>{let c=this.getSigner();_t.default(c,"A signer is required");let{compilerMetadata:u,extendedMetadata:l}=await this.fetchAndCacheDeployMetadata(i),h=o?.forceDirectDeploy||!1;if(l&&l.factoryDeploymentData&&(l.isDeployableViaProxy||l.isDeployableViaFactory)&&!h){console.log("Deploying directly...");let I=(await this.getProvider().getNetwork()).chainId;_t.default(l.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let C=l.factoryDeploymentData.implementationAddresses[I],R=await Se(C);_t.default(R,`implementationAddress not found for chainId '${I}'`),_t.default(l.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let L=Jlt(u.abi,l.factoryDeploymentData.implementationInitializerFunction).map(W=>W.type),F=this.convertParamValues(L,s);if(l.isDeployableViaFactory){_t.default(l.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let W=l.factoryDeploymentData.factoryAddresses[I];_t.default(W,`isDeployableViaFactory is true and factoryAddress not found for chainId '${I}'`);let V=await Se(W);return await this.deployViaFactory.prepare(V,R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}else if(l.isDeployableViaProxy)return await this.deployProxy.prepare(R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}let f=u.bytecode.startsWith("0x")?u.bytecode:`0x${u.bytecode}`;if(!J.ethers.utils.isHexString(f))throw new Error(`Contract bytecode is invalid. -${c}`);let u=zte(i.abi).map(h=>h.type),l=this.convertParamValues(u,t);return this.deployContractWithAbi(i.abi,c,l)}async deployContractWithAbi(e,t,n){let a=this.getSigner();Tt.default(a,"Signer is required to deploy contracts");let i=await new Q.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await ux(e,this.storage),n;try{n=await Gte(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Pe(e),i=await new cm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case vp.contractType:case wp.contractType:return[MD(t)?.wrapped?.address||Q.ethers.constants.AddressZero];case Tl.contractType:return[MD(t).wrapped.address||Q.ethers.constants.AddressZero,Q.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Tt.default(Q.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Q.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Tt.default(Q.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Q.BigNumber.from(t[a].toString()):t[a])}},JO=class{constructor(e){$._defineProperty(this,"featureName",JD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Te(async t=>{let n=await Pe(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},Nut={},t9r=new cm("polygon");function But(r,e){return`${r}-${e}`}function r9r(r,e,t){Nut[But(r,e)]=t}function n9r(r,e){return Nut[But(r,e)]}async function O0(r,e,t){let n=(await e.getNetwork()).chainId,a=n9r(r,n);if(a)return a;let i;try{let s=await M8(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await QO(s,t)}catch{try{let o=await t9r.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await QO(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return r9r(r,n,i),i}async function Cl(r,e,t){try{let n=await O0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function QO(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Si.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=rre.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function sL(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var Vot=256,Nee="0|[1-9]\\d*",a9r=`(${Nee})\\.(${Nee})\\.(${Nee})`,i9r=new RegExp(a9r);function hx(r){if(r.length>Vot)throw new Error(`version is longer than ${Vot} characters`);let e=r.trim().match(i9r);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Dut(r,e){let t=hx(r),n=hx(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function s9r(r,e){let t=hx(r),n=hx(e);if(n.major{try{return hx(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:de.z.string().optional(),description:de.z.string().optional(),readme:de.z.string().optional(),license:de.z.string().optional(),changelog:de.z.string().optional(),tags:de.z.array(de.z.string()).optional(),audit:$.FileOrBufferOrStringSchema.nullable().optional(),logo:$.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:de.z.boolean().optional(),isDeployableViaProxy:de.z.boolean().optional(),factoryDeploymentData:Wut.optional(),constructorParams:de.z.record(de.z.string(),de.z.object({displayName:de.z.string().optional(),description:de.z.string().optional(),defaultValue:de.z.string().optional()}).catchall(de.z.any())).optional()}).catchall(de.z.any()),Uut=tre.extend({audit:de.z.string().nullable().optional(),logo:de.z.string().nullable().optional()}),Hut=G8.merge(tre).extend({publisher:Ai.optional()}),jut=G8.merge(Uut).extend({publisher:Ai.optional()}),zut=de.z.object({name:de.z.string().optional(),bio:de.z.string().optional(),avatar:$.FileOrBufferOrStringSchema.nullable().optional(),website:de.z.string().optional(),twitter:de.z.string().optional(),telegram:de.z.string().optional(),facebook:de.z.string().optional(),github:de.z.string().optional(),medium:de.z.string().optional(),linkedin:de.z.string().optional(),reddit:de.z.string().optional(),discord:de.z.string().optional()}),Kut=zut.extend({avatar:de.z.string().nullable().optional()}),Gut=de.z.object({id:de.z.string(),timestamp:Qs,metadataUri:de.z.string()}),rre=de.z.object({title:de.z.string().optional(),author:de.z.string().optional(),details:de.z.string().optional(),notice:de.z.string().optional()}),Vut=de.z.object({name:de.z.string(),abi:Si,metadata:de.z.record(de.z.string(),de.z.any()),info:rre,licenses:de.z.array(de.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),$ut=G8.merge(Vut).extend({bytecode:de.z.string()}),o9r=new Kv.ThirdwebStorage,nre=new Map;function are(r,e){return`${r}-${e}`}function ire(r,e){let t=are(r,e);return nre.has(t)}function Yut(r,e){if(!ire(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=are(r,e);return nre.get(t)}function Jut(r,e,t){let n=are(e,t);nre.set(n,r)}function h8(r){return r||o9r}async function PD(r){let e=await Pe(r.address),[t,n]=fi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(ire(e,a))return Yut(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new GO(t||n,e,await mO(e,Si.parse(i),n,r.sdkOptions,h8(r.storage)),h8(r.storage),r.sdkOptions,a);return Jut(s,e,a),s}async function c9r(r){try{let e=new Q.Contract(r.address,Cte.default,r.provider),t=Q.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return Zte(t)}catch{return"custom"}}async function u9r(r){let e=await Pe(r.address),[t,n]=fi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(ire(e,a))return Yut(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await c9r({address:e,provider:n});if(i==="custom"){let s=new VO(r.network,r.sdkOptions,h8(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return PD({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await lm[i].getAbi(e,n,h8(r.storage));return PD({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in lm){let i=await lm[r.contractTypeOrAbi].initialize(t||n,e,h8(r.storage),r.sdkOptions);return Jut(i,e,a),i}else return PD({...r,address:e,abi:r.contractTypeOrAbi})}var SD=new WeakMap;async function sre(r){let[,e]=fi(r.network,r.sdkOptions),t;return SD.has(e)?t=SD.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw SD.delete(e),n}),SD.set(e,t)),await t}async function l9r(r){let[,e]=fi(r.network,r.sdkOptions);return e.getBlockNumber()}var p8=new Map;async function Qut(r){let e=await sre(r),t=r.block,n=`${e}_${t}`,a;if(p8.has(n))a=p8.get(n);else{let[,i]=fi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw p8.delete(n),s}),p8.set(n,a)}return await a}var Bee=new Map;async function Zut(r){let e=await sre(r),t=r.block,n=`${e}_${t}`,a;if(p8.has(n))a=Bee.get(n);else{let[,i]=fi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw Bee.delete(n),s}),Bee.set(n,a)}return await a}function ore(r){let[,e]=fi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function d9r(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Qut({block:a,...t}))}catch{}}return ore({...t,onBlockNumber:n})}function Xut(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Zut({block:a,...t}))}catch{}}return ore({...t,onBlockNumber:n})}function p9r(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return Xut({...n,onBlock:i})}te.ALL_ROLES=Ute;te.APPROVED_IMPLEMENTATIONS=qee;te.AbiObjectSchema=qut;te.AbiSchema=Si;te.AbiTypeSchema=Tte;te.AddressOrEnsSchema=Ai;te.AddressSchema=Ste;te.AdminRoleMissingError=ate;te.AssetNotFoundError=Kee;te.AuctionAlreadyStartedError=Xee;te.AuctionHasNotEndedError=rx;te.BYOCContractMetadataSchema=Out;te.BaseSignaturePayloadInput=eL;te.BigNumberSchema=Rs;te.BigNumberTransformSchema=yct;te.BigNumberishSchema=Qs;te.CONTRACTS_MAP=Qte;te.CONTRACT_ADDRESSES=O1;te.CallOverrideSchema=gct;te.ChainId=Ne;te.ChainIdToAddressSchema=Ete;te.ChainInfoInputSchema=bct;te.ClaimConditionInputArray=xct;te.ClaimConditionInputSchema=j8;te.ClaimConditionMetadataSchema=_ct;te.ClaimConditionOutputSchema=Nte;te.ClaimEligibility=Ia;te.CommonContractOutputSchema=od;te.CommonContractSchema=El;te.CommonPlatformFeeSchema=_p;te.CommonPrimarySaleSchema=L1;te.CommonRoyaltySchema=Vo;te.CommonSymbolSchema=vo;te.CommonTrustedForwarderSchema=cd;te.CompilerMetadataFetchedSchema=Vut;te.ContractAppURI=O8;te.ContractDeployer=YO;te.ContractEncoder=$v;te.ContractEvents=Yv;te.ContractInfoSchema=rre;te.ContractInterceptor=Jv;te.ContractMetadata=P0;te.ContractOwner=JO;te.ContractPlatformFee=zO;te.ContractPrimarySale=bO;te.ContractPublishedMetadata=KO;te.ContractRoles=yO;te.ContractRoyalty=gO;te.ContractWrapper=Ms;te.CurrencySchema=vct;te.CurrencyValueSchema=wct;te.CustomContractDeploy=Fut;te.CustomContractInput=ere;te.CustomContractOutput=Lut;te.CustomContractSchema=zv;te.DelayedReveal=N8;te.DropClaimConditions=B8;te.DropErc1155ClaimConditions=vO;te.DropErc1155ContractSchema=Oct;te.DropErc20ContractSchema=Aut;te.DropErc721ContractSchema=Ote;te.DuplicateFileNameError=$ee;te.DuplicateLeafsError=OD;te.EditionDropInitializer=Ph;te.EditionInitializer=N0;te.EndDateSchema=U8;te.Erc1155=WO;te.Erc1155BatchMintable=LO;te.Erc1155Burnable=BO;te.Erc1155Enumerable=DO;te.Erc1155LazyMintable=OO;te.Erc1155Mintable=FO;te.Erc1155SignatureMintable=qO;te.Erc20=EO;te.Erc20BatchMintable=_O;te.Erc20Burnable=wO;te.Erc20Mintable=xO;te.Erc20SignatureMintable=TO;te.Erc721=NO;te.Erc721BatchMintable=AO;te.Erc721Burnable=CO;te.Erc721ClaimableWithConditions=IO;te.Erc721Enumerable=PO;te.Erc721LazyMintable=kO;te.Erc721Mintable=SO;te.Erc721Supply=RO;te.Erc721WithQuantitySignatureMintable=MO;te.EventType=_l;te.ExtensionNotImplementedError=R0;te.ExtraPublishMetadataSchemaInput=tre;te.ExtraPublishMetadataSchemaOutput=Uut;te.FEATURE_DIRECT_LISTINGS=x8;te.FEATURE_ENGLISH_AUCTIONS=T8;te.FEATURE_NFT_REVEALABLE=A8;te.FEATURE_OFFERS=E8;te.FEATURE_PACK_VRF=ite;te.FactoryDeploymentSchema=Wut;te.FetchError=Zee;te.FileNameMissingError=Vee;te.FullPublishMetadataSchemaInput=Hut;te.FullPublishMetadataSchemaOutput=jut;te.FunctionDeprecatedError=ete;te.GasCostEstimator=Qv;te.GenericRequest=Nct;te.InterfaceId_IERC1155=q8;te.InterfaceId_IERC721=F8;te.InvalidAddressError=zee;te.LINK_TOKEN_ADDRESS=g7r;te.LOCAL_NODE_PKEY=lct;te.ListingNotFoundError=tte;te.MarketplaceContractSchema=Lte;te.MarketplaceInitializer=vp;te.MarketplaceV3DirectListings=UO;te.MarketplaceV3EnglishAuctions=HO;te.MarketplaceV3Initializer=um;te.MarketplaceV3Offers=jO;te.MerkleSchema=L0;te.MintRequest1155=Rct;te.MintRequest20=Sct;te.MintRequest721=Pct;te.MintRequest721withQuantity=Mct;te.MissingOwnerRoleError=Jee;te.MissingRoleError=DD;te.MultiwrapContractSchema=Put;te.MultiwrapInitializer=wp;te.NATIVE_TOKENS=y8;te.NATIVE_TOKEN_ADDRESS=zu;te.NFTCollectionInitializer=B0;te.NFTDropInitializer=Rh;te.NotEnoughTokensError=Yee;te.NotFoundError=b8;te.OZ_DEFENDER_FORWARDER_ADDRESS=D1;te.PREBUILT_CONTRACTS_APPURI_MAP=Rut;te.PREBUILT_CONTRACTS_MAP=lm;te.PackContractSchema=qct;te.PackInitializer=Tl;te.PartialClaimConditionInputSchema=_7r;te.PreDeployMetadata=G8;te.PreDeployMetadataFetchedSchema=$ut;te.ProfileSchemaInput=zut;te.ProfileSchemaOutput=Kut;te.PublishedContractSchema=Gut;te.QuantityAboveLimitError=Qee;te.RawDateSchema=W8;te.RestrictedTransferError=nte;te.SUPPORTED_CHAIN_IDS=oct;te.Signature1155PayloadInput=Ect;te.Signature1155PayloadInputWithTokenId=Cct;te.Signature1155PayloadOutput=Ict;te.Signature20PayloadInput=Bte;te.Signature20PayloadOutput=Tct;te.Signature721PayloadInput=tL;te.Signature721PayloadOutput=Dte;te.Signature721WithQuantityInput=kct;te.Signature721WithQuantityOutput=Act;te.SignatureDropInitializer=Mh;te.SnapshotEntryInput=ND;te.SnapshotEntryWithProofSchema=Rte;te.SnapshotInfoSchema=w7r;te.SnapshotInputSchema=H8;te.SnapshotSchema=Mte;te.SplitInitializer=Nh;te.SplitsContractSchema=Uct;te.StartDateSchema=Pte;te.Status=Go;te.ThirdwebSDK=cm;te.TokenDropInitializer=D0;te.TokenErc1155ContractSchema=Vct;te.TokenErc20ContractSchema=jct;te.TokenErc721ContractSchema=Kct;te.TokenInitializer=Bh;te.Transaction=De;te.TransactionError=v8;te.UploadError=Gee;te.UserWallet=px;te.VoteContractSchema=Jct;te.VoteInitializer=Dh;te.WrongListingTypeError=rte;te.approveErc20Allowance=Wte;te.assertEnabled=Xt;te.buildTransactionFunction=Te;te.cleanCurrencyAddress=FD;te.convertToReadableQuantity=u8;te.createSnapshot=cut;te.detectContractFeature=$e;te.detectFeatures=z8;te.extractConstructorParams=but;te.extractConstructorParamsFromAbi=zte;te.extractEventsFromAbi=xut;te.extractFunctionParamsFromAbi=_ut;te.extractFunctions=vut;te.extractFunctionsFromAbi=cx;te.extractIPFSHashFromBytecode=Eut;te.extractMinimalProxyImplementationAddress=Tut;te.fetchAbiFromAddress=Cl;te.fetchContractMetadata=QO;te.fetchContractMetadataFromAddress=O0;te.fetchCurrencyMetadata=fx;te.fetchCurrencyValue=bp;te.fetchExtendedReleaseMetadata=Gte;te.fetchPreDeployMetadata=ux;te.fetchRawPredeployMetadata=Kte;te.fetchSnapshotEntryForAddress=nL;te.fetchSourceFilesFromMetadata=sL;te.fetchTokenMetadataForContract=K8;te.getAllDetectedFeatureNames=fte;te.getAllDetectedFeatures=LRr;te.getApprovedImplementation=dct;te.getBlock=Qut;te.getBlockNumber=l9r;te.getBlockWithTransactions=Zut;te.getChainId=sre;te.getChainIdFromNetwork=Qct;te.getChainProvider=g8;te.getContract=u9r;te.getContractAddressByChainId=m8;te.getContractFromAbi=PD;te.getContractName=Xte;te.getContractPublisherAddress=pct;te.getContractTypeForRemoteName=Zte;te.getDefaultTrustedForwarders=kte;te.getMultichainRegistryAddress=Wee;te.getNativeTokenByChainId=MD;te.getProviderFromRpcUrl=BD;te.getRoleHash=tx;te.getSignerAndProvider=fi;te.getSupportedChains=uct;te.handleTokenApproval=D8;te.hasERC20Allowance=nRr;te.hasFunction=go;te.hasMatchingAbi=jte;te.includesErrorMessage=w8;te.isChainConfig=rL;te.isDowngradeVersion=s9r;te.isFeatureEnabled=lx;te.isIncrementalVersion=Dut;te.isNativeToken=Oh;te.isProvider=Ate;te.isSigner=XO;te.isTokenApprovedForTransfer=Iut;te.isWinningBid=GRr;te.mapOffer=KRr;te.matchesPrebuiltAbi=BRr;te.normalizeAmount=aRr;te.normalizePriceValue=Tc;te.parseRevertReason=Fte;te.resolveAddress=Pe;te.resolveContractUriFromAddress=M8;te.setErc20Allowance=M0;te.setSupportedChains=cct;te.toDisplayValue=cRr;te.toEther=iRr;te.toSemver=hx;te.toUnits=oRr;te.toWei=sRr;te.uploadOrExtractURI=Yte;te.validateNewListingParam=zRr;te.watchBlock=d9r;te.watchBlockNumber=ore;te.watchBlockWithTransactions=Xut;te.watchTransactions=p9r});var nlt=x(F0=>{"use strict";d();p();var mx=ds(),dm=kr(),oL=xi(),elt=yn(),tlt=dm.z.object({}).catchall(dm.z.union([mx.BigNumberTransformSchema,dm.z.unknown()])),h9r=dm.z.union([dm.z.array(tlt),tlt]).optional(),rlt=dm.z.object({supply:mx.BigNumberSchema,metadata:oL.CommonNFTOutput}),f9r=rlt.extend({owner:dm.z.string(),quantityOwned:mx.BigNumberSchema}),m9r=dm.z.object({supply:mx.BigNumberishSchema,metadata:oL.CommonNFTInput}),y9r=dm.z.object({supply:mx.BigNumberishSchema,metadata:oL.NFTInputOrUriSchema}),g9r=dm.z.object({toAddress:mx.AddressOrEnsSchema,amount:oL.AmountSchema}),b9r=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function v9r(r){if(r in elt.GENERATED_ABI)return elt.GENERATED_ABI[r]}F0.EditionMetadataInputOrUriSchema=y9r;F0.EditionMetadataInputSchema=m9r;F0.EditionMetadataOutputSchema=rlt;F0.EditionMetadataWithOwnerOutputSchema=f9r;F0.OptionalPropertiesInput=h9r;F0.ProposalState=b9r;F0.TokenMintInputSchema=g9r;F0.getCachedAbiForContract=v9r});var alt=x(ne=>{"use strict";d();p();Object.defineProperty(ne,"__esModule",{value:!0});var w9r=xi(),se=ds(),F1=nlt(),_9r=HX(),x9r=vee(),T9r=ED(),E9r=H_(),C9r=a8(),cre=ZX(),I9r=_ee(),V8=s8();Ir();je();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();globalThis.global=globalThis;ne.getRpcUrl=w9r.getRpcUrl;ne.ALL_ROLES=se.ALL_ROLES;ne.APPROVED_IMPLEMENTATIONS=se.APPROVED_IMPLEMENTATIONS;ne.AbiObjectSchema=se.AbiObjectSchema;ne.AbiSchema=se.AbiSchema;ne.AbiTypeSchema=se.AbiTypeSchema;ne.AddressOrEnsSchema=se.AddressOrEnsSchema;ne.AddressSchema=se.AddressSchema;ne.AdminRoleMissingError=se.AdminRoleMissingError;ne.AssetNotFoundError=se.AssetNotFoundError;ne.AuctionAlreadyStartedError=se.AuctionAlreadyStartedError;ne.AuctionHasNotEndedError=se.AuctionHasNotEndedError;ne.BYOCContractMetadataSchema=se.BYOCContractMetadataSchema;ne.BaseSignaturePayloadInput=se.BaseSignaturePayloadInput;ne.BigNumberSchema=se.BigNumberSchema;ne.BigNumberTransformSchema=se.BigNumberTransformSchema;ne.BigNumberishSchema=se.BigNumberishSchema;ne.CONTRACTS_MAP=se.CONTRACTS_MAP;ne.CONTRACT_ADDRESSES=se.CONTRACT_ADDRESSES;ne.CallOverrideSchema=se.CallOverrideSchema;ne.ChainId=se.ChainId;ne.ChainIdToAddressSchema=se.ChainIdToAddressSchema;ne.ChainInfoInputSchema=se.ChainInfoInputSchema;ne.ClaimConditionInputArray=se.ClaimConditionInputArray;ne.ClaimConditionInputSchema=se.ClaimConditionInputSchema;ne.ClaimConditionMetadataSchema=se.ClaimConditionMetadataSchema;ne.ClaimConditionOutputSchema=se.ClaimConditionOutputSchema;ne.ClaimEligibility=se.ClaimEligibility;ne.CommonContractOutputSchema=se.CommonContractOutputSchema;ne.CommonContractSchema=se.CommonContractSchema;ne.CommonPlatformFeeSchema=se.CommonPlatformFeeSchema;ne.CommonPrimarySaleSchema=se.CommonPrimarySaleSchema;ne.CommonRoyaltySchema=se.CommonRoyaltySchema;ne.CommonSymbolSchema=se.CommonSymbolSchema;ne.CommonTrustedForwarderSchema=se.CommonTrustedForwarderSchema;ne.CompilerMetadataFetchedSchema=se.CompilerMetadataFetchedSchema;ne.ContractAppURI=se.ContractAppURI;ne.ContractDeployer=se.ContractDeployer;ne.ContractEncoder=se.ContractEncoder;ne.ContractEvents=se.ContractEvents;ne.ContractInfoSchema=se.ContractInfoSchema;ne.ContractInterceptor=se.ContractInterceptor;ne.ContractMetadata=se.ContractMetadata;ne.ContractOwner=se.ContractOwner;ne.ContractPlatformFee=se.ContractPlatformFee;ne.ContractPrimarySale=se.ContractPrimarySale;ne.ContractPublishedMetadata=se.ContractPublishedMetadata;ne.ContractRoles=se.ContractRoles;ne.ContractRoyalty=se.ContractRoyalty;ne.CurrencySchema=se.CurrencySchema;ne.CurrencyValueSchema=se.CurrencyValueSchema;ne.CustomContractDeploy=se.CustomContractDeploy;ne.CustomContractInput=se.CustomContractInput;ne.CustomContractOutput=se.CustomContractOutput;ne.CustomContractSchema=se.CustomContractSchema;ne.DelayedReveal=se.DelayedReveal;ne.DropClaimConditions=se.DropClaimConditions;ne.DropErc1155ClaimConditions=se.DropErc1155ClaimConditions;ne.DuplicateFileNameError=se.DuplicateFileNameError;ne.DuplicateLeafsError=se.DuplicateLeafsError;ne.EditionDropInitializer=se.EditionDropInitializer;ne.EditionInitializer=se.EditionInitializer;ne.EndDateSchema=se.EndDateSchema;ne.Erc1155=se.Erc1155;ne.Erc1155BatchMintable=se.Erc1155BatchMintable;ne.Erc1155Burnable=se.Erc1155Burnable;ne.Erc1155Enumerable=se.Erc1155Enumerable;ne.Erc1155LazyMintable=se.Erc1155LazyMintable;ne.Erc1155Mintable=se.Erc1155Mintable;ne.Erc1155SignatureMintable=se.Erc1155SignatureMintable;ne.Erc20=se.Erc20;ne.Erc20BatchMintable=se.Erc20BatchMintable;ne.Erc20Burnable=se.Erc20Burnable;ne.Erc20Mintable=se.Erc20Mintable;ne.Erc20SignatureMintable=se.Erc20SignatureMintable;ne.Erc721=se.Erc721;ne.Erc721BatchMintable=se.Erc721BatchMintable;ne.Erc721Burnable=se.Erc721Burnable;ne.Erc721ClaimableWithConditions=se.Erc721ClaimableWithConditions;ne.Erc721Enumerable=se.Erc721Enumerable;ne.Erc721LazyMintable=se.Erc721LazyMintable;ne.Erc721Mintable=se.Erc721Mintable;ne.Erc721Supply=se.Erc721Supply;ne.Erc721WithQuantitySignatureMintable=se.Erc721WithQuantitySignatureMintable;ne.EventType=se.EventType;ne.ExtensionNotImplementedError=se.ExtensionNotImplementedError;ne.ExtraPublishMetadataSchemaInput=se.ExtraPublishMetadataSchemaInput;ne.ExtraPublishMetadataSchemaOutput=se.ExtraPublishMetadataSchemaOutput;ne.FactoryDeploymentSchema=se.FactoryDeploymentSchema;ne.FetchError=se.FetchError;ne.FileNameMissingError=se.FileNameMissingError;ne.FullPublishMetadataSchemaInput=se.FullPublishMetadataSchemaInput;ne.FullPublishMetadataSchemaOutput=se.FullPublishMetadataSchemaOutput;ne.FunctionDeprecatedError=se.FunctionDeprecatedError;ne.GasCostEstimator=se.GasCostEstimator;ne.GenericRequest=se.GenericRequest;ne.InterfaceId_IERC1155=se.InterfaceId_IERC1155;ne.InterfaceId_IERC721=se.InterfaceId_IERC721;ne.InvalidAddressError=se.InvalidAddressError;ne.LINK_TOKEN_ADDRESS=se.LINK_TOKEN_ADDRESS;ne.LOCAL_NODE_PKEY=se.LOCAL_NODE_PKEY;ne.ListingNotFoundError=se.ListingNotFoundError;ne.MarketplaceInitializer=se.MarketplaceInitializer;ne.MarketplaceV3DirectListings=se.MarketplaceV3DirectListings;ne.MarketplaceV3EnglishAuctions=se.MarketplaceV3EnglishAuctions;ne.MarketplaceV3Initializer=se.MarketplaceV3Initializer;ne.MarketplaceV3Offers=se.MarketplaceV3Offers;ne.MerkleSchema=se.MerkleSchema;ne.MintRequest1155=se.MintRequest1155;ne.MintRequest20=se.MintRequest20;ne.MintRequest721=se.MintRequest721;ne.MintRequest721withQuantity=se.MintRequest721withQuantity;ne.MissingOwnerRoleError=se.MissingOwnerRoleError;ne.MissingRoleError=se.MissingRoleError;ne.MultiwrapInitializer=se.MultiwrapInitializer;ne.NATIVE_TOKENS=se.NATIVE_TOKENS;ne.NATIVE_TOKEN_ADDRESS=se.NATIVE_TOKEN_ADDRESS;ne.NFTCollectionInitializer=se.NFTCollectionInitializer;ne.NFTDropInitializer=se.NFTDropInitializer;ne.NotEnoughTokensError=se.NotEnoughTokensError;ne.NotFoundError=se.NotFoundError;ne.OZ_DEFENDER_FORWARDER_ADDRESS=se.OZ_DEFENDER_FORWARDER_ADDRESS;ne.PREBUILT_CONTRACTS_APPURI_MAP=se.PREBUILT_CONTRACTS_APPURI_MAP;ne.PREBUILT_CONTRACTS_MAP=se.PREBUILT_CONTRACTS_MAP;ne.PackInitializer=se.PackInitializer;ne.PartialClaimConditionInputSchema=se.PartialClaimConditionInputSchema;ne.PreDeployMetadata=se.PreDeployMetadata;ne.PreDeployMetadataFetchedSchema=se.PreDeployMetadataFetchedSchema;ne.ProfileSchemaInput=se.ProfileSchemaInput;ne.ProfileSchemaOutput=se.ProfileSchemaOutput;ne.PublishedContractSchema=se.PublishedContractSchema;ne.QuantityAboveLimitError=se.QuantityAboveLimitError;ne.RawDateSchema=se.RawDateSchema;ne.RestrictedTransferError=se.RestrictedTransferError;ne.SUPPORTED_CHAIN_IDS=se.SUPPORTED_CHAIN_IDS;ne.Signature1155PayloadInput=se.Signature1155PayloadInput;ne.Signature1155PayloadInputWithTokenId=se.Signature1155PayloadInputWithTokenId;ne.Signature1155PayloadOutput=se.Signature1155PayloadOutput;ne.Signature20PayloadInput=se.Signature20PayloadInput;ne.Signature20PayloadOutput=se.Signature20PayloadOutput;ne.Signature721PayloadInput=se.Signature721PayloadInput;ne.Signature721PayloadOutput=se.Signature721PayloadOutput;ne.Signature721WithQuantityInput=se.Signature721WithQuantityInput;ne.Signature721WithQuantityOutput=se.Signature721WithQuantityOutput;ne.SignatureDropInitializer=se.SignatureDropInitializer;ne.SnapshotEntryInput=se.SnapshotEntryInput;ne.SnapshotEntryWithProofSchema=se.SnapshotEntryWithProofSchema;ne.SnapshotInfoSchema=se.SnapshotInfoSchema;ne.SnapshotInputSchema=se.SnapshotInputSchema;ne.SnapshotSchema=se.SnapshotSchema;ne.SplitInitializer=se.SplitInitializer;ne.StartDateSchema=se.StartDateSchema;ne.Status=se.Status;ne.ThirdwebSDK=se.ThirdwebSDK;ne.TokenDropInitializer=se.TokenDropInitializer;ne.TokenInitializer=se.TokenInitializer;ne.Transaction=se.Transaction;ne.TransactionError=se.TransactionError;ne.UploadError=se.UploadError;ne.UserWallet=se.UserWallet;ne.VoteInitializer=se.VoteInitializer;ne.WrongListingTypeError=se.WrongListingTypeError;ne.approveErc20Allowance=se.approveErc20Allowance;ne.assertEnabled=se.assertEnabled;ne.cleanCurrencyAddress=se.cleanCurrencyAddress;ne.convertToReadableQuantity=se.convertToReadableQuantity;ne.createSnapshot=se.createSnapshot;ne.detectContractFeature=se.detectContractFeature;ne.detectFeatures=se.detectFeatures;ne.extractConstructorParams=se.extractConstructorParams;ne.extractConstructorParamsFromAbi=se.extractConstructorParamsFromAbi;ne.extractEventsFromAbi=se.extractEventsFromAbi;ne.extractFunctionParamsFromAbi=se.extractFunctionParamsFromAbi;ne.extractFunctions=se.extractFunctions;ne.extractFunctionsFromAbi=se.extractFunctionsFromAbi;ne.extractIPFSHashFromBytecode=se.extractIPFSHashFromBytecode;ne.extractMinimalProxyImplementationAddress=se.extractMinimalProxyImplementationAddress;ne.fetchAbiFromAddress=se.fetchAbiFromAddress;ne.fetchContractMetadata=se.fetchContractMetadata;ne.fetchContractMetadataFromAddress=se.fetchContractMetadataFromAddress;ne.fetchCurrencyMetadata=se.fetchCurrencyMetadata;ne.fetchCurrencyValue=se.fetchCurrencyValue;ne.fetchExtendedReleaseMetadata=se.fetchExtendedReleaseMetadata;ne.fetchPreDeployMetadata=se.fetchPreDeployMetadata;ne.fetchRawPredeployMetadata=se.fetchRawPredeployMetadata;ne.fetchSnapshotEntryForAddress=se.fetchSnapshotEntryForAddress;ne.fetchSourceFilesFromMetadata=se.fetchSourceFilesFromMetadata;ne.getAllDetectedFeatureNames=se.getAllDetectedFeatureNames;ne.getAllDetectedFeatures=se.getAllDetectedFeatures;ne.getApprovedImplementation=se.getApprovedImplementation;ne.getBlock=se.getBlock;ne.getBlockNumber=se.getBlockNumber;ne.getBlockWithTransactions=se.getBlockWithTransactions;ne.getChainId=se.getChainId;ne.getChainIdFromNetwork=se.getChainIdFromNetwork;ne.getChainProvider=se.getChainProvider;ne.getContract=se.getContract;ne.getContractAddressByChainId=se.getContractAddressByChainId;ne.getContractFromAbi=se.getContractFromAbi;ne.getContractName=se.getContractName;ne.getContractPublisherAddress=se.getContractPublisherAddress;ne.getContractTypeForRemoteName=se.getContractTypeForRemoteName;ne.getDefaultTrustedForwarders=se.getDefaultTrustedForwarders;ne.getMultichainRegistryAddress=se.getMultichainRegistryAddress;ne.getNativeTokenByChainId=se.getNativeTokenByChainId;ne.getProviderFromRpcUrl=se.getProviderFromRpcUrl;ne.getRoleHash=se.getRoleHash;ne.getSignerAndProvider=se.getSignerAndProvider;ne.getSupportedChains=se.getSupportedChains;ne.hasERC20Allowance=se.hasERC20Allowance;ne.hasFunction=se.hasFunction;ne.hasMatchingAbi=se.hasMatchingAbi;ne.includesErrorMessage=se.includesErrorMessage;ne.isChainConfig=se.isChainConfig;ne.isDowngradeVersion=se.isDowngradeVersion;ne.isFeatureEnabled=se.isFeatureEnabled;ne.isIncrementalVersion=se.isIncrementalVersion;ne.isNativeToken=se.isNativeToken;ne.isProvider=se.isProvider;ne.isSigner=se.isSigner;ne.matchesPrebuiltAbi=se.matchesPrebuiltAbi;ne.normalizeAmount=se.normalizeAmount;ne.normalizePriceValue=se.normalizePriceValue;ne.parseRevertReason=se.parseRevertReason;ne.resolveContractUriFromAddress=se.resolveContractUriFromAddress;ne.setErc20Allowance=se.setErc20Allowance;ne.setSupportedChains=se.setSupportedChains;ne.toDisplayValue=se.toDisplayValue;ne.toEther=se.toEther;ne.toSemver=se.toSemver;ne.toUnits=se.toUnits;ne.toWei=se.toWei;ne.watchBlock=se.watchBlock;ne.watchBlockNumber=se.watchBlockNumber;ne.watchBlockWithTransactions=se.watchBlockWithTransactions;ne.watchTransactions=se.watchTransactions;ne.EditionMetadataInputOrUriSchema=F1.EditionMetadataInputOrUriSchema;ne.EditionMetadataInputSchema=F1.EditionMetadataInputSchema;ne.EditionMetadataOutputSchema=F1.EditionMetadataOutputSchema;ne.EditionMetadataWithOwnerOutputSchema=F1.EditionMetadataWithOwnerOutputSchema;ne.OptionalPropertiesInput=F1.OptionalPropertiesInput;ne.ProposalState=F1.ProposalState;ne.TokenMintInputSchema=F1.TokenMintInputSchema;ne.getCachedAbiForContract=F1.getCachedAbiForContract;ne.DropErc1155History=_9r.DropErc1155History;ne.TokenERC20History=x9r.TokenERC20History;ne.StandardErc20=T9r.StandardErc20;ne.StandardErc721=E9r.StandardErc721;ne.StandardErc1155=C9r.StandardErc1155;ne.ListingType=cre.ListingType;ne.MarketplaceAuction=cre.MarketplaceAuction;ne.MarketplaceDirect=cre.MarketplaceDirect;ne.VoteType=I9r.VoteType;ne.PAPER_API_URL=V8.PAPER_API_URL;ne.PaperCheckout=V8.PaperCheckout;ne.createCheckoutLinkIntent=V8.createCheckoutLinkIntent;ne.fetchRegisteredCheckoutId=V8.fetchRegisteredCheckoutId;ne.parseChainIdToPaperChain=V8.parseChainIdToPaperChain});var Pi=x(vu=>{"use strict";d();p();var k9r=Ir(),yx=je(),lt=kr();function A9r(r){return r&&r.__esModule?r:{default:r}}var gx=A9r(k9r),clt="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function S9r(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:clt;return`https://${r}.rpc.thirdweb.com/${e}`}var P9r=()=>typeof window<"u",ilt=P9r()?lt.z.instanceof(File):lt.z.instanceof(b.Buffer),R9r=lt.z.union([ilt,lt.z.object({data:lt.z.union([ilt,lt.z.string()]),name:lt.z.string()})]),cL=lt.z.union([R9r,lt.z.string()]),ult=1e4,M9r=lt.z.union([lt.z.array(lt.z.number()),lt.z.string()]),N9r=lt.z.union([lt.z.string(),lt.z.number(),lt.z.bigint(),lt.z.custom(r=>yx.BigNumber.isBigNumber(r)),lt.z.custom(r=>gx.default.isBN(r))]).transform(r=>{let e=gx.default.isBN(r)?new gx.default(r).toString():yx.BigNumber.from(r).toString();return yx.BigNumber.from(e)});N9r.transform(r=>r.toString());var llt=lt.z.union([lt.z.bigint(),lt.z.custom(r=>yx.BigNumber.isBigNumber(r)),lt.z.custom(r=>gx.default.isBN(r))]).transform(r=>gx.default.isBN(r)?new gx.default(r).toString():yx.BigNumber.from(r).toString()),B9r=lt.z.number().max(ult,"Cannot exceed 100%").min(0,"Cannot be below 0%"),D9r=lt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),O9r=lt.z.union([lt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),lt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),lt.z.string().length(0)]),dlt=lt.z.union([lt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),lt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),L9r=lt.z.union([dlt,lt.z.literal("unlimited")]).default("unlimited"),plt=lt.z.date().transform(r=>yx.BigNumber.from(Math.floor(r.getTime()/1e3)));plt.default(new Date(0));plt.default(new Date(Date.now()+1e3*60*60*24*365*10));function F9r(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function q9r(r){var e=F9r(r,"string");return typeof e=="symbol"?e:String(e)}function W9r(r,e,t){return e=q9r(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var slt=lt.z.object({}).catchall(lt.z.union([llt,lt.z.unknown()])),olt=lt.z.union([lt.z.array(slt),slt]).optional().nullable(),lre=lt.z.object({name:lt.z.union([lt.z.string(),lt.z.number()]).optional().nullable(),description:lt.z.string().nullable().optional().nullable(),image:cL.nullable().optional(),external_url:cL.nullable().optional(),animation_url:cL.optional().nullable(),background_color:O9r.optional().nullable(),properties:olt,attributes:olt}).catchall(lt.z.union([llt,lt.z.unknown()])),U9r=lt.z.union([lre,lt.z.string()]),H9r=lre.extend({id:lt.z.string(),uri:lt.z.string(),image:lt.z.string().nullable().optional(),external_url:lt.z.string().nullable().optional(),animation_url:lt.z.string().nullable().optional()}),ure=100,j9r=lt.z.object({start:lt.z.number().default(0),count:lt.z.number().default(ure)}).default({start:0,count:ure});vu.AmountSchema=dlt;vu.BasisPointsSchema=B9r;vu.BytesLikeSchema=M9r;vu.CommonNFTInput=lre;vu.CommonNFTOutput=H9r;vu.DEFAULT_API_KEY=clt;vu.DEFAULT_QUERY_ALL_COUNT=ure;vu.FileOrBufferOrStringSchema=cL;vu.MAX_BPS=ult;vu.NFTInputOrUriSchema=U9r;vu.PercentSchema=D9r;vu.QuantitySchema=L9r;vu.QueryAllParamsSchema=j9r;vu._defineProperty=W9r;vu.getRpcUrl=S9r});var pre=x(hlt=>{"use strict";d();p();var z9r=Pi(),K9r=je(),dre=class{constructor(e){z9r._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&K9r.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};hlt.DropErc1155History=dre});var $8=x(flt=>{"use strict";d();p();var Xv=Pi(),uL=ms(),hre=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Xv._defineProperty(this,"contractWrapper",void 0),Xv._defineProperty(this,"storage",void 0),Xv._defineProperty(this,"erc1155",void 0),Xv._defineProperty(this,"_chainId",void 0),Xv._defineProperty(this,"transfer",uL.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),Xv._defineProperty(this,"setApprovalForAll",uL.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),Xv._defineProperty(this,"airdrop",uL.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new uL.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};flt.StandardErc1155=hre});var J8=x(bx=>{"use strict";d();p();var G9r=Pi(),V9r=Gr(),Y8=ms();function $9r(r){return r&&r.__esModule?r:{default:r}}var mre=$9r(V9r),Y9r="https://paper.xyz/api",J9r="2022-08-12",yre=`${Y9r}/${J9r}/platform/thirdweb`,mlt={[Y8.ChainId.Mainnet]:"Ethereum",[Y8.ChainId.Goerli]:"Goerli",[Y8.ChainId.Polygon]:"Polygon",[Y8.ChainId.Mumbai]:"Mumbai",[Y8.ChainId.Avalanche]:"Avalanche"};function ylt(r){return mre.default(r in mlt,`chainId not supported by paper: ${r}`),mlt[r]}async function glt(r,e){let t=ylt(e),a=await(await fetch(`${yre}/register-contract?contractAddress=${r}&chain=${t}`)).json();return mre.default(a.result.id,"Contract is not registered with paper"),a.result.id}var Q9r={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function blt(r,e){let n=await(await fetch(`${yre}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...Q9r,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return mre.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var fre=class{constructor(e){G9r._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return glt(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await blt(await this.getCheckoutId(),e)}};bx.PAPER_API_URL=yre;bx.PaperCheckout=fre;bx.createCheckoutLinkIntent=blt;bx.fetchRegisteredCheckoutId=glt;bx.parseChainIdToPaperChain=ylt});var wlt=x(vlt=>{"use strict";d();p();var Ns=Pi(),ys=ms(),Z9r=pre(),X9r=$8(),eMr=J8(),tMr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var vx=class extends X9r.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ys.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ns._defineProperty(this,"abi",void 0),Ns._defineProperty(this,"sales",void 0),Ns._defineProperty(this,"platformFees",void 0),Ns._defineProperty(this,"encoder",void 0),Ns._defineProperty(this,"estimator",void 0),Ns._defineProperty(this,"events",void 0),Ns._defineProperty(this,"metadata",void 0),Ns._defineProperty(this,"app",void 0),Ns._defineProperty(this,"roles",void 0),Ns._defineProperty(this,"royalties",void 0),Ns._defineProperty(this,"claimConditions",void 0),Ns._defineProperty(this,"checkout",void 0),Ns._defineProperty(this,"history",void 0),Ns._defineProperty(this,"interceptor",void 0),Ns._defineProperty(this,"erc1155",void 0),Ns._defineProperty(this,"owner",void 0),Ns._defineProperty(this,"createBatch",ys.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ns._defineProperty(this,"claimTo",ys.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ns._defineProperty(this,"claim",ys.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ns._defineProperty(this,"burnTokens",ys.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=ys.AbiSchema.parse(s),this.metadata=new ys.ContractMetadata(this.contractWrapper,ys.DropErc1155ContractSchema,this.storage),this.app=new ys.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ys.ContractRoles(this.contractWrapper,vx.contractRoles),this.royalties=new ys.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ys.ContractPrimarySale(this.contractWrapper),this.claimConditions=new ys.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new ys.ContractEvents(this.contractWrapper),this.history=new Z9r.DropErc1155History(this.events),this.encoder=new ys.ContractEncoder(this.contractWrapper),this.estimator=new ys.GasCostEstimator(this.contractWrapper),this.platformFees=new ys.ContractPlatformFee(this.contractWrapper),this.interceptor=new ys.ContractInterceptor(this.contractWrapper),this.erc1155=new ys.Erc1155(this.contractWrapper,this.storage,o),this.checkout=new eMr.PaperCheckout(this.contractWrapper),this.owner=new ys.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ys.getRoleHash("transfer"),tMr.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return ys.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var gs=Pi(),mi=ms(),rMr=$8(),nMr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var wx=class extends rMr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new mi.ContractWrapper(e,t,i,a);super(o,n,s),gs._defineProperty(this,"abi",void 0),gs._defineProperty(this,"metadata",void 0),gs._defineProperty(this,"app",void 0),gs._defineProperty(this,"roles",void 0),gs._defineProperty(this,"sales",void 0),gs._defineProperty(this,"platformFees",void 0),gs._defineProperty(this,"encoder",void 0),gs._defineProperty(this,"estimator",void 0),gs._defineProperty(this,"events",void 0),gs._defineProperty(this,"royalties",void 0),gs._defineProperty(this,"signature",void 0),gs._defineProperty(this,"interceptor",void 0),gs._defineProperty(this,"erc1155",void 0),gs._defineProperty(this,"owner",void 0),gs._defineProperty(this,"mint",mi.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),gs._defineProperty(this,"mintTo",mi.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),gs._defineProperty(this,"mintAdditionalSupply",mi.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),gs._defineProperty(this,"mintAdditionalSupplyTo",mi.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),gs._defineProperty(this,"mintBatch",mi.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),gs._defineProperty(this,"mintBatchTo",mi.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),gs._defineProperty(this,"burn",mi.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=mi.AbiSchema.parse(i||[]),this.metadata=new mi.ContractMetadata(this.contractWrapper,mi.TokenErc1155ContractSchema,this.storage),this.app=new mi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new mi.ContractRoles(this.contractWrapper,wx.contractRoles),this.royalties=new mi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new mi.ContractPrimarySale(this.contractWrapper),this.encoder=new mi.ContractEncoder(this.contractWrapper),this.estimator=new mi.GasCostEstimator(this.contractWrapper),this.events=new mi.ContractEvents(this.contractWrapper),this.platformFees=new mi.ContractPlatformFee(this.contractWrapper),this.interceptor=new mi.ContractInterceptor(this.contractWrapper),this.signature=new mi.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new mi.Erc1155(this.contractWrapper,this.storage,s),this.owner=new mi.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(mi.getRoleHash("transfer"),nMr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return mi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Yo=Pi(),Ve=ms(),aMr=mn(),iMr=pn(),sMr=hn(),lr=je(),oMr=Gr();function dL(r){return r&&r.__esModule?r:{default:r}}var cMr=dL(aMr),uMr=dL(iMr),lMr=dL(sMr),lL=dL(oMr),e2=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),gre=class{constructor(e,t){Yo._defineProperty(this,"contractWrapper",void 0),Yo._defineProperty(this,"storage",void 0),Yo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Yo._defineProperty(this,"makeOffer",Ve.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ve.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=lr.BigNumber.from(a),l=lr.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ve.setErc20Allowance(this.contractWrapper,l,i,h);let f=lr.ethers.constants.MaxUint256;return o&&(f=lr.BigNumber.from(Math.floor(o.getTime()/1e3))),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Yo._defineProperty(this,"acceptOffer",Ve.buildTransactionFunction(async(n,a)=>{await this.validateListing(lr.BigNumber.from(n));let i=await Ve.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Yo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(lr.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=lr.BigNumber.from(a),h=lr.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Yo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ve.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Yo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===lr.constants.AddressZero)throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==e2.Direct)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(lr.BigNumber.from(e)),lL.default(lr.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ve.resolveAddress(t));if(n.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:e2.Direct}}async isStillValidListing(e,t){if(!await Ve.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new lr.Contract(e.assetContractAddress,cMr.default,a),s=await i.supportsInterface(Ve.InterfaceId_IERC721),o=await i.supportsInterface(Ve.InterfaceId_IERC1155);if(s){let u=(await new lr.Contract(e.assetContractAddress,uMr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new lr.Contract(e.assetContractAddress,lMr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},bre=class{constructor(e,t){Yo._defineProperty(this,"contractWrapper",void 0),Yo._defineProperty(this,"storage",void 0),Yo._defineProperty(this,"encoder",void 0),Yo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Yo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=await Ve.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,lr.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Yo._defineProperty(this,"makeBid",Ve.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(lr.BigNumber.from(n)),s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(lr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ve.isWinningBid(c.pricePerToken,s,o);lL.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=lr.BigNumber.from(i.reservePrice);lL.default(f.gte(m),"Bid price is too low based on reserve price")}let u=lr.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,lr.ethers.constants.MaxUint256],overrides:h})})),Yo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=lr.BigNumber.from(Math.floor(Date.now()/1e3)),s=lr.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==lr.constants.AddressZero)throw new Ve.AuctionAlreadyStartedError(n.toString());return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Yo._defineProperty(this,"closeListing",Ve.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(lr.BigNumber.from(n));try{return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Yo._defineProperty(this,"executeSale",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n));try{let i=await this.getWinningBid(n);lL.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Yo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ve.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==e2.Auction)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(lr.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(lr.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=lr.BigNumber.from(Math.floor(Date.now()/1e3)),i=lr.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==lr.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(lr.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(lr.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:lr.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:e2.Auction}}};pL.ListingType=e2;pL.MarketplaceAuction=bre;pL.MarketplaceDirect=gre});var Clt=x(Elt=>{"use strict";d();p();var Zi=Pi(),an=ms(),Lh=vre(),ud=je(),dMr=Gr();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function pMr(r){return r&&r.__esModule?r:{default:r}}var Tlt=pMr(dMr),_x=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new an.ContractWrapper(e,t,i,a);Zi._defineProperty(this,"abi",void 0),Zi._defineProperty(this,"contractWrapper",void 0),Zi._defineProperty(this,"storage",void 0),Zi._defineProperty(this,"encoder",void 0),Zi._defineProperty(this,"events",void 0),Zi._defineProperty(this,"estimator",void 0),Zi._defineProperty(this,"platformFees",void 0),Zi._defineProperty(this,"metadata",void 0),Zi._defineProperty(this,"app",void 0),Zi._defineProperty(this,"roles",void 0),Zi._defineProperty(this,"interceptor",void 0),Zi._defineProperty(this,"direct",void 0),Zi._defineProperty(this,"auction",void 0),Zi._defineProperty(this,"_chainId",void 0),Zi._defineProperty(this,"getAll",this.getAllListings),Zi._defineProperty(this,"buyoutListing",an.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new an.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Lh.ListingType.Direct:return Tlt.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Lh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Zi._defineProperty(this,"makeOffer",an.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new an.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Lh.ListingType.Direct:return Tlt.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,an.isNativeToken(h.currency)?an.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Lh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Zi._defineProperty(this,"setBidBufferBps",an.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,ud.BigNumber.from(c)]})})),Zi._defineProperty(this,"setTimeBufferInSeconds",an.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[ud.BigNumber.from(c),u]})})),Zi._defineProperty(this,"allowListingFromSpecificAssetOnly",an.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(ud.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[an.getRoleHash("asset"),ud.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[an.getRoleHash("asset"),c])),an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Zi._defineProperty(this,"allowListingFromAnyAsset",an.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[an.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[an.getRoleHash("asset"),ud.constants.AddressZero])),an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=an.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new an.ContractMetadata(this.contractWrapper,an.MarketplaceContractSchema,this.storage),this.app=new an.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new an.ContractRoles(this.contractWrapper,_x.contractRoles),this.encoder=new an.ContractEncoder(this.contractWrapper),this.estimator=new an.GasCostEstimator(this.contractWrapper),this.direct=new Lh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Lh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new an.ContractEvents(this.contractWrapper),this.platformFees=new an.ContractPlatformFee(this.contractWrapper),this.interceptor=new an.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ud.constants.AddressZero)throw new an.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Lh.ListingType.Auction:return await this.auction.mapListing(t);case Lh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=ud.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Lh.ListingType.Auction&&ud.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&ud.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Lh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(an.getRoleHash("lister"),ud.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await an.mapOffer(this.contractWrapper.getProvider(),ud.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof an.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Lh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=ud.BigNumber.from(t?.start||0).toNumber(),i=ud.BigNumber.from(t?.count||Zi.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var ld=Pi(),Ri=ms();Ir();je();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var xx=class{get directListings(){return Ri.assertEnabled(this.detectDirectListings(),Ri.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Ri.assertEnabled(this.detectEnglishAuctions(),Ri.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Ri.assertEnabled(this.detectOffers(),Ri.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ri.ContractWrapper(e,t,i,a);ld._defineProperty(this,"abi",void 0),ld._defineProperty(this,"contractWrapper",void 0),ld._defineProperty(this,"storage",void 0),ld._defineProperty(this,"encoder",void 0),ld._defineProperty(this,"events",void 0),ld._defineProperty(this,"estimator",void 0),ld._defineProperty(this,"platformFees",void 0),ld._defineProperty(this,"metadata",void 0),ld._defineProperty(this,"app",void 0),ld._defineProperty(this,"roles",void 0),ld._defineProperty(this,"interceptor",void 0),ld._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=Ri.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ri.ContractMetadata(this.contractWrapper,Ri.MarketplaceContractSchema,this.storage),this.app=new Ri.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ri.ContractRoles(this.contractWrapper,xx.contractRoles),this.encoder=new Ri.ContractEncoder(this.contractWrapper),this.estimator=new Ri.GasCostEstimator(this.contractWrapper),this.events=new Ri.ContractEvents(this.contractWrapper),this.platformFees=new Ri.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ri.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Ri.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var t2=Pi(),q1=ms(),wre=class{get chainId(){return this._chainId}constructor(e,t,n){t2._defineProperty(this,"contractWrapper",void 0),t2._defineProperty(this,"storage",void 0),t2._defineProperty(this,"erc721",void 0),t2._defineProperty(this,"_chainId",void 0),t2._defineProperty(this,"transfer",q1.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),t2._defineProperty(this,"setApprovalForAll",q1.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),t2._defineProperty(this,"setApprovalForToken",q1.buildTransactionFunction(async(a,i)=>q1.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await q1.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new q1.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await q1.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await q1.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};Alt.StandardErc721=wre});var Plt=x(Slt=>{"use strict";d();p();var Tp=Pi(),Mi=ms(),hMr=Tx(),fMr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Ex=class extends hMr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Mi.ContractWrapper(e,t,i,a);super(o,n,s),Tp._defineProperty(this,"abi",void 0),Tp._defineProperty(this,"encoder",void 0),Tp._defineProperty(this,"estimator",void 0),Tp._defineProperty(this,"metadata",void 0),Tp._defineProperty(this,"app",void 0),Tp._defineProperty(this,"events",void 0),Tp._defineProperty(this,"roles",void 0),Tp._defineProperty(this,"royalties",void 0),Tp._defineProperty(this,"owner",void 0),Tp._defineProperty(this,"wrap",Mi.buildTransactionFunction(async(c,u,l)=>{let h=await Mi.uploadOrExtractURI(u,this.storage),f=await Mi.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Mi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let E=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(E.length===0)throw new Error("TokensWrapped event not found");let I=E[0].args.tokenIdOfWrappedToken;return{id:I,receipt:y,data:()=>this.get(I)}}})})),Tp._defineProperty(this,"unwrap",Mi.buildTransactionFunction(async(c,u)=>{let l=await Mi.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Mi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=Mi.AbiSchema.parse(i||[]),this.metadata=new Mi.ContractMetadata(this.contractWrapper,Mi.MultiwrapContractSchema,this.storage),this.app=new Mi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Mi.ContractRoles(this.contractWrapper,Ex.contractRoles),this.encoder=new Mi.ContractEncoder(this.contractWrapper),this.estimator=new Mi.GasCostEstimator(this.contractWrapper),this.events=new Mi.ContractEvents(this.contractWrapper),this.royalties=new Mi.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Mi.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Mi.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:fMr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Mi.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Mi.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +${f}`);let m=HEe(u.abi).map(I=>I.type),y=this.convertParamValues(m,s);return this.deployContractWithAbi.prepare(u.abi,f,y)})),Y._defineProperty(this,"deployContractWithAbi",jo(async(i,s,o)=>{let c=this.getSigner(),u=this.getProvider();_t.default(c,"Signer is required to deploy contracts");let l=new J.ethers.ContractFactory(i,s).connect(c);return new Kpe({args:o,provider:u,signer:c,factory:l,storage:this.storage,events:this.events})})),this.storage=n,this.events=new Eut.EventEmitter,this.getFactory(),this.getRegistry()}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=qX(t,"twRegistry");if(!!n)return new xEe(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=qX(t,"twFactory");return n?new Ihe(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await RV(e,this.storage),n;try{n=await zEe(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Se(e),i=await new sm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case gp.contractType:case bp.contractType:return[spe(t)?.wrapped?.address||J.ethers.constants.AddressZero];case Tl.contractType:return[spe(t).wrapped.address||J.ethers.constants.AddressZero,J.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(_t.default(J.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),J.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(_t.default(J.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?J.BigNumber.from(t[a].toString()):t[a])}},Che=class{constructor(e){Y._defineProperty(this,"featureName",Ipe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Te(async t=>{let n=await Se(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},udt={},dBr=new sm("polygon");function ldt(r,e){return`${r}-${e}`}function pBr(r,e,t){udt[ldt(r,e)]=t}function hBr(r,e){return udt[ldt(r,e)]}async function B0(r,e,t){let n=(await e.getNetwork()).chainId,a=hBr(r,n);if(a)return a;let i;try{let s=await eee(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await khe(s,t)}catch{try{let o=await dBr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await khe(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return pBr(r,n,i),i}async function El(r,e,t){try{let n=await B0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function khe(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Gi.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=eCe.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function Ohe(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var Tut=256,MIe="0|[1-9]\\d*",fBr=`(${MIe})\\.(${MIe})\\.(${MIe})`,mBr=new RegExp(fBr);function DV(r){if(r.length>Tut)throw new Error(`version is longer than ${Tut} characters`);let e=r.trim().match(mBr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function ddt(r,e){let t=DV(r),n=DV(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function yBr(r,e){let t=DV(r),n=DV(e);if(n.major{try{return DV(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:de.z.string().optional(),description:de.z.string().optional(),readme:de.z.string().optional(),license:de.z.string().optional(),changelog:de.z.string().optional(),tags:de.z.array(de.z.string()).optional(),audit:Y.FileOrBufferOrStringSchema.nullable().optional(),logo:Y.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:de.z.boolean().optional(),isDeployableViaProxy:de.z.boolean().optional(),factoryDeploymentData:ydt.optional(),constructorParams:de.z.record(de.z.string(),de.z.object({displayName:de.z.string().optional(),description:de.z.string().optional(),defaultValue:de.z.string().optional()}).catchall(de.z.any())).optional()}).catchall(de.z.any()),gdt=XEe.extend({audit:de.z.string().nullable().optional(),logo:de.z.string().nullable().optional()}),bdt=fee.merge(XEe).extend({publisher:Ii.optional()}),vdt=fee.merge(gdt).extend({publisher:Ii.optional()}),wdt=de.z.object({name:de.z.string().optional(),bio:de.z.string().optional(),avatar:Y.FileOrBufferOrStringSchema.nullable().optional(),website:de.z.string().optional(),twitter:de.z.string().optional(),telegram:de.z.string().optional(),facebook:de.z.string().optional(),github:de.z.string().optional(),medium:de.z.string().optional(),linkedin:de.z.string().optional(),reddit:de.z.string().optional(),discord:de.z.string().optional()}),xdt=wdt.extend({avatar:de.z.string().nullable().optional()}),_dt=de.z.object({id:de.z.string(),timestamp:Vs,metadataUri:de.z.string()}),eCe=de.z.object({title:de.z.string().optional(),author:de.z.string().optional(),details:de.z.string().optional(),notice:de.z.string().optional()}),Tdt=de.z.object({name:de.z.string(),abi:Gi,metadata:de.z.record(de.z.string(),de.z.any()),info:eCe,licenses:de.z.array(de.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),Idt=fee.merge(Tdt).extend({bytecode:de.z.string()}),gBr=new Dg.ThirdwebStorage,tCe=new Map;function rCe(r,e){return`${r}-${e}`}function nCe(r,e){let t=rCe(r,e);return tCe.has(t)}function Edt(r,e){if(!nCe(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=rCe(r,e);return tCe.get(t)}function Cdt(r,e,t){let n=rCe(e,t);tCe.set(n,r)}function LX(r){return r||gBr}async function ape(r){let e=await Se(r.address),[t,n]=ui(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(nCe(e,a))return Edt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new _he(t||n,e,await jpe(e,Gi.parse(i),n,r.sdkOptions,LX(r.storage)),LX(r.storage),r.sdkOptions,a);return Cdt(s,e,a),s}async function bBr(r){try{let e=new J.Contract(r.address,IEe.default,r.provider),t=J.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return QEe(t)}catch{return"custom"}}async function vBr(r){let e=await Se(r.address),[t,n]=ui(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(nCe(e,a))return Edt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await bBr({address:e,provider:n});if(i==="custom"){let s=new The(r.network,r.sdkOptions,LX(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return ape({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await cm[i].getAbi(e,n,LX(r.storage));return ape({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in cm){let i=await cm[r.contractTypeOrAbi].initialize(t||n,e,LX(r.storage),r.sdkOptions);return Cdt(i,e,a),i}else return ape({...r,address:e,abi:r.contractTypeOrAbi})}var npe=new WeakMap;async function aCe(r){let[,e]=ui(r.network,r.sdkOptions),t;return npe.has(e)?t=npe.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw npe.delete(e),n}),npe.set(e,t)),await t}async function wBr(r){let[,e]=ui(r.network,r.sdkOptions);return e.getBlockNumber()}var DX=new Map;async function kdt(r){let e=await aCe(r),t=r.block,n=`${e}_${t}`,a;if(DX.has(n))a=DX.get(n);else{let[,i]=ui(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw DX.delete(n),s}),DX.set(n,a)}return await a}var NIe=new Map;async function Adt(r){let e=await aCe(r),t=r.block,n=`${e}_${t}`,a;if(DX.has(n))a=NIe.get(n);else{let[,i]=ui(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw NIe.delete(n),s}),NIe.set(n,a)}return await a}function iCe(r){let[,e]=ui(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function xBr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await kdt({block:a,...t}))}catch{}}return iCe({...t,onBlockNumber:n})}function Pdt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Adt({block:a,...t}))}catch{}}return iCe({...t,onBlockNumber:n})}function _Br(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return Pdt({...n,onBlock:i})}te.ALL_ROLES=FEe;te.APPROVED_IMPLEMENTATIONS=qIe;te.AbiObjectSchema=mdt;te.AbiSchema=Gi;te.AbiTypeSchema=_Ee;te.AddressOrEnsSchema=Ii;te.AddressSchema=AEe;te.AdminRoleMissingError=nEe;te.AssetNotFoundError=zIe;te.AuctionAlreadyStartedError=ZIe;te.AuctionHasNotEndedError=TV;te.BYOCContractMetadataSchema=pdt;te.BaseSignaturePayloadInput=She;te.BigNumberSchema=Cs;te.BigNumberTransformSchema=Gut;te.BigNumberishSchema=Vs;te.CONTRACTS_MAP=$Ee;te.CONTRACT_ADDRESSES=Lg;te.CallOverrideSchema=Vut;te.ChainId=Ne;te.ChainIdToAddressSchema=TEe;te.ChainInfoInputSchema=Yut;te.ClaimConditionInputArray=Zut;te.ClaimConditionInputSchema=dee;te.ClaimConditionMetadataSchema=Jut;te.ClaimConditionOutputSchema=MEe;te.ClaimEligibility=Ca;te.CommonContractOutputSchema=id;te.CommonContractSchema=Il;te.CommonPlatformFeeSchema=vp;te.CommonPrimarySaleSchema=Og;te.CommonRoyaltySchema=Go;te.CommonSymbolSchema=yo;te.CommonTrustedForwarderSchema=sd;te.CompilerMetadataFetchedSchema=Tdt;te.ContractAppURI=aee;te.ContractDeployer=Ehe;te.ContractEncoder=E2;te.ContractEvents=C2;te.ContractInfoSchema=eCe;te.ContractInterceptor=k2;te.ContractMetadata=A0;te.ContractOwner=Che;te.ContractPlatformFee=whe;te.ContractPrimarySale=Ype;te.ContractPublishedMetadata=xhe;te.ContractRoles=Gpe;te.ContractRoyalty=Vpe;te.ContractWrapper=ks;te.CurrencySchema=$ut;te.CurrencyValueSchema=Qut;te.CustomContractDeploy=fdt;te.CustomContractInput=ZEe;te.CustomContractOutput=hdt;te.CustomContractSchema=_2;te.DelayedReveal=tee;te.DeployTransaction=Kpe;te.DropClaimConditions=ree;te.DropErc1155ClaimConditions=$pe;te.DropErc1155ContractSchema=plt;te.DropErc20ContractSchema=adt;te.DropErc721ContractSchema=DEe;te.DuplicateFileNameError=VIe;te.DuplicateLeafsError=lpe;te.EditionDropInitializer=Ah;te.EditionInitializer=R0;te.EndDateSchema=uee;te.Erc1155=yhe;te.Erc1155BatchMintable=hhe;te.Erc1155Burnable=lhe;te.Erc1155Enumerable=dhe;te.Erc1155LazyMintable=phe;te.Erc1155Mintable=fhe;te.Erc1155SignatureMintable=mhe;te.Erc20=ehe;te.Erc20BatchMintable=Jpe;te.Erc20Burnable=Qpe;te.Erc20Mintable=Zpe;te.Erc20SignatureMintable=Xpe;te.Erc721=uhe;te.Erc721BatchMintable=ahe;te.Erc721Burnable=the;te.Erc721ClaimableWithConditions=rhe;te.Erc721Enumerable=she;te.Erc721LazyMintable=nhe;te.Erc721Mintable=ihe;te.Erc721Supply=ohe;te.Erc721WithQuantitySignatureMintable=che;te.EventType=xl;te.ExtensionNotImplementedError=P0;te.ExtraPublishMetadataSchemaInput=XEe;te.ExtraPublishMetadataSchemaOutput=gdt;te.FEATURE_DIRECT_LISTINGS=zX;te.FEATURE_ENGLISH_AUCTIONS=KX;te.FEATURE_NFT_REVEALABLE=QX;te.FEATURE_OFFERS=GX;te.FEATURE_PACK_VRF=aEe;te.FactoryDeploymentSchema=ydt;te.FetchError=JIe;te.FileNameMissingError=GIe;te.FullPublishMetadataSchemaInput=bdt;te.FullPublishMetadataSchemaOutput=vdt;te.FunctionDeprecatedError=XIe;te.GasCostEstimator=A2;te.GenericRequest=ult;te.InterfaceId_IERC1155=oee;te.InterfaceId_IERC721=see;te.InvalidAddressError=jIe;te.LINK_TOKEN_ADDRESS=kMr;te.LOCAL_NODE_PKEY=Wut;te.ListingNotFoundError=eEe;te.MarketplaceContractSchema=LEe;te.MarketplaceInitializer=gp;te.MarketplaceV3DirectListings=ghe;te.MarketplaceV3EnglishAuctions=bhe;te.MarketplaceV3Initializer=om;te.MarketplaceV3Offers=vhe;te.MerkleSchema=D0;te.MintRequest1155=olt;te.MintRequest20=ilt;te.MintRequest721=slt;te.MintRequest721withQuantity=clt;te.MissingOwnerRoleError=$Ie;te.MissingRoleError=upe;te.MultiwrapContractSchema=sdt;te.MultiwrapInitializer=bp;te.NATIVE_TOKENS=FX;te.NATIVE_TOKEN_ADDRESS=Hu;te.NFTCollectionInitializer=M0;te.NFTDropInitializer=Ph;te.NotEnoughTokensError=YIe;te.NotFoundError=UX;te.OZ_DEFENDER_FORWARDER_ADDRESS=Bg;te.PREBUILT_CONTRACTS_APPURI_MAP=odt;te.PREBUILT_CONTRACTS_MAP=cm;te.PackContractSchema=mlt;te.PackInitializer=Tl;te.PartialClaimConditionInputSchema=RMr;te.PreDeployMetadata=fee;te.PreDeployMetadataFetchedSchema=Idt;te.ProfileSchemaInput=wdt;te.ProfileSchemaOutput=xdt;te.PublishedContractSchema=_dt;te.QuantityAboveLimitError=QIe;te.RawDateSchema=cee;te.RestrictedTransferError=rEe;te.SUPPORTED_CHAIN_IDS=Out;te.Signature1155PayloadInput=elt;te.Signature1155PayloadInputWithTokenId=tlt;te.Signature1155PayloadOutput=rlt;te.Signature20PayloadInput=NEe;te.Signature20PayloadOutput=Xut;te.Signature721PayloadInput=Rhe;te.Signature721PayloadOutput=BEe;te.Signature721WithQuantityInput=nlt;te.Signature721WithQuantityOutput=alt;te.SignatureDropInitializer=Sh;te.SnapshotEntryInput=ope;te.SnapshotEntryWithProofSchema=SEe;te.SnapshotInfoSchema=SMr;te.SnapshotInputSchema=lee;te.SnapshotSchema=REe;te.SplitInitializer=Rh;te.SplitsContractSchema=glt;te.StartDateSchema=PEe;te.Status=Ko;te.ThirdwebSDK=sm;te.TokenDropInitializer=N0;te.TokenErc1155ContractSchema=Tlt;te.TokenErc20ContractSchema=vlt;te.TokenErc721ContractSchema=xlt;te.TokenInitializer=Mh;te.Transaction=De;te.TransactionError=CV;te.UploadError=KIe;te.UserWallet=BV;te.VoteContractSchema=Clt;te.VoteInitializer=Nh;te.WrongListingTypeError=tEe;te.approveErc20Allowance=qEe;te.assertEnabled=Xt;te.buildTransactionFunction=Te;te.cleanCurrencyAddress=ppe;te.convertToReadableQuantity=MX;te.createSnapshot=qlt;te.detectContractFeature=Ye;te.detectFeatures=pee;te.extractConstructorParams=Ylt;te.extractConstructorParamsFromAbi=HEe;te.extractEventsFromAbi=Zlt;te.extractFunctionParamsFromAbi=Jlt;te.extractFunctions=$lt;te.extractFunctionsFromAbi=SV;te.extractIPFSHashFromBytecode=edt;te.extractMinimalProxyImplementationAddress=Xlt;te.fetchAbiFromAddress=El;te.fetchContractMetadata=khe;te.fetchContractMetadataFromAddress=B0;te.fetchCurrencyMetadata=LV;te.fetchCurrencyValue=yp;te.fetchExtendedReleaseMetadata=zEe;te.fetchPreDeployMetadata=RV;te.fetchRawPredeployMetadata=jEe;te.fetchSnapshotEntryForAddress=Bhe;te.fetchSourceFilesFromMetadata=Ohe;te.fetchTokenMetadataForContract=hee;te.getAllDetectedFeatureNames=hEe;te.getAllDetectedFeatures=VNr;te.getApprovedImplementation=Uut;te.getBlock=kdt;te.getBlockNumber=wBr;te.getBlockWithTransactions=Adt;te.getChainId=aCe;te.getChainIdFromNetwork=klt;te.getChainProvider=WX;te.getContract=vBr;te.getContractAddressByChainId=qX;te.getContractFromAbi=ape;te.getContractName=JEe;te.getContractPublisherAddress=Hut;te.getContractTypeForRemoteName=QEe;te.getDefaultTrustedForwarders=CEe;te.getMultichainRegistryAddress=FIe;te.getNativeTokenByChainId=spe;te.getProviderFromRpcUrl=cpe;te.getRoleHash=_V;te.getSignerAndProvider=ui;te.getSupportedChains=Fut;te.handleTokenApproval=nee;te.hasERC20Allowance=hNr;te.hasFunction=fo;te.hasMatchingAbi=UEe;te.includesErrorMessage=HX;te.isChainConfig=Mhe;te.isDowngradeVersion=yBr;te.isFeatureEnabled=MV;te.isIncrementalVersion=ddt;te.isNativeToken=Bh;te.isProvider=kEe;te.isSigner=Phe;te.isTokenApprovedForTransfer=rdt;te.isWinningBid=rBr;te.mapOffer=tBr;te.matchesPrebuiltAbi=zNr;te.normalizeAmount=fNr;te.normalizePriceValue=Tc;te.parseRevertReason=Nhe;te.resolveAddress=Se;te.resolveContractUriFromAddress=eee;te.setErc20Allowance=S0;te.setSupportedChains=qut;te.toDisplayValue=bNr;te.toEther=mNr;te.toSemver=DV;te.toUnits=gNr;te.toWei=yNr;te.uploadOrExtractURI=VEe;te.validateNewListingParam=eBr;te.watchBlock=xBr;te.watchBlockNumber=iCe;te.watchBlockWithTransactions=Pdt;te.watchTransactions=_Br});var Ndt=_(L0=>{"use strict";d();p();var OV=os(),um=kr(),qhe=bi(),Sdt=yn(),Rdt=um.z.object({}).catchall(um.z.union([OV.BigNumberTransformSchema,um.z.unknown()])),TBr=um.z.union([um.z.array(Rdt),Rdt]).optional(),Mdt=um.z.object({supply:OV.BigNumberSchema,metadata:qhe.CommonNFTOutput}),IBr=Mdt.extend({owner:um.z.string(),quantityOwned:OV.BigNumberSchema}),EBr=um.z.object({supply:OV.BigNumberishSchema,metadata:qhe.CommonNFTInput}),CBr=um.z.object({supply:OV.BigNumberishSchema,metadata:qhe.NFTInputOrUriSchema}),kBr=um.z.object({toAddress:OV.AddressOrEnsSchema,amount:qhe.AmountSchema}),ABr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function PBr(r){if(r in Sdt.GENERATED_ABI)return Sdt.GENERATED_ABI[r]}L0.EditionMetadataInputOrUriSchema=CBr;L0.EditionMetadataInputSchema=EBr;L0.EditionMetadataOutputSchema=Mdt;L0.EditionMetadataWithOwnerOutputSchema=IBr;L0.OptionalPropertiesInput=TBr;L0.ProposalState=ABr;L0.TokenMintInputSchema=kBr;L0.getCachedAbiForContract=PBr});var Bdt=_(ne=>{"use strict";d();p();Object.defineProperty(ne,"__esModule",{value:!0});var SBr=bi(),se=os(),qg=Ndt(),RBr=H6e(),MBr=bIe(),NBr=Zde(),BBr=lV(),DBr=CX(),sCe=Z6e(),LBr=wIe(),mee=AX();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();globalThis.global=globalThis;ne.getRpcUrl=SBr.getRpcUrl;ne.ALL_ROLES=se.ALL_ROLES;ne.APPROVED_IMPLEMENTATIONS=se.APPROVED_IMPLEMENTATIONS;ne.AbiObjectSchema=se.AbiObjectSchema;ne.AbiSchema=se.AbiSchema;ne.AbiTypeSchema=se.AbiTypeSchema;ne.AddressOrEnsSchema=se.AddressOrEnsSchema;ne.AddressSchema=se.AddressSchema;ne.AdminRoleMissingError=se.AdminRoleMissingError;ne.AssetNotFoundError=se.AssetNotFoundError;ne.AuctionAlreadyStartedError=se.AuctionAlreadyStartedError;ne.AuctionHasNotEndedError=se.AuctionHasNotEndedError;ne.BYOCContractMetadataSchema=se.BYOCContractMetadataSchema;ne.BaseSignaturePayloadInput=se.BaseSignaturePayloadInput;ne.BigNumberSchema=se.BigNumberSchema;ne.BigNumberTransformSchema=se.BigNumberTransformSchema;ne.BigNumberishSchema=se.BigNumberishSchema;ne.CONTRACTS_MAP=se.CONTRACTS_MAP;ne.CONTRACT_ADDRESSES=se.CONTRACT_ADDRESSES;ne.CallOverrideSchema=se.CallOverrideSchema;ne.ChainId=se.ChainId;ne.ChainIdToAddressSchema=se.ChainIdToAddressSchema;ne.ChainInfoInputSchema=se.ChainInfoInputSchema;ne.ClaimConditionInputArray=se.ClaimConditionInputArray;ne.ClaimConditionInputSchema=se.ClaimConditionInputSchema;ne.ClaimConditionMetadataSchema=se.ClaimConditionMetadataSchema;ne.ClaimConditionOutputSchema=se.ClaimConditionOutputSchema;ne.ClaimEligibility=se.ClaimEligibility;ne.CommonContractOutputSchema=se.CommonContractOutputSchema;ne.CommonContractSchema=se.CommonContractSchema;ne.CommonPlatformFeeSchema=se.CommonPlatformFeeSchema;ne.CommonPrimarySaleSchema=se.CommonPrimarySaleSchema;ne.CommonRoyaltySchema=se.CommonRoyaltySchema;ne.CommonSymbolSchema=se.CommonSymbolSchema;ne.CommonTrustedForwarderSchema=se.CommonTrustedForwarderSchema;ne.CompilerMetadataFetchedSchema=se.CompilerMetadataFetchedSchema;ne.ContractAppURI=se.ContractAppURI;ne.ContractDeployer=se.ContractDeployer;ne.ContractEncoder=se.ContractEncoder;ne.ContractEvents=se.ContractEvents;ne.ContractInfoSchema=se.ContractInfoSchema;ne.ContractInterceptor=se.ContractInterceptor;ne.ContractMetadata=se.ContractMetadata;ne.ContractOwner=se.ContractOwner;ne.ContractPlatformFee=se.ContractPlatformFee;ne.ContractPrimarySale=se.ContractPrimarySale;ne.ContractPublishedMetadata=se.ContractPublishedMetadata;ne.ContractRoles=se.ContractRoles;ne.ContractRoyalty=se.ContractRoyalty;ne.CurrencySchema=se.CurrencySchema;ne.CurrencyValueSchema=se.CurrencyValueSchema;ne.CustomContractDeploy=se.CustomContractDeploy;ne.CustomContractInput=se.CustomContractInput;ne.CustomContractOutput=se.CustomContractOutput;ne.CustomContractSchema=se.CustomContractSchema;ne.DelayedReveal=se.DelayedReveal;ne.DeployTransaction=se.DeployTransaction;ne.DropClaimConditions=se.DropClaimConditions;ne.DropErc1155ClaimConditions=se.DropErc1155ClaimConditions;ne.DuplicateFileNameError=se.DuplicateFileNameError;ne.DuplicateLeafsError=se.DuplicateLeafsError;ne.EditionDropInitializer=se.EditionDropInitializer;ne.EditionInitializer=se.EditionInitializer;ne.EndDateSchema=se.EndDateSchema;ne.Erc1155=se.Erc1155;ne.Erc1155BatchMintable=se.Erc1155BatchMintable;ne.Erc1155Burnable=se.Erc1155Burnable;ne.Erc1155Enumerable=se.Erc1155Enumerable;ne.Erc1155LazyMintable=se.Erc1155LazyMintable;ne.Erc1155Mintable=se.Erc1155Mintable;ne.Erc1155SignatureMintable=se.Erc1155SignatureMintable;ne.Erc20=se.Erc20;ne.Erc20BatchMintable=se.Erc20BatchMintable;ne.Erc20Burnable=se.Erc20Burnable;ne.Erc20Mintable=se.Erc20Mintable;ne.Erc20SignatureMintable=se.Erc20SignatureMintable;ne.Erc721=se.Erc721;ne.Erc721BatchMintable=se.Erc721BatchMintable;ne.Erc721Burnable=se.Erc721Burnable;ne.Erc721ClaimableWithConditions=se.Erc721ClaimableWithConditions;ne.Erc721Enumerable=se.Erc721Enumerable;ne.Erc721LazyMintable=se.Erc721LazyMintable;ne.Erc721Mintable=se.Erc721Mintable;ne.Erc721Supply=se.Erc721Supply;ne.Erc721WithQuantitySignatureMintable=se.Erc721WithQuantitySignatureMintable;ne.EventType=se.EventType;ne.ExtensionNotImplementedError=se.ExtensionNotImplementedError;ne.ExtraPublishMetadataSchemaInput=se.ExtraPublishMetadataSchemaInput;ne.ExtraPublishMetadataSchemaOutput=se.ExtraPublishMetadataSchemaOutput;ne.FactoryDeploymentSchema=se.FactoryDeploymentSchema;ne.FetchError=se.FetchError;ne.FileNameMissingError=se.FileNameMissingError;ne.FullPublishMetadataSchemaInput=se.FullPublishMetadataSchemaInput;ne.FullPublishMetadataSchemaOutput=se.FullPublishMetadataSchemaOutput;ne.FunctionDeprecatedError=se.FunctionDeprecatedError;ne.GasCostEstimator=se.GasCostEstimator;ne.GenericRequest=se.GenericRequest;ne.InterfaceId_IERC1155=se.InterfaceId_IERC1155;ne.InterfaceId_IERC721=se.InterfaceId_IERC721;ne.InvalidAddressError=se.InvalidAddressError;ne.LINK_TOKEN_ADDRESS=se.LINK_TOKEN_ADDRESS;ne.LOCAL_NODE_PKEY=se.LOCAL_NODE_PKEY;ne.ListingNotFoundError=se.ListingNotFoundError;ne.MarketplaceInitializer=se.MarketplaceInitializer;ne.MarketplaceV3DirectListings=se.MarketplaceV3DirectListings;ne.MarketplaceV3EnglishAuctions=se.MarketplaceV3EnglishAuctions;ne.MarketplaceV3Initializer=se.MarketplaceV3Initializer;ne.MarketplaceV3Offers=se.MarketplaceV3Offers;ne.MerkleSchema=se.MerkleSchema;ne.MintRequest1155=se.MintRequest1155;ne.MintRequest20=se.MintRequest20;ne.MintRequest721=se.MintRequest721;ne.MintRequest721withQuantity=se.MintRequest721withQuantity;ne.MissingOwnerRoleError=se.MissingOwnerRoleError;ne.MissingRoleError=se.MissingRoleError;ne.MultiwrapInitializer=se.MultiwrapInitializer;ne.NATIVE_TOKENS=se.NATIVE_TOKENS;ne.NATIVE_TOKEN_ADDRESS=se.NATIVE_TOKEN_ADDRESS;ne.NFTCollectionInitializer=se.NFTCollectionInitializer;ne.NFTDropInitializer=se.NFTDropInitializer;ne.NotEnoughTokensError=se.NotEnoughTokensError;ne.NotFoundError=se.NotFoundError;ne.OZ_DEFENDER_FORWARDER_ADDRESS=se.OZ_DEFENDER_FORWARDER_ADDRESS;ne.PREBUILT_CONTRACTS_APPURI_MAP=se.PREBUILT_CONTRACTS_APPURI_MAP;ne.PREBUILT_CONTRACTS_MAP=se.PREBUILT_CONTRACTS_MAP;ne.PackInitializer=se.PackInitializer;ne.PartialClaimConditionInputSchema=se.PartialClaimConditionInputSchema;ne.PreDeployMetadata=se.PreDeployMetadata;ne.PreDeployMetadataFetchedSchema=se.PreDeployMetadataFetchedSchema;ne.ProfileSchemaInput=se.ProfileSchemaInput;ne.ProfileSchemaOutput=se.ProfileSchemaOutput;ne.PublishedContractSchema=se.PublishedContractSchema;ne.QuantityAboveLimitError=se.QuantityAboveLimitError;ne.RawDateSchema=se.RawDateSchema;ne.RestrictedTransferError=se.RestrictedTransferError;ne.SUPPORTED_CHAIN_IDS=se.SUPPORTED_CHAIN_IDS;ne.Signature1155PayloadInput=se.Signature1155PayloadInput;ne.Signature1155PayloadInputWithTokenId=se.Signature1155PayloadInputWithTokenId;ne.Signature1155PayloadOutput=se.Signature1155PayloadOutput;ne.Signature20PayloadInput=se.Signature20PayloadInput;ne.Signature20PayloadOutput=se.Signature20PayloadOutput;ne.Signature721PayloadInput=se.Signature721PayloadInput;ne.Signature721PayloadOutput=se.Signature721PayloadOutput;ne.Signature721WithQuantityInput=se.Signature721WithQuantityInput;ne.Signature721WithQuantityOutput=se.Signature721WithQuantityOutput;ne.SignatureDropInitializer=se.SignatureDropInitializer;ne.SnapshotEntryInput=se.SnapshotEntryInput;ne.SnapshotEntryWithProofSchema=se.SnapshotEntryWithProofSchema;ne.SnapshotInfoSchema=se.SnapshotInfoSchema;ne.SnapshotInputSchema=se.SnapshotInputSchema;ne.SnapshotSchema=se.SnapshotSchema;ne.SplitInitializer=se.SplitInitializer;ne.StartDateSchema=se.StartDateSchema;ne.Status=se.Status;ne.ThirdwebSDK=se.ThirdwebSDK;ne.TokenDropInitializer=se.TokenDropInitializer;ne.TokenInitializer=se.TokenInitializer;ne.Transaction=se.Transaction;ne.TransactionError=se.TransactionError;ne.UploadError=se.UploadError;ne.UserWallet=se.UserWallet;ne.VoteInitializer=se.VoteInitializer;ne.WrongListingTypeError=se.WrongListingTypeError;ne.approveErc20Allowance=se.approveErc20Allowance;ne.assertEnabled=se.assertEnabled;ne.cleanCurrencyAddress=se.cleanCurrencyAddress;ne.convertToReadableQuantity=se.convertToReadableQuantity;ne.createSnapshot=se.createSnapshot;ne.detectContractFeature=se.detectContractFeature;ne.detectFeatures=se.detectFeatures;ne.extractConstructorParams=se.extractConstructorParams;ne.extractConstructorParamsFromAbi=se.extractConstructorParamsFromAbi;ne.extractEventsFromAbi=se.extractEventsFromAbi;ne.extractFunctionParamsFromAbi=se.extractFunctionParamsFromAbi;ne.extractFunctions=se.extractFunctions;ne.extractFunctionsFromAbi=se.extractFunctionsFromAbi;ne.extractIPFSHashFromBytecode=se.extractIPFSHashFromBytecode;ne.extractMinimalProxyImplementationAddress=se.extractMinimalProxyImplementationAddress;ne.fetchAbiFromAddress=se.fetchAbiFromAddress;ne.fetchContractMetadata=se.fetchContractMetadata;ne.fetchContractMetadataFromAddress=se.fetchContractMetadataFromAddress;ne.fetchCurrencyMetadata=se.fetchCurrencyMetadata;ne.fetchCurrencyValue=se.fetchCurrencyValue;ne.fetchExtendedReleaseMetadata=se.fetchExtendedReleaseMetadata;ne.fetchPreDeployMetadata=se.fetchPreDeployMetadata;ne.fetchRawPredeployMetadata=se.fetchRawPredeployMetadata;ne.fetchSnapshotEntryForAddress=se.fetchSnapshotEntryForAddress;ne.fetchSourceFilesFromMetadata=se.fetchSourceFilesFromMetadata;ne.getAllDetectedFeatureNames=se.getAllDetectedFeatureNames;ne.getAllDetectedFeatures=se.getAllDetectedFeatures;ne.getApprovedImplementation=se.getApprovedImplementation;ne.getBlock=se.getBlock;ne.getBlockNumber=se.getBlockNumber;ne.getBlockWithTransactions=se.getBlockWithTransactions;ne.getChainId=se.getChainId;ne.getChainIdFromNetwork=se.getChainIdFromNetwork;ne.getChainProvider=se.getChainProvider;ne.getContract=se.getContract;ne.getContractAddressByChainId=se.getContractAddressByChainId;ne.getContractFromAbi=se.getContractFromAbi;ne.getContractName=se.getContractName;ne.getContractPublisherAddress=se.getContractPublisherAddress;ne.getContractTypeForRemoteName=se.getContractTypeForRemoteName;ne.getDefaultTrustedForwarders=se.getDefaultTrustedForwarders;ne.getMultichainRegistryAddress=se.getMultichainRegistryAddress;ne.getNativeTokenByChainId=se.getNativeTokenByChainId;ne.getProviderFromRpcUrl=se.getProviderFromRpcUrl;ne.getRoleHash=se.getRoleHash;ne.getSignerAndProvider=se.getSignerAndProvider;ne.getSupportedChains=se.getSupportedChains;ne.hasERC20Allowance=se.hasERC20Allowance;ne.hasFunction=se.hasFunction;ne.hasMatchingAbi=se.hasMatchingAbi;ne.includesErrorMessage=se.includesErrorMessage;ne.isChainConfig=se.isChainConfig;ne.isDowngradeVersion=se.isDowngradeVersion;ne.isFeatureEnabled=se.isFeatureEnabled;ne.isIncrementalVersion=se.isIncrementalVersion;ne.isNativeToken=se.isNativeToken;ne.isProvider=se.isProvider;ne.isSigner=se.isSigner;ne.matchesPrebuiltAbi=se.matchesPrebuiltAbi;ne.normalizeAmount=se.normalizeAmount;ne.normalizePriceValue=se.normalizePriceValue;ne.parseRevertReason=se.parseRevertReason;ne.resolveContractUriFromAddress=se.resolveContractUriFromAddress;ne.setErc20Allowance=se.setErc20Allowance;ne.setSupportedChains=se.setSupportedChains;ne.toDisplayValue=se.toDisplayValue;ne.toEther=se.toEther;ne.toSemver=se.toSemver;ne.toUnits=se.toUnits;ne.toWei=se.toWei;ne.watchBlock=se.watchBlock;ne.watchBlockNumber=se.watchBlockNumber;ne.watchBlockWithTransactions=se.watchBlockWithTransactions;ne.watchTransactions=se.watchTransactions;ne.EditionMetadataInputOrUriSchema=qg.EditionMetadataInputOrUriSchema;ne.EditionMetadataInputSchema=qg.EditionMetadataInputSchema;ne.EditionMetadataOutputSchema=qg.EditionMetadataOutputSchema;ne.EditionMetadataWithOwnerOutputSchema=qg.EditionMetadataWithOwnerOutputSchema;ne.OptionalPropertiesInput=qg.OptionalPropertiesInput;ne.ProposalState=qg.ProposalState;ne.TokenMintInputSchema=qg.TokenMintInputSchema;ne.getCachedAbiForContract=qg.getCachedAbiForContract;ne.DropErc1155History=RBr.DropErc1155History;ne.TokenERC20History=MBr.TokenERC20History;ne.StandardErc20=NBr.StandardErc20;ne.StandardErc721=BBr.StandardErc721;ne.StandardErc1155=DBr.StandardErc1155;ne.ListingType=sCe.ListingType;ne.MarketplaceAuction=sCe.MarketplaceAuction;ne.MarketplaceDirect=sCe.MarketplaceDirect;ne.VoteType=LBr.VoteType;ne.PAPER_API_URL=mee.PAPER_API_URL;ne.PaperCheckout=mee.PaperCheckout;ne.createCheckoutLinkIntent=mee.createCheckoutLinkIntent;ne.fetchRegisteredCheckoutId=mee.fetchRegisteredCheckoutId;ne.parseChainIdToPaperChain=mee.parseChainIdToPaperChain});var Ei=_(vu=>{"use strict";d();p();var OBr=Cr(),qV=je(),lt=kr();function qBr(r){return r&&r.__esModule?r:{default:r}}var FV=qBr(OBr),qdt="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function FBr(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qdt;return`https://${r}.rpc.thirdweb.com/${e}`}var WBr=()=>typeof window<"u",Ddt=WBr()?lt.z.instanceof(File):lt.z.instanceof(b.Buffer),UBr=lt.z.union([Ddt,lt.z.object({data:lt.z.union([Ddt,lt.z.string()]),name:lt.z.string()})]),Fhe=lt.z.union([UBr,lt.z.string()]),Fdt=1e4,HBr=lt.z.union([lt.z.array(lt.z.number()),lt.z.string()]),jBr=lt.z.union([lt.z.string(),lt.z.number(),lt.z.bigint(),lt.z.custom(r=>qV.BigNumber.isBigNumber(r)),lt.z.custom(r=>FV.default.isBN(r))]).transform(r=>{let e=FV.default.isBN(r)?new FV.default(r).toString():qV.BigNumber.from(r).toString();return qV.BigNumber.from(e)});jBr.transform(r=>r.toString());var Wdt=lt.z.union([lt.z.bigint(),lt.z.custom(r=>qV.BigNumber.isBigNumber(r)),lt.z.custom(r=>FV.default.isBN(r))]).transform(r=>FV.default.isBN(r)?new FV.default(r).toString():qV.BigNumber.from(r).toString()),zBr=lt.z.number().max(Fdt,"Cannot exceed 100%").min(0,"Cannot be below 0%"),KBr=lt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),GBr=lt.z.union([lt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),lt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),lt.z.string().length(0)]),Udt=lt.z.union([lt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),lt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),VBr=lt.z.union([Udt,lt.z.literal("unlimited")]).default("unlimited"),Hdt=lt.z.date().transform(r=>qV.BigNumber.from(Math.floor(r.getTime()/1e3)));Hdt.default(new Date(0));Hdt.default(new Date(Date.now()+1e3*60*60*24*365*10));function YBr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function $Br(r){var e=YBr(r,"string");return typeof e=="symbol"?e:String(e)}function QBr(r,e,t){return e=$Br(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Ldt=lt.z.object({}).catchall(lt.z.union([Wdt,lt.z.unknown()])),Odt=lt.z.union([lt.z.array(Ldt),Ldt]).optional().nullable(),cCe=lt.z.object({name:lt.z.union([lt.z.string(),lt.z.number()]).optional().nullable(),description:lt.z.string().nullable().optional().nullable(),image:Fhe.nullable().optional(),external_url:Fhe.nullable().optional(),animation_url:Fhe.optional().nullable(),background_color:GBr.optional().nullable(),properties:Odt,attributes:Odt}).catchall(lt.z.union([Wdt,lt.z.unknown()])),JBr=lt.z.union([cCe,lt.z.string()]),ZBr=cCe.extend({id:lt.z.string(),uri:lt.z.string(),image:lt.z.string().nullable().optional(),external_url:lt.z.string().nullable().optional(),animation_url:lt.z.string().nullable().optional()}),oCe=100,XBr=lt.z.object({start:lt.z.number().default(0),count:lt.z.number().default(oCe)}).default({start:0,count:oCe});vu.AmountSchema=Udt;vu.BasisPointsSchema=zBr;vu.BytesLikeSchema=HBr;vu.CommonNFTInput=cCe;vu.CommonNFTOutput=ZBr;vu.DEFAULT_API_KEY=qdt;vu.DEFAULT_QUERY_ALL_COUNT=oCe;vu.FileOrBufferOrStringSchema=Fhe;vu.MAX_BPS=Fdt;vu.NFTInputOrUriSchema=JBr;vu.PercentSchema=KBr;vu.QuantitySchema=VBr;vu.QueryAllParamsSchema=XBr;vu._defineProperty=QBr;vu.getRpcUrl=FBr});var lCe=_(jdt=>{"use strict";d();p();var eDr=Ei(),tDr=je(),uCe=class{constructor(e){eDr._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&tDr.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};jdt.DropErc1155History=uCe});var yee=_(zdt=>{"use strict";d();p();var S2=Ei(),Whe=ls(),dCe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;S2._defineProperty(this,"contractWrapper",void 0),S2._defineProperty(this,"storage",void 0),S2._defineProperty(this,"erc1155",void 0),S2._defineProperty(this,"_chainId",void 0),S2._defineProperty(this,"transfer",Whe.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),S2._defineProperty(this,"setApprovalForAll",Whe.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),S2._defineProperty(this,"airdrop",Whe.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new Whe.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};zdt.StandardErc1155=dCe});var bee=_(WV=>{"use strict";d();p();var rDr=Ei(),nDr=Gr(),gee=ls();function aDr(r){return r&&r.__esModule?r:{default:r}}var hCe=aDr(nDr),iDr="https://paper.xyz/api",sDr="2022-08-12",fCe=`${iDr}/${sDr}/platform/thirdweb`,Kdt={[gee.ChainId.Mainnet]:"Ethereum",[gee.ChainId.Goerli]:"Goerli",[gee.ChainId.Polygon]:"Polygon",[gee.ChainId.Mumbai]:"Mumbai",[gee.ChainId.Avalanche]:"Avalanche"};function Gdt(r){return hCe.default(r in Kdt,`chainId not supported by paper: ${r}`),Kdt[r]}async function Vdt(r,e){let t=Gdt(e),a=await(await fetch(`${fCe}/register-contract?contractAddress=${r}&chain=${t}`)).json();return hCe.default(a.result.id,"Contract is not registered with paper"),a.result.id}var oDr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Ydt(r,e){let n=await(await fetch(`${fCe}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...oDr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return hCe.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var pCe=class{constructor(e){rDr._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Vdt(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Ydt(await this.getCheckoutId(),e)}};WV.PAPER_API_URL=fCe;WV.PaperCheckout=pCe;WV.createCheckoutLinkIntent=Ydt;WV.fetchRegisteredCheckoutId=Vdt;WV.parseChainIdToPaperChain=Gdt});var Qdt=_($dt=>{"use strict";d();p();var Ys=Ei(),As=ls(),cDr=lCe(),uDr=yee(),lDr=bee(),dDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var UV=class extends uDr.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new As.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ys._defineProperty(this,"abi",void 0),Ys._defineProperty(this,"sales",void 0),Ys._defineProperty(this,"platformFees",void 0),Ys._defineProperty(this,"encoder",void 0),Ys._defineProperty(this,"estimator",void 0),Ys._defineProperty(this,"events",void 0),Ys._defineProperty(this,"metadata",void 0),Ys._defineProperty(this,"app",void 0),Ys._defineProperty(this,"roles",void 0),Ys._defineProperty(this,"royalties",void 0),Ys._defineProperty(this,"claimConditions",void 0),Ys._defineProperty(this,"checkout",void 0),Ys._defineProperty(this,"history",void 0),Ys._defineProperty(this,"interceptor",void 0),Ys._defineProperty(this,"owner",void 0),Ys._defineProperty(this,"createBatch",As.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ys._defineProperty(this,"claimTo",As.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ys._defineProperty(this,"claim",As.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ys._defineProperty(this,"burnTokens",As.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=As.AbiSchema.parse(s),this.metadata=new As.ContractMetadata(this.contractWrapper,As.DropErc1155ContractSchema,this.storage),this.app=new As.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new As.ContractRoles(this.contractWrapper,UV.contractRoles),this.royalties=new As.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new As.ContractPrimarySale(this.contractWrapper),this.claimConditions=new As.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new As.ContractEvents(this.contractWrapper),this.history=new cDr.DropErc1155History(this.events),this.encoder=new As.ContractEncoder(this.contractWrapper),this.estimator=new As.GasCostEstimator(this.contractWrapper),this.platformFees=new As.ContractPlatformFee(this.contractWrapper),this.interceptor=new As.ContractInterceptor(this.contractWrapper),this.checkout=new lDr.PaperCheckout(this.contractWrapper),this.owner=new As.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(As.getRoleHash("transfer"),dDr.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return As.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ys._defineProperty(UV,"contractRoles",["admin","minter","transfer"]);$dt.EditionDrop=UV});var Zdt=_(Jdt=>{"use strict";d();p();var Ps=Ei(),Ci=ls(),pDr=yee(),hDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var HV=class extends pDr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ci.ContractWrapper(e,t,i,a);super(o,n,s),Ps._defineProperty(this,"abi",void 0),Ps._defineProperty(this,"metadata",void 0),Ps._defineProperty(this,"app",void 0),Ps._defineProperty(this,"roles",void 0),Ps._defineProperty(this,"sales",void 0),Ps._defineProperty(this,"platformFees",void 0),Ps._defineProperty(this,"encoder",void 0),Ps._defineProperty(this,"estimator",void 0),Ps._defineProperty(this,"events",void 0),Ps._defineProperty(this,"royalties",void 0),Ps._defineProperty(this,"signature",void 0),Ps._defineProperty(this,"interceptor",void 0),Ps._defineProperty(this,"owner",void 0),Ps._defineProperty(this,"mint",Ci.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),Ps._defineProperty(this,"mintTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),Ps._defineProperty(this,"mintAdditionalSupply",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),Ps._defineProperty(this,"mintAdditionalSupplyTo",Ci.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),Ps._defineProperty(this,"mintBatch",Ci.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),Ps._defineProperty(this,"mintBatchTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),Ps._defineProperty(this,"burn",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=Ci.AbiSchema.parse(i||[]),this.metadata=new Ci.ContractMetadata(this.contractWrapper,Ci.TokenErc1155ContractSchema,this.storage),this.app=new Ci.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ci.ContractRoles(this.contractWrapper,HV.contractRoles),this.royalties=new Ci.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ci.ContractPrimarySale(this.contractWrapper),this.encoder=new Ci.ContractEncoder(this.contractWrapper),this.estimator=new Ci.GasCostEstimator(this.contractWrapper),this.events=new Ci.ContractEvents(this.contractWrapper),this.platformFees=new Ci.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ci.ContractInterceptor(this.contractWrapper),this.signature=new Ci.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.owner=new Ci.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ci.getRoleHash("transfer"),hDr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return Ci.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ps._defineProperty(HV,"contractRoles",["admin","minter","transfer"]);Jdt.Edition=HV});var gCe=_(jhe=>{"use strict";d();p();var Yo=Ei(),Ve=ls(),fDr=mn(),mDr=pn(),yDr=hn(),lr=je(),gDr=Gr();function Hhe(r){return r&&r.__esModule?r:{default:r}}var bDr=Hhe(fDr),vDr=Hhe(mDr),wDr=Hhe(yDr),Uhe=Hhe(gDr),R2=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),mCe=class{constructor(e,t){Yo._defineProperty(this,"contractWrapper",void 0),Yo._defineProperty(this,"storage",void 0),Yo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Yo._defineProperty(this,"makeOffer",Ve.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ve.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=lr.BigNumber.from(a),l=lr.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ve.setErc20Allowance(this.contractWrapper,l,i,h);let f=lr.ethers.constants.MaxUint256;return o&&(f=lr.BigNumber.from(Math.floor(o.getTime()/1e3))),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Yo._defineProperty(this,"acceptOffer",Ve.buildTransactionFunction(async(n,a)=>{await this.validateListing(lr.BigNumber.from(n));let i=await Ve.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Yo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(lr.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=lr.BigNumber.from(a),h=lr.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Yo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ve.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Yo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===lr.constants.AddressZero)throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==R2.Direct)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(lr.BigNumber.from(e)),Uhe.default(lr.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ve.resolveAddress(t));if(n.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:R2.Direct}}async isStillValidListing(e,t){if(!await Ve.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new lr.Contract(e.assetContractAddress,bDr.default,a),s=await i.supportsInterface(Ve.InterfaceId_IERC721),o=await i.supportsInterface(Ve.InterfaceId_IERC1155);if(s){let u=(await new lr.Contract(e.assetContractAddress,vDr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new lr.Contract(e.assetContractAddress,wDr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},yCe=class{constructor(e,t){Yo._defineProperty(this,"contractWrapper",void 0),Yo._defineProperty(this,"storage",void 0),Yo._defineProperty(this,"encoder",void 0),Yo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Yo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=await Ve.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,lr.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Yo._defineProperty(this,"makeBid",Ve.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(lr.BigNumber.from(n)),s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(lr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ve.isWinningBid(c.pricePerToken,s,o);Uhe.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=lr.BigNumber.from(i.reservePrice);Uhe.default(f.gte(m),"Bid price is too low based on reserve price")}let u=lr.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,lr.ethers.constants.MaxUint256],overrides:h})})),Yo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=lr.BigNumber.from(Math.floor(Date.now()/1e3)),s=lr.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==lr.constants.AddressZero)throw new Ve.AuctionAlreadyStartedError(n.toString());return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Yo._defineProperty(this,"closeListing",Ve.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(lr.BigNumber.from(n));try{return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Yo._defineProperty(this,"executeSale",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n));try{let i=await this.getWinningBid(n);Uhe.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Yo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ve.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==R2.Auction)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(lr.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(lr.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=lr.BigNumber.from(Math.floor(Date.now()/1e3)),i=lr.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==lr.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(lr.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(lr.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:lr.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:R2.Auction}}};jhe.ListingType=R2;jhe.MarketplaceAuction=yCe;jhe.MarketplaceDirect=mCe});var tpt=_(ept=>{"use strict";d();p();var Vi=Ei(),an=ls(),Dh=gCe(),od=je(),xDr=Gr();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function _Dr(r){return r&&r.__esModule?r:{default:r}}var Xdt=_Dr(xDr),jV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new an.ContractWrapper(e,t,i,a);Vi._defineProperty(this,"abi",void 0),Vi._defineProperty(this,"contractWrapper",void 0),Vi._defineProperty(this,"storage",void 0),Vi._defineProperty(this,"encoder",void 0),Vi._defineProperty(this,"events",void 0),Vi._defineProperty(this,"estimator",void 0),Vi._defineProperty(this,"platformFees",void 0),Vi._defineProperty(this,"metadata",void 0),Vi._defineProperty(this,"app",void 0),Vi._defineProperty(this,"roles",void 0),Vi._defineProperty(this,"interceptor",void 0),Vi._defineProperty(this,"direct",void 0),Vi._defineProperty(this,"auction",void 0),Vi._defineProperty(this,"_chainId",void 0),Vi._defineProperty(this,"getAll",this.getAllListings),Vi._defineProperty(this,"buyoutListing",an.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new an.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Dh.ListingType.Direct:return Xdt.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Dh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Vi._defineProperty(this,"makeOffer",an.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new an.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Dh.ListingType.Direct:return Xdt.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,an.isNativeToken(h.currency)?an.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Dh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Vi._defineProperty(this,"setBidBufferBps",an.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,od.BigNumber.from(c)]})})),Vi._defineProperty(this,"setTimeBufferInSeconds",an.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[od.BigNumber.from(c),u]})})),Vi._defineProperty(this,"allowListingFromSpecificAssetOnly",an.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(od.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[an.getRoleHash("asset"),od.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[an.getRoleHash("asset"),c])),an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Vi._defineProperty(this,"allowListingFromAnyAsset",an.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[an.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[an.getRoleHash("asset"),od.constants.AddressZero])),an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=an.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new an.ContractMetadata(this.contractWrapper,an.MarketplaceContractSchema,this.storage),this.app=new an.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new an.ContractRoles(this.contractWrapper,jV.contractRoles),this.encoder=new an.ContractEncoder(this.contractWrapper),this.estimator=new an.GasCostEstimator(this.contractWrapper),this.direct=new Dh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Dh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new an.ContractEvents(this.contractWrapper),this.platformFees=new an.ContractPlatformFee(this.contractWrapper),this.interceptor=new an.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===od.constants.AddressZero)throw new an.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Dh.ListingType.Auction:return await this.auction.mapListing(t);case Dh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=od.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Dh.ListingType.Auction&&od.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&od.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Dh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(an.getRoleHash("lister"),od.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await an.mapOffer(this.contractWrapper.getProvider(),od.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof an.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Dh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=od.BigNumber.from(t?.start||0).toNumber(),i=od.BigNumber.from(t?.count||Vi.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Vi._defineProperty(jV,"contractRoles",["admin","lister","asset"]);ept.Marketplace=jV});var npt=_(rpt=>{"use strict";d();p();var cd=Ei(),ki=ls();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var zV=class{get directListings(){return ki.assertEnabled(this.detectDirectListings(),ki.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return ki.assertEnabled(this.detectEnglishAuctions(),ki.FEATURE_ENGLISH_AUCTIONS)}get offers(){return ki.assertEnabled(this.detectOffers(),ki.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ki.ContractWrapper(e,t,i,a);cd._defineProperty(this,"abi",void 0),cd._defineProperty(this,"contractWrapper",void 0),cd._defineProperty(this,"storage",void 0),cd._defineProperty(this,"encoder",void 0),cd._defineProperty(this,"events",void 0),cd._defineProperty(this,"estimator",void 0),cd._defineProperty(this,"platformFees",void 0),cd._defineProperty(this,"metadata",void 0),cd._defineProperty(this,"app",void 0),cd._defineProperty(this,"roles",void 0),cd._defineProperty(this,"interceptor",void 0),cd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=ki.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new ki.ContractMetadata(this.contractWrapper,ki.MarketplaceContractSchema,this.storage),this.app=new ki.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ki.ContractRoles(this.contractWrapper,zV.contractRoles),this.encoder=new ki.ContractEncoder(this.contractWrapper),this.estimator=new ki.GasCostEstimator(this.contractWrapper),this.events=new ki.ContractEvents(this.contractWrapper),this.platformFees=new ki.ContractPlatformFee(this.contractWrapper),this.interceptor=new ki.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return ki.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectDirectListings(){if(ki.detectContractFeature(this.contractWrapper,"DirectListings"))return new ki.MarketplaceV3DirectListings(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(ki.detectContractFeature(this.contractWrapper,"EnglishAuctions"))return new ki.MarketplaceV3EnglishAuctions(this.contractWrapper,this.storage)}detectOffers(){if(ki.detectContractFeature(this.contractWrapper,"Offers"))return new ki.MarketplaceV3Offers(this.contractWrapper,this.storage)}};cd._defineProperty(zV,"contractRoles",["admin","lister","asset"]);rpt.MarketplaceV3=zV});var KV=_(apt=>{"use strict";d();p();var M2=Ei(),Fg=ls(),bCe=class{get chainId(){return this._chainId}constructor(e,t,n){M2._defineProperty(this,"contractWrapper",void 0),M2._defineProperty(this,"storage",void 0),M2._defineProperty(this,"erc721",void 0),M2._defineProperty(this,"_chainId",void 0),M2._defineProperty(this,"transfer",Fg.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),M2._defineProperty(this,"setApprovalForAll",Fg.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),M2._defineProperty(this,"setApprovalForToken",Fg.buildTransactionFunction(async(a,i)=>Fg.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Fg.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new Fg.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await Fg.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await Fg.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};apt.StandardErc721=bCe});var spt=_(ipt=>{"use strict";d();p();var xp=Ei(),Ai=ls(),TDr=KV(),IDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var GV=class extends TDr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ai.ContractWrapper(e,t,i,a);super(o,n,s),xp._defineProperty(this,"abi",void 0),xp._defineProperty(this,"encoder",void 0),xp._defineProperty(this,"estimator",void 0),xp._defineProperty(this,"metadata",void 0),xp._defineProperty(this,"app",void 0),xp._defineProperty(this,"events",void 0),xp._defineProperty(this,"roles",void 0),xp._defineProperty(this,"royalties",void 0),xp._defineProperty(this,"owner",void 0),xp._defineProperty(this,"wrap",Ai.buildTransactionFunction(async(c,u,l)=>{let h=await Ai.uploadOrExtractURI(u,this.storage),f=await Ai.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Ai.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let I=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(I.length===0)throw new Error("TokensWrapped event not found");let C=I[0].args.tokenIdOfWrappedToken;return{id:C,receipt:y,data:()=>this.get(C)}}})})),xp._defineProperty(this,"unwrap",Ai.buildTransactionFunction(async(c,u)=>{let l=await Ai.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Ai.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=Ai.AbiSchema.parse(i||[]),this.metadata=new Ai.ContractMetadata(this.contractWrapper,Ai.MultiwrapContractSchema,this.storage),this.app=new Ai.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ai.ContractRoles(this.contractWrapper,GV.contractRoles),this.encoder=new Ai.ContractEncoder(this.contractWrapper),this.estimator=new Ai.GasCostEstimator(this.contractWrapper),this.events=new Ai.ContractEvents(this.contractWrapper),this.royalties=new Ai.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Ai.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Ai.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:IDr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Ai.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Ai.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Mi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Ai.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Mi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Ai.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async prepare(e,t,n){return Mi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Zs=Pi(),Xi=ms(),mMr=Tx(),yMr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Cx=class extends mMr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Xi.ContractWrapper(e,t,i,a);super(o,n,s),Zs._defineProperty(this,"abi",void 0),Zs._defineProperty(this,"metadata",void 0),Zs._defineProperty(this,"app",void 0),Zs._defineProperty(this,"roles",void 0),Zs._defineProperty(this,"encoder",void 0),Zs._defineProperty(this,"estimator",void 0),Zs._defineProperty(this,"events",void 0),Zs._defineProperty(this,"sales",void 0),Zs._defineProperty(this,"platformFees",void 0),Zs._defineProperty(this,"royalties",void 0),Zs._defineProperty(this,"owner",void 0),Zs._defineProperty(this,"signature",void 0),Zs._defineProperty(this,"interceptor",void 0),Zs._defineProperty(this,"erc721",void 0),Zs._defineProperty(this,"mint",Xi.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Zs._defineProperty(this,"mintTo",Xi.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Zs._defineProperty(this,"mintBatch",Xi.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Zs._defineProperty(this,"mintBatchTo",Xi.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Zs._defineProperty(this,"burn",Xi.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=Xi.AbiSchema.parse(i||[]),this.metadata=new Xi.ContractMetadata(this.contractWrapper,Xi.TokenErc721ContractSchema,this.storage),this.app=new Xi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Xi.ContractRoles(this.contractWrapper,Cx.contractRoles),this.royalties=new Xi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Xi.ContractPrimarySale(this.contractWrapper),this.encoder=new Xi.ContractEncoder(this.contractWrapper),this.estimator=new Xi.GasCostEstimator(this.contractWrapper),this.events=new Xi.ContractEvents(this.contractWrapper),this.platformFees=new Xi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Xi.ContractInterceptor(this.contractWrapper),this.erc721=new Xi.Erc721(this.contractWrapper,this.storage,s),this.signature=new Xi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new Xi.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Xi.getRoleHash("transfer"),yMr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return Xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var si=Pi(),za=ms(),gMr=Tx(),bMr=J8(),r2=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Ix=class extends gMr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new za.ContractWrapper(e,t,s,i);super(c,n,o),a=this,si._defineProperty(this,"abi",void 0),si._defineProperty(this,"encoder",void 0),si._defineProperty(this,"estimator",void 0),si._defineProperty(this,"metadata",void 0),si._defineProperty(this,"app",void 0),si._defineProperty(this,"sales",void 0),si._defineProperty(this,"platformFees",void 0),si._defineProperty(this,"events",void 0),si._defineProperty(this,"roles",void 0),si._defineProperty(this,"interceptor",void 0),si._defineProperty(this,"royalties",void 0),si._defineProperty(this,"claimConditions",void 0),si._defineProperty(this,"revealer",void 0),si._defineProperty(this,"checkout",void 0),si._defineProperty(this,"erc721",void 0),si._defineProperty(this,"owner",void 0),si._defineProperty(this,"createBatch",za.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),si._defineProperty(this,"claimTo",za.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),si._defineProperty(this,"claim",za.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),si._defineProperty(this,"burn",za.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),si._defineProperty(this,"transfer",za.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),si._defineProperty(this,"setApprovalForAll",za.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),si._defineProperty(this,"setApprovalForToken",za.buildTransactionFunction(async(u,l)=>za.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=za.AbiSchema.parse(s||[]),this.metadata=new za.ContractMetadata(this.contractWrapper,za.DropErc721ContractSchema,this.storage),this.app=new za.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new za.ContractRoles(this.contractWrapper,Ix.contractRoles),this.royalties=new za.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new za.ContractPrimarySale(this.contractWrapper),this.claimConditions=new za.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new za.ContractEncoder(this.contractWrapper),this.estimator=new za.GasCostEstimator(this.contractWrapper),this.events=new za.ContractEvents(this.contractWrapper),this.platformFees=new za.ContractPlatformFee(this.contractWrapper),this.erc721=new za.Erc721(this.contractWrapper,this.storage,o),this.revealer=new za.DelayedReveal(this.contractWrapper,this.storage,za.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new za.ContractInterceptor(this.contractWrapper),this.owner=new za.ContractOwner(this.contractWrapper),this.checkout=new bMr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=r2.BigNumber.from(e?.start||0).toNumber(),n=r2.BigNumber.from(e?.count||si.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=r2.BigNumber.from(e?.start||0).toNumber(),n=r2.BigNumber.from(e?.count||si.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=r2.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=r2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(za.getRoleHash("transfer"),r2.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return za.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Xa=Pi(),Et=ms(),vMr=$8(),wMr=see(),_Mr=sa(),Ep=je(),q0=kr();Ir();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function Dlt(r){return r&&r.__esModule?r:{default:r}}var xMr=Dlt(wMr),TMr=Dlt(_Mr),xre=q0.z.object({contractAddress:Et.AddressOrEnsSchema}),EMr=xre.extend({quantity:Xa.AmountSchema}),CMr=xre.extend({tokenId:Et.BigNumberishSchema}),IMr=xre.extend({tokenId:Et.BigNumberishSchema,quantity:Et.BigNumberishSchema}),Olt=EMr.omit({quantity:!0}).extend({quantityPerReward:Xa.AmountSchema}),Llt=CMr,Flt=IMr.omit({quantity:!0}).extend({quantityPerReward:Et.BigNumberishSchema}),kMr=Olt.extend({totalRewards:Et.BigNumberishSchema.default("1")}),AMr=Llt,SMr=Flt.extend({totalRewards:Et.BigNumberishSchema.default("1")});q0.z.object({erc20Rewards:q0.z.array(Olt).default([]),erc721Rewards:q0.z.array(Llt).default([]),erc1155Rewards:q0.z.array(Flt).default([])});var qlt=q0.z.object({erc20Rewards:q0.z.array(kMr).default([]),erc721Rewards:q0.z.array(AMr).default([]),erc1155Rewards:q0.z.array(SMr).default([])}),PMr=qlt.extend({packMetadata:Xa.NFTInputOrUriSchema,rewardsPerPack:Et.BigNumberishSchema.default("1"),openStartTime:Et.RawDateSchema.default(new Date)}),_re=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Et.ContractWrapper(e,t,TMr.default,a);Xa._defineProperty(this,"featureName",Et.FEATURE_PACK_VRF.name),Xa._defineProperty(this,"contractWrapper",void 0),Xa._defineProperty(this,"storage",void 0),Xa._defineProperty(this,"chainId",void 0),Xa._defineProperty(this,"events",void 0),Xa._defineProperty(this,"open",Et.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Et.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=Ep.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),Xa._defineProperty(this,"claimRewards",Et.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Et.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Et.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Et.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:Ep.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Et.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:Ep.BigNumber.from(5e5)}),i=Ep.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Et.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Et.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,xMr.default,this.contractWrapper.options);return new Et.Erc20(t,this.storage,this.chainId)}},kx=class extends vMr.StandardErc1155{get vrf(){return Et.assertEnabled(this._vrf,Et.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Et.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,Xa._defineProperty(this,"abi",void 0),Xa._defineProperty(this,"metadata",void 0),Xa._defineProperty(this,"app",void 0),Xa._defineProperty(this,"roles",void 0),Xa._defineProperty(this,"encoder",void 0),Xa._defineProperty(this,"events",void 0),Xa._defineProperty(this,"estimator",void 0),Xa._defineProperty(this,"royalties",void 0),Xa._defineProperty(this,"interceptor",void 0),Xa._defineProperty(this,"erc1155",void 0),Xa._defineProperty(this,"owner",void 0),Xa._defineProperty(this,"_vrf",void 0),Xa._defineProperty(this,"create",Et.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),Xa._defineProperty(this,"addPackContents",Et.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await qlt.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Et.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:E=>{let I=this.contractWrapper.parseLogs("PackUpdated",E?.logs);if(I.length===0)throw new Error("PackUpdated event not found");let S=I[0].args.packId;return{id:S,receipt:E,data:()=>this.erc1155.get(S)}}})})),Xa._defineProperty(this,"createTo",Et.buildTransactionFunction(async(u,l)=>{let h=await Et.uploadOrExtractURI(l.packMetadata,this.storage),f=await PMr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E}=f,I={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E},{contents:S,numOfRewardUnits:L}=await this.toPackContentArgs(I);return Et.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[S,L,h,f.openStartTime,f.rewardsPerPack,await Et.resolveAddress(u)],parse:q=>{let W=this.contractWrapper.parseLogs("PackCreated",q?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:q,data:()=>this.erc1155.get(V)}}})})),Xa._defineProperty(this,"open",Et.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Et.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,E=[],I=[],S=[];for(let L of y)switch(L.tokenType){case 0:{let q=await Et.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);E.push({contractAddress:L.assetContract,quantityPerReward:Ep.ethers.utils.formatUnits(L.totalAmount,q.decimals).toString()});break}case 1:{I.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{S.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:E,erc721Rewards:I,erc1155Rewards:S}}})})),this.abi=Et.AbiSchema.parse(s||[]),this.erc1155=new Et.Erc1155(this.contractWrapper,this.storage,o),this.metadata=new Et.ContractMetadata(this.contractWrapper,Et.PackContractSchema,this.storage),this.app=new Et.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Et.ContractRoles(this.contractWrapper,kx.contractRoles),this.royalties=new Et.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Et.ContractEncoder(this.contractWrapper),this.estimator=new Et.GasCostEstimator(this.contractWrapper),this.events=new Et.ContractEvents(this.contractWrapper),this.interceptor=new Et.ContractInterceptor(this.contractWrapper),this.owner=new Et.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Et.getRoleHash("transfer"),Ep.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o{"use strict";d();p();var go=Ei(),ds=ls(),EDr=KV(),CDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var VV=class extends EDr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ds.ContractWrapper(e,t,i,a);super(o,n,s),go._defineProperty(this,"abi",void 0),go._defineProperty(this,"metadata",void 0),go._defineProperty(this,"app",void 0),go._defineProperty(this,"roles",void 0),go._defineProperty(this,"encoder",void 0),go._defineProperty(this,"estimator",void 0),go._defineProperty(this,"events",void 0),go._defineProperty(this,"sales",void 0),go._defineProperty(this,"platformFees",void 0),go._defineProperty(this,"royalties",void 0),go._defineProperty(this,"owner",void 0),go._defineProperty(this,"signature",void 0),go._defineProperty(this,"interceptor",void 0),go._defineProperty(this,"mint",ds.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),go._defineProperty(this,"mintTo",ds.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),go._defineProperty(this,"mintBatch",ds.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),go._defineProperty(this,"mintBatchTo",ds.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),go._defineProperty(this,"burn",ds.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=ds.AbiSchema.parse(i||[]),this.metadata=new ds.ContractMetadata(this.contractWrapper,ds.TokenErc721ContractSchema,this.storage),this.app=new ds.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ds.ContractRoles(this.contractWrapper,VV.contractRoles),this.royalties=new ds.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ds.ContractPrimarySale(this.contractWrapper),this.encoder=new ds.ContractEncoder(this.contractWrapper),this.estimator=new ds.GasCostEstimator(this.contractWrapper),this.events=new ds.ContractEvents(this.contractWrapper),this.platformFees=new ds.ContractPlatformFee(this.contractWrapper),this.interceptor=new ds.ContractInterceptor(this.contractWrapper),this.signature=new ds.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ds.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ds.getRoleHash("transfer"),CDr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return ds.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};go._defineProperty(VV,"contractRoles",["admin","minter","transfer"]);opt.NFTCollection=VV});var lpt=_(upt=>{"use strict";d();p();var li=Ei(),$a=ls(),kDr=KV(),ADr=bee(),N2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var YV=class extends kDr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $a.ContractWrapper(e,t,s,i);super(c,n,o),a=this,li._defineProperty(this,"abi",void 0),li._defineProperty(this,"encoder",void 0),li._defineProperty(this,"estimator",void 0),li._defineProperty(this,"metadata",void 0),li._defineProperty(this,"app",void 0),li._defineProperty(this,"sales",void 0),li._defineProperty(this,"platformFees",void 0),li._defineProperty(this,"events",void 0),li._defineProperty(this,"roles",void 0),li._defineProperty(this,"interceptor",void 0),li._defineProperty(this,"royalties",void 0),li._defineProperty(this,"claimConditions",void 0),li._defineProperty(this,"revealer",void 0),li._defineProperty(this,"checkout",void 0),li._defineProperty(this,"owner",void 0),li._defineProperty(this,"createBatch",$a.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),li._defineProperty(this,"claimTo",$a.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),li._defineProperty(this,"claim",$a.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),li._defineProperty(this,"burn",$a.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),li._defineProperty(this,"transfer",$a.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),li._defineProperty(this,"setApprovalForAll",$a.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),li._defineProperty(this,"setApprovalForToken",$a.buildTransactionFunction(async(u,l)=>$a.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=$a.AbiSchema.parse(s||[]),this.metadata=new $a.ContractMetadata(this.contractWrapper,$a.DropErc721ContractSchema,this.storage),this.app=new $a.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new $a.ContractRoles(this.contractWrapper,YV.contractRoles),this.royalties=new $a.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new $a.ContractPrimarySale(this.contractWrapper),this.claimConditions=new $a.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new $a.ContractEncoder(this.contractWrapper),this.estimator=new $a.GasCostEstimator(this.contractWrapper),this.events=new $a.ContractEvents(this.contractWrapper),this.platformFees=new $a.ContractPlatformFee(this.contractWrapper),this.revealer=new $a.DelayedReveal(this.contractWrapper,this.storage,$a.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new $a.ContractInterceptor(this.contractWrapper),this.owner=new $a.ContractOwner(this.contractWrapper),this.checkout=new ADr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=N2.BigNumber.from(e?.start||0).toNumber(),n=N2.BigNumber.from(e?.count||li.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=N2.BigNumber.from(e?.start||0).toNumber(),n=N2.BigNumber.from(e?.count||li.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=N2.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=N2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole($a.getRoleHash("transfer"),N2.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return $a.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};li._defineProperty(YV,"contractRoles",["admin","minter","transfer"]);upt.NFTDrop=YV});var gpt=_(ypt=>{"use strict";d();p();var ti=Ei(),Mt=ls(),PDr=yee(),SDr=sIe(),RDr=sa(),_p=je(),O0=kr();Cr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function dpt(r){return r&&r.__esModule?r:{default:r}}var MDr=dpt(SDr),NDr=dpt(RDr),wCe=O0.z.object({contractAddress:Mt.AddressOrEnsSchema}),BDr=wCe.extend({quantity:ti.AmountSchema}),DDr=wCe.extend({tokenId:Mt.BigNumberishSchema}),LDr=wCe.extend({tokenId:Mt.BigNumberishSchema,quantity:Mt.BigNumberishSchema}),ppt=BDr.omit({quantity:!0}).extend({quantityPerReward:ti.AmountSchema}),hpt=DDr,fpt=LDr.omit({quantity:!0}).extend({quantityPerReward:Mt.BigNumberishSchema}),ODr=ppt.extend({totalRewards:Mt.BigNumberishSchema.default("1")}),qDr=hpt,FDr=fpt.extend({totalRewards:Mt.BigNumberishSchema.default("1")});O0.z.object({erc20Rewards:O0.z.array(ppt).default([]),erc721Rewards:O0.z.array(hpt).default([]),erc1155Rewards:O0.z.array(fpt).default([])});var mpt=O0.z.object({erc20Rewards:O0.z.array(ODr).default([]),erc721Rewards:O0.z.array(qDr).default([]),erc1155Rewards:O0.z.array(FDr).default([])}),WDr=mpt.extend({packMetadata:ti.NFTInputOrUriSchema,rewardsPerPack:Mt.BigNumberishSchema.default("1"),openStartTime:Mt.RawDateSchema.default(new Date)}),vCe=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Mt.ContractWrapper(e,t,NDr.default,a);ti._defineProperty(this,"featureName",Mt.FEATURE_PACK_VRF.name),ti._defineProperty(this,"contractWrapper",void 0),ti._defineProperty(this,"storage",void 0),ti._defineProperty(this,"chainId",void 0),ti._defineProperty(this,"events",void 0),ti._defineProperty(this,"open",Mt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=_p.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),ti._defineProperty(this,"claimRewards",Mt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Mt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Mt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:_p.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Mt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:_p.BigNumber.from(5e5)}),i=_p.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Mt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Mt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,MDr.default,this.contractWrapper.options);return new Mt.Erc20(t,this.storage,this.chainId)}},$V=class extends PDr.StandardErc1155{get vrf(){return Mt.assertEnabled(this._vrf,Mt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Mt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,ti._defineProperty(this,"abi",void 0),ti._defineProperty(this,"metadata",void 0),ti._defineProperty(this,"app",void 0),ti._defineProperty(this,"roles",void 0),ti._defineProperty(this,"encoder",void 0),ti._defineProperty(this,"events",void 0),ti._defineProperty(this,"estimator",void 0),ti._defineProperty(this,"royalties",void 0),ti._defineProperty(this,"interceptor",void 0),ti._defineProperty(this,"owner",void 0),ti._defineProperty(this,"_vrf",void 0),ti._defineProperty(this,"create",Mt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),ti._defineProperty(this,"addPackContents",Mt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await mpt.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:I=>{let C=this.contractWrapper.parseLogs("PackUpdated",I?.logs);if(C.length===0)throw new Error("PackUpdated event not found");let R=C[0].args.packId;return{id:R,receipt:I,data:()=>this.erc1155.get(R)}}})})),ti._defineProperty(this,"createTo",Mt.buildTransactionFunction(async(u,l)=>{let h=await Mt.uploadOrExtractURI(l.packMetadata,this.storage),f=await WDr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I}=f,C={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I},{contents:R,numOfRewardUnits:L}=await this.toPackContentArgs(C);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[R,L,h,f.openStartTime,f.rewardsPerPack,await Mt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:F,data:()=>this.erc1155.get(V)}}})})),ti._defineProperty(this,"open",Mt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Mt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,I=[],C=[],R=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Mt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);I.push({contractAddress:L.assetContract,quantityPerReward:_p.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{C.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{R.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:I,erc721Rewards:C,erc1155Rewards:R}}})})),this.abi=Mt.AbiSchema.parse(s||[]),this.metadata=new Mt.ContractMetadata(this.contractWrapper,Mt.PackContractSchema,this.storage),this.app=new Mt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Mt.ContractRoles(this.contractWrapper,$V.contractRoles),this.royalties=new Mt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Mt.ContractEncoder(this.contractWrapper),this.estimator=new Mt.GasCostEstimator(this.contractWrapper),this.events=new Mt.ContractEvents(this.contractWrapper),this.interceptor=new Mt.ContractInterceptor(this.contractWrapper),this.owner=new Mt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Mt.getRoleHash("transfer"),_p.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o1?t-1:0),a=1;a{"use strict";d();p();var Ni=Pi(),oi=ms(),RMr=Tx(),MMr=J8(),n2=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Ax=class extends RMr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new oi.ContractWrapper(e,t,i,a);super(o,n,s),Ni._defineProperty(this,"abi",void 0),Ni._defineProperty(this,"erc721",void 0),Ni._defineProperty(this,"owner",void 0),Ni._defineProperty(this,"encoder",void 0),Ni._defineProperty(this,"estimator",void 0),Ni._defineProperty(this,"metadata",void 0),Ni._defineProperty(this,"app",void 0),Ni._defineProperty(this,"sales",void 0),Ni._defineProperty(this,"platformFees",void 0),Ni._defineProperty(this,"events",void 0),Ni._defineProperty(this,"roles",void 0),Ni._defineProperty(this,"interceptor",void 0),Ni._defineProperty(this,"royalties",void 0),Ni._defineProperty(this,"claimConditions",void 0),Ni._defineProperty(this,"revealer",void 0),Ni._defineProperty(this,"signature",void 0),Ni._defineProperty(this,"checkout",void 0),Ni._defineProperty(this,"createBatch",oi.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Ni._defineProperty(this,"claimTo",oi.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Ni._defineProperty(this,"claim",oi.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Ni._defineProperty(this,"burn",oi.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=oi.AbiSchema.parse(i||[]),this.metadata=new oi.ContractMetadata(this.contractWrapper,oi.DropErc721ContractSchema,this.storage),this.app=new oi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new oi.ContractRoles(this.contractWrapper,Ax.contractRoles),this.royalties=new oi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new oi.ContractPrimarySale(this.contractWrapper),this.encoder=new oi.ContractEncoder(this.contractWrapper),this.estimator=new oi.GasCostEstimator(this.contractWrapper),this.events=new oi.ContractEvents(this.contractWrapper),this.platformFees=new oi.ContractPlatformFee(this.contractWrapper),this.interceptor=new oi.ContractInterceptor(this.contractWrapper),this.erc721=new oi.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new oi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new oi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new oi.DelayedReveal(this.contractWrapper,this.storage,oi.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new oi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new oi.ContractOwner(this.contractWrapper),this.checkout=new MMr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=n2.BigNumber.from(e?.start||0).toNumber(),n=n2.BigNumber.from(e?.count||Ni.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=n2.BigNumber.from(e?.start||0).toNumber(),n=n2.BigNumber.from(e?.count||Ni.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=n2.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=n2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(oi.getRoleHash("transfer"),n2.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return oi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var wu=Pi(),Ma=ms(),NMr=Sn(),Tre=je();Ir();kr();Tn();En();Cn();In();kn();An();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function BMr(r){return r&&r.__esModule?r:{default:r}}var DMr=BMr(NMr),Sx=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ma.ContractWrapper(e,t,i,a);wu._defineProperty(this,"contractWrapper",void 0),wu._defineProperty(this,"storage",void 0),wu._defineProperty(this,"abi",void 0),wu._defineProperty(this,"metadata",void 0),wu._defineProperty(this,"app",void 0),wu._defineProperty(this,"encoder",void 0),wu._defineProperty(this,"estimator",void 0),wu._defineProperty(this,"events",void 0),wu._defineProperty(this,"roles",void 0),wu._defineProperty(this,"interceptor",void 0),wu._defineProperty(this,"_chainId",void 0),wu._defineProperty(this,"withdraw",Ma.buildTransactionFunction(async c=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ma.resolveAddress(c)]}))),wu._defineProperty(this,"withdrawToken",Ma.buildTransactionFunction(async(c,u)=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ma.resolveAddress(u),await Ma.resolveAddress(c)]}))),wu._defineProperty(this,"distribute",Ma.buildTransactionFunction(async()=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),wu._defineProperty(this,"distributeToken",Ma.buildTransactionFunction(async c=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ma.resolveAddress(c)]}))),this._chainId=s,this.abi=Ma.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ma.ContractMetadata(this.contractWrapper,Ma.SplitsContractSchema,this.storage),this.app=new Ma.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ma.ContractRoles(this.contractWrapper,Sx.contractRoles),this.encoder=new Ma.ContractEncoder(this.contractWrapper),this.estimator=new Ma.GasCostEstimator(this.contractWrapper),this.events=new Ma.ContractEvents(this.contractWrapper),this.interceptor=new Ma.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=Tre.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ma.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ma.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ma.resolveAddress(t),a=await Ma.resolveAddress(e),s=await new Tre.Contract(n,DMr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ma.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ma.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(Tre.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ma.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Px=Pi(),Ere=ms(),Cre=class{get chainId(){return this._chainId}constructor(e,t,n){Px._defineProperty(this,"contractWrapper",void 0),Px._defineProperty(this,"storage",void 0),Px._defineProperty(this,"erc20",void 0),Px._defineProperty(this,"_chainId",void 0),Px._defineProperty(this,"transfer",Ere.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Px._defineProperty(this,"transferFrom",Ere.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.erc20=new Ere.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}};Glt.StandardErc20=Cre});var $lt=x(Vlt=>{"use strict";d();p();var Cc=Pi(),Bi=ms(),OMr=hL(),LMr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Rx=class extends OMr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Bi.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Cc._defineProperty(this,"abi",void 0),Cc._defineProperty(this,"metadata",void 0),Cc._defineProperty(this,"app",void 0),Cc._defineProperty(this,"roles",void 0),Cc._defineProperty(this,"encoder",void 0),Cc._defineProperty(this,"estimator",void 0),Cc._defineProperty(this,"sales",void 0),Cc._defineProperty(this,"platformFees",void 0),Cc._defineProperty(this,"events",void 0),Cc._defineProperty(this,"claimConditions",void 0),Cc._defineProperty(this,"interceptor",void 0),Cc._defineProperty(this,"claim",Bi.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),Cc._defineProperty(this,"claimTo",Bi.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),Cc._defineProperty(this,"delegateTo",Bi.buildTransactionFunction(async u=>Bi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Bi.resolveAddress(u)]}))),Cc._defineProperty(this,"burnTokens",Bi.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),Cc._defineProperty(this,"burnFrom",Bi.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=Bi.AbiSchema.parse(s||[]),this.metadata=new Bi.ContractMetadata(this.contractWrapper,Bi.DropErc20ContractSchema,this.storage),this.app=new Bi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Bi.ContractRoles(this.contractWrapper,Rx.contractRoles),this.encoder=new Bi.ContractEncoder(this.contractWrapper),this.estimator=new Bi.GasCostEstimator(this.contractWrapper),this.events=new Bi.ContractEvents(this.contractWrapper),this.sales=new Bi.ContractPrimarySale(this.contractWrapper),this.platformFees=new Bi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Bi.ContractInterceptor(this.contractWrapper),this.claimConditions=new Bi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Bi.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Bi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Bi.getRoleHash("transfer"),LMr.constants.AddressZero)}async prepare(e,t,n){return Bi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Ylt=Pi(),FMr=ms(),fL=je(),Ire=class{constructor(e,t){Ylt._defineProperty(this,"events",void 0),Ylt._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==fL.constants.AddressZero&&(i in n||(n[i]=fL.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==fL.constants.AddressZero&&(s in n||(n[s]=fL.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await FMr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};Jlt.TokenERC20History=Ire});var Zlt=x(Qlt=>{"use strict";d();p();var wo=Pi(),Di=ms(),qMr=kre(),WMr=hL(),UMr=je();Ir();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();var Mx=class extends WMr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Di.ContractWrapper(e,t,i,a);super(o,n,s),wo._defineProperty(this,"abi",void 0),wo._defineProperty(this,"metadata",void 0),wo._defineProperty(this,"app",void 0),wo._defineProperty(this,"roles",void 0),wo._defineProperty(this,"encoder",void 0),wo._defineProperty(this,"estimator",void 0),wo._defineProperty(this,"history",void 0),wo._defineProperty(this,"events",void 0),wo._defineProperty(this,"platformFees",void 0),wo._defineProperty(this,"sales",void 0),wo._defineProperty(this,"signature",void 0),wo._defineProperty(this,"interceptor",void 0),wo._defineProperty(this,"mint",Di.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),wo._defineProperty(this,"mintTo",Di.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),wo._defineProperty(this,"mintBatchTo",Di.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),wo._defineProperty(this,"delegateTo",Di.buildTransactionFunction(async c=>Di.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Di.resolveAddress(c)]}))),wo._defineProperty(this,"burn",Di.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),wo._defineProperty(this,"burnFrom",Di.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Di.AbiSchema.parse(i||[]),this.metadata=new Di.ContractMetadata(this.contractWrapper,Di.TokenErc20ContractSchema,this.storage),this.app=new Di.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Di.ContractRoles(this.contractWrapper,Mx.contractRoles),this.sales=new Di.ContractPrimarySale(this.contractWrapper),this.events=new Di.ContractEvents(this.contractWrapper),this.history=new qMr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Di.ContractEncoder(this.contractWrapper),this.estimator=new Di.GasCostEstimator(this.contractWrapper),this.platformFees=new Di.ContractPlatformFee(this.contractWrapper),this.interceptor=new Di.ContractInterceptor(this.contractWrapper),this.signature=new Di.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Di.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Di.getRoleHash("transfer"),UMr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Di.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var HMr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});Xlt.VoteType=HMr});var tdt=x(edt=>{"use strict";d();p();var dd=Pi(),Xs=ms(),jMr=Sn(),Q8=je(),Sre=Are();Ir();kr();Tn();En();Cn();In();kn();An();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();function zMr(r){return r&&r.__esModule?r:{default:r}}var KMr=zMr(jMr),Pre=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Xs.ContractWrapper(e,t,s,i);dd._defineProperty(this,"contractWrapper",void 0),dd._defineProperty(this,"storage",void 0),dd._defineProperty(this,"abi",void 0),dd._defineProperty(this,"metadata",void 0),dd._defineProperty(this,"app",void 0),dd._defineProperty(this,"encoder",void 0),dd._defineProperty(this,"estimator",void 0),dd._defineProperty(this,"events",void 0),dd._defineProperty(this,"interceptor",void 0),dd._defineProperty(this,"_chainId",void 0),dd._defineProperty(this,"propose",Xs.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return Xs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),dd._defineProperty(this,"vote",Xs.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),Xs.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),dd._defineProperty(this,"execute",Xs.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(E=>E.toAddress),f=l.executions.map(E=>E.nativeTokenValue),m=l.executions.map(E=>E.transactionData),y=Q8.ethers.utils.id(l.description);return Xs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=Xs.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new Xs.ContractMetadata(this.contractWrapper,Xs.VoteContractSchema,this.storage),this.app=new Xs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new Xs.ContractEncoder(this.contractWrapper),this.estimator=new Xs.GasCostEstimator(this.contractWrapper),this.events=new Xs.ContractEvents(this.contractWrapper),this.interceptor=new Xs.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(Q8.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:Sre.VoteType.Against,label:"Against",count:t.againstVotes},{type:Sre.VoteType.For,label:"For",count:t.forVotes},{type:Sre.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await Xs.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=Q8.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:Q8.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new Q8.Contract(await Xs.resolveAddress(e),KMr.default,this.contractWrapper.getProvider());return await Xs.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await Xs.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return Xs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var GMr=Tn(),Z=je(),VMr=En(),$Mr=Cn(),YMr=In(),JMr=kn(),QMr=An(),ZMr=Sn(),XMr=Pn(),eNr=Rn(),tNr=Mn(),rNr=Nn(),nNr=Bn(),aNr=Dn(),iNr=On(),sNr=Ln(),oNr=pn(),cNr=Fn(),uNr=qn(),lNr=Wn(),dNr=Un(),pNr=Hn(),hNr=jn(),fNr=zn(),mNr=Kn(),yNr=Gn(),gNr=Vn(),bNr=$n(),vNr=Yn(),wNr=Jn(),_Nr=hn(),xNr=Qn(),TNr=Zn(),ENr=Xn(),CNr=ea(),INr=ta(),kNr=ra(),ANr=na(),SNr=aa(),PNr=ia(),RNr=sa(),MNr=oa(),NNr=ca(),BNr=ua(),DNr=la(),ONr=da(),LNr=pa(),Y=Pi(),pe=kr(),II=vt(),FNr=ha(),qNr=tn(),Bdt=Qe(),WNr=fa(),d2=bn(),UNr=Gr(),HNr=Xr(),jNr=ma(),Rre=ya(),zNr=ga(),KNr=qr(),GNr=mn(),VNr=ba(),$Nr=va(),YNr=wa(),JNr=_a(),QNr=xa(),ZNr=Ta(),rdt=yn(),XNr=Ea(),eBr=Ca();function rt(r){return r&&r.__esModule?r:{default:r}}function Xo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Ane=rt(GMr),tBr=rt(VMr),Ddt=rt($Mr),rBr=rt(YMr),Odt=rt(JMr),Ldt=rt(QMr),_u=rt(ZMr),nBr=rt(XMr),Fdt=rt(eNr),Sne=rt(tNr),aBr=rt(rNr),iBr=rt(nNr),sBr=rt(aNr),qdt=rt(iNr),oBr=rt(sNr),kc=rt(oNr),cBr=rt(cNr),uBr=rt(uNr),Sp=rt(lNr),Wdt=rt(dNr),lBr=rt(pNr),dBr=rt(hNr),pBr=rt(fNr),hBr=rt(mNr),fBr=rt(yNr),mBr=rt(gNr),Udt=rt(bNr),yBr=rt(vNr),gBr=rt(wNr),$u=rt(_Nr),bBr=rt(xNr),Hdt=rt(TNr),vBr=rt(ENr),wBr=rt(CNr),_Br=rt(INr),xBr=rt(kNr),TBr=rt(ANr),EBr=rt(SNr),CBr=rt(PNr),IBr=rt(RNr),kBr=rt(MNr),ABr=rt(NNr),SBr=rt(BNr),PBr=rt(DNr),RBr=rt(ONr),MBr=rt(LNr),NBr=rt(FNr),nI=rt(qNr),Fre=rt(Bdt),jdt=rt(WNr),Ct=rt(UNr),BBr=rt(jNr),zdt=rt(zNr),WF=rt(GNr),DBr=rt(VNr),OBr=rt($Nr),LBr=rt(YNr),FBr=rt(JNr),qBr=rt(QNr),WBr=rt(ZNr),UBr=rt(XNr),HBr=rt(eBr);function jBr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qre(r,e,t){jBr(r,e),e.set(r,t)}function zBr(r,e){return e.get?e.get.call(r):e.value}function Kdt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function vL(r,e){var t=Kdt(r,e,"get");return zBr(r,t)}function KBr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function Wre(r,e,t){var n=Kdt(r,e,"set");return KBr(r,n,t),t}var Be=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),Gdt=[Be.Mainnet,Be.Goerli,Be.Polygon,Be.Mumbai,Be.Fantom,Be.FantomTestnet,Be.Avalanche,Be.AvalancheFujiTestnet,Be.Optimism,Be.OptimismGoerli,Be.Arbitrum,Be.ArbitrumGoerli,Be.BinanceSmartChainMainnet,Be.BinanceSmartChainTestnet,Be.Hardhat,Be.Localhost],Ure=II.defaultChains;function Vdt(r){r&&r.length>0?Ure=r:Ure=II.defaultChains}function $dt(){return Ure}var Ydt="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",H1="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",W1="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",a2="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",GBr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",VBr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",j1={[Be.Mainnet]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:a2,twRegistry:W1,twBYOCRegistry:Z.constants.AddressZero},[Be.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:a2,twRegistry:W1,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Be.Polygon]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:a2,twRegistry:W1,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Be.Mumbai]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:a2,twRegistry:W1,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Be.Avalanche]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:a2,twRegistry:W1,twBYOCRegistry:Z.constants.AddressZero},[Be.AvalancheFujiTestnet]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:a2,twRegistry:W1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Fantom]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:W1,twBYOCRegistry:Z.constants.AddressZero},[Be.FantomTestnet]:{openzeppelinForwarder:H1,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:a2,twRegistry:W1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.Hardhat]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero},[Be.Localhost]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero}},Hre={[Be.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Be.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Be.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Be.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Be.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Be.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Be.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Be.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Be.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Be.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function Jdt(r,e){if(r in Hre){let t=Hre[r];if(e in t)return t[e]}return null}function aI(r,e){return r===Be.Hardhat||r===Be.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Z.constants.AddressZero:j1[r]?.[e]}function Qdt(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:GBr}function jre(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:VBr}function Pne(r){let e=Gdt.find(a=>a===r),t=e?j1[e].biconomyForwarder:Z.constants.AddressZero,n=e?j1[e].openzeppelinForwarder:Z.constants.AddressZero;return t!==Z.constants.AddressZero?[n,t]:[n]}var kI=Z.utils.arrayify("0x80ac58cd"),AI=Z.utils.arrayify("0xd9b67a26"),Vu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",iI={[Be.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Be.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Be.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Be.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Be.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Be.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function wL(r){let e=$dt().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:iI[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var $Br={[Be.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Be.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Be.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Be.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Be.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Be.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Be.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},kl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function UF(r){return!!(r&&r._isSigner)}function Rne(r){return!!(r&&r._isProvider)}function yi(r,e){let t,n;if(UF(r)?(t=r,r.provider&&(n=r.provider)):Rne(r)?n=r:n=sI(r,e),e?.readonlySettings&&(n=xL(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var Zdt=50,Xdt=250,YBr={timeLimitMs:Zdt,sizeLimit:Xdt},zre=class extends Z.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:YBr;super(e,t),Y._defineProperty(this,"_timeLimitMs",void 0),Y._defineProperty(this,"_sizeLimit",void 0),Y._defineProperty(this,"_pendingBatchAggregator",void 0),Y._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||Xdt,this._sizeLimit=n.sizeLimit||Zdt,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Z.utils.deepCopy(e),provider:this}),Z.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},Mre,Nre=new Map;async function ept(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Mre||(Mre=yi("ethereum")[1]);let t;Nre.has(r)?t=Nre.get(r):t=Mre.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>ept(r)).refine(r=>!!r&&Z.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Bs=pe.z.union([pe.z.string(),pe.z.number(),pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r)),eo=Bs.transform(r=>r.toString()),tpt=pe.z.union([pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r).toString()),Mne=pe.z.custom(r=>typeof r=="string"&&Z.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Oi=pe.z.union([Mne,JBr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),SI=pe.z.date().transform(r=>Z.BigNumber.from(Math.floor(r.getTime()/1e3))),Nne=SI.default(new Date(0)),PI=SI.default(new Date(Date.now()+1e3*60*60*24*365*10)),rpt=pe.z.object({gasLimit:eo.optional(),gasPrice:eo.optional(),maxFeePerGas:eo.optional(),maxPriorityFeePerGas:eo.optional(),nonce:eo.optional(),value:eo.optional(),blockTag:pe.z.union([pe.z.string(),pe.z.number()]).optional(),from:Oi.optional(),type:pe.z.number().optional()}).strict(),npt=pe.z.object({rpc:pe.z.array(pe.z.string().url()),chainId:pe.z.number(),nativeCurrency:pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),slug:pe.z.string()}),Kre=pe.z.object({supportedChains:pe.z.array(npt).default(II.defaultChains),thirdwebApiKey:pe.z.string().default(Y.DEFAULT_API_KEY),alchemyApiKey:pe.z.string().optional(),infuraApiKey:pe.z.string().optional(),readonlySettings:pe.z.object({rpcUrl:pe.z.string().url(),chainId:pe.z.number().optional()}).optional(),gasSettings:pe.z.object({maxPriceInGwei:pe.z.number().min(1,"gas price cannot be less than 1").default(300),speed:pe.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:pe.z.union([pe.z.object({openzeppelin:pe.z.object({relayerUrl:pe.z.string().url(),relayerForwarderAddress:pe.z.string().optional(),useEOAForwarder:pe.z.boolean().default(!1)}),experimentalChainlessSupport:pe.z.boolean().default(!1)}),pe.z.object({biconomy:pe.z.object({apiId:pe.z.string(),apiKey:pe.z.string(),deadlineSeconds:pe.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:pe.z.array(pe.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),apt=pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),ipt=apt.extend({value:Bs,displayValue:pe.z.string()}),V0=pe.z.object({merkle:pe.z.record(pe.z.string()).default({})}),_L=pe.z.object({address:Oi,maxClaimable:Y.QuantitySchema.default(0),price:Y.QuantitySchema.optional(),currencyAddress:Oi.default(Z.ethers.constants.AddressZero).optional()}),RI=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>_L.parseAsync({address:e})))),pe.z.array(_L)]),Bne=_L.extend({proof:pe.z.array(pe.z.string())}),Dne=pe.z.object({merkleRoot:pe.z.string(),claims:pe.z.array(Bne)}),QBr=pe.z.object({merkleRoot:pe.z.string(),snapshotUri:pe.z.string()}),spt=pe.z.object({name:pe.z.string().optional()}).catchall(pe.z.unknown()),MI=pe.z.object({startTime:Nne,currencyAddress:pe.z.string().default(Vu),price:Y.AmountSchema.default(0),maxClaimableSupply:Y.QuantitySchema,maxClaimablePerWallet:Y.QuantitySchema,waitInSeconds:eo.default(0),merkleRootHash:Y.BytesLikeSchema.default(Z.utils.hexZeroPad([0],32)),snapshot:pe.z.optional(RI).nullable(),metadata:spt.optional()}),opt=pe.z.array(MI),ZBr=MI.partial(),One=MI.extend({availableSupply:Y.QuantitySchema,currentMintSupply:Y.QuantitySchema,currencyMetadata:ipt.default({value:Z.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Bs,waitInSeconds:Bs,startTime:Bs.transform(r=>new Date(r.toNumber()*1e3)),snapshot:RI.optional().nullable()});function XBr(r){if(r===void 0){let e=b.Buffer.alloc(16);return KNr.v4({},e),Z.utils.hexlify(Z.utils.toUtf8Bytes(e.toString("hex")))}else return Z.utils.hexlify(r)}var HF=pe.z.object({to:Oi.refine(r=>r.toLowerCase()!==Z.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Y.AmountSchema.default(0),currencyAddress:Mne.default(Vu),mintStartTime:Nne,mintEndTime:PI,uid:pe.z.string().optional().transform(r=>XBr(r)),primarySaleRecipient:Oi.default(Z.constants.AddressZero)}),Lne=HF.extend({quantity:Y.AmountSchema}),cpt=Lne.extend({mintStartTime:Bs,mintEndTime:Bs}),jF=HF.extend({metadata:Y.NFTInputOrUriSchema,royaltyRecipient:pe.z.string().default(Z.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0)}),Fne=jF.extend({uri:pe.z.string(),royaltyBps:Bs,mintStartTime:Bs,mintEndTime:Bs}),upt=jF.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:eo}),lpt=upt.extend({tokenId:eo}),dpt=Fne.extend({tokenId:Bs,quantity:Bs}),ppt=jF.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Bs.default(1)}),hpt=Fne.extend({quantity:Bs.default(1)}),fpt=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],mpt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],ypt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],gpt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],bpt=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Pl=pe.z.object({name:pe.z.string(),description:pe.z.string().optional(),image:Y.FileOrBufferOrStringSchema.optional(),external_link:pe.z.string().optional(),app_uri:pe.z.string().optional()}),pd=Pl.extend({image:pe.z.string().optional()}).catchall(pe.z.unknown()),Zo=pe.z.object({seller_fee_basis_points:Y.BasisPointsSchema.default(0),fee_recipient:Oi.default(Z.constants.AddressZero)}),z1=pe.z.object({primary_sale_recipient:Oi}),Ap=pe.z.object({platform_fee_basis_points:Y.BasisPointsSchema.default(0),platform_fee_recipient:Oi.default(Z.constants.AddressZero)}),hd=pe.z.object({trusted_forwarders:pe.z.array(Oi).default([])}),To=pe.z.object({symbol:pe.z.string().default("")}),vpt=Pl.merge(Zo).merge(V0).merge(To),eDr=pd.merge(Zo).merge(V0).merge(To),tDr=vpt.merge(Ap).merge(z1).merge(hd),qne={deploy:tDr,output:eDr,input:vpt},wpt=Pl.merge(Zo).merge(V0).merge(To),rDr=pd.merge(Zo).merge(V0).merge(To),nDr=wpt.merge(Ap).merge(z1).merge(hd),_pt={deploy:nDr,output:rDr,input:wpt},xpt=Pl,aDr=pd,iDr=xpt.merge(Ap).merge(hd),Wne={deploy:iDr,output:aDr,input:xpt},Tpt=Pl.merge(Zo).merge(To),sDr=pd.merge(Zo).merge(To),oDr=Tpt.merge(Ap).merge(hd),Ept={deploy:oDr,output:sDr,input:Tpt},Cpt=pe.z.object({address:Oi,sharesBps:Y.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),cDr=Cpt.extend({address:Oi,sharesBps:Y.BasisPointsSchema}),Gre=Pl.extend({recipients:pe.z.array(Cpt).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),uDr=pd.extend({recipients:pe.z.array(cDr)}),lDr=Gre.merge(Gre).merge(hd),Ipt={deploy:lDr,output:uDr,input:Gre},kpt=Pl.merge(To),dDr=pd.merge(To),pDr=kpt.merge(Ap).merge(z1).merge(hd),Apt={deploy:pDr,output:dDr,input:kpt},Spt=Pl.merge(Zo).merge(To),hDr=pd.merge(Zo).merge(To),fDr=Spt.merge(Ap).merge(z1).merge(hd),Ppt={deploy:fDr,output:hDr,input:Spt},Rpt=Pl.merge(Zo).merge(To),mDr=pd.merge(Zo).merge(To),yDr=Rpt.merge(Ap).merge(z1).merge(hd),Mpt={deploy:yDr,output:mDr,input:Rpt},Npt=pe.z.object({voting_delay_in_blocks:pe.z.number().min(0).default(0),voting_period_in_blocks:pe.z.number().min(1).default(1),voting_token_address:Oi,voting_quorum_fraction:Y.PercentSchema.default(0),proposal_token_threshold:eo.default(1)}),gDr=Npt.extend({proposal_token_threshold:Bs}),Bpt=Pl.merge(Npt),bDr=pd.merge(gDr),vDr=Bpt.merge(hd),Dpt={deploy:vDr,output:bDr,input:Bpt};pe.z.object({proposalId:Bs,proposer:pe.z.string(),targets:pe.z.array(pe.z.string()),values:pe.z.array(Bs),signatures:pe.z.array(pe.z.string()),calldatas:pe.z.array(pe.z.string()),startBlock:Bs,endBlock:Bs,description:pe.z.string()});function wDr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function sI(r,e){if(typeof r=="string"&&_Dr(r))return xL(r);let t=Kre.parse(e);zF(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=wDr(t),a="",i;try{i=Opt(r,t),a=II.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Y.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Y.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return xL(a,i)}function Opt(r,e){if(zF(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function zF(r){return typeof r!="string"&&typeof r!="number"&&!UF(r)&&!Rne(r)}function _Dr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var ndt=new Map;function xL(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=ndt.get(n);if(a)return a;let i=e?new zre(r,e):new Z.providers.JsonRpcBatchProvider(r);return ndt.set(n,i),i;case"ws":case"wss":return new Z.providers.WebSocketProvider(r,e)}}catch{}return Z.providers.getDefaultProvider(r)}var oI=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},Vre=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},TL=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},$re=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},Yre=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},Jre=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},Qre=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},Zre=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},Xre=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},ene=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},tne=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Y._defineProperty(this,"innerError",void 0),this.innerError=t}},EL=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},rne=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},nne=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},ane=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},ine=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},sne=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},one=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},Lx=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},U0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},Bre=new WeakMap,Dre=new WeakMap,cI=class extends Error{constructor(e){let t=` +`);n.push(u.totalRewards),t.push({assetContract:u.contractAddress,tokenType:2,totalAmount:_p.BigNumber.from(u.quantityPerReward).mul(_p.BigNumber.from(u.totalRewards)),tokenId:u.tokenId})}return{contents:t,numOfRewardUnits:n}}async prepare(e,t,n){return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectVrf(){if(Mt.detectContractFeature(this.contractWrapper,"PackVRF"))return new vCe(this.contractWrapper.getSignerOrProvider(),this.contractWrapper.readContract.address,this.storage,this.contractWrapper.options,this.chainId)}};ti._defineProperty($V,"contractRoles",["admin","minter","asset","transfer"]);ypt.Pack=$V});var vpt=_(bpt=>{"use strict";d();p();var Yi=Ei(),di=ls(),UDr=KV(),HDr=bee(),B2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var QV=class extends UDr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new di.ContractWrapper(e,t,i,a);super(o,n,s),Yi._defineProperty(this,"abi",void 0),Yi._defineProperty(this,"owner",void 0),Yi._defineProperty(this,"encoder",void 0),Yi._defineProperty(this,"estimator",void 0),Yi._defineProperty(this,"metadata",void 0),Yi._defineProperty(this,"app",void 0),Yi._defineProperty(this,"sales",void 0),Yi._defineProperty(this,"platformFees",void 0),Yi._defineProperty(this,"events",void 0),Yi._defineProperty(this,"roles",void 0),Yi._defineProperty(this,"interceptor",void 0),Yi._defineProperty(this,"royalties",void 0),Yi._defineProperty(this,"claimConditions",void 0),Yi._defineProperty(this,"revealer",void 0),Yi._defineProperty(this,"signature",void 0),Yi._defineProperty(this,"checkout",void 0),Yi._defineProperty(this,"createBatch",di.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Yi._defineProperty(this,"claimTo",di.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Yi._defineProperty(this,"claim",di.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Yi._defineProperty(this,"burn",di.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=di.AbiSchema.parse(i||[]),this.metadata=new di.ContractMetadata(this.contractWrapper,di.DropErc721ContractSchema,this.storage),this.app=new di.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new di.ContractRoles(this.contractWrapper,QV.contractRoles),this.royalties=new di.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new di.ContractPrimarySale(this.contractWrapper),this.encoder=new di.ContractEncoder(this.contractWrapper),this.estimator=new di.GasCostEstimator(this.contractWrapper),this.events=new di.ContractEvents(this.contractWrapper),this.platformFees=new di.ContractPlatformFee(this.contractWrapper),this.interceptor=new di.ContractInterceptor(this.contractWrapper),this.claimConditions=new di.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new di.DelayedReveal(this.contractWrapper,this.storage,di.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new di.ContractOwner(this.contractWrapper),this.checkout=new HDr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=B2.BigNumber.from(e?.start||0).toNumber(),n=B2.BigNumber.from(e?.count||Yi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=B2.BigNumber.from(e?.start||0).toNumber(),n=B2.BigNumber.from(e?.count||Yi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=B2.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=B2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(di.getRoleHash("transfer"),B2.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return di.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Yi._defineProperty(QV,"contractRoles",["admin","minter","transfer"]);bpt.SignatureDrop=QV});var xpt=_(wpt=>{"use strict";d();p();var wu=Ei(),Ma=ls(),jDr=Pn(),xCe=je();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function zDr(r){return r&&r.__esModule?r:{default:r}}var KDr=zDr(jDr),JV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ma.ContractWrapper(e,t,i,a);wu._defineProperty(this,"contractWrapper",void 0),wu._defineProperty(this,"storage",void 0),wu._defineProperty(this,"abi",void 0),wu._defineProperty(this,"metadata",void 0),wu._defineProperty(this,"app",void 0),wu._defineProperty(this,"encoder",void 0),wu._defineProperty(this,"estimator",void 0),wu._defineProperty(this,"events",void 0),wu._defineProperty(this,"roles",void 0),wu._defineProperty(this,"interceptor",void 0),wu._defineProperty(this,"_chainId",void 0),wu._defineProperty(this,"withdraw",Ma.buildTransactionFunction(async c=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ma.resolveAddress(c)]}))),wu._defineProperty(this,"withdrawToken",Ma.buildTransactionFunction(async(c,u)=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ma.resolveAddress(u),await Ma.resolveAddress(c)]}))),wu._defineProperty(this,"distribute",Ma.buildTransactionFunction(async()=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),wu._defineProperty(this,"distributeToken",Ma.buildTransactionFunction(async c=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ma.resolveAddress(c)]}))),this._chainId=s,this.abi=Ma.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ma.ContractMetadata(this.contractWrapper,Ma.SplitsContractSchema,this.storage),this.app=new Ma.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ma.ContractRoles(this.contractWrapper,JV.contractRoles),this.encoder=new Ma.ContractEncoder(this.contractWrapper),this.estimator=new Ma.GasCostEstimator(this.contractWrapper),this.events=new Ma.ContractEvents(this.contractWrapper),this.interceptor=new Ma.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=xCe.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ma.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ma.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ma.resolveAddress(t),a=await Ma.resolveAddress(e),s=await new xCe.Contract(n,KDr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ma.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ma.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(xCe.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ma.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};wu._defineProperty(JV,"contractRoles",["admin"]);wpt.Split=JV});var zhe=_(_pt=>{"use strict";d();p();var Wg=Ei(),vee=ls(),_Ce=class{get chainId(){return this._chainId}constructor(e,t,n){Wg._defineProperty(this,"contractWrapper",void 0),Wg._defineProperty(this,"storage",void 0),Wg._defineProperty(this,"erc20",void 0),Wg._defineProperty(this,"_chainId",void 0),Wg._defineProperty(this,"transfer",vee.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Wg._defineProperty(this,"transferFrom",vee.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),Wg._defineProperty(this,"setAllowance",vee.buildTransactionFunction(async(a,i)=>this.erc20.setAllowance.prepare(a,i))),Wg._defineProperty(this,"transferBatch",vee.buildTransactionFunction(async a=>this.erc20.transferBatch.prepare(a))),this.contractWrapper=e,this.storage=t,this.erc20=new vee.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}};_pt.StandardErc20=_Ce});var Ipt=_(Tpt=>{"use strict";d();p();var Ec=Ei(),Pi=ls(),GDr=zhe(),VDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var ZV=class extends GDr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Pi.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ec._defineProperty(this,"abi",void 0),Ec._defineProperty(this,"metadata",void 0),Ec._defineProperty(this,"app",void 0),Ec._defineProperty(this,"roles",void 0),Ec._defineProperty(this,"encoder",void 0),Ec._defineProperty(this,"estimator",void 0),Ec._defineProperty(this,"sales",void 0),Ec._defineProperty(this,"platformFees",void 0),Ec._defineProperty(this,"events",void 0),Ec._defineProperty(this,"claimConditions",void 0),Ec._defineProperty(this,"interceptor",void 0),Ec._defineProperty(this,"claim",Pi.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),Ec._defineProperty(this,"claimTo",Pi.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),Ec._defineProperty(this,"delegateTo",Pi.buildTransactionFunction(async u=>Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Pi.resolveAddress(u)]}))),Ec._defineProperty(this,"burnTokens",Pi.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),Ec._defineProperty(this,"burnFrom",Pi.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=Pi.AbiSchema.parse(s||[]),this.metadata=new Pi.ContractMetadata(this.contractWrapper,Pi.DropErc20ContractSchema,this.storage),this.app=new Pi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Pi.ContractRoles(this.contractWrapper,ZV.contractRoles),this.encoder=new Pi.ContractEncoder(this.contractWrapper),this.estimator=new Pi.GasCostEstimator(this.contractWrapper),this.events=new Pi.ContractEvents(this.contractWrapper),this.sales=new Pi.ContractPrimarySale(this.contractWrapper),this.platformFees=new Pi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Pi.ContractInterceptor(this.contractWrapper),this.claimConditions=new Pi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Pi.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Pi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Pi.getRoleHash("transfer"),VDr.constants.AddressZero)}async prepare(e,t,n){return Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ec._defineProperty(ZV,"contractRoles",["admin","transfer"]);Tpt.TokenDrop=ZV});var ICe=_(Cpt=>{"use strict";d();p();var Ept=Ei(),YDr=ls(),Khe=je(),TCe=class{constructor(e,t){Ept._defineProperty(this,"events",void 0),Ept._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==Khe.constants.AddressZero&&(i in n||(n[i]=Khe.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==Khe.constants.AddressZero&&(s in n||(n[s]=Khe.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await YDr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};Cpt.TokenERC20History=TCe});var Apt=_(kpt=>{"use strict";d();p();var bo=Ei(),Si=ls(),$Dr=ICe(),QDr=zhe(),JDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var XV=class extends QDr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Si.ContractWrapper(e,t,i,a);super(o,n,s),bo._defineProperty(this,"abi",void 0),bo._defineProperty(this,"metadata",void 0),bo._defineProperty(this,"app",void 0),bo._defineProperty(this,"roles",void 0),bo._defineProperty(this,"encoder",void 0),bo._defineProperty(this,"estimator",void 0),bo._defineProperty(this,"history",void 0),bo._defineProperty(this,"events",void 0),bo._defineProperty(this,"platformFees",void 0),bo._defineProperty(this,"sales",void 0),bo._defineProperty(this,"signature",void 0),bo._defineProperty(this,"interceptor",void 0),bo._defineProperty(this,"mint",Si.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),bo._defineProperty(this,"mintTo",Si.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),bo._defineProperty(this,"mintBatchTo",Si.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),bo._defineProperty(this,"delegateTo",Si.buildTransactionFunction(async c=>Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Si.resolveAddress(c)]}))),bo._defineProperty(this,"burn",Si.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),bo._defineProperty(this,"burnFrom",Si.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Si.AbiSchema.parse(i||[]),this.metadata=new Si.ContractMetadata(this.contractWrapper,Si.TokenErc20ContractSchema,this.storage),this.app=new Si.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Si.ContractRoles(this.contractWrapper,XV.contractRoles),this.sales=new Si.ContractPrimarySale(this.contractWrapper),this.events=new Si.ContractEvents(this.contractWrapper),this.history=new $Dr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Si.ContractEncoder(this.contractWrapper),this.estimator=new Si.GasCostEstimator(this.contractWrapper),this.platformFees=new Si.ContractPlatformFee(this.contractWrapper),this.interceptor=new Si.ContractInterceptor(this.contractWrapper),this.signature=new Si.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Si.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Si.getRoleHash("transfer"),JDr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};bo._defineProperty(XV,"contractRoles",["admin","minter","transfer"]);kpt.Token=XV});var ECe=_(Ppt=>{"use strict";d();p();var ZDr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});Ppt.VoteType=ZDr});var Rpt=_(Spt=>{"use strict";d();p();var ud=Ei(),$s=ls(),XDr=Pn(),wee=je(),CCe=ECe();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function eLr(r){return r&&r.__esModule?r:{default:r}}var tLr=eLr(XDr),kCe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $s.ContractWrapper(e,t,s,i);ud._defineProperty(this,"contractWrapper",void 0),ud._defineProperty(this,"storage",void 0),ud._defineProperty(this,"abi",void 0),ud._defineProperty(this,"metadata",void 0),ud._defineProperty(this,"app",void 0),ud._defineProperty(this,"encoder",void 0),ud._defineProperty(this,"estimator",void 0),ud._defineProperty(this,"events",void 0),ud._defineProperty(this,"interceptor",void 0),ud._defineProperty(this,"_chainId",void 0),ud._defineProperty(this,"propose",$s.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return $s.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ud._defineProperty(this,"vote",$s.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),$s.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),ud._defineProperty(this,"execute",$s.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(I=>I.toAddress),f=l.executions.map(I=>I.nativeTokenValue),m=l.executions.map(I=>I.transactionData),y=wee.ethers.utils.id(l.description);return $s.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=$s.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new $s.ContractMetadata(this.contractWrapper,$s.VoteContractSchema,this.storage),this.app=new $s.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new $s.ContractEncoder(this.contractWrapper),this.estimator=new $s.GasCostEstimator(this.contractWrapper),this.events=new $s.ContractEvents(this.contractWrapper),this.interceptor=new $s.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(wee.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:CCe.VoteType.Against,label:"Against",count:t.againstVotes},{type:CCe.VoteType.For,label:"For",count:t.forVotes},{type:CCe.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await $s.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=wee.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:wee.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new wee.Contract(await $s.resolveAddress(e),tLr.default,this.contractWrapper.getProvider());return await $s.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await $s.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return $s.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Spt.Vote=kCe});var ls=_(re=>{"use strict";d();p();var rLr=Tn(),Z=je(),nLr=In(),aLr=En(),iLr=Cn(),sLr=kn(),oLr=An(),cLr=Pn(),uLr=Sn(),lLr=Rn(),dLr=Mn(),pLr=Nn(),hLr=Bn(),fLr=Dn(),mLr=Ln(),yLr=On(),gLr=pn(),bLr=qn(),vLr=Fn(),wLr=Wn(),xLr=Un(),_Lr=Hn(),TLr=jn(),ILr=zn(),ELr=Kn(),CLr=Gn(),kLr=Vn(),ALr=Yn(),PLr=$n(),SLr=Qn(),RLr=hn(),MLr=Jn(),NLr=Zn(),BLr=Xn(),DLr=ea(),LLr=ta(),OLr=ra(),qLr=na(),FLr=aa(),WLr=ia(),ULr=sa(),HLr=oa(),jLr=ca(),zLr=ua(),KLr=la(),GLr=da(),VLr=pa(),$=Ei(),pe=kr(),Yee=vt(),YLr=ha(),$Lr=tn(),lht=Je(),QLr=fa(),zg=bn(),JLr=Gr(),ZLr=Xr(),XLr=ma(),ACe=ya(),eOr=ga(),tOr=Fr(),rOr=mn(),nOr=ba(),aOr=va(),iOr=wa(),sOr=xa(),oOr=_a(),cOr=Ta(),Mpt=yn(),uOr=Ia(),lOr=Ea();function rt(r){return r&&r.__esModule?r:{default:r}}function Xo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var E8e=rt(rLr),dOr=rt(nLr),dht=rt(aLr),pOr=rt(iLr),pht=rt(sLr),hht=rt(oLr),xu=rt(cLr),hOr=rt(uLr),fht=rt(lLr),C8e=rt(dLr),fOr=rt(pLr),mOr=rt(hLr),yOr=rt(fLr),mht=rt(mLr),gOr=rt(yLr),kc=rt(gLr),bOr=rt(bLr),vOr=rt(vLr),kp=rt(wLr),yht=rt(xLr),wOr=rt(_Lr),xOr=rt(TLr),_Or=rt(ILr),TOr=rt(ELr),IOr=rt(CLr),EOr=rt(kLr),ght=rt(ALr),COr=rt(PLr),kOr=rt(SLr),Gu=rt(RLr),AOr=rt(MLr),bht=rt(NLr),POr=rt(BLr),SOr=rt(DLr),ROr=rt(LLr),MOr=rt(OLr),NOr=rt(qLr),BOr=rt(FLr),DOr=rt(WLr),LOr=rt(ULr),OOr=rt(HLr),qOr=rt(jLr),FOr=rt(zLr),WOr=rt(KLr),UOr=rt(GLr),HOr=rt(VLr),jOr=rt(YLr),Cee=rt($Lr),DCe=rt(lht),vht=rt(QLr),Tt=rt(JLr),zOr=rt(XLr),wht=rt(eOr),vme=rt(rOr),KOr=rt(nOr),GOr=rt(aOr),VOr=rt(iOr),YOr=rt(sOr),$Or=rt(oOr),QOr=rt(cOr),JOr=rt(uOr),ZOr=rt(lOr);function XOr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function LCe(r,e,t){XOr(r,e),e.set(r,t)}function eqr(r,e){return e.get?e.get.call(r):e.value}function xht(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function Qhe(r,e){var t=xht(r,e,"get");return eqr(r,t)}function tqr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function OCe(r,e,t){var n=xht(r,e,"set");return tqr(r,n,t),t}var Be=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),_ht=[Be.Mainnet,Be.Goerli,Be.Polygon,Be.Mumbai,Be.Fantom,Be.FantomTestnet,Be.Avalanche,Be.AvalancheFujiTestnet,Be.Optimism,Be.OptimismGoerli,Be.Arbitrum,Be.ArbitrumGoerli,Be.BinanceSmartChainMainnet,Be.BinanceSmartChainTestnet,Be.Hardhat,Be.Localhost],qCe=Yee.defaultChains;function Tht(r){r&&r.length>0?qCe=r:qCe=Yee.defaultChains}function Iht(){return qCe}var Eht="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",jg="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",Ug="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",D2="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",rqr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",nqr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Kg={[Be.Mainnet]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:D2,twRegistry:Ug,twBYOCRegistry:Z.constants.AddressZero},[Be.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Be.Polygon]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Be.Mumbai]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Be.Avalanche]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:D2,twRegistry:Ug,twBYOCRegistry:Z.constants.AddressZero},[Be.AvalancheFujiTestnet]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Fantom]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:Ug,twBYOCRegistry:Z.constants.AddressZero},[Be.FantomTestnet]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.Hardhat]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero},[Be.Localhost]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero}},FCe={[Be.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Be.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Be.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Be.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Be.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Be.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Be.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Be.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Be.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Be.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function Cht(r,e){if(r in FCe){let t=FCe[r];if(e in t)return t[e]}return null}function kee(r,e){return r===Be.Hardhat||r===Be.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Z.constants.AddressZero:Kg[r]?.[e]}function kht(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:rqr}function WCe(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:nqr}function k8e(r){let e=_ht.find(a=>a===r),t=e?Kg[e].biconomyForwarder:Z.constants.AddressZero,n=e?Kg[e].openzeppelinForwarder:Z.constants.AddressZero;return t!==Z.constants.AddressZero?[n,t]:[n]}var $ee=Z.utils.arrayify("0x80ac58cd"),Qee=Z.utils.arrayify("0xd9b67a26"),Ku="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Aee={[Be.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Be.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Be.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Be.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Be.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Be.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function Jhe(r){let e=Iht().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:Aee[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var aqr={[Be.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Be.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Be.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Be.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Be.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Be.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Be.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},kl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function wme(r){return!!(r&&r._isSigner)}function A8e(r){return!!(r&&r._isProvider)}function pi(r,e){let t,n;if(wme(r)?(t=r,r.provider&&(n=r.provider)):A8e(r)?n=r:n=Pee(r,e),e?.readonlySettings&&(n=Xhe(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var Aht=50,Pht=250,iqr={timeLimitMs:Aht,sizeLimit:Pht},UCe=class extends Z.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:iqr;super(e,t),$._defineProperty(this,"_timeLimitMs",void 0),$._defineProperty(this,"_sizeLimit",void 0),$._defineProperty(this,"_pendingBatchAggregator",void 0),$._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||Pht,this._sizeLimit=n.sizeLimit||Aht,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Z.utils.deepCopy(e),provider:this}),Z.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},PCe,SCe=new Map;async function Sht(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;PCe||(PCe=pi("ethereum")[1]);let t;SCe.has(r)?t=SCe.get(r):t=PCe.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>Sht(r)).refine(r=>!!r&&Z.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Ss=pe.z.union([pe.z.string(),pe.z.number(),pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r)),Qs=Ss.transform(r=>r.toString()),Rht=pe.z.union([pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r).toString()),P8e=pe.z.custom(r=>typeof r=="string"&&Z.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ri=pe.z.union([P8e,sqr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),Jee=pe.z.union([pe.z.date().transform(r=>Z.BigNumber.from(Math.floor(r.getTime()/1e3))),pe.z.number().transform(r=>Z.BigNumber.from(r))]),S8e=Jee.default(new Date(0)),Zee=Jee.default(new Date(Date.now()+1e3*60*60*24*365*10)),Mht=pe.z.object({gasLimit:Qs.optional(),gasPrice:Qs.optional(),maxFeePerGas:Qs.optional(),maxPriorityFeePerGas:Qs.optional(),nonce:Qs.optional(),value:Qs.optional(),blockTag:pe.z.union([pe.z.string(),pe.z.number()]).optional(),from:Ri.optional(),type:pe.z.number().optional()}).strict(),Nht=pe.z.object({rpc:pe.z.array(pe.z.string().url()),chainId:pe.z.number(),nativeCurrency:pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),slug:pe.z.string()}),HCe=pe.z.object({supportedChains:pe.z.array(Nht).default(Yee.defaultChains),thirdwebApiKey:pe.z.string().default($.DEFAULT_API_KEY),alchemyApiKey:pe.z.string().optional(),infuraApiKey:pe.z.string().optional(),readonlySettings:pe.z.object({rpcUrl:pe.z.string().url(),chainId:pe.z.number().optional()}).optional(),gasSettings:pe.z.object({maxPriceInGwei:pe.z.number().min(1,"gas price cannot be less than 1").default(300),speed:pe.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:pe.z.union([pe.z.object({openzeppelin:pe.z.object({relayerUrl:pe.z.string().url(),relayerForwarderAddress:pe.z.string().optional(),useEOAForwarder:pe.z.boolean().default(!1)}),experimentalChainlessSupport:pe.z.boolean().default(!1)}),pe.z.object({biconomy:pe.z.object({apiId:pe.z.string(),apiKey:pe.z.string(),deadlineSeconds:pe.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:pe.z.array(pe.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),Bht=pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),Dht=Bht.extend({value:Ss,displayValue:pe.z.string()}),K0=pe.z.object({merkle:pe.z.record(pe.z.string()).default({})}),Zhe=pe.z.object({address:Ri,maxClaimable:$.QuantitySchema.default(0),price:$.QuantitySchema.optional(),currencyAddress:Ri.default(Z.ethers.constants.AddressZero).optional()}),Xee=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>Zhe.parseAsync({address:e})))),pe.z.array(Zhe)]),R8e=Zhe.extend({proof:pe.z.array(pe.z.string())}),M8e=pe.z.object({merkleRoot:pe.z.string(),claims:pe.z.array(R8e)}),oqr=pe.z.object({merkleRoot:pe.z.string(),snapshotUri:pe.z.string()}),Lht=pe.z.object({name:pe.z.string().optional()}).catchall(pe.z.unknown()),ete=pe.z.object({startTime:S8e,currencyAddress:pe.z.string().default(Ku),price:$.AmountSchema.default(0),maxClaimableSupply:$.QuantitySchema,maxClaimablePerWallet:$.QuantitySchema,waitInSeconds:Qs.default(0),merkleRootHash:$.BytesLikeSchema.default(Z.utils.hexZeroPad([0],32)),snapshot:pe.z.optional(Xee).nullable(),metadata:Lht.optional()}),Oht=pe.z.array(ete),cqr=ete.partial(),N8e=ete.extend({availableSupply:$.QuantitySchema,currentMintSupply:$.QuantitySchema,currencyMetadata:Dht.default({value:Z.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Ss,waitInSeconds:Ss,startTime:Ss.transform(r=>new Date(r.toNumber()*1e3)),snapshot:Xee.optional().nullable()});function uqr(r){if(r===void 0){let e=b.Buffer.alloc(16);return tOr.v4({},e),Z.utils.hexlify(Z.utils.toUtf8Bytes(e.toString("hex")))}else return Z.utils.hexlify(r)}var xme=pe.z.object({to:Ri.refine(r=>r.toLowerCase()!==Z.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:$.AmountSchema.default(0),currencyAddress:P8e.default(Ku),mintStartTime:S8e,mintEndTime:Zee,uid:pe.z.string().optional().transform(r=>uqr(r)),primarySaleRecipient:Ri.default(Z.constants.AddressZero)}),B8e=xme.extend({quantity:$.AmountSchema}),qht=B8e.extend({mintStartTime:Ss,mintEndTime:Ss}),_me=xme.extend({metadata:$.NFTInputOrUriSchema,royaltyRecipient:pe.z.string().default(Z.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0)}),D8e=_me.extend({metadata:$.NFTInputOrUriSchema.default(""),uri:pe.z.string(),royaltyBps:Ss,mintStartTime:Ss,mintEndTime:Ss}),Fht=_me.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Qs}),Wht=Fht.extend({tokenId:Qs}),Uht=D8e.extend({tokenId:Ss,quantity:Ss}),Hht=_me.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Ss.default(1)}),jht=D8e.extend({quantity:Ss.default(1)}),zht=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Kht=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Ght=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Vht=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Yht=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Sl=pe.z.object({name:pe.z.string(),description:pe.z.string().optional(),image:$.FileOrBufferOrStringSchema.optional(),external_link:pe.z.string().optional(),app_uri:pe.z.string().optional()}),ld=Sl.extend({image:pe.z.string().optional()}).catchall(pe.z.unknown()),Zo=pe.z.object({seller_fee_basis_points:$.BasisPointsSchema.default(0),fee_recipient:Ri.default(Z.constants.AddressZero)}),Gg=pe.z.object({primary_sale_recipient:Ri}),Cp=pe.z.object({platform_fee_basis_points:$.BasisPointsSchema.default(0),platform_fee_recipient:Ri.default(Z.constants.AddressZero)}),dd=pe.z.object({trusted_forwarders:pe.z.array(Ri).default([])}),xo=pe.z.object({symbol:pe.z.string().default("")}),$ht=Sl.merge(Zo).merge(K0).merge(xo),lqr=ld.merge(Zo).merge(K0).merge(xo),dqr=$ht.merge(Cp).merge(Gg).merge(dd),L8e={deploy:dqr,output:lqr,input:$ht},Qht=Sl.merge(Zo).merge(K0).merge(xo),pqr=ld.merge(Zo).merge(K0).merge(xo),hqr=Qht.merge(Cp).merge(Gg).merge(dd),Jht={deploy:hqr,output:pqr,input:Qht},Zht=Sl,fqr=ld,mqr=Zht.merge(Cp).merge(dd),O8e={deploy:mqr,output:fqr,input:Zht},Xht=Sl.merge(Zo).merge(xo),yqr=ld.merge(Zo).merge(xo),gqr=Xht.merge(Cp).merge(dd),eft={deploy:gqr,output:yqr,input:Xht},tft=pe.z.object({address:Ri,sharesBps:$.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),bqr=tft.extend({address:Ri,sharesBps:$.BasisPointsSchema}),jCe=Sl.extend({recipients:pe.z.array(tft).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),vqr=ld.extend({recipients:pe.z.array(bqr)}),wqr=jCe.merge(jCe).merge(dd),rft={deploy:wqr,output:vqr,input:jCe},nft=Sl.merge(xo),xqr=ld.merge(xo),_qr=nft.merge(Cp).merge(Gg).merge(dd),aft={deploy:_qr,output:xqr,input:nft},ift=Sl.merge(Zo).merge(xo),Tqr=ld.merge(Zo).merge(xo),Iqr=ift.merge(Cp).merge(Gg).merge(dd),sft={deploy:Iqr,output:Tqr,input:ift},oft=Sl.merge(Zo).merge(xo),Eqr=ld.merge(Zo).merge(xo),Cqr=oft.merge(Cp).merge(Gg).merge(dd),cft={deploy:Cqr,output:Eqr,input:oft},uft=pe.z.object({voting_delay_in_blocks:pe.z.number().min(0).default(0),voting_period_in_blocks:pe.z.number().min(1).default(1),voting_token_address:Ri,voting_quorum_fraction:$.PercentSchema.default(0),proposal_token_threshold:Qs.default(1)}),kqr=uft.extend({proposal_token_threshold:Ss}),lft=Sl.merge(uft),Aqr=ld.merge(kqr),Pqr=lft.merge(dd),dft={deploy:Pqr,output:Aqr,input:lft};pe.z.object({proposalId:Ss,proposer:pe.z.string(),targets:pe.z.array(pe.z.string()),values:pe.z.array(Ss),signatures:pe.z.array(pe.z.string()),calldatas:pe.z.array(pe.z.string()),startBlock:Ss,endBlock:Ss,description:pe.z.string()});function Sqr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function Pee(r,e){if(typeof r=="string"&&Rqr(r))return Xhe(r);let t=HCe.parse(e);Tme(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=Sqr(t),a="",i;try{i=pft(r,t),a=Yee.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||$.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||$.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return Xhe(a,i)}function pft(r,e){if(Tme(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function Tme(r){return typeof r!="string"&&typeof r!="number"&&!wme(r)&&!A8e(r)}function Rqr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var Npt=new Map;function Xhe(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=Npt.get(n);if(a)return a;let i=e?new UCe(r,e):new Z.providers.JsonRpcBatchProvider(r);return Npt.set(n,i),i;case"ws":case"wss":return new Z.providers.WebSocketProvider(r,e)}}catch{}return Z.providers.getDefaultProvider(r)}var See=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},zCe=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},efe=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},KCe=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},GCe=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},VCe=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},YCe=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},$Ce=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},QCe=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},JCe=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},ZCe=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),$._defineProperty(this,"innerError",void 0),this.innerError=t}},tfe=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},XCe=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},e8e=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},t8e=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},r8e=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},n8e=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},a8e=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},aY=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},F0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},RCe=new WeakMap,MCe=new WeakMap,oY=class extends Error{constructor(e){let t=` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 @@ -191,7 +196,7 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=U1("from",e.from),t+=U1("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=U1("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=U1("rpc",n.hostname)}catch{}if(e.hash&&(t+=U1("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=U1("value",`${Z.ethers.utils.formatEther(e.value)} ${iI[e.network.chainId]?.symbol||""}`)),t+=U1("data",`${e.data}`),e.method&&(t+=U1("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` +`,t+=Hg("from",e.from),e.to&&(t+=Hg("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),t+=Hg("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Hg("rpc",n.hostname)}catch{}if(e.hash&&(t+=Hg("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Hg("value",`${Z.ethers.utils.formatEther(e.value)} ${Aee[e.network.chainId]?.symbol||""}`)),t+=Hg("data",`${e.data}`),e.method&&(t+=Hg("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` `).map((o,c)=>`${c+1} ${o}`),i=a.findIndex(o=>o.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` @@ -211,67 +216,72 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres `,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` -`,super(t),qre(this,Bre,{writable:!0,value:void 0}),qre(this,Dre,{writable:!0,value:void 0}),Wre(this,Bre,e.reason),Wre(this,Dre,e)}get reason(){return vL(this,Bre)}get info(){return vL(this,Dre)}};function Une(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),adt(/.*?"message":"([^"\\]*).*?/,e)||adt(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function U1(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` +`,super(t),LCe(this,RCe,{writable:!0,value:void 0}),LCe(this,MCe,{writable:!0,value:void 0}),OCe(this,RCe,e.reason),OCe(this,MCe,e)}get reason(){return Qhe(this,RCe)}get info(){return Qhe(this,MCe)}};function Ime(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),Bpt(/.*?"message":"([^"\\]*).*?/,e)||Bpt(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Hg(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` `)?e=` `+e.split(` `).join(` `):e=`${t}${e}`,` -${r}:${e}`}function adt(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function uI(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Lpt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Fpt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],qpt=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],Nx={},idt={};async function CL(r,e,t){let n=t.join("|"),a=idt[n],i=Date.now()-a>=2e3;if(!(n in Nx)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?Nx[n]=Z.BigNumber.from(o[0]):Nx[n]=Z.BigNumber.from(o),idt[n]=Date.now()}let s=Nx[n];return Nx[n]=Z.BigNumber.from(Nx[n]).add(1),s}function xDr(r){switch(r){case Be.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Be.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var TDr=Z.ethers.utils.parseUnits("31","gwei"),EDr=Z.ethers.utils.parseUnits("1","gwei");function CDr(r){switch(r){case Be.Polygon:return TDr;case Be.Mumbai:return EDr}}async function Wpt(r){let e=xDr(r);try{let n=(await(await nI.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Z.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return CDr(r)}async function lI(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Z.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Z.utils.joinSignature(Z.utils.splitSignature(s))}}var IDr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],kDr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],ADr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function SDr(r,e){let t=new Z.Contract(e,ADr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function PDr(r,e){let t=new Z.Contract(e,kDr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function RDr(r,e){return new Z.Contract(e,IDr,r).name()}async function MDr(r,e){let t=await PDr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Z.ethers.utils.hexZeroPad(Z.BigNumber.from(e.chainId).toHexString(),32)};return Z.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function Upt(r,e,t,n,a,i,s){let o=await MDr(r,{name:await RDr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await SDr(r,e)).toString(),i=i||Z.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await lI(r,o,u,c);return{message:c,signature:l}}var Hne=()=>typeof window<"u",Hpt=()=>!Hne();function NDr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Y._defineProperty(this,"writeContract",void 0),Y._defineProperty(this,"readContract",void 0),Y._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Z.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),Wre(this,mL,new d2.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(Hne())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.ethers.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await Wpt(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Z.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Z.ethers.utils.parseUnits(n.toString(),"gwei"),o=Z.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Z.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Z.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(kl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let l=n[n.length-1];i=await rpt.parseAsync(l),n=n.slice(0,n.length-1)}}catch{}let s=jx(Li.parse(this.abi)).filter(l=>l.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=s.find(l=>l.name===e&&l.inputs.length===n.length);if(!o)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. -Expected function signature: ${s[0].signature}`);let c=`${e}(${o.inputs.map(l=>l.type).join()})`,u=c in this.readContract.functions?c:e;return o.stateMutability==="view"||o.stateMutability==="pure"?this.readContract[u](...n):{receipt:await this.sendTransaction(u,n,i)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Z.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Z.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` +${r}:${e}`}function Bpt(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function Ree(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var hft=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],fft=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],mft=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],eY={},Dpt={};async function rfe(r,e,t){let n=t.join("|"),a=Dpt[n],i=Date.now()-a>=2e3;if(!(n in eY)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?eY[n]=Z.BigNumber.from(o[0]):eY[n]=Z.BigNumber.from(o),Dpt[n]=Date.now()}let s=eY[n];return eY[n]=Z.BigNumber.from(eY[n]).add(1),s}function Mqr(r){switch(r){case Be.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Be.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var Nqr=Z.ethers.utils.parseUnits("31","gwei"),Bqr=Z.ethers.utils.parseUnits("1","gwei");function Dqr(r){switch(r){case Be.Polygon:return Nqr;case Be.Mumbai:return Bqr}}async function yft(r){let e=Mqr(r);try{let n=(await(await Cee.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Z.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return Dqr(r)}async function Mee(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Z.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Z.utils.joinSignature(Z.utils.splitSignature(s))}}var Lqr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],Oqr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],qqr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function Fqr(r,e){let t=new Z.Contract(e,qqr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function Wqr(r,e){let t=new Z.Contract(e,Oqr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function Uqr(r,e){return new Z.Contract(e,Lqr,r).name()}async function Hqr(r,e){let t=await Wqr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Z.ethers.utils.hexZeroPad(Z.BigNumber.from(e.chainId).toHexString(),32)};return Z.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function gft(r,e,t,n,a,i,s){let o=await Hqr(r,{name:await Uqr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await Fqr(r,e)).toString(),i=i||Z.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await Mee(r,o,u,c);return{message:c,signature:l}}var q8e=()=>typeof window<"u",bft=()=>!q8e();function jqr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),$._defineProperty(this,"writeContract",void 0),$._defineProperty(this,"readContract",void 0),$._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Z.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),OCe(this,Ghe,new zg.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(q8e())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.ethers.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await yft(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Z.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Z.ethers.utils.parseUnits(n.toString(),"gwei"),o=Z.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Z.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Z.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(kl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=n?await Mht.parseAsync(n):void 0,i=dY(Qi.parse(this.abi)).filter(u=>u.name===e);if(!i.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let s=i.find(u=>u.name===e&&u.inputs.length===t.length);if(!s)throw new Error(`Function "${e}" requires ${i[0].inputs.length} arguments, but ${t.length} were provided. +Expected function signature: ${i[0].signature}`);let o=`${e}(${s.inputs.map(u=>u.type).join()})`,c=o in this.readContract.functions?o:e;return s.stateMutability==="view"||s.stateMutability==="pure"?this.readContract[c](...t):{receipt:await this.sendTransaction(c,t,a)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Z.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Z.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` `+m.map(W=>" "+W.split(` `).join(` `)).join(`, `)+` -`,E=`${f.name}(${y})`,I=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,S=Une(e),L,q;try{let W=await G0(this.readContract.address,this.getProvider(),vL(this,mL));W.name&&(q=W.name),W.metadata.sources&&(L=await $F(W,vL(this,mL)))}catch{}return new cI({reason:S,from:o,to:c,method:E,data:u,network:s,rpcUrl:h,value:l,hash:I,contractName:q,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Ct.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Z.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Z.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Z.BigNumber.from(5e5)),n.gasLimit&&Z.BigNumber.from(n.gasLimit).gt(l)&&(l=Z.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(kl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await lI(e,t,n,a);return this.emit(kl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Ct.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Ct.default(t&&n,"signer and provider must be set");let a=new Z.ethers.Contract(aI(e.chainId,"biconomyForwarder"),qpt,n),i=0,s=await CL(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Z.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)]));this.emit(kl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(kl.Signature,{status:"completed",message:c,signature:u});let l=await nI.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Ct.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Ct.default(t,"provider is not set"),Ct.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?j1[e.chainId].openzeppelinForwarderEOA:j1[e.chainId].openzeppelinForwarder),i=new Z.Contract(a,jdt.default,n),s=await CL(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Fpt},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data,chainid:Z.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Lpt},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(kl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],E=e.functionArgs[1],{message:I,signature:S}=await Upt(t,this.writeContract.address,e.from,y,E),{r:L,s:q,v:W}=Z.ethers.utils.splitSignature(S);u={to:this.readContract.address,owner:I.owner,spender:I.spender,value:Z.BigNumber.from(I.value).toString(),nonce:Z.BigNumber.from(I.nonce).toString(),deadline:Z.BigNumber.from(I.deadline).toString(),r:L,s:q,v:W},l=S}else{let{signature:y}=await lI(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(kl.Signature,{status:"completed",message:u,signature:l});let m=await nI.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Kh(r){return r.toLowerCase()===Vu||r.toLowerCase()===Z.constants.AddressZero}function IL(r){return Kh(r)?Vu:r}async function Ic(r,e,t){let n=await Yx(r,t);return Z.utils.parseUnits(Y.AmountSchema.parse(e),n.decimals)}async function Yx(r,e){if(Kh(e)){let t=await r.getNetwork(),n=wL(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Z.Contract(e,BBr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function Cp(r,e,t){let n=await Yx(r,e);return{...n,value:Z.BigNumber.from(t),displayValue:Z.utils.formatUnits(t,n.decimals)}}async function H0(r,e,t,n){if(Kh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Ds(a||i,t,_u.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function jne(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Ds(i||s,e,_u.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Z.BigNumber.from(t).mul(Z.BigNumber.from(n)).div(Z.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function BDr(r,e,t){let n=r.getProvider(),a=new Ds(n,e,_u.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function DDr(r,e){let t=await r.readContract.decimals();return Z.utils.parseUnits(Y.AmountSchema.parse(e),t)}function ODr(r){return Z.utils.formatEther(r)}function LDr(r){return Z.utils.parseEther(Y.AmountSchema.parse(r))}function FDr(r,e){return Z.utils.parseUnits(Y.AmountSchema.parse(r),e)}function qDr(r,e){return Z.utils.formatUnits(r,e)}async function jpt(r,e,t,n,a,i,s,o,c){let u=pm(t.maxClaimablePerWallet,a),l=[Z.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Z.constants.AddressZero)){let I=await KF(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(I)l=I.proof,u=I.maxClaimable==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(I.maxClaimable,a),h=I.price===void 0||I.price==="unlimited"?Z.ethers.constants.MaxUint256:await Ic(i.getProvider(),I.price,I.currencyAddress||Z.ethers.constants.AddressZero),f=I.currencyAddress||Z.ethers.constants.AddressZero;else if(c===h2.V1)throw new Error("No claim found for this address")}}catch(I){if(I?.message==="No claim found for this address")throw I;console.warn("failed to check claim condition merkle root hash, continuing anyways",I)}let m=await i.getCallOverrides()||{},y=h.toString()!==Z.ethers.constants.MaxUint256.toString()?h:t.price,E=f!==Z.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Kh(E)?m.value=Z.BigNumber.from(y).mul(e).div(Z.ethers.utils.parseUnits("1",a)):o&&await jne(i,E,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:E,priceInProof:h,currencyAddressInProof:f}}async function WDr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await Il.fromUri(n,t))?.getAllEntries()||null;{let i=await Dne.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function KF(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await Il.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await Dne.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function zpt(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Z.ethers.utils.formatUnits(a,n),s=await MI.parseAsync({...t[r],price:i,...e}),o=await One.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Z.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function UDr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await Vpt(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Z.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function HDr(r,e){let t=Z.BigNumber.from(r),n=Z.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function Kpt(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await UDr(r,e,t,n,a),o=await opt.parseAsync(i),c=(await Promise.all(o.map(u=>jDr(u,e,t,n)))).sort((u,l)=>HDr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function jDr(r,e,t,n){let a=r.currencyAddress===Z.constants.AddressZero?Vu:r.currencyAddress,i=pm(r.maxClaimableSupply,e),s=pm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Ic(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function kL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function AL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function SL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function PL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function RL(r,e,t,n,a,i){let s=await Cp(t,r.currency,r.pricePerToken),o=Z8(r.maxClaimableSupply,e),c=Z8(r.maxClaimablePerWallet,e),u=Z8(Z.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=Z8(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),One.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Z.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await WDr(r.merkleRoot,n,a):void 0,metadata:h})}function Z8(r,e){return r.toString()===Z.ethers.constants.MaxUint256.toString()?"unlimited":Z.ethers.utils.formatUnits(r,e)}function pm(r,e){return r==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(r,e)}async function Gpt(r,e,t,n,a){let i={},s=n||Vu,c=(await Ic(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Vu?i={value:c}:s!==Vu&&a&&await jne(r,s,c,t,0)),i}var zDr=2,h2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),Il=class{constructor(e,t,n,a,i){Y._defineProperty(this,"shardNybbles",void 0),Y._defineProperty(this,"shards",void 0),Y._defineProperty(this,"trees",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"baseUri",void 0),Y._defineProperty(this,"originalEntriesUri",void 0),Y._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return Il.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new Il(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case h2.V1:return Z.utils.solidityKeccak256(["address","uint256"],[e.address,pm(e.maxClaimable,t)]);case h2.V2:return Z.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,pm(e.maxClaimable,t),pm(e.price||"unlimited",n),e.currencyAddress||Z.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await Yx(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:zDr,o=await RI.parseAsync(e),c={};for(let q of o){let W=q.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(q)}let u={},l=await Promise.all(Object.entries(c).map(async q=>{let[W,V]=q;return[W,new Rre.MerkleTree(await Promise.all(V.map(async K=>{let H=await Il.fetchAndCacheDecimals(u,n,K.currencyAddress);return Il.hashEntry(K,t,H,i)})),Z.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new Rre.MerkleTree(Object.values(h),Z.utils.keccak256,{sort:!0}),m=[];for(let[q,W]of Object.entries(c)){let V={proofs:f.getProof(h[q]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${q}.json`})}let y=await a.uploadBatch(m),E=y[0].slice(0,y[0].lastIndexOf("/")),I=await a.upload(o),S={merkleRoot:f.getHexRoot(),baseUri:E,originalEntriesUri:I,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(S);return{shardedMerkleInfo:S,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await Il.fetchAndCacheDecimals(s,t,f.currencyAddress);return Il.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new Rre.MerkleTree(h,Z.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await Il.fetchAndCacheDecimals(s,t,o.currencyAddress),u=Il.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return Bne.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function Vpt(r,e,t,n,a){let i=await RI.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(tht(),this?this.decode(e,t):Ux.prototype.decode.call(Edt,e,t)));u2=t>-1?t:e.length,Ie=0,wI=0,tF=null,xo=null,Xe=e;try{Gu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Xe=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof Ux){if($r=this,Al=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return bs=this.structures,Cdt();(!bs||bs.length>0)&&(bs=[])}else $r=Edt,(!bs||bs.length>0)&&(bs=[]),Al=null;return Cdt()}};function Cdt(){try{let r=wn();if(xo){if(Ie>=xo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ie=xo.postBundlePosition,xo=null}if(Ie==u2)bs=null,Xe=null,Fh&&(Fh=null);else if(Ie>u2){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!pne)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw tht(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function wn(){let r=Xe[Ie++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Xe[Ie++];break;case 25:if(e==7)return tOr();r=Gu.getUint16(Ie),Ie+=2;break;case 26:if(e==7){let t=Gu.getFloat32(Ie);if($r.useFloat32>2){let n=rht[(Xe[Ie]&127)<<1|Xe[Ie+1]>>7];return Ie+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ie+=4,t}r=Gu.getUint32(Ie),Ie+=4;break;case 27:if(e==7){let t=Gu.getFloat64(Ie);return Ie+=8,t}if(e>1){if(Gu.getUint32(Ie)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Gu.getUint32(Ie+4)}else $r.int64AsNumber?(r=Gu.getUint32(Ie)*4294967296,r+=Gu.getUint32(Ie+4)):r=Gu.getBigUint64(Ie);Ie+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=wn())!=Bx;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if($r.mapsAsObjects){let s={};if($r.keyMap)for(;(i=wn())!=Bx;)s[hm($r.decodeKey(i))]=wn();else for(;(i=wn())!=Bx;)s[hm(i)]=wn();return s}else{X8&&($r.mapsAsObjects=!0,X8=!1);let s=new Map;if($r.keyMap)for(;(i=wn())!=Bx;)s.set($r.decodeKey(i),wn());else for(;(i=wn())!=Bx;)s.set(i,wn());return s}case 7:return Bx;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return eOr(r);case 3:if(wI>=Ie)return tF.slice(Ie-rF,(Ie+=r)-rF);if(wI==0&&u2<140&&r<32){let a=r<16?Qpt(r):XDr(r);if(a!=null)return a}return ZDr(r);case 4:let t=new Array(r);for(let a=0;a=xdt){let a=bs[r&8191];if(a)return a.read||(a.read=hne(a)),a.read();if(r<65536){if(r==QDr)return mne(wn());if(r==JDr){let i=eI(),s=wn();for(let o=2;o23)switch(t){case 24:t=Xe[Ie++];break;case 25:t=Gu.getUint16(Ie),Ie+=2;break;case 26:t=Gu.getUint32(Ie),Ie+=4;break;default:throw new Error("Expected array header, but got "+Xe[Ie-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(wn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=$r.keyMap?new Function("r","return {"+i.map(s=>$r.decodeKey(s)).map(s=>Idt.test(s)?hm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>Idt.test(s)?hm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(wn)}let a={};if($r.keyMap)for(let i=0;i64&&lne)return lne.decode(Xe.subarray(Ie,Ie+=r));let t=Ie+r,n=[];for(e="";Ie65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=Jo.apply(String,n),n.length=0)}return n.length>0&&(e+=Jo.apply(String,n)),e}var Jo=String.fromCharCode;function XDr(r){let e=Ie,t=new Array(r);for(let n=0;n0){Ie=e;return}t[n]=a}return Jo.apply(String,t)}function Qpt(r){if(r<4)if(r<2){if(r===0)return"";{let e=Xe[Ie++];if((e&128)>1){Ie-=1;return}return Jo(e)}}else{let e=Xe[Ie++],t=Xe[Ie++];if((e&128)>0||(t&128)>0){Ie-=2;return}if(r<3)return Jo(e,t);let n=Xe[Ie++];if((n&128)>0){Ie-=3;return}return Jo(e,t,n)}else{let e=Xe[Ie++],t=Xe[Ie++],n=Xe[Ie++],a=Xe[Ie++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ie-=4;return}if(r<6){if(r===4)return Jo(e,t,n,a);{let i=Xe[Ie++];if((i&128)>0){Ie-=5;return}return Jo(e,t,n,a,i)}}else if(r<8){let i=Xe[Ie++],s=Xe[Ie++];if((i&128)>0||(s&128)>0){Ie-=6;return}if(r<7)return Jo(e,t,n,a,i,s);let o=Xe[Ie++];if((o&128)>0){Ie-=7;return}return Jo(e,t,n,a,i,s,o)}else{let i=Xe[Ie++],s=Xe[Ie++],o=Xe[Ie++],c=Xe[Ie++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ie-=8;return}if(r<10){if(r===8)return Jo(e,t,n,a,i,s,o,c);{let u=Xe[Ie++];if((u&128)>0){Ie-=9;return}return Jo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Xe[Ie++],l=Xe[Ie++];if((u&128)>0||(l&128)>0){Ie-=10;return}if(r<11)return Jo(e,t,n,a,i,s,o,c,u,l);let h=Xe[Ie++];if((h&128)>0){Ie-=11;return}return Jo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Xe[Ie++],l=Xe[Ie++],h=Xe[Ie++],f=Xe[Ie++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ie-=12;return}if(r<14){if(r===12)return Jo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Xe[Ie++];if((m&128)>0){Ie-=13;return}return Jo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Xe[Ie++],y=Xe[Ie++];if((m&128)>0||(y&128)>0){Ie-=14;return}if(r<15)return Jo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let E=Xe[Ie++];if((E&128)>0){Ie-=15;return}return Jo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E)}}}}}function eOr(r){return $r.copyBuffers?Uint8Array.prototype.slice.call(Xe,Ie,Ie+=r):Xe.subarray(Ie,Ie+=r)}var Zpt=new Float32Array(1),yL=new Uint8Array(Zpt.buffer,0,4);function tOr(){let r=Xe[Ie++],e=Xe[Ie++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return yL[3]=r&128|(t>>1)+56,yL[2]=(r&7)<<5|e>>3,yL[1]=e<<5,yL[0]=0,Zpt[0]}var Hx=class{constructor(e,t){this.value=e,this.tag=t}};es[0]=r=>new Date(r);es[1]=r=>new Date(Math.round(r*1e3));es[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-es[2](r);es[4]=r=>Number(r[1]+"e"+r[0]);es[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var mne=r=>{let e=r[0]-57344,t=r[1],n=bs[e];n&&n.isShared&&((bs.restoreStructures||(bs.restoreStructures=[]))[e]=n),bs[e]=t,t.read=hne(t);let a={};if($r.keyMap)for(let i=2,s=r.length;ixo?xo[0].slice(xo.position0,xo.position0+=r):new Hx(r,14);es[15]=r=>xo?xo[1].slice(xo.position1,xo.position1+=r):new Hx(r,15);var rOr={Error,RegExp};es[27]=r=>(rOr[r[0]]||Error)(r[1],r[2]);var Xpt=r=>{if(Xe[Ie++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return Al=Al?e.concat(Al.slice(e.length)):e,Al.prefixes=r(),Al.suffixes=r(),r()};Xpt.handlesRead=!0;es[51]=Xpt;es[Tdt]=r=>{if(!Al)if($r.getShared)Kne();else return new Hx(r,Tdt);if(typeof r=="number")return Al[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};es[25]=r=>stringRefs[r];es[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};es[256].handlesRead=!0;es[28]=r=>{Fh||(Fh=new Map,Fh.id=0);let e=Fh.id++,t=Xe[Ie],n;t>>5==4?n=[]:n={};let a={target:n};Fh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};es[28].handlesRead=!0;es[29]=r=>{let e=Fh.get(r);return e.used=!0,e.target};es[258]=r=>new Set(r);(es[259]=r=>($r.mapsAsObjects&&($r.mapsAsObjects=!1,X8=!0),r())).handlesRead=!0;function Dx(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function i2(){if(!Al)if($r.getShared)Kne();else throw new Error("No packed values available");return Al}var nOr=1399353956;dne.push((r,e)=>{if(r>=225&&r<=255)return Dx(i2().prefixes[r-224],e);if(r>=28704&&r<=32767)return Dx(i2().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return Dx(i2().prefixes[r-1879048192],e);if(r>=216&&r<=223)return Dx(e,i2().suffixes[r-216]);if(r>=27647&&r<=28671)return Dx(e,i2().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return Dx(e,i2().suffixes[r-1811939328]);if(r==nOr)return{packedValues:Al,structures:bs.slice(0),version:e};if(r==55799)return e});var aOr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,kdt=[Uint8Array],iOr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Xe[Ie++];break;case 25:r=Gu.getUint16(Ie),Ie+=2;break;case 26:r=Gu.getUint32(Ie),Ie+=4;break}return r}function Kne(){if($r.getShared){let r=eht(()=>(Xe=null,$r.getShared()))||{},e=r.structures||[];$r.sharedVersion=r.version,Al=$r.sharedValues=r.packedValues,bs===!0?$r.structures=bs=e:bs.splice.apply(bs,[0,e.length].concat(e))}}function eht(r){let e=u2,t=Ie,n=rF,a=wI,i=tF,s=Fh,o=xo,c=new Uint8Array(Xe.slice(0,u2)),u=bs,l=$r,h=pne,f=r();return u2=e,Ie=t,rF=n,wI=a,tF=i,Fh=s,xo=o,Xe=c,pne=h,bs=u,$r=l,Gu=new DataView(Xe.buffer,Xe.byteOffset,Xe.byteLength),f}function tht(){Xe=null,Fh=null,bs=null}var rht=new Array(147);for(let r=0;r<256;r++)rht[r]=Number("1e"+Math.floor(45.15-r*.30103));var cOr=new Ux({useRecords:!1}),uOr=cOr.decode;function lOr(r,e){return Gne(r,e.abis)}function dOr(r,e){return Gne(Li.parse(r.abi||[]),[e])}function Gne(r,e){let t=jx(r),n=e.flatMap(i=>jx(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function nht(r,e){let t=await zx(r,e);return Vne(t.abi)}async function aht(r,e){let t=await zx(r,e);return jx(t.abi,t.metadata)}function iht(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function Vne(r){let e=Li.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function sht(r,e){let t=Li.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function jx(r,e){let n=Li.parse(r||[]).filter(i=>i.type==="function"),a=[];for(let i of n){let s=iht(i.name,e,"methods"),o=i.inputs?.map(f=>`${f.name||"key"}: ${yne(f)}`)?.join(", ")||"",c=o?`, ${o}`:"",u=i.outputs?.map(f=>yne(f,!0))?.join(", "),l=u?`: Promise<${u}>`:": Promise",h=`contract.call("${i.name}"${c})${l}`;a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",signature:h,stateMutability:i.stateMutability||"",comment:s})}return a}function oht(r,e){let n=Li.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=iht(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function yne(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>yne(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function cht(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function _I(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=cht(t);if(n)return await _I(n,e)}catch{}try{let n=await e.getStorageAt(r,Z.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Z.ethers.utils.hexStripZeros(n);if(a!=="0x")return await _I(a,e)}catch{}return await uht(t)}function uht(r){let e=pOr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=uOr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${NBr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function pOr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!hOr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:$Dr,t={};for(let n in e){let a=e[n],i=lOr(r,a),s=NI(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function Jne(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),Jne(n.features,e)}}function fOr(r){let e=[];return Jne(NI(r),e),e}function gne(r){let e=[];return Jne(NI(r),e),e.map(t=>t.name)}function Kx(r,e){let t=Li.parse(r||[]),n=NI(t);return lht(n,e)}function er(r,e){if(!r)throw new U0(e);return r}function Ye(r,e){return Kx(Li.parse(r.abi),e)}function lht(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=lht(s.features,e),a)break}return a}return r[e].enabled}function _o(r,e){return r in e.readContract.functions}async function nF(r,e,t,n,a){let i=[];try{let s=Kx(Li.parse(e),"PluginRouter");if(Kx(Li.parse(e),"ExtensionRouter")){let l=(await new Ds(t,r,Jpt,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await Adt(l,t,a)}else if(s){let l=(await new Ds(t,r,Ypt,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await Adt(h,t,a)}}catch{}return i.length>0?yOr([e,...i]):e}function mOr(r){let e=Kx(Li.parse(r),"PluginRouter");return Kx(Li.parse(r),"ExtensionRouter")||e}async function Adt(r,e,t){return(await Promise.all(r.map(n=>G0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function yOr(r){let e=r.map(a=>Li.parse(a)).flat(),n=NDr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Li.parse(n)}var Oe=class{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Oe(n)}static async fromContractInfo(e){let t=e.storage||new d2.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await G0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Z.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Oe(i)}constructor(e){Y._defineProperty(this,"contract",void 0),Y._defineProperty(this,"method",void 0),Y._defineProperty(this,"args",void 0),Y._defineProperty(this,"overrides",void 0),Y._defineProperty(this,"provider",void 0),Y._defineProperty(this,"signer",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"gaslessOptions",void 0),Y._defineProperty(this,"parse",void 0),Y._defineProperty(this,"gasMultiple",void 0),this.method=e.method,this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.gaslessOptions=e.gasless,this.parse=e.parse,this.signer.provider||(this.signer=this.signer.connect(this.provider)),this.contract=e.contract.connect(this.signer),this.storage=e.storage||new d2.ThirdwebStorage}getMethod(){return this.method}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}getGaslessOptions(){return this.gaslessOptions}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}setGasLimitMultiple(e){Z.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Z.BigNumber.from(Math.floor(Z.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Z.BigNumber.from(Math.floor(Z.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),this.transactionError(e)}}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Z.utils.formatEther(n),wei:n}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(HNr.FormatTypes.json));mOr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async getSignerAddress(){return this.signer.getAddress()}async sendGasless(){Ct.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Z.utils.solidityPack(["bytes","address"],[m,f]))}Ct.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Z.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Z.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Z.BigNumber.from(5e5)),this.overrides.gasLimit&&Z.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Z.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await KDr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}async getGasOverrides(){if(Hne())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await Wpt(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Z.utils.parseUnits("300","gwei"),i=Z.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Z.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Z.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(S=>JSON.stringify(S).length<=80?JSON.stringify(S):JSON.stringify(S,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` -`+l.map(S=>" "+S.split(` +`,I=`${f.name}(${y})`,C=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,R=Ime(e),L,F;try{let W=await z0(this.readContract.address,this.getProvider(),Qhe(this,Ghe));W.name&&(F=W.name),W.metadata.sources&&(L=await Ame(W,Qhe(this,Ghe)))}catch{}return new oY({reason:R,from:o,to:c,method:I,data:u,network:s,rpcUrl:h,value:l,hash:C,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Tt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Z.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Z.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Z.BigNumber.from(5e5)),n.gasLimit&&Z.BigNumber.from(n.gasLimit).gt(l)&&(l=Z.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(kl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await Mee(e,t,n,a);return this.emit(kl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Tt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Tt.default(t&&n,"signer and provider must be set");let a=new Z.ethers.Contract(kee(e.chainId,"biconomyForwarder"),mft,n),i=0,s=await rfe(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Z.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)]));this.emit(kl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(kl.Signature,{status:"completed",message:c,signature:u});let l=await Cee.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Tt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Tt.default(t,"provider is not set"),Tt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Kg[e.chainId].openzeppelinForwarderEOA:Kg[e.chainId].openzeppelinForwarder),i=new Z.Contract(a,vht.default,n),s=await rfe(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:fft},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data,chainid:Z.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:hft},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(kl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],I=e.functionArgs[1],{message:C,signature:R}=await gft(t,this.writeContract.address,e.from,y,I),{r:L,s:F,v:W}=Z.ethers.utils.splitSignature(R);u={to:this.readContract.address,owner:C.owner,spender:C.spender,value:Z.BigNumber.from(C.value).toString(),nonce:Z.BigNumber.from(C.nonce).toString(),deadline:Z.BigNumber.from(C.deadline).toString(),r:L,s:F,v:W},l=R}else{let{signature:y}=await Mee(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(kl.Signature,{status:"completed",message:u,signature:l});let m=await Cee.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function jh(r){return r.toLowerCase()===Ku||r.toLowerCase()===Z.constants.AddressZero}function nfe(r){return jh(r)?Ku:r}async function Cc(r,e,t){let n=await gY(r,t);return Z.utils.parseUnits($.AmountSchema.parse(e),n.decimals)}async function gY(r,e){if(jh(e)){let t=await r.getNetwork(),n=Jhe(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Z.Contract(e,zOr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function Tp(r,e,t){let n=await gY(r,e);return{...n,value:Z.BigNumber.from(t),displayValue:Z.utils.formatUnits(t,n.decimals)}}async function W0(r,e,t,n){if(jh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Rs(a||i,t,xu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function F8e(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Rs(i||s,e,xu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Z.BigNumber.from(t).mul(Z.BigNumber.from(n)).div(Z.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function zqr(r,e,t){let n=r.getProvider(),a=new Rs(n,e,xu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function Kqr(r,e){let t=await r.readContract.decimals();return Z.utils.parseUnits($.AmountSchema.parse(e),t)}function Gqr(r){return Z.utils.formatEther(r)}function Vqr(r){return Z.utils.parseEther($.AmountSchema.parse(r))}function Yqr(r,e){return Z.utils.parseUnits($.AmountSchema.parse(r),e)}function $qr(r,e){return Z.utils.formatUnits(r,e)}async function vft(r,e,t,n,a,i,s,o,c){let u=lm(t.maxClaimablePerWallet,a),l=[Z.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Z.constants.AddressZero)){let C=await Eme(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(C)l=C.proof,u=C.maxClaimable==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(C.maxClaimable,a),h=C.price===void 0||C.price==="unlimited"?Z.ethers.constants.MaxUint256:await Cc(i.getProvider(),C.price,C.currencyAddress||Z.ethers.constants.AddressZero),f=C.currencyAddress||Z.ethers.constants.AddressZero;else if(c===j2.V1)throw new Error("No claim found for this address")}}catch(C){if(C?.message==="No claim found for this address")throw C;console.warn("failed to check claim condition merkle root hash, continuing anyways",C)}let m=await i.getCallOverrides()||{},y=h.toString()!==Z.ethers.constants.MaxUint256.toString()?h:t.price,I=f!==Z.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(jh(I)?m.value=Z.BigNumber.from(y).mul(e).div(Z.ethers.utils.parseUnits("1",a)):o&&await F8e(i,I,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:I,priceInProof:h,currencyAddressInProof:f}}async function Qqr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await Cl.fromUri(n,t))?.getAllEntries()||null;{let i=await M8e.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Eme(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await Cl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await M8e.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function wft(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Z.ethers.utils.formatUnits(a,n),s=await ete.parseAsync({...t[r],price:i,...e}),o=await N8e.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Z.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function Jqr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await Tft(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Z.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function Zqr(r,e){let t=Z.BigNumber.from(r),n=Z.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function xft(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await Jqr(r,e,t,n,a),o=await Oht.parseAsync(i),c=(await Promise.all(o.map(u=>Xqr(u,e,t,n)))).sort((u,l)=>Zqr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function Xqr(r,e,t,n){let a=r.currencyAddress===Z.constants.AddressZero?Ku:r.currencyAddress,i=lm(r.maxClaimableSupply,e),s=lm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Cc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function afe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function ife(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function sfe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function ofe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function cfe(r,e,t,n,a,i){let s=await Tp(t,r.currency,r.pricePerToken),o=xee(r.maxClaimableSupply,e),c=xee(r.maxClaimablePerWallet,e),u=xee(Z.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=xee(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),N8e.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Z.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await Qqr(r.merkleRoot,n,a):void 0,metadata:h})}function xee(r,e){return r.toString()===Z.ethers.constants.MaxUint256.toString()?"unlimited":Z.ethers.utils.formatUnits(r,e)}function lm(r,e){return r==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(r,e)}async function _ft(r,e,t,n,a){let i={},s=n||Ku,c=(await Cc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Ku?i={value:c}:s!==Ku&&a&&await F8e(r,s,c,t,0)),i}var eFr=2,j2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),Cl=class{constructor(e,t,n,a,i){$._defineProperty(this,"shardNybbles",void 0),$._defineProperty(this,"shards",void 0),$._defineProperty(this,"trees",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"baseUri",void 0),$._defineProperty(this,"originalEntriesUri",void 0),$._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return Cl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new Cl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case j2.V1:return Z.utils.solidityKeccak256(["address","uint256"],[e.address,lm(e.maxClaimable,t)]);case j2.V2:return Z.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,lm(e.maxClaimable,t),lm(e.price||"unlimited",n),e.currencyAddress||Z.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await gY(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:eFr,o=await Xee.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,V]=F;return[W,new ACe.MerkleTree(await Promise.all(V.map(async K=>{let H=await Cl.fetchAndCacheDecimals(u,n,K.currencyAddress);return Cl.hashEntry(K,t,H,i)})),Z.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new ACe.MerkleTree(Object.values(h),Z.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let V={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${F}.json`})}let y=await a.uploadBatch(m),I=y[0].slice(0,y[0].lastIndexOf("/")),C=await a.upload(o),R={merkleRoot:f.getHexRoot(),baseUri:I,originalEntriesUri:C,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(R);return{shardedMerkleInfo:R,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await Cl.fetchAndCacheDecimals(s,t,f.currencyAddress);return Cl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new ACe.MerkleTree(h,Z.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await Cl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=Cl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return R8e.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function Tft(r,e,t,n,a){let i=await Xee.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(Rft(),this?this.decode(e,t):uY.prototype.decode.call(eht,e,t)));W2=t>-1?t:e.length,Ce=0,Hee=0,Mfe=null,wo=null,Xe=e;try{zu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Xe=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof uY){if(Yr=this,Al=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ps=this.structures,tht();(!ps||ps.length>0)&&(ps=[])}else Yr=eht,(!ps||ps.length>0)&&(ps=[]),Al=null;return tht()}};function tht(){try{let r=wn();if(wo){if(Ce>=wo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ce=wo.postBundlePosition,wo=null}if(Ce==W2)ps=null,Xe=null,Lh&&(Lh=null);else if(Ce>W2){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!u8e)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw Rft(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function wn(){let r=Xe[Ce++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Xe[Ce++];break;case 25:if(e==7)return dFr();r=zu.getUint16(Ce),Ce+=2;break;case 26:if(e==7){let t=zu.getFloat32(Ce);if(Yr.useFloat32>2){let n=Mft[(Xe[Ce]&127)<<1|Xe[Ce+1]>>7];return Ce+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ce+=4,t}r=zu.getUint32(Ce),Ce+=4;break;case 27:if(e==7){let t=zu.getFloat64(Ce);return Ce+=8,t}if(e>1){if(zu.getUint32(Ce)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=zu.getUint32(Ce+4)}else Yr.int64AsNumber?(r=zu.getUint32(Ce)*4294967296,r+=zu.getUint32(Ce+4)):r=zu.getBigUint64(Ce);Ce+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=wn())!=tY;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Yr.mapsAsObjects){let s={};if(Yr.keyMap)for(;(i=wn())!=tY;)s[dm(Yr.decodeKey(i))]=wn();else for(;(i=wn())!=tY;)s[dm(i)]=wn();return s}else{_ee&&(Yr.mapsAsObjects=!0,_ee=!1);let s=new Map;if(Yr.keyMap)for(;(i=wn())!=tY;)s.set(Yr.decodeKey(i),wn());else for(;(i=wn())!=tY;)s.set(i,wn());return s}case 7:return tY;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return lFr(r);case 3:if(Hee>=Ce)return Mfe.slice(Ce-Nfe,(Ce+=r)-Nfe);if(Hee==0&&W2<140&&r<32){let a=r<16?kft(r):uFr(r);if(a!=null)return a}return cFr(r);case 4:let t=new Array(r);for(let a=0;a=Zpt){let a=ps[r&8191];if(a)return a.read||(a.read=l8e(a)),a.read();if(r<65536){if(r==oFr)return p8e(wn());if(r==sFr){let i=Tee(),s=wn();for(let o=2;o23)switch(t){case 24:t=Xe[Ce++];break;case 25:t=zu.getUint16(Ce),Ce+=2;break;case 26:t=zu.getUint32(Ce),Ce+=4;break;default:throw new Error("Expected array header, but got "+Xe[Ce-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(wn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Yr.keyMap?new Function("r","return {"+i.map(s=>Yr.decodeKey(s)).map(s=>rht.test(s)?dm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>rht.test(s)?dm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(wn)}let a={};if(Yr.keyMap)for(let i=0;i64&&o8e)return o8e.decode(Xe.subarray(Ce,Ce+=r));let t=Ce+r,n=[];for(e="";Ce65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=Qo.apply(String,n),n.length=0)}return n.length>0&&(e+=Qo.apply(String,n)),e}var Qo=String.fromCharCode;function uFr(r){let e=Ce,t=new Array(r);for(let n=0;n0){Ce=e;return}t[n]=a}return Qo.apply(String,t)}function kft(r){if(r<4)if(r<2){if(r===0)return"";{let e=Xe[Ce++];if((e&128)>1){Ce-=1;return}return Qo(e)}}else{let e=Xe[Ce++],t=Xe[Ce++];if((e&128)>0||(t&128)>0){Ce-=2;return}if(r<3)return Qo(e,t);let n=Xe[Ce++];if((n&128)>0){Ce-=3;return}return Qo(e,t,n)}else{let e=Xe[Ce++],t=Xe[Ce++],n=Xe[Ce++],a=Xe[Ce++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ce-=4;return}if(r<6){if(r===4)return Qo(e,t,n,a);{let i=Xe[Ce++];if((i&128)>0){Ce-=5;return}return Qo(e,t,n,a,i)}}else if(r<8){let i=Xe[Ce++],s=Xe[Ce++];if((i&128)>0||(s&128)>0){Ce-=6;return}if(r<7)return Qo(e,t,n,a,i,s);let o=Xe[Ce++];if((o&128)>0){Ce-=7;return}return Qo(e,t,n,a,i,s,o)}else{let i=Xe[Ce++],s=Xe[Ce++],o=Xe[Ce++],c=Xe[Ce++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ce-=8;return}if(r<10){if(r===8)return Qo(e,t,n,a,i,s,o,c);{let u=Xe[Ce++];if((u&128)>0){Ce-=9;return}return Qo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Xe[Ce++],l=Xe[Ce++];if((u&128)>0||(l&128)>0){Ce-=10;return}if(r<11)return Qo(e,t,n,a,i,s,o,c,u,l);let h=Xe[Ce++];if((h&128)>0){Ce-=11;return}return Qo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Xe[Ce++],l=Xe[Ce++],h=Xe[Ce++],f=Xe[Ce++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ce-=12;return}if(r<14){if(r===12)return Qo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Xe[Ce++];if((m&128)>0){Ce-=13;return}return Qo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Xe[Ce++],y=Xe[Ce++];if((m&128)>0||(y&128)>0){Ce-=14;return}if(r<15)return Qo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let I=Xe[Ce++];if((I&128)>0){Ce-=15;return}return Qo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,I)}}}}}function lFr(r){return Yr.copyBuffers?Uint8Array.prototype.slice.call(Xe,Ce,Ce+=r):Xe.subarray(Ce,Ce+=r)}var Aft=new Float32Array(1),Vhe=new Uint8Array(Aft.buffer,0,4);function dFr(){let r=Xe[Ce++],e=Xe[Ce++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return Vhe[3]=r&128|(t>>1)+56,Vhe[2]=(r&7)<<5|e>>3,Vhe[1]=e<<5,Vhe[0]=0,Aft[0]}var lY=class{constructor(e,t){this.value=e,this.tag=t}};$i[0]=r=>new Date(r);$i[1]=r=>new Date(Math.round(r*1e3));$i[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-$i[2](r);$i[4]=r=>Number(r[1]+"e"+r[0]);$i[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var p8e=r=>{let e=r[0]-57344,t=r[1],n=ps[e];n&&n.isShared&&((ps.restoreStructures||(ps.restoreStructures=[]))[e]=n),ps[e]=t,t.read=l8e(t);let a={};if(Yr.keyMap)for(let i=2,s=r.length;iwo?wo[0].slice(wo.position0,wo.position0+=r):new lY(r,14);$i[15]=r=>wo?wo[1].slice(wo.position1,wo.position1+=r):new lY(r,15);var pFr={Error,RegExp};$i[27]=r=>(pFr[r[0]]||Error)(r[1],r[2]);var Pft=r=>{if(Xe[Ce++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return Al=Al?e.concat(Al.slice(e.length)):e,Al.prefixes=r(),Al.suffixes=r(),r()};Pft.handlesRead=!0;$i[51]=Pft;$i[Xpt]=r=>{if(!Al)if(Yr.getShared)U8e();else return new lY(r,Xpt);if(typeof r=="number")return Al[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};$i[25]=r=>stringRefs[r];$i[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};$i[256].handlesRead=!0;$i[28]=r=>{Lh||(Lh=new Map,Lh.id=0);let e=Lh.id++,t=Xe[Ce],n;t>>5==4?n=[]:n={};let a={target:n};Lh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};$i[28].handlesRead=!0;$i[29]=r=>{let e=Lh.get(r);return e.used=!0,e.target};$i[258]=r=>new Set(r);($i[259]=r=>(Yr.mapsAsObjects&&(Yr.mapsAsObjects=!1,_ee=!0),r())).handlesRead=!0;function rY(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function L2(){if(!Al)if(Yr.getShared)U8e();else throw new Error("No packed values available");return Al}var hFr=1399353956;c8e.push((r,e)=>{if(r>=225&&r<=255)return rY(L2().prefixes[r-224],e);if(r>=28704&&r<=32767)return rY(L2().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return rY(L2().prefixes[r-1879048192],e);if(r>=216&&r<=223)return rY(e,L2().suffixes[r-216]);if(r>=27647&&r<=28671)return rY(e,L2().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return rY(e,L2().suffixes[r-1811939328]);if(r==hFr)return{packedValues:Al,structures:ps.slice(0),version:e};if(r==55799)return e});var fFr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,nht=[Uint8Array],mFr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Xe[Ce++];break;case 25:r=zu.getUint16(Ce),Ce+=2;break;case 26:r=zu.getUint32(Ce),Ce+=4;break}return r}function U8e(){if(Yr.getShared){let r=Sft(()=>(Xe=null,Yr.getShared()))||{},e=r.structures||[];Yr.sharedVersion=r.version,Al=Yr.sharedValues=r.packedValues,ps===!0?Yr.structures=ps=e:ps.splice.apply(ps,[0,e.length].concat(e))}}function Sft(r){let e=W2,t=Ce,n=Nfe,a=Hee,i=Mfe,s=Lh,o=wo,c=new Uint8Array(Xe.slice(0,W2)),u=ps,l=Yr,h=u8e,f=r();return W2=e,Ce=t,Nfe=n,Hee=a,Mfe=i,Lh=s,wo=o,Xe=c,u8e=h,ps=u,Yr=l,zu=new DataView(Xe.buffer,Xe.byteOffset,Xe.byteLength),f}function Rft(){Xe=null,Lh=null,ps=null}var Mft=new Array(147);for(let r=0;r<256;r++)Mft[r]=Number("1e"+Math.floor(45.15-r*.30103));var bFr=new uY({useRecords:!1}),vFr=bFr.decode;function wFr(r,e){return H8e(r,e.abis)}function xFr(r,e){return H8e(Qi.parse(r.abi||[]),[e])}function H8e(r,e){let t=dY(r),n=e.flatMap(i=>dY(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function Nft(r,e){let t=await pY(r,e);return j8e(t.abi)}async function Bft(r,e){let t=await pY(r,e);return dY(t.abi,t.metadata)}function Dft(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function j8e(r){let e=Qi.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function Lft(r,e){let t=Qi.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function dY(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=Dft(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${h8e(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>h8e(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function Oft(r,e){let n=Qi.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=Dft(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function h8e(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>h8e(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function qft(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function jee(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=qft(t);if(n)return await jee(n,e)}catch{}try{let n=await e.getStorageAt(r,Z.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Z.ethers.utils.hexStripZeros(n);if(a!=="0x")return await jee(a,e)}catch{}return await Fft(t)}function Fft(r){let e=_Fr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=vFr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${jOr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function _Fr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!TFr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:aFr,t={};for(let n in e){let a=e[n],i=wFr(r,a),s=tte(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function G8e(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),G8e(n.features,e)}}function IFr(r){let e=[];return G8e(tte(r),e),e}function f8e(r){let e=[];return G8e(tte(r),e),e.map(t=>t.name)}function hY(r,e){let t=Qi.parse(r||[]),n=tte(t);return Wft(n,e)}function er(r,e){if(!r)throw new F0(e);return r}function $e(r,e){return hY(Qi.parse(r.abi),e)}function Wft(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=Wft(s.features,e),a)break}return a}return r[e].enabled}function vo(r,e){return r in e.readContract.functions}async function Bfe(r,e,t,n,a){let i=[];try{let s=hY(Qi.parse(e),"PluginRouter");if(hY(Qi.parse(e),"ExtensionRouter")){let l=(await new Rs(t,r,Cft,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await aht(l,t,a)}else if(s){let l=(await new Rs(t,r,Eft,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await aht(h,t,a)}}catch{}return i.length>0?CFr([e,...i]):e}function EFr(r){let e=hY(Qi.parse(r),"PluginRouter");return hY(Qi.parse(r),"ExtensionRouter")||e}async function aht(r,e,t){return(await Promise.all(r.map(n=>z0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function CFr(r){let e=r.map(a=>Qi.parse(a)).flat(),n=jqr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Qi.parse(n)}var Dfe=class{constructor(e){$._defineProperty(this,"args",void 0),$._defineProperty(this,"overrides",void 0),$._defineProperty(this,"provider",void 0),$._defineProperty(this,"signer",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"gasMultiple",void 0),this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage||new zg.ThirdwebStorage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){Z.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Z.BigNumber.from(Math.floor(Z.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Z.utils.formatEther(n),wei:n}}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Z.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){if(q8e())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await yft(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Z.utils.parseUnits("300","gwei"),i=Z.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}},Le=class extends Dfe{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Le(n)}static async fromContractInfo(e){let t=e.storage||new zg.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await z0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Z.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Le(i)}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),$._defineProperty(this,"method",void 0),$._defineProperty(this,"contract",void 0),$._defineProperty(this,"gaslessOptions",void 0),$._defineProperty(this,"parse",void 0),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage||new zg.ThirdwebStorage}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Z.BigNumber.from(Math.floor(Z.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(ZLr.FormatTypes.json));EFr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async sendGasless(){Tt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Z.utils.solidityPack(["bytes","address"],[m,f]))}Tt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Z.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Z.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Z.BigNumber.from(5e5)),this.overrides.gasLimit&&Z.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Z.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await tFr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Z.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(R=>JSON.stringify(R).length<=80?JSON.stringify(R):JSON.stringify(R,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` +`+l.map(R=>" "+R.split(` +`).join(` + `)).join(`, +`)+` +`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Ime(e),I,C;try{let R=await z0(this.contract.address,this.provider,this.storage);R.name&&(C=R.name),R.metadata.sources&&(I=await Ame(R,this.storage))}catch{}return new oY({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:C,sources:I})}},Lfe=class extends Dfe{constructor(e){super(e),$._defineProperty(this,"factory",void 0),$._defineProperty(this,"events",void 0),this.factory=e.factory,this.events=e.events}encode(){return Z.utils.hexlify(Z.utils.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();this.signer.call(e)}async estimateGasLimit(){try{let t={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,t);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(n){throw await this.simulate(),await this.deployError(n)}let t=Z.utils.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:t,transactionHash:e.hash}),t}async populateTransaction(){let t={...await this.getGasOverrides(),...this.overrides};return t.gasLimit||(t.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,t)}async deployError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.encode(),s=Z.BigNumber.from(this.overrides.value||0),o=t.connection?.url,c=this.args.map(m=>JSON.stringify(m).length<=80?JSON.stringify(m):JSON.stringify(m,void 0,2)),l=`deployContract(${c.join(", ").length<=80?c.join(", "):` +`+c.map(m=>" "+m.split(` `).join(` `)).join(`, `)+` -`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Une(e),E,I;try{let S=await G0(this.contract.address,this.provider,this.storage);S.name&&(I=S.name),S.metadata.sources&&(E=await $F(S,this.storage))}catch{}return new cI({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:I,sources:E})}},W0=class{constructor(e,t,n){Y._defineProperty(this,"featureName",OL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"schema",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new U0(OL)})),Y._defineProperty(this,"update",Ee(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{_o("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{_o("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await G0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return Ye(e,"ContractMetadata")}},aF=class{constructor(e,t){Y._defineProperty(this,"featureName",DL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"setAll",Ee(async n=>{let a=Object.keys(n);Ct.default(a.length,"you must provide at least one role to set"),Ct.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Re(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Re(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[Ox(u),y]))}),m.length)for(let y=0;y{Ct.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[Ox(n),i]})})),Y._defineProperty(this,"revoke",Ee(async(n,a)=>{Ct.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a),s=await this.getRevokeRoleFunctionName(i);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[Ox(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Ct.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Ct.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(_o("getRoleMemberCount",t)&&_o("getRoleMember",t)){let n=Ox(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Re(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new TL(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Re(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},iF=class{constructor(e,t){Y._defineProperty(this,"featureName",ML.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"setDefaultRoyaltyInfo",Ee(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(_o("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Y._defineProperty(this,"setTokenRoyaltyInfo",Ee(async(n,a)=>{let i=Zo.parse(a);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Zo.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Zo.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},sF=class{constructor(e){Y._defineProperty(this,"featureName",NL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"setRecipient",Ee(async t=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},GF={name:"Failed to load NFT metadata"};async function Qne(r,e,t){let n=e.replace("{id}",Z.ethers.utils.hexZeroPad(Z.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Z.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=GF}}return Y.CommonNFTOutput.parse({...a,id:Z.BigNumber.from(r).toString(),uri:e})}async function BI(r,e,t,n){let a,i=new Z.Contract(r,WF.default,e),s=await i.supportsInterface(kI),o=await i.supportsInterface(AI);if(s)a=await new Z.Contract(r,DBr.default,e).tokenURI(t);else if(o)a=await new Z.Contract(r,OBr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?Qne(t,a,n):Y.CommonNFTOutput.parse({...GF,id:Z.BigNumber.from(t).toString(),uri:""})}async function Zne(r,e){return typeof r=="string"?r:await e.upload(Y.CommonNFTInput.parse(r))}async function b2(r,e,t,n){if(gOr(r))return r;if(bOr(r))return await e.uploadBatch(r.map(i=>Y.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function qx(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function bOr(r){return r.find(e=>typeof e!="object")===void 0}var xI=class{constructor(e,t,n,a){Y._defineProperty(this,"featureName",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"nextTokenIdToMintFn",void 0),Y._defineProperty(this,"createDelayedRevealBatch",Ee(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=qx(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(q=>Y.CommonNFTInput.parse(q)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=qx(f),y=await this.contractWrapper.readContract.getBaseURICount(),E=await this.hashDelayRevealPassword(y,o),I=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),E),S;if(await this.isLegacyContract())S=I;else{let q=await this.contractWrapper.getChainID(),W=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),E,q]);S=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[I,W])}return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,S],parse:q=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",q?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:q});return H}})})),Y._defineProperty(this,"reveal",Ee(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(_o("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(_o("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Z.ethers.utils.hexDataLength(u)>0?s?u:Z.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Z.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Z.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return BI(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(_o("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Z.ethers.Contract(this.contractWrapper.readContract.address,LBr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Qo=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),ka=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),TI=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +`})`,h=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,f=Ime(e);return new oY({reason:f,from:a,method:l,data:i,network:n,rpcUrl:o,value:s,hash:h})}},q0=class{constructor(e,t,n){$._defineProperty(this,"featureName",hfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"schema",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new F0(hfe)})),$._defineProperty(this,"update",Ie(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{vo("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{vo("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await z0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return $e(e,"ContractMetadata")}},Ofe=class{constructor(e,t){$._defineProperty(this,"featureName",pfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"setAll",Ie(async n=>{let a=Object.keys(n);Tt.default(a.length,"you must provide at least one role to set"),Tt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Re(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Re(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[nY(u),y]))}),m.length)for(let y=0;y{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[nY(n),i]})})),$._defineProperty(this,"revoke",Ie(async(n,a)=>{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a),s=await this.getRevokeRoleFunctionName(i);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[nY(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Tt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Tt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(vo("getRoleMemberCount",t)&&vo("getRoleMember",t)){let n=nY(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Re(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new efe(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Re(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},qfe=class{constructor(e,t){$._defineProperty(this,"featureName",ufe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"setDefaultRoyaltyInfo",Ie(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(vo("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),$._defineProperty(this,"setTokenRoyaltyInfo",Ie(async(n,a)=>{let i=Zo.parse(a);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Zo.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Zo.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},Ffe=class{constructor(e){$._defineProperty(this,"featureName",lfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"setRecipient",Ie(async t=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},Cme={name:"Failed to load NFT metadata"};async function V8e(r,e,t){let n=e.replace("{id}",Z.ethers.utils.hexZeroPad(Z.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Z.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=Cme}}return $.CommonNFTOutput.parse({...a,id:Z.BigNumber.from(r).toString(),uri:e})}async function rte(r,e,t,n){let a,i=new Z.Contract(r,vme.default,e),s=await i.supportsInterface($ee),o=await i.supportsInterface(Qee);if(s)a=await new Z.Contract(r,KOr.default,e).tokenURI(t);else if(o)a=await new Z.Contract(r,GOr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?V8e(t,a,n):$.CommonNFTOutput.parse({...Cme,id:Z.BigNumber.from(t).toString(),uri:""})}async function Y8e(r,e){return typeof r=="string"?r:await e.upload($.CommonNFTInput.parse(r))}async function Y2(r,e,t,n){if(kFr(r))return r;if(AFr(r))return await e.uploadBatch(r.map(i=>$.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function sY(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function AFr(r){return r.find(e=>typeof e!="object")===void 0}var zee=class{constructor(e,t,n,a){$._defineProperty(this,"featureName",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"nextTokenIdToMintFn",void 0),$._defineProperty(this,"createDelayedRevealBatch",Ie(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([$.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=sY(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>$.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=sY(f),y=await this.contractWrapper.readContract.getBaseURICount(),I=await this.hashDelayRevealPassword(y,o),C=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),I),R;if(await this.isLegacyContract())R=C;else{let F=await this.contractWrapper.getChainID(),W=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),I,F]);R=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[C,W])}return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,R],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:F});return H}})})),$._defineProperty(this,"reveal",Ie(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(vo("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(vo("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Z.ethers.utils.hexDataLength(u)>0?s?u:Z.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Z.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Z.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return rte(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(vo("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Z.ethers.Contract(this.contractWrapper.readContract.address,VOr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Jo=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),ka=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),Kee=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(E=>typeof E=="string"?0:Number(E.maxClaimable?.toString()||0)).reduce((E,I)=>E+I,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await Kpt(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!zdt.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),E=await a.metadata._parseAndUploadMetadata(y);if(_o("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[E]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[kL(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(kL),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[AL(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(AL),s]));else throw new Error("Contract does not support claim conditions");return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"update",Ee(async(i,s)=>{let o=await this.getAll(),c=await zpt(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await RL(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return SL(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return SL(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return PL(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return PL(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cRL(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Re(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Z.ethers.utils.parseUnits(Y.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[ka.NoWallet];let c=await Re(t);try{i=await this.getActive()}catch(f){return uI(f,"!CONDITION")||uI(f,"no active mint condition")?(n.push(ka.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(ka.Unknown),n)}i.availableSupply!=="unlimited"&&Z.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(ka.NotEnoughSupply);let l=Z.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(ka.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),pm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0))return n.push(ka.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),pm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0)))return n.push(ka.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(ka.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Z.BigNumber.from(0),y=pm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let E=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(E,c)}if(f&&(y=pm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(ka.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Z.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Z.constants.MaxUint256)?n.push(ka.AlreadyClaimed):n.push(ka.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&Hpt()){let f=i.price.mul(Z.BigNumber.from(e)),m=this.contractWrapper.getProvider();Kh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(ka.NotEnoughTokens):(await new Ds(m,i.currencyAddress,_u.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(ka.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Z.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Re(e);return await KF(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return Ye(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return jpt(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Re(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV2")||Ye(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC721ClaimPhasesV2")||Ye(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV1")||Ye(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC721ClaimPhasesV1")||Ye(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?h2.V1:h2.V2}},oF=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Y._defineProperty(this,"setBatch",Ee(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(S=>{if(S.snapshot&&S.snapshot.length>0&&(S.maxClaimablePerWallet===void 0||S.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(I=>typeof I=="string"?0:Number(I.maxClaimable?.toString()||0)).reduce((I,C)=>I+C,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await xft(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!wht.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),I=await a.metadata._parseAndUploadMetadata(y);if(vo("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[I]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[afe(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(afe),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[ife(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(ife),s]));else throw new Error("Contract does not support claim conditions");return Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"update",Ie(async(i,s)=>{let o=await this.getAll(),c=await wft(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await cfe(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return sfe(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return sfe(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return ofe(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return ofe(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;ccfe(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Re(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Z.ethers.utils.parseUnits($.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[ka.NoWallet];let c=await Re(t);try{i=await this.getActive()}catch(f){return Ree(f,"!CONDITION")||Ree(f,"no active mint condition")?(n.push(ka.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(ka.Unknown),n)}i.availableSupply!=="unlimited"&&Z.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(ka.NotEnoughSupply);let l=Z.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(ka.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0))return n.push(ka.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0)))return n.push(ka.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(ka.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Z.BigNumber.from(0),y=lm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let I=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(I,c)}if(f&&(y=lm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(ka.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Z.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Z.constants.MaxUint256)?n.push(ka.AlreadyClaimed):n.push(ka.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&bft()){let f=i.price.mul(Z.BigNumber.from(e)),m=this.contractWrapper.getProvider();jh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(ka.NotEnoughTokens):(await new Rs(m,i.currencyAddress,xu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(ka.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Z.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Re(e);return await Eme(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return $e(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return vft(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Re(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV2")||$e(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC721ClaimPhasesV2")||$e(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV1")||$e(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC721ClaimPhasesV1")||$e(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?j2.V1:j2.V2}},Wfe=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),$._defineProperty(this,"setBatch",Ie(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(R=>{if(R.snapshot&&R.snapshot.length>0&&(R.maxClaimablePerWallet===void 0||R.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(S.snapshot&&S.snapshot.length>0&&S.maxClaimablePerWallet?.toString()==="0"&&S.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,q)=>L+q,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:E,sortedConditions:I}=await Kpt(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return E.forEach(S=>{o[S.merkleRoot]=S.snapshotUri}),{tokenId:f,sortedConditions:I}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!zdt.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(_o("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,kL(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(kL),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,AL(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(AL),s]));else throw new Error("Contract does not support claim conditions")}),Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Y._defineProperty(this,"update",Ee(async(i,s,o)=>{let c=await this.getAll(i),u=await zpt(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await RL(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return SL(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return SL(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return PL(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return PL(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cRL(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Re(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[ka.NoWallet];let o=await Re(n);try{s=await this.getActive(e)}catch(y){return uI(y,"!CONDITION")||uI(y,"no active mint condition")?(a.push(ka.NoClaimConditionSet),a):(a.push(ka.Unknown),a)}s.availableSupply!=="unlimited"&&Z.BigNumber.from(s.availableSupply).lt(t)&&a.push(ka.NotEnoughSupply);let u=Z.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(ka.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!E)return a.push(ka.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!E)return a.push(ka.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0))return a.push(ka.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0)))return a.push(ka.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(ka.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(ka.AddressNotAllowed),a;let[h,f]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Z.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Z.constants.MaxUint256)?a.push(ka.AlreadyClaimed):a.push(ka.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&Hpt()){let y=s.price.mul(t),E=this.contractWrapper.getProvider();Kh(s.currencyAddress)?(await E.getBalance(o)).lt(y)&&a.push(ka.NotEnoughTokens):(await new Ds(E,s.currencyAddress,_u.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(ka.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Z.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Re(t);return await KF(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Re(a||await this.contractWrapper.getSignerAddress());return jpt(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Re(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?h2.V1:h2.V2}},cF=class{constructor(e,t){Y._defineProperty(this,"featureName",mI.name),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Y._defineProperty(this,"from",Ee(async(n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Re(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},bne=class{constructor(e,t,n){Y._defineProperty(this,"featureName",fI.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new W0(this.contractWrapper,l2,this.storage);this.conditions=new TI(this.contractWrapper,a,this.storage)}},vne=class{constructor(e,t,n){Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new bne(this.erc20,this.contractWrapper,this.storage)}},uF=class{constructor(e,t){Y._defineProperty(this,"featureName",WL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"to",Ee(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Re(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},lF=class{constructor(e,t){Y._defineProperty(this,"featureName",yI.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Ye(this.contractWrapper,"ERC20BatchMintable"))return new uF(this.erc20,this.contractWrapper)}},dF=class{constructor(e,t){Y._defineProperty(this,"featureName",qL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Ee(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await H0(this.contractWrapper,Z.BigNumber.from(s.price),a.currencyAddress,o),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Y._defineProperty(this,"mintBatch",Ee(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Z.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>Lne.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Ct.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await cpt.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:fpt},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Ic(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},pF=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",UL.name),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"droppable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Re(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferFrom",Ee(async(a,i,s)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Re(a),await Re(i),await this.normalizeAmount(s)]}))),Y._defineProperty(this,"setAllowance",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferBatch",Ee(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Re(s.toAddress),o])}));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Y._defineProperty(this,"mint",Ee(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Ee(async(a,i)=>er(this.mintable,yI).to.prepare(a,i))),Y._defineProperty(this,"mintBatchTo",Ee(async a=>er(this.mintable?.batch,WL).to.prepare(a))),Y._defineProperty(this,"burn",Ee(async a=>er(this.burnable,mI).tokens.prepare(a))),Y._defineProperty(this,"burnFrom",Ee(async(a,i)=>er(this.burnable,mI).from.prepare(a,i))),Y._defineProperty(this,"claim",Ee(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Ee(async(a,i,s)=>er(this.droppable?.claim,fI).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await Yx(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Re(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Re(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Re(e),await Re(t)))}async getMintTransaction(e,t){return er(this.mintable,yI).getMintTransaction(e,t)}get claimConditions(){return er(this.droppable?.claim,fI).conditions}get signature(){return er(this.signatureMintable,qL)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Z.ethers.utils.parseUnits(Y.AmountSchema.parse(e),t)}async getValue(e){return await Cp(this.contractWrapper.getProvider(),this.getAddress(),Z.BigNumber.from(e))}detectErc20Mintable(){if(Ye(this.contractWrapper,"ERC20"))return new lF(this,this.contractWrapper)}detectErc20Burnable(){if(Ye(this.contractWrapper,"ERC20Burnable"))return new cF(this,this.contractWrapper)}detectErc20Droppable(){if(Ye(this.contractWrapper,"ERC20ClaimConditionsV1")||Ye(this.contractWrapper,"ERC20ClaimConditionsV2")||Ye(this.contractWrapper,"ERC20ClaimPhasesV1")||Ye(this.contractWrapper,"ERC20ClaimPhasesV2"))return new vne(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Ye(this.contractWrapper,"ERC20SignatureMintable"))return new dF(this.contractWrapper)}},hF=class{constructor(e){Y._defineProperty(this,"featureName",HL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"token",Ee(async t=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},wne=class{constructor(e,t){Y._defineProperty(this,"featureName",bI.name),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Ee(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await Gpt(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},fF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",zL.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new W0(this.contractWrapper,l2,this.storage);this.conditions=new TI(this.contractWrapper,a,this.storage)}},mF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",KL.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await b2(a,this.storage,s.toNumber(),i),c=qx(o);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Z.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if(Ye(this.contractWrapper,"ERC721Revealable"))return new xI(this.contractWrapper,this.storage,gI.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC721ClaimConditionsV1")||Ye(this.contractWrapper,"ERC721ClaimConditionsV2")||Ye(this.contractWrapper,"ERC721ClaimPhasesV1")||Ye(this.contractWrapper,"ERC721ClaimPhasesV2"))return new fF(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Ye(this.contractWrapper,"ERC721ClaimCustom"))return new wne(this.erc721,this.contractWrapper)}},yF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",GL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await b2(i,this.storage),o=await Re(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},gF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",VL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await Zne(i,this.storage);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Re(e),t)}detectErc721BatchMintable(){if(Ye(this.contractWrapper,"ERC721BatchMintable"))return new yF(this.erc721,this.contractWrapper,this.storage)}},bF=class{constructor(e,t){Y._defineProperty(this,"featureName",une.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},vF=class{constructor(e,t){Y._defineProperty(this,"featureName",Fx.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Z.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Ye(this.contractWrapper,"ERC721Enumerable"))return new bF(this.erc721,this.contractWrapper)}},vOr=HF.extend({tierPriority:pe.z.array(pe.z.string()),royaltyRecipient:Oi.default(Z.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0),quantity:Bs.default(1)}),_ne=class{constructor(e,t,n){Y._defineProperty(this,"featureName",jL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([Y.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=qx(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>Y.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=qx(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(l),m),E,I=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(l),m,f]);E=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,I]);let S=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,E]),L=this.contractWrapper.parseLogs("TokensLazyMinted",S?.logs),q=L[0].args[1],W=L[0].args[2],V=[];for(let K=q;K.lte(W);K=K.add(1))V.push({id:K,receipt:S,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>vOr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Ct.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:bpt},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Ic(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await H0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Ic(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},wF=class{constructor(e,t){Y._defineProperty(this,"featureName",$L.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"mint",Ee(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await H0(this.contractWrapper,u,a.currencyAddress,s),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await H0(this.contractWrapper,u,a.currencyAddress,s),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Y._defineProperty(this,"mintBatch",Ee(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(_o("multicall",this.contractWrapper))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>ppt.parseAsync(c))),a=n.map(c=>c.metadata),i=await b2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Ct.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await hpt.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:mpt},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:gpt},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Ic(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Ic(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Ye(this.contractWrapper,"ERC721SignatureMintV1")}},_F=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",YL.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"tieredDropable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Re(a),i]})})),Y._defineProperty(this,"setApprovalForAll",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Re(a),i]}))),Y._defineProperty(this,"setApprovalForToken",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),i]}))),Y._defineProperty(this,"mint",Ee(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Ee(async(a,i)=>er(this.mintable,VL).to.prepare(a,i))),Y._defineProperty(this,"mintBatch",Ee(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintBatchTo",Ee(async(a,i)=>er(this.mintable?.batch,GL).to.prepare(a,i))),Y._defineProperty(this,"burn",Ee(async a=>er(this.burnable,HL).token.prepare(a))),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>er(this.lazyMintable,KL).lazyMint.prepare(a,i))),Y._defineProperty(this,"claim",Ee(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Ee(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new U0(bI)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Z.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...GF}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Re(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async getAll(e){return er(this.query,Fx).all(e)}async getAllOwners(){return er(this.query,Fx).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return er(this.query,Fx).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Z.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new U0(bI)}async totalClaimedSupply(){let e=this.contractWrapper;if(_o("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(_o("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,zL).conditions}get tieredDrop(){return er(this.tieredDropable,jL)}get signature(){return er(this.signatureMintable,$L)}get revealer(){return er(this.lazyMintable?.revealer,gI)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new oI;return Qne(e,t,this.storage)}async nextTokenIdToMint(){if(_o("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(_o("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Ye(this.contractWrapper,"ERC721Supply")||_o("nextTokenIdToMint",this.contractWrapper))return new vF(this,this.contractWrapper)}detectErc721Mintable(){if(Ye(this.contractWrapper,"ERC721Mintable"))return new gF(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Ye(this.contractWrapper,"ERC721Burnable"))return new hF(this.contractWrapper)}detectErc721LazyMintable(){if(Ye(this.contractWrapper,"ERC721LazyMintable"))return new mF(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Ye(this.contractWrapper,"ERC721TieredDrop"))return new _ne(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Ye(this.contractWrapper,"ERC721SignatureMintV1")||Ye(this.contractWrapper,"ERC721SignatureMintV2"))return new wF(this.contractWrapper,this.storage)}},Sdt=pe.z.object({address:Oi,quantity:Y.AmountSchema.default(1)}),wOr=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>Sdt.parseAsync({address:e})))),pe.z.array(Sdt)]),xF=class{constructor(e){Y._defineProperty(this,"featureName",s2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Ee(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Y._defineProperty(this,"from",Ee(async(t,n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Re(t),n,a]}))),Y._defineProperty(this,"batch",Ee(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Y._defineProperty(this,"batchFrom",Ee(async(t,n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Re(t),n,a]}))),this.contractWrapper=e}},TF=class{constructor(e,t){Y._defineProperty(this,"featureName",c2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function Xne(r,e){try{let t=new Z.ethers.Contract(r,Ane.default,e),[n,a]=await Promise.all([Z.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var xne=class{constructor(e){Y._defineProperty(this,"featureName",vI.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Ee(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await Gpt(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Re(e),t,n],overrides:i})}},Tne=class{constructor(e,t){Y._defineProperty(this,"featureName",JL.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new W0(this.contractWrapper,l2,this.storage);this.conditions=new oF(e,n,this.storage)}},EF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",QL.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await b2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,E=[];for(let I=m;I.lte(y);I=I.add(1))E.push({id:I,receipt:h,data:()=>this.erc1155.getTokenMetadata(I)});return E},l=await Xne(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Z.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if(Ye(this.contractWrapper,"ERC1155ClaimCustom"))return new xne(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC1155ClaimConditionsV1")||Ye(this.contractWrapper,"ERC1155ClaimConditionsV2")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV1")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new Tne(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Ye(this.contractWrapper,"ERC1155Revealable"))return new xI(this.contractWrapper,this.storage,Wx.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},CF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",XL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await b2(s,this.storage),u=await Re(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Z.ethers.constants.MaxUint256,h,o[f]])));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},IF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",o2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Y._defineProperty(this,"additionalSupplyTo",Ee(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),i,o.uri,s],parse:c=>({id:Z.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Zne(t.metadata,this.storage);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),Z.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(Ye(this.contractWrapper,"ERC1155BatchMintable"))return new CF(this.erc1155,this.contractWrapper,this.storage)}},kF=class{constructor(e,t,n){Y._defineProperty(this,"featureName",ZL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Ee(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await H0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Y._defineProperty(this,"mintBatch",Ee(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(_o("multicall",this.contractWrapper))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Z.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Z.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>lpt.parseAsync(u))),n=t.map(u=>u.metadata),a=await b2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Ct.default(s,"No signer available");let c=(await Xne(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await dpt.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:ypt},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Ic(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},AF=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Y._defineProperty(this,"featureName",eF.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Re(i),s,o,c]})})),Y._defineProperty(this,"setApprovalForAll",Ee(async(i,s)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Y._defineProperty(this,"airdrop",Ee(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await wOr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:E}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,E,o])});return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"mint",Ee(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintTo",Ee(async(i,s)=>er(this.mintable,o2).to.prepare(i,s))),Y._defineProperty(this,"mintAdditionalSupply",Ee(async(i,s)=>er(this.mintable,o2).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Y._defineProperty(this,"mintAdditionalSupplyTo",Ee(async(i,s,o)=>er(this.mintable,o2).additionalSupplyTo.prepare(i,s,o))),Y._defineProperty(this,"mintBatch",Ee(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintBatchTo",Ee(async(i,s)=>er(this.mintable?.batch,XL).to.prepare(i,s))),Y._defineProperty(this,"burn",Ee(async(i,s)=>er(this.burnable,s2).tokens.prepare(i,s))),Y._defineProperty(this,"burnFrom",Ee(async(i,s,o)=>er(this.burnable,s2).from.prepare(i,s,o))),Y._defineProperty(this,"burnBatch",Ee(async(i,s)=>er(this.burnable,s2).batch.prepare(i,s))),Y._defineProperty(this,"burnBatchFrom",Ee(async(i,s,o)=>er(this.burnable,s2).batchFrom.prepare(i,s,o))),Y._defineProperty(this,"lazyMint",Ee(async(i,s)=>er(this.lazyMintable,QL).lazyMint.prepare(i,s))),Y._defineProperty(this,"claim",Ee(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Y._defineProperty(this,"claimTo",Ee(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new U0(vI)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Z.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...GF}))]);return{owner:Z.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Re(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async nextTokenIdToMint(){if(_o("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return er(this.query,c2).all(e)}async totalCount(){return er(this.query,c2).totalCount()}async totalCirculatingSupply(e){return er(this.query,c2).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Re(e)),er(this.query,c2).owned(e)}async getMintTransaction(e,t){return er(this.mintable,o2).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new U0(vI)}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,JL).conditions}get signature(){return er(this.signatureMintable,ZL)}get revealer(){return er(this.lazyMintable?.revealer,Wx)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new oI;return Qne(e,t,this.storage)}detectErc1155Enumerable(){if(Ye(this.contractWrapper,"ERC1155Enumerable"))return new TF(this,this.contractWrapper)}detectErc1155Mintable(){if(Ye(this.contractWrapper,"ERC1155Mintable"))return new IF(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Ye(this.contractWrapper,"ERC1155Burnable"))return new xF(this.contractWrapper)}detectErc1155LazyMintable(){if(Ye(this.contractWrapper,"ERC1155LazyMintableV1")||Ye(this.contractWrapper,"ERC1155LazyMintableV2"))return new EF(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Ye(this.contractWrapper,"ERC1155SignatureMintable"))return new kF(this.contractWrapper,this.storage)}};async function dht(r,e,t,n,a){try{let i=new Z.Contract(t,WF.default,r),s=await i.supportsInterface(kI),o=await i.supportsInterface(AI);if(s){let c=new Z.Contract(t,kc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Z.Contract(t,$u.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function EI(r,e,t,n,a){let i=new Ds(r.getSignerOrProvider(),t,WF.default,r.options),s=await i.readContract.supportsInterface(kI),o=await i.readContract.supportsInterface(AI);if(s){let c=new Ds(r.getSignerOrProvider(),t,kc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Ds(r.getSignerOrProvider(),t,$u.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function _Or(r){switch(Ct.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Ct.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Ct.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Ct.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Ct.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Ct.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Ct.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function xOr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await Cp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function TOr(r,e,t){return t=Z.BigNumber.from(t),r=Z.BigNumber.from(r),e=Z.BigNumber.from(e),r.eq(Z.BigNumber.from(0))?!1:e.sub(r).mul(Y.MAX_BPS).div(r).gte(t)}async function Gx(r,e,t){let n=[];for(;e-r>Y.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Y.DEFAULT_QUERY_ALL_COUNT-1)),r+=Y.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var Pdt=pe.z.object({assetContractAddress:Oi,tokenId:eo,quantity:eo.default(1),currencyContractAddress:Oi.default(Vu),pricePerToken:Y.AmountSchema,startTimestamp:SI.default(new Date),endTimestamp:PI,isReservedListing:pe.z.boolean().default(!1)}),m2=class{constructor(e){Y._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(kl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(kl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await Pdt.parseAsync(n);await EI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Ic(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Z.BigNumber.from(o)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:IL(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Y._defineProperty(this,"updateListing",Ee(async(n,a)=>{let i=await Pdt.parseAsync(a);await EI(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ic(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:IL(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Y._defineProperty(this,"cancelListing",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Y._defineProperty(this,"buyFromListing",Ee(async(n,a,i)=>{i&&(i=await Re(i));let s=await this.validateListing(Z.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Z.BigNumber.from(a),h=Z.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await H0(this.contractWrapper,h,s.currencyContractAddress,f),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Y._defineProperty(this,"approveBuyerForReservedListing",Ee(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Y._defineProperty(this,"revokeBuyerApprovalForReservedListing",Ee(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Y._defineProperty(this,"approveCurrencyForListing",Ee(async(n,a,i)=>{let s=await this.validateListing(Z.BigNumber.from(n)),o=await Re(a);o===s.currencyContractAddress&&Ct.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Ct.default(i===c,"Currency already approved with this price."),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Y._defineProperty(this,"revokeCurrencyApprovalForListing",Ee(async(n,a)=>{let i=await this.validateListing(Z.BigNumber.from(n)),s=await Re(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Ct.default(!o.isZero(),"Currency not approved."),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Z.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new m2(this.contractWrapper),this.encoder=new f2(this.contractWrapper),this.interceptor=new y2(this.contractWrapper),this.estimator=new g2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Z.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Re(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Z.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Re(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Z.BigNumber.from(e)),a=await Re(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Qo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Qo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Qo.Expired:Qo.Active;break;case 2:t=Qo.Completed;break;case 3:t=Qo.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await Cp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),asset:await BI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await dht(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Z.Contract(e.assetContractAddress,WF.default,a),s=await i.supportsInterface(kI),o=await i.supportsInterface(AI);if(s){let u=(await new Z.Contract(e.assetContractAddress,kc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Z.Contract(e.assetContractAddress,$u.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=EOr.parse(n);await EI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Ic(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Ic(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Z.BigNumber.from(c)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:IL(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Y._defineProperty(this,"buyoutAuction",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n)),i=await Yx(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Z.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Y._defineProperty(this,"makeBid",Ee(async(n,a)=>{let i=await this.validateAuction(Z.BigNumber.from(n)),s=await Ic(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Z.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Z.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Ct.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Z.BigNumber.from(i.minimumBidAmount);Ct.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await H0(this.contractWrapper,s,i.currencyContractAddress,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Y._defineProperty(this,"cancelAuction",Ee(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Y._defineProperty(this,"closeAuctionForBidder",Ee(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Z.BigNumber.from(n));try{return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Z.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new Lx(n.toString(),i.endTimeInSeconds.toString()):s}})),Y._defineProperty(this,"closeAuctionForSeller",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Z.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new Lx(n.toString(),a.endTimeInSeconds.toString()):i}})),Y._defineProperty(this,"executeSale",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{let i=await this.getWinningBid(n);Ct.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new Lx(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new m2(this.contractWrapper),this.encoder=new f2(this.contractWrapper),this.interceptor=new y2(this.contractWrapper),this.estimator=new g2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Z.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Z.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Z.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Z.BigNumber.from(Math.floor(Date.now()/1e3)),i=Z.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Z.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Z.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Z.BigNumber.from(e))]),i=n?Z.BigNumber.from(n.bidAmount):Z.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return Cp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Qo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Qo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Qo.Expired:Qo.Active;break;case 2:t=Qo.Completed;break;case 3:t=Qo.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await Cp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await Cp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Z.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Z.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),asset:await BI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Re(t),s=await Re(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await Cp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await COr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Kh(a.currencyContractAddress)?iI[i].wrapped.address:a.currencyContractAddress,o=await Ic(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await H0(this.contractWrapper,o,s,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Y._defineProperty(this,"cancelOffer",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Y._defineProperty(this,"acceptOffer",Ee(async n=>{let a=await this.validateOffer(Z.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await EI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new m2(this.contractWrapper),this.encoder=new f2(this.contractWrapper),this.interceptor=new y2(this.contractWrapper),this.estimator=new g2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Qo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.expirationTimestamp).lt(a)?Qo.Expired:Qo.Active;break;case 2:t=Qo.Completed;break;case 3:t=Qo.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await Cp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await BI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Z.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Kh(e.currencyContractAddress)?iI[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Ds(i,a,_u.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Re(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await Rl(r,e,t);if(n)return n;let a=await VF(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Xo(VX())})).default:(await Promise.resolve().then(function(){return Xo($X())})).default}},j0={name:"TokenERC1155",contractType:"edition",schema:Mpt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(YX())})).default}},Ip={name:"Marketplace",contractType:"marketplace",schema:Wne,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(XX())})).default}},mm={name:"MarketplaceV3",contractType:"marketplace-v3",schema:Wne,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return await nF(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Xo(eee())})).default;return await nF(r,Li.parse(a||[]),e,{},t)}},kp={name:"Multiwrap",contractType:"multiwrap",schema:mht,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(ree())})).default}},z0={name:"TokenERC721",contractType:"nft-collection",schema:Ppt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(nee())})).default}},Wh={name:"DropERC721",contractType:"nft-drop",schema:qne,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await VF(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Xo(aee())})).default:(await Promise.resolve().then(function(){return Xo(iee())})).default}},Sl={name:"Pack",contractType:"pack",schema:Ept,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||Li.parse((await Promise.resolve().then(function(){return Xo(uee())})).default||[])}},Uh={name:"SignatureDrop",contractType:"signature-drop",schema:qne,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await VF(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Xo(lee())})).default:(await Promise.resolve().then(function(){return Xo(dee())})).default}},Hh={name:"Split",contractType:"split",schema:Ipt,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(hee())})).default}},K0={name:"DropERC20",contractType:"token-drop",schema:hht,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await VF(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Xo(yee())})).default:(await Promise.resolve().then(function(){return Xo(gee())})).default}},jh={name:"TokenERC20",contractType:"token",schema:Apt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(wee())})).default}},zh={name:"VoteERC20",contractType:"vote",schema:Dpt,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(Eee())})).default}};async function VF(r,e){try{return await Xne(r,e)}catch{return}}var ym={[qh.contractType]:qh,[j0.contractType]:j0,[Ip.contractType]:Ip,[mm.contractType]:mm,[kp.contractType]:kp,[z0.contractType]:z0,[Wh.contractType]:Wh,[Sl.contractType]:Sl,[Uh.contractType]:Uh,[Hh.contractType]:Hh,[K0.contractType]:K0,[jh.contractType]:jh,[zh.contractType]:zh},yht={[qh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[j0.contractType]:"",[Ip.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[mm.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[kp.contractType]:"",[z0.contractType]:"",[Wh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Sl.contractType]:"",[Uh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Hh.contractType]:"",[K0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[jh.contractType]:"",[zh.contractType]:""},Rdt={name:"SmartContract",contractType:"custom",schema:{},roles:zne},eae={...ym,[Rdt.contractType]:Rdt};function tae(r){return Object.values(eae).find(e=>e.name===r)?.contractType||"custom"}function rae(r){return Object.values(eae).find(e=>e.contractType===r)?.name}async function ght(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Sl.contractType?[]:Pne(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Wh.contractType:case z0.contractType:let o=await Wh.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Uh.contractType:let c=await Uh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case kp.contractType:let u=await kp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case qh.contractType:case j0.contractType:let l=await qh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case K0.contractType:case jh.contractType:let h=await jh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case zh.contractType:let f=await zh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Z.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Hh.contractType:let m=await Hh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(I=>I.address),m.recipients.map(I=>Z.BigNumber.from(I.sharesBps))];case Ip.contractType:case mm.contractType:let y=await Ip.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Sl.contractType:let E=await Sl.schema.deploy.parseAsync(e);return[i,E.name,E.symbol,t,s,E.fee_recipient,E.seller_fee_basis_points];default:return[]}}function POr(r,e){return r||(e?.gatewayUrls?new d2.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new d2.ThirdwebStorage)}var CI=class{constructor(e,t,n){Y._defineProperty(this,"featureName",LL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async a=>Ye(this.contractWrapper,"AppURI")?Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return Ye(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():d2.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},MF=class{constructor(e){Y._defineProperty(this,"featureName",BL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Ee(async t=>{let n=await Ap.parseAsync(t);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Ap.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},NF=class{constructor(e,t){Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await G0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return jx(Li.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return oht(Li.parse(this.contractWrapper.abi),e?.metadata)}},BF=class{get royalties(){return er(this.detectRoyalties(),ML)}get roles(){return er(this.detectRoles(),DL)}get sales(){return er(this.detectPrimarySales(),NL)}get platformFees(){return er(this.detectPlatformFees(),BL)}get owner(){return er(this.detectOwnable(),FL)}get erc20(){return er(this.detectErc20(),UL)}get erc721(){return er(this.detectErc721(),YL)}get erc1155(){return er(this.detectErc1155(),eF)}get app(){return er(this.detectApp(),LL)}get directListings(){return er(this.detectDirectListings(),dI)}get englishAuctions(){return er(this.detectEnglishAuctions(),pI)}get offers(){return er(this.detectOffers(),hI)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ds(e,t,n,i);Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"interceptor",void 0),Y._defineProperty(this,"encoder",void 0),Y._defineProperty(this,"estimator",void 0),Y._defineProperty(this,"publishedMetadata",void 0),Y._defineProperty(this,"abi",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Li.parse(n||[]),this.events=new m2(this.contractWrapper),this.encoder=new f2(this.contractWrapper),this.interceptor=new y2(this.contractWrapper),this.estimator=new g2(this.contractWrapper),this.publishedMetadata=new NF(this.contractWrapper,this.storage),this.metadata=new W0(this.contractWrapper,l2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let i=this.getSigner();Ct.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Y._defineProperty(this,"publish",Ee(async(a,i)=>{let s=this.getSigner();Ct.default(s,"A signer is required");let o=await s.getAddress(),c=await $ne(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let S=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!wht(S,i.version))throw Error(`Version ${i.version} is not greater than ${S}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Z.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=kht.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),E=await this.storage.upload(y);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,E,c.metadataUri,f,Z.constants.AddressZero],parse:I=>{let S=this.publisher.parseLogs("ContractPublished",I.logs);if(S.length<1)throw new Error("No ContractPublished event found");let L=S[0].args.publishedContract;return{receipt:I,data:async()=>this.toPublishedContract(L)}}})})),Y._defineProperty(this,"unpublish",Ee(async(a,i)=>{let s=await Re(a);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Ds(e,Qdt(),FBr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return nht(e,this.storage)}async extractFunctions(e){return aht(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return zx(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await zx(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Re(e);return G0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return Yne(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Re(e),n=await _I(t,this.getProvider());return Ct.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Re(e),n=await this.fetchCompilerMetadataFromAddress(t);return await $F(n,this.storage)}async getPublisherProfile(e){let t=await Re(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:Pht.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Re(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Re(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Ct.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return Rht.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},Ene=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y._defineProperty(this,"registryLogic",void 0),Y._defineProperty(this,"registryRouter",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"addContract",Ee(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Ee(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Oe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Ee(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Ee(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Re(o.address),o.chainId])));return Oe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Ds(e,jre(),qBr.default,n),this.registryRouter=new Ds(e,jre(),WBr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Re(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Z.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},Vx=class{constructor(e,t){Y._defineProperty(this,"connection",void 0),Y._defineProperty(this,"options",void 0),Y._defineProperty(this,"events",new Fre.default),this.connection=new p2(e,t),this.options=t,this.events=new Fre.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vu,a=await Re(e),i=await Re(n),s=this.requireWallet(),o=await Ic(this.connection.getProvider(),t,n);if(Kh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vu;this.requireWallet();let t=await Re(e),n=this.connection.getProvider(),a;return Kh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await Cp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await lI(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Z.ethers.utils.hashMessage(e),a=Z.ethers.utils.arrayify(n);return Z.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Be.Localhost||t===Be.Hardhat)return new Vx(new Z.ethers.Wallet(Ydt,sI(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Ct.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Ds(this.connection.getSignerOrProvider(),e,_u.default,this.options)}},fm=class extends p2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return fm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=sI(t,n);i=e.connect(o)}let s=new fm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=sI(t,n),s=new Z.Wallet(e,i);return new fm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;zF(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Y._defineProperty(this,"contractCache",new Map),Y._defineProperty(this,"_publisher",void 0),Y._defineProperty(this,"storageHandler",void 0),Y._defineProperty(this,"deployer",void 0),Y._defineProperty(this,"multiChainRegistry",void 0),Y._defineProperty(this,"wallet",void 0),Y._defineProperty(this,"storage",void 0),Vdt(t?.supportedChains);let a=POr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new Vx(e,t),this.deployer=new LF(e,t,a),this.multiChainRegistry=new Ene(e,this.storageHandler,this.options),this._publisher=new DF(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(R.snapshot&&R.snapshot.length>0&&R.maxClaimablePerWallet?.toString()==="0"&&R.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:I,sortedConditions:C}=await xft(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return I.forEach(R=>{o[R.merkleRoot]=R.snapshotUri}),{tokenId:f,sortedConditions:C}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!wht.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(vo("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,afe(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(afe),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,ife(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(ife),s]));else throw new Error("Contract does not support claim conditions")}),Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),$._defineProperty(this,"update",Ie(async(i,s,o)=>{let c=await this.getAll(i),u=await wft(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await cfe(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return sfe(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return sfe(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return ofe(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return ofe(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;ccfe(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Re(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[ka.NoWallet];let o=await Re(n);try{s=await this.getActive(e)}catch(y){return Ree(y,"!CONDITION")||Ree(y,"no active mint condition")?(a.push(ka.NoClaimConditionSet),a):(a.push(ka.Unknown),a)}s.availableSupply!=="unlimited"&&Z.BigNumber.from(s.availableSupply).lt(t)&&a.push(ka.NotEnoughSupply);let u=Z.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(ka.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),I;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!I)return a.push(ka.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!I)return a.push(ka.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0))return a.push(ka.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0)))return a.push(ka.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(ka.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(ka.AddressNotAllowed),a;let[h,f]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Z.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Z.constants.MaxUint256)?a.push(ka.AlreadyClaimed):a.push(ka.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&bft()){let y=s.price.mul(t),I=this.contractWrapper.getProvider();jh(s.currencyAddress)?(await I.getBalance(o)).lt(y)&&a.push(ka.NotEnoughTokens):(await new Rs(I,s.currencyAddress,xu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(ka.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Z.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Re(t);return await Eme(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Re(a||await this.contractWrapper.getSignerAddress());return vft(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Re(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?j2.V1:j2.V2}},Ufe=class{constructor(e,t){$._defineProperty(this,"featureName",Oee.name),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Ie(async n=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),$._defineProperty(this,"from",Ie(async(n,a)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Re(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},m8e=class{constructor(e,t,n){$._defineProperty(this,"featureName",Lee.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new q0(this.contractWrapper,U2,this.storage);this.conditions=new Kee(this.contractWrapper,a,this.storage)}},y8e=class{constructor(e,t,n){$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new m8e(this.erc20,this.contractWrapper,this.storage)}},Hfe=class{constructor(e,t){$._defineProperty(this,"featureName",gfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"to",Ie(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Re(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},jfe=class{constructor(e,t){$._defineProperty(this,"featureName",qee.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Ie(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if($e(this.contractWrapper,"ERC20BatchMintable"))return new Hfe(this.erc20,this.contractWrapper)}},zfe=class{constructor(e,t){$._defineProperty(this,"featureName",yfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Ie(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await W0(this.contractWrapper,Z.BigNumber.from(s.price),a.currencyAddress,o),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),$._defineProperty(this,"mintBatch",Ie(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Z.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>B8e.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Tt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await qht.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:zht},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},Kfe=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",bfe.name),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"droppable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Re(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferFrom",Ie(async(a,i,s)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Re(a),await Re(i),await this.normalizeAmount(s)]}))),$._defineProperty(this,"setAllowance",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferBatch",Ie(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Re(s.toAddress),o])}));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),$._defineProperty(this,"mint",Ie(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Ie(async(a,i)=>er(this.mintable,qee).to.prepare(a,i))),$._defineProperty(this,"mintBatchTo",Ie(async a=>er(this.mintable?.batch,gfe).to.prepare(a))),$._defineProperty(this,"burn",Ie(async a=>er(this.burnable,Oee).tokens.prepare(a))),$._defineProperty(this,"burnFrom",Ie(async(a,i)=>er(this.burnable,Oee).from.prepare(a,i))),$._defineProperty(this,"claim",Ie(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Ie(async(a,i,s)=>er(this.droppable?.claim,Lee).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await gY(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Re(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Re(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Re(e),await Re(t)))}async getMintTransaction(e,t){return er(this.mintable,qee).getMintTransaction(e,t)}get claimConditions(){return er(this.droppable?.claim,Lee).conditions}get signature(){return er(this.signatureMintable,yfe)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Z.ethers.utils.parseUnits($.AmountSchema.parse(e),t)}async getValue(e){return await Tp(this.contractWrapper.getProvider(),this.getAddress(),Z.BigNumber.from(e))}detectErc20Mintable(){if($e(this.contractWrapper,"ERC20"))return new jfe(this,this.contractWrapper)}detectErc20Burnable(){if($e(this.contractWrapper,"ERC20Burnable"))return new Ufe(this,this.contractWrapper)}detectErc20Droppable(){if($e(this.contractWrapper,"ERC20ClaimConditionsV1")||$e(this.contractWrapper,"ERC20ClaimConditionsV2")||$e(this.contractWrapper,"ERC20ClaimPhasesV1")||$e(this.contractWrapper,"ERC20ClaimPhasesV2"))return new y8e(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if($e(this.contractWrapper,"ERC20SignatureMintable"))return new zfe(this.contractWrapper)}},Gfe=class{constructor(e){$._defineProperty(this,"featureName",vfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"token",Ie(async t=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},g8e=class{constructor(e,t){$._defineProperty(this,"featureName",Wee.name),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Ie(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await _ft(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},Vfe=class{constructor(e,t,n){$._defineProperty(this,"featureName",xfe.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new q0(this.contractWrapper,U2,this.storage);this.conditions=new Kee(this.contractWrapper,a,this.storage)}},Yfe=class{constructor(e,t,n){$._defineProperty(this,"featureName",_fe.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Ie(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await Y2(a,this.storage,s.toNumber(),i),c=sY(o);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Z.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if($e(this.contractWrapper,"ERC721Revealable"))return new zee(this.contractWrapper,this.storage,Fee.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if($e(this.contractWrapper,"ERC721ClaimConditionsV1")||$e(this.contractWrapper,"ERC721ClaimConditionsV2")||$e(this.contractWrapper,"ERC721ClaimPhasesV1")||$e(this.contractWrapper,"ERC721ClaimPhasesV2"))return new Vfe(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if($e(this.contractWrapper,"ERC721ClaimCustom"))return new g8e(this.erc721,this.contractWrapper)}},$fe=class{constructor(e,t,n){$._defineProperty(this,"featureName",Tfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=await Y2(i,this.storage),o=await Re(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},Qfe=class{constructor(e,t,n){$._defineProperty(this,"featureName",Ife.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=await Y8e(i,this.storage);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Re(e),t)}detectErc721BatchMintable(){if($e(this.contractWrapper,"ERC721BatchMintable"))return new $fe(this.erc721,this.contractWrapper,this.storage)}},Jfe=class{constructor(e,t){$._defineProperty(this,"featureName",s8e.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},Zfe=class{constructor(e,t){$._defineProperty(this,"featureName",iY.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Z.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if($e(this.contractWrapper,"ERC721Enumerable"))return new Jfe(this.erc721,this.contractWrapper)}},PFr=xme.extend({tierPriority:pe.z.array(pe.z.string()),royaltyRecipient:Ri.default(Z.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0),quantity:Ss.default(1)}),b8e=class{constructor(e,t,n){$._defineProperty(this,"featureName",wfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([$.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=sY(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>$.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=sY(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(l),m),I,C=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(l),m,f]);I=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,C]);let R=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,I]),L=this.contractWrapper.parseLogs("TokensLazyMinted",R?.logs),F=L[0].args[1],W=L[0].args[2],V=[];for(let K=F;K.lte(W);K=K.add(1))V.push({id:K,receipt:R,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>PFr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Tt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Yht},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Cc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await W0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},Xfe=class{constructor(e,t){$._defineProperty(this,"featureName",Efe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"mint",Ie(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await W0(this.contractWrapper,u,a.currencyAddress,s),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await W0(this.contractWrapper,u,a.currencyAddress,s),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),$._defineProperty(this,"mintBatch",Ie(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(vo("multicall",this.contractWrapper))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>Hht.parseAsync(c))),a=n.map(c=>c.metadata),i=await Y2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Tt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await jht.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Kht},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Vht},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return $e(this.contractWrapper,"ERC721SignatureMintV1")}},eme=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",Cfe.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"tieredDropable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Ie(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Re(a),i]})})),$._defineProperty(this,"setApprovalForAll",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Re(a),i]}))),$._defineProperty(this,"setApprovalForToken",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),i]}))),$._defineProperty(this,"mint",Ie(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Ie(async(a,i)=>er(this.mintable,Ife).to.prepare(a,i))),$._defineProperty(this,"mintBatch",Ie(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintBatchTo",Ie(async(a,i)=>er(this.mintable?.batch,Tfe).to.prepare(a,i))),$._defineProperty(this,"burn",Ie(async a=>er(this.burnable,vfe).token.prepare(a))),$._defineProperty(this,"lazyMint",Ie(async(a,i)=>er(this.lazyMintable,_fe).lazyMint.prepare(a,i))),$._defineProperty(this,"claim",Ie(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Ie(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new F0(Wee)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Z.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Cme}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Re(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async getAll(e){return er(this.query,iY).all(e)}async getAllOwners(){return er(this.query,iY).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return er(this.query,iY).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Z.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new F0(Wee)}async totalClaimedSupply(){let e=this.contractWrapper;if(vo("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(vo("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,xfe).conditions}get tieredDrop(){return er(this.tieredDropable,wfe)}get signature(){return er(this.signatureMintable,Efe)}get revealer(){return er(this.lazyMintable?.revealer,Fee)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new See;return V8e(e,t,this.storage)}async nextTokenIdToMint(){if(vo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(vo("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if($e(this.contractWrapper,"ERC721Supply")||vo("nextTokenIdToMint",this.contractWrapper))return new Zfe(this,this.contractWrapper)}detectErc721Mintable(){if($e(this.contractWrapper,"ERC721Mintable"))return new Qfe(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if($e(this.contractWrapper,"ERC721Burnable"))return new Gfe(this.contractWrapper)}detectErc721LazyMintable(){if($e(this.contractWrapper,"ERC721LazyMintable"))return new Yfe(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if($e(this.contractWrapper,"ERC721TieredDrop"))return new b8e(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if($e(this.contractWrapper,"ERC721SignatureMintV1")||$e(this.contractWrapper,"ERC721SignatureMintV2"))return new Xfe(this.contractWrapper,this.storage)}},iht=pe.z.object({address:Ri,quantity:$.AmountSchema.default(1)}),SFr=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>iht.parseAsync({address:e})))),pe.z.array(iht)]),tme=class{constructor(e){$._defineProperty(this,"featureName",O2.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Ie(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),$._defineProperty(this,"from",Ie(async(t,n,a)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Re(t),n,a]}))),$._defineProperty(this,"batch",Ie(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),$._defineProperty(this,"batchFrom",Ie(async(t,n,a)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Re(t),n,a]}))),this.contractWrapper=e}},rme=class{constructor(e,t){$._defineProperty(this,"featureName",F2.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function $8e(r,e){try{let t=new Z.ethers.Contract(r,E8e.default,e),[n,a]=await Promise.all([Z.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var v8e=class{constructor(e){$._defineProperty(this,"featureName",Uee.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Ie(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await _ft(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Re(e),t,n],overrides:i})}},w8e=class{constructor(e,t){$._defineProperty(this,"featureName",kfe.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new q0(this.contractWrapper,U2,this.storage);this.conditions=new Wfe(e,n,this.storage)}},nme=class{constructor(e,t,n){$._defineProperty(this,"featureName",Afe.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Ie(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await Y2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,I=[];for(let C=m;C.lte(y);C=C.add(1))I.push({id:C,receipt:h,data:()=>this.erc1155.getTokenMetadata(C)});return I},l=await $8e(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Z.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if($e(this.contractWrapper,"ERC1155ClaimCustom"))return new v8e(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if($e(this.contractWrapper,"ERC1155ClaimConditionsV1")||$e(this.contractWrapper,"ERC1155ClaimConditionsV2")||$e(this.contractWrapper,"ERC1155ClaimPhasesV1")||$e(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new w8e(this.contractWrapper,this.storage)}detectErc1155Revealable(){if($e(this.contractWrapper,"ERC1155Revealable"))return new zee(this.contractWrapper,this.storage,cY.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},ame=class{constructor(e,t,n){$._defineProperty(this,"featureName",Sfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await Y2(s,this.storage),u=await Re(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Z.ethers.constants.MaxUint256,h,o[f]])));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},ime=class{constructor(e,t,n){$._defineProperty(this,"featureName",q2.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),$._defineProperty(this,"additionalSupplyTo",Ie(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),i,o.uri,s],parse:c=>({id:Z.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Y8e(t.metadata,this.storage);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),Z.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if($e(this.contractWrapper,"ERC1155BatchMintable"))return new ame(this.erc1155,this.contractWrapper,this.storage)}},sme=class{constructor(e,t,n){$._defineProperty(this,"featureName",Pfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Ie(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await W0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),$._defineProperty(this,"mintBatch",Ie(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(vo("multicall",this.contractWrapper))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Z.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Z.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>Wht.parseAsync(u))),n=t.map(u=>u.metadata),a=await Y2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Tt.default(s,"No signer available");let c=(await $8e(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await Uht.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Ght},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},ome=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;$._defineProperty(this,"featureName",Rfe.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Ie(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Re(i),s,o,c]})})),$._defineProperty(this,"setApprovalForAll",Ie(async(i,s)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),$._defineProperty(this,"airdrop",Ie(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await SFr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:I}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,I,o])});return Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"mint",Ie(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintTo",Ie(async(i,s)=>er(this.mintable,q2).to.prepare(i,s))),$._defineProperty(this,"mintAdditionalSupply",Ie(async(i,s)=>er(this.mintable,q2).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),$._defineProperty(this,"mintAdditionalSupplyTo",Ie(async(i,s,o)=>er(this.mintable,q2).additionalSupplyTo.prepare(i,s,o))),$._defineProperty(this,"mintBatch",Ie(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintBatchTo",Ie(async(i,s)=>er(this.mintable?.batch,Sfe).to.prepare(i,s))),$._defineProperty(this,"burn",Ie(async(i,s)=>er(this.burnable,O2).tokens.prepare(i,s))),$._defineProperty(this,"burnFrom",Ie(async(i,s,o)=>er(this.burnable,O2).from.prepare(i,s,o))),$._defineProperty(this,"burnBatch",Ie(async(i,s)=>er(this.burnable,O2).batch.prepare(i,s))),$._defineProperty(this,"burnBatchFrom",Ie(async(i,s,o)=>er(this.burnable,O2).batchFrom.prepare(i,s,o))),$._defineProperty(this,"lazyMint",Ie(async(i,s)=>er(this.lazyMintable,Afe).lazyMint.prepare(i,s))),$._defineProperty(this,"claim",Ie(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),$._defineProperty(this,"claimTo",Ie(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new F0(Uee)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Z.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Cme}))]);return{owner:Z.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Re(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async nextTokenIdToMint(){if(vo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return er(this.query,F2).all(e)}async totalCount(){return er(this.query,F2).totalCount()}async totalCirculatingSupply(e){return er(this.query,F2).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Re(e)),er(this.query,F2).owned(e)}async getMintTransaction(e,t){return er(this.mintable,q2).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new F0(Uee)}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,kfe).conditions}get signature(){return er(this.signatureMintable,Pfe)}get revealer(){return er(this.lazyMintable?.revealer,cY)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new See;return V8e(e,t,this.storage)}detectErc1155Enumerable(){if($e(this.contractWrapper,"ERC1155Enumerable"))return new rme(this,this.contractWrapper)}detectErc1155Mintable(){if($e(this.contractWrapper,"ERC1155Mintable"))return new ime(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if($e(this.contractWrapper,"ERC1155Burnable"))return new tme(this.contractWrapper)}detectErc1155LazyMintable(){if($e(this.contractWrapper,"ERC1155LazyMintableV1")||$e(this.contractWrapper,"ERC1155LazyMintableV2"))return new nme(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if($e(this.contractWrapper,"ERC1155SignatureMintable"))return new sme(this.contractWrapper,this.storage)}};async function Uft(r,e,t,n,a){try{let i=new Z.Contract(t,vme.default,r),s=await i.supportsInterface($ee),o=await i.supportsInterface(Qee);if(s){let c=new Z.Contract(t,kc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Z.Contract(t,Gu.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function Gee(r,e,t,n,a){let i=new Rs(r.getSignerOrProvider(),t,vme.default,r.options),s=await i.readContract.supportsInterface($ee),o=await i.readContract.supportsInterface(Qee);if(s){let c=new Rs(r.getSignerOrProvider(),t,kc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Rs(r.getSignerOrProvider(),t,Gu.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function RFr(r){switch(Tt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Tt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Tt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Tt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Tt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Tt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Tt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function MFr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await Tp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function NFr(r,e,t){return t=Z.BigNumber.from(t),r=Z.BigNumber.from(r),e=Z.BigNumber.from(e),r.eq(Z.BigNumber.from(0))?!1:e.sub(r).mul($.MAX_BPS).div(r).gte(t)}async function fY(r,e,t){let n=[];for(;e-r>$.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+$.DEFAULT_QUERY_ALL_COUNT-1)),r+=$.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var sht=pe.z.object({assetContractAddress:Ri,tokenId:Qs,quantity:Qs.default(1),currencyContractAddress:Ri.default(Ku),pricePerToken:$.AmountSchema,startTimestamp:Jee.default(new Date),endTimestamp:Zee,isReservedListing:pe.z.boolean().default(!1)}),K2=class{constructor(e){$._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(kl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(kl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await sht.parseAsync(n);await Gee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Cc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Z.BigNumber.from(o)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:nfe(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),$._defineProperty(this,"updateListing",Ie(async(n,a)=>{let i=await sht.parseAsync(a);await Gee(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Cc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:nfe(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),$._defineProperty(this,"cancelListing",Ie(async n=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),$._defineProperty(this,"buyFromListing",Ie(async(n,a,i)=>{i&&(i=await Re(i));let s=await this.validateListing(Z.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Z.BigNumber.from(a),h=Z.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await W0(this.contractWrapper,h,s.currencyContractAddress,f),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),$._defineProperty(this,"approveBuyerForReservedListing",Ie(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),$._defineProperty(this,"revokeBuyerApprovalForReservedListing",Ie(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),$._defineProperty(this,"approveCurrencyForListing",Ie(async(n,a,i)=>{let s=await this.validateListing(Z.BigNumber.from(n)),o=await Re(a);o===s.currencyContractAddress&&Tt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Tt.default(i===c,"Currency already approved with this price."),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),$._defineProperty(this,"revokeCurrencyApprovalForListing",Ie(async(n,a)=>{let i=await this.validateListing(Z.BigNumber.from(n)),s=await Re(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Tt.default(!o.isZero(),"Currency not approved."),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Z.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Z.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Re(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Z.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Re(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Z.BigNumber.from(e)),a=await Re(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Jo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Jo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Jo.Expired:Jo.Active;break;case 2:t=Jo.Completed;break;case 3:t=Jo.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await Tp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),asset:await rte(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await Uft(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Z.Contract(e.assetContractAddress,vme.default,a),s=await i.supportsInterface($ee),o=await i.supportsInterface(Qee);if(s){let u=(await new Z.Contract(e.assetContractAddress,kc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Z.Contract(e.assetContractAddress,Gu.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=BFr.parse(n);await Gee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Cc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Cc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Z.BigNumber.from(c)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:nfe(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),$._defineProperty(this,"buyoutAuction",Ie(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n)),i=await gY(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Z.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),$._defineProperty(this,"makeBid",Ie(async(n,a)=>{let i=await this.validateAuction(Z.BigNumber.from(n)),s=await Cc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Z.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Z.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Tt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Z.BigNumber.from(i.minimumBidAmount);Tt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await W0(this.contractWrapper,s,i.currencyContractAddress,c),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),$._defineProperty(this,"cancelAuction",Ie(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),$._defineProperty(this,"closeAuctionForBidder",Ie(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Z.BigNumber.from(n));try{return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Z.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new aY(n.toString(),i.endTimeInSeconds.toString()):s}})),$._defineProperty(this,"closeAuctionForSeller",Ie(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Z.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new aY(n.toString(),a.endTimeInSeconds.toString()):i}})),$._defineProperty(this,"executeSale",Ie(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{let i=await this.getWinningBid(n);Tt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new aY(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Z.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Z.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Z.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Z.BigNumber.from(Math.floor(Date.now()/1e3)),i=Z.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Z.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Z.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Z.BigNumber.from(e))]),i=n?Z.BigNumber.from(n.bidAmount):Z.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return Tp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Jo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Jo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Jo.Expired:Jo.Active;break;case 2:t=Jo.Completed;break;case 3:t=Jo.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Z.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Z.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),asset:await rte(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Re(t),s=await Re(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await Tp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await DFr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=jh(a.currencyContractAddress)?Aee[i].wrapped.address:a.currencyContractAddress,o=await Cc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await W0(this.contractWrapper,o,s,c),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),$._defineProperty(this,"cancelOffer",Ie(async n=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),$._defineProperty(this,"acceptOffer",Ie(async n=>{let a=await this.validateOffer(Z.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await Gee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Jo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.expirationTimestamp).lt(a)?Jo.Expired:Jo.Active;break;case 2:t=Jo.Completed;break;case 3:t=Jo.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await rte(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Z.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=jh(e.currencyContractAddress)?Aee[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Rs(i,a,xu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Re(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Xo(V6e())})).default:(await Promise.resolve().then(function(){return Xo(Y6e())})).default}},U0={name:"TokenERC1155",contractType:"edition",schema:cft,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo($6e())})).default}},Ip={name:"Marketplace",contractType:"marketplace",schema:O8e,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(X6e())})).default}},hm={name:"MarketplaceV3",contractType:"marketplace-v3",schema:O8e,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return await Bfe(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Xo(eIe())})).default;return await Bfe(r,Qi.parse(a||[]),e,{},t)}},Ep={name:"Multiwrap",contractType:"multiwrap",schema:Kft,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(rIe())})).default}},H0={name:"TokenERC721",contractType:"nft-collection",schema:sft,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(nIe())})).default}},qh={name:"DropERC721",contractType:"nft-drop",schema:L8e,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Xo(aIe())})).default:(await Promise.resolve().then(function(){return Xo(iIe())})).default}},Pl={name:"Pack",contractType:"pack",schema:eft,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||Qi.parse((await Promise.resolve().then(function(){return Xo(uIe())})).default||[])}},Fh={name:"SignatureDrop",contractType:"signature-drop",schema:L8e,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Xo(lIe())})).default:(await Promise.resolve().then(function(){return Xo(dIe())})).default}},Wh={name:"Split",contractType:"split",schema:rft,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(hIe())})).default}},j0={name:"DropERC20",contractType:"token-drop",schema:jft,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Xo(mIe())})).default:(await Promise.resolve().then(function(){return Xo(yIe())})).default}},Uh={name:"TokenERC20",contractType:"token",schema:aft,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(vIe())})).default}},Hh={name:"VoteERC20",contractType:"vote",schema:dft,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(TIe())})).default}};async function kme(r,e){try{return await $8e(r,e)}catch{return}}var fm={[Oh.contractType]:Oh,[U0.contractType]:U0,[Ip.contractType]:Ip,[hm.contractType]:hm,[Ep.contractType]:Ep,[H0.contractType]:H0,[qh.contractType]:qh,[Pl.contractType]:Pl,[Fh.contractType]:Fh,[Wh.contractType]:Wh,[j0.contractType]:j0,[Uh.contractType]:Uh,[Hh.contractType]:Hh},Gft={[Oh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[U0.contractType]:"",[Ip.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[hm.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[Ep.contractType]:"",[H0.contractType]:"",[qh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Pl.contractType]:"",[Fh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Wh.contractType]:"",[j0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Uh.contractType]:"",[Hh.contractType]:""},oht={name:"SmartContract",contractType:"custom",schema:{},roles:W8e},Q8e={...fm,[oht.contractType]:oht};function J8e(r){return Object.values(Q8e).find(e=>e.name===r)?.contractType||"custom"}function Z8e(r){return Object.values(Q8e).find(e=>e.contractType===r)?.name}async function Vft(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Pl.contractType?[]:k8e(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case qh.contractType:case H0.contractType:let o=await qh.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Fh.contractType:let c=await Fh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case Ep.contractType:let u=await Ep.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Oh.contractType:case U0.contractType:let l=await Oh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case j0.contractType:case Uh.contractType:let h=await Uh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Hh.contractType:let f=await Hh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Z.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Wh.contractType:let m=await Wh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(C=>C.address),m.recipients.map(C=>Z.BigNumber.from(C.sharesBps))];case Ip.contractType:case hm.contractType:let y=await Ip.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Pl.contractType:let I=await Pl.schema.deploy.parseAsync(e);return[i,I.name,I.symbol,t,s,I.fee_recipient,I.seller_fee_basis_points];default:return[]}}function WFr(r,e){return r||(e?.gatewayUrls?new zg.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new zg.ThirdwebStorage)}var Vee=class{constructor(e,t,n){$._defineProperty(this,"featureName",ffe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async a=>$e(this.contractWrapper,"AppURI")?Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return $e(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():zg.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},dme=class{constructor(e){$._defineProperty(this,"featureName",dfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Ie(async t=>{let n=await Cp.parseAsync(t);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Cp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},pme=class{constructor(e,t){$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await z0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return dY(Qi.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return Oft(Qi.parse(this.contractWrapper.abi),e?.metadata)}},hme=class{get royalties(){return er(this.detectRoyalties(),ufe)}get roles(){return er(this.detectRoles(),pfe)}get sales(){return er(this.detectPrimarySales(),lfe)}get platformFees(){return er(this.detectPlatformFees(),dfe)}get owner(){return er(this.detectOwnable(),mfe)}get erc20(){return er(this.detectErc20(),bfe)}get erc721(){return er(this.detectErc721(),Cfe)}get erc1155(){return er(this.detectErc1155(),Rfe)}get app(){return er(this.detectApp(),ffe)}get directListings(){return er(this.detectDirectListings(),Nee)}get englishAuctions(){return er(this.detectEnglishAuctions(),Bee)}get offers(){return er(this.detectOffers(),Dee)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rs(e,t,n,i);$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"interceptor",void 0),$._defineProperty(this,"encoder",void 0),$._defineProperty(this,"estimator",void 0),$._defineProperty(this,"publishedMetadata",void 0),$._defineProperty(this,"abi",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Qi.parse(n||[]),this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper),this.publishedMetadata=new pme(this.contractWrapper,this.storage),this.metadata=new q0(this.contractWrapper,U2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectRoyalties(){if($e(this.contractWrapper,"Royalty")){let e=new q0(this.contractWrapper,U2,this.storage);return new qfe(this.contractWrapper,e)}}detectRoles(){if($e(this.contractWrapper,"Permissions"))return new Ofe(this.contractWrapper,W8e)}detectPrimarySales(){if($e(this.contractWrapper,"PrimarySale"))return new Ffe(this.contractWrapper)}detectPlatformFees(){if($e(this.contractWrapper,"PlatformFee"))return new dme(this.contractWrapper)}detectErc20(){if($e(this.contractWrapper,"ERC20"))return new Kfe(this.contractWrapper,this.storage,this.chainId)}detectErc721(){if($e(this.contractWrapper,"ERC721"))return new eme(this.contractWrapper,this.storage,this.chainId)}detectErc1155(){if($e(this.contractWrapper,"ERC1155"))return new ome(this.contractWrapper,this.storage,this.chainId)}detectOwnable(){if($e(this.contractWrapper,"Ownable"))return new gme(this.contractWrapper)}detectApp(){let e=new q0(this.contractWrapper,U2,this.storage);if($e(this.contractWrapper,"AppURI"))return new Vee(this.contractWrapper,e,this.storage);if($e(this.contractWrapper,"ContractMetadata"))return new Vee(this.contractWrapper,e,this.storage)}detectDirectListings(){if($e(this.contractWrapper,"DirectListings"))return new cme(this.contractWrapper,this.storage)}detectEnglishAuctions(){if($e(this.contractWrapper,"EnglishAuctions"))return new ume(this.contractWrapper,this.storage)}detectOffers(){if($e(this.contractWrapper,"Offers"))return new lme(this.contractWrapper,this.storage)}},fme=class extends H2{constructor(e,t,n){super(e,t),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"publisher",void 0),$._defineProperty(this,"updatePublisherProfile",Ie(async a=>{let i=this.getSigner();Tt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Le.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),$._defineProperty(this,"publish",Ie(async(a,i)=>{let s=this.getSigner();Tt.default(s,"A signer is required");let o=await s.getAddress(),c=await z8e(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let R=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Qft(R,i.version))throw Error(`Version ${i.version} is not greater than ${R}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Z.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=nmt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),I=await this.storage.upload(y);return Le.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,I,c.metadataUri,f,Z.constants.AddressZero],parse:C=>{let R=this.publisher.parseLogs("ContractPublished",C.logs);if(R.length<1)throw new Error("No ContractPublished event found");let L=R[0].args.publishedContract;return{receipt:C,data:async()=>this.toPublishedContract(L)}}})})),$._defineProperty(this,"unpublish",Ie(async(a,i)=>{let s=await Re(a);return Le.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Rs(e,kht(),YOr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return Nft(e,this.storage)}async extractFunctions(e){return Bft(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return pY(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await pY(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Re(e);return z0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return K8e(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Re(e),n=await jee(t,this.getProvider());return Tt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Re(e),n=await this.fetchCompilerMetadataFromAddress(t);return await Ame(n,this.storage)}async getPublisherProfile(e){let t=await Re(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:smt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Re(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Re(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Tt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return omt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},x8e=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$._defineProperty(this,"registryLogic",void 0),$._defineProperty(this,"registryRouter",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"addContract",Ie(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Ie(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Le.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Ie(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Ie(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Re(o.address),o.chainId])));return Le.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Rs(e,WCe(),$Or.default,n),this.registryRouter=new Rs(e,WCe(),QOr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Re(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Z.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},mY=class{constructor(e,t){$._defineProperty(this,"connection",void 0),$._defineProperty(this,"options",void 0),$._defineProperty(this,"events",new DCe.default),this.connection=new H2(e,t),this.options=t,this.events=new DCe.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ku,a=await Re(e),i=await Re(n),s=this.requireWallet(),o=await Cc(this.connection.getProvider(),t,n);if(jh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ku;this.requireWallet();let t=await Re(e),n=this.connection.getProvider(),a;return jh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await Tp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await Mee(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Z.ethers.utils.hashMessage(e),a=Z.ethers.utils.arrayify(n);return Z.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Be.Localhost||t===Be.Hardhat)return new mY(new Z.ethers.Wallet(Eht,Pee(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Tt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Rs(this.connection.getSignerOrProvider(),e,xu.default,this.options)}},pm=class extends H2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return pm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=Pee(t,n);i=e.connect(o)}let s=new pm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=Pee(t,n),s=new Z.Wallet(e,i);return new pm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Tme(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),$._defineProperty(this,"contractCache",new Map),$._defineProperty(this,"_publisher",void 0),$._defineProperty(this,"storageHandler",void 0),$._defineProperty(this,"deployer",void 0),$._defineProperty(this,"multiChainRegistry",void 0),$._defineProperty(this,"wallet",void 0),$._defineProperty(this,"storage",void 0),Tht(t?.supportedChains);let a=WFr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new mY(e,t),this.deployer=new yme(e,t,a),this.multiChainRegistry=new x8e(e,this.storageHandler,this.options),this._publisher=new fme(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in rdt.GENERATED_ABI)return await this.getContractFromAbi(n,rdt.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await ym[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in ym?a=await ym[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Z.Contract(await Re(e),Ane.default,this.getProvider()),n=Z.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return tae(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Re(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>gne((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:II.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new fm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>gne((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=yi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new BF(this.getSignerOrProvider(),n,await nF(n,Li.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return Cp(this.getProvider(),Vu,await this.getProvider().getBalance(await Re(e)))}getPublisher(){return this._publisher}},OF=class extends Ds{constructor(e,t,n,a){super(t,e,UBr.default,a),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"DEFAULT_VERSION_MAP",{[Wh.contractType]:3,[z0.contractType]:1,[Uh.contractType]:4,[kp.contractType]:1,[qh.contractType]:2,[j0.contractType]:1,[K0.contractType]:2,[jh.contractType]:1,[zh.contractType]:1,[Hh.contractType]:1,[Ip.contractType]:2,[mm.contractType]:1,[Sl.contractType]:2}),Y._defineProperty(this,"deploy",Ee(async(i,s,o,c)=>{let u=ym[i],l=await u.schema.deploy.parseAsync(s),h=await this.storage.upload(l),f=await this.getImplementation(u,c)||void 0;if(!f||f===Z.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let m=await u.getAbi(f,this.getProvider(),this.storage),y=this.getSigner();Ct.default(y,"A signer is required to deploy contracts");let E=await ght(i,l,h,y),I=Z.Contract.getInterface(m).encodeFunctionData("initialize",E),S=await this.getProvider().getBlockNumber(),L=Z.ethers.utils.formatBytes32String(S.toString());return Oe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[f,I,L],parse:q=>{let W=this.parseLogs("ProxyDeployed",q.logs);if(W.length<1)throw new Error("No ProxyDeployed event found");let V=W[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:V,transactionHash:q.transactionHash}),V}})})),Y._defineProperty(this,"deployProxyByImplementation",Ee(async(i,s,o,c,u)=>{let l=Z.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return Oe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,l,Z.ethers.utils.formatBytes32String(h.toString())],parse:f=>{let m=this.parseLogs("ProxyDeployed",f.logs);if(m.length<1)throw new Error("No ProxyDeployed event found");let y=m[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:y,transactionHash:f.transactionHash}),y}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Sl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Wh.contractType:case z0.contractType:let i=await Wh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Uh.contractType:let s=await Uh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case kp.contractType:let o=await kp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case qh.contractType:case j0.contractType:let c=await qh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case K0.contractType:case jh.contractType:let u=await jh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case zh.contractType:let l=await zh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Z.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Hh.contractType:let h=await Hh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(E=>E.address),h.recipients.map(E=>Z.BigNumber.from(E.sharesBps))];case Ip.contractType:let f=await Ip.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case mm.contractType:let m=await mm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Sl.contractType:let y=await Sl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return Pne(e)}async getImplementation(e,t){let n=Z.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=Jdt(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=rae(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Z.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},Cne=class extends Ds{constructor(e,t,n){super(t,e,HBr.default,n),Y._defineProperty(this,"addContract",Ee(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Ee(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Re(o)])));return Oe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Ee(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Ee(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Re(o)])));return Oe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t)&&t.toLowerCase()!==Z.constants.AddressZero)}},ROr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",LF=class extends p2{constructor(e,t,n){super(e,t),Y._defineProperty(this,"_factory",void 0),Y._defineProperty(this,"_registry",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"deployMetadataCache",{}),Y._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new Bdt.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(z0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Wh.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Uh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(kp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(j0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(qh.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(jh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(K0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(Ip.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(mm.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(Sl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Hh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(zh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();Ct.default(a,"A signer is required to deploy contracts");let i={app_uri:yht[e],...await ym[e].schema.deploy.parseAsync(t)};if(this.hasLocalFactory()){let m;try{m=parseInt(n),isNaN(m)&&(m=void 0)}catch{m=void 0}let y=await this.getFactory();if(!y)throw new Error("Factory not found");y.on(kl.Transaction,this.transactionListener);let E=await y.deploy(e,i,this.events,m);return y.off(kl.Transaction,this.transactionListener),E}let s=rae(e);Ct.default(s,"Contract name not found");let o=await this.storage.upload(i),c=await ght(e,i,o,a),u=(await this.getProvider().getNetwork()).chainId,l=await this.fetchPublishedContractFromPolygon(ROr,s,n),h=await this.fetchAndCacheDeployMetadata(l.metadataUri),f=h.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[u];if(f)return this.deployContractFromUri(l.metadataUri,c);{f=await this.deployContractFromUri(l.metadataUri,this.getConstructorParamsForImplementation(e,u),{forceDirectDeploy:!0});let m=await Re(f);return this.deployProxy(m,h.compilerMetadata.abi,"initialize",c)}}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchPublishedContractFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=await Re(e),o=await Re(t),c=this.getSigner();Ct.default(c,"signer is required");let u=new OF(s,this.getSignerOrProvider(),this.storage,this.options);u.on(kl.Transaction,this.transactionListener);let l=await u.deployProxyByImplementation(o,n,a,i,this.events);return u.off(kl.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=await Re(e),s=Z.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:o}=await Promise.resolve().then(function(){return Xo(kee())});return this.deployContractWithAbi(o.abi,o.bytecode,[i,s])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=aI(t,"twRegistry");if(!!n)return new Cne(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=aI(t,"twFactory");return n?new OF(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();Ct.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),o=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!o){let h=(await this.getProvider().getNetwork()).chainId;Ct.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let f=s.factoryDeploymentData.implementationAddresses[h],m=await Re(f);Ct.default(m,`implementationAddress not found for chainId '${h}'`),Ct.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let y=sht(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(I=>I.type),E=this.convertParamValues(y,t);if(s.isDeployableViaFactory){Ct.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let I=s.factoryDeploymentData.factoryAddresses[h];Ct.default(I,`isDeployableViaFactory is true and factoryAddress not found for chainId '${h}'`);let S=await Re(I);return await this.deployViaFactory(S,m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}else if(s.isDeployableViaProxy)return await this.deployProxy(m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}let c=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!Z.ethers.utils.isHexString(c))throw new Error(`Contract bytecode is invalid. - -${c}`);let u=Vne(i.abi).map(h=>h.type),l=this.convertParamValues(u,t);return this.deployContractWithAbi(i.abi,c,l)}async deployContractWithAbi(e,t,n){let a=this.getSigner();Ct.default(a,"Signer is required to deploy contracts");let i=await new Z.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await zx(e,this.storage),n;try{n=await Yne(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Re(e),i=await new fm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case Ip.contractType:case kp.contractType:return[wL(t)?.wrapped?.address||Z.ethers.constants.AddressZero];case Sl.contractType:return[wL(t).wrapped.address||Z.ethers.constants.AddressZero,Z.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Ct.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Z.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Ct.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Z.BigNumber.from(t[a].toString()):t[a])}},FF=class{constructor(e){Y._defineProperty(this,"featureName",FL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Ee(async t=>{let n=await Re(t);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},bht={},MOr=new fm("polygon");function vht(r,e){return`${r}-${e}`}function NOr(r,e,t){bht[vht(r,e)]=t}function BOr(r,e){return bht[vht(r,e)]}async function G0(r,e,t){let n=(await e.getNetwork()).chainId,a=BOr(r,n);if(a)return a;let i;try{let s=await _I(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await qF(s,t)}catch{try{let o=await MOr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await qF(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return NOr(r,n,i),i}async function Rl(r,e,t){try{let n=await G0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function qF(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Li.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=iae.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function $F(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var Mdt=256,Ore="0|[1-9]\\d*",DOr=`(${Ore})\\.(${Ore})\\.(${Ore})`,OOr=new RegExp(DOr);function $x(r){if(r.length>Mdt)throw new Error(`version is longer than ${Mdt} characters`);let e=r.trim().match(OOr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function wht(r,e){let t=$x(r),n=$x(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function LOr(r,e){let t=$x(r),n=$x(e);if(n.major{try{return $x(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:pe.z.string().optional(),description:pe.z.string().optional(),readme:pe.z.string().optional(),license:pe.z.string().optional(),changelog:pe.z.string().optional(),tags:pe.z.array(pe.z.string()).optional(),audit:Y.FileOrBufferOrStringSchema.nullable().optional(),logo:Y.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:pe.z.boolean().optional(),isDeployableViaProxy:pe.z.boolean().optional(),factoryDeploymentData:Cht.optional(),constructorParams:pe.z.record(pe.z.string(),pe.z.object({displayName:pe.z.string().optional(),description:pe.z.string().optional(),defaultValue:pe.z.string().optional()}).catchall(pe.z.any())).optional()}).catchall(pe.z.any()),Iht=aae.extend({audit:pe.z.string().nullable().optional(),logo:pe.z.string().nullable().optional()}),kht=DI.merge(aae).extend({publisher:Oi.optional()}),Aht=DI.merge(Iht).extend({publisher:Oi.optional()}),Sht=pe.z.object({name:pe.z.string().optional(),bio:pe.z.string().optional(),avatar:Y.FileOrBufferOrStringSchema.nullable().optional(),website:pe.z.string().optional(),twitter:pe.z.string().optional(),telegram:pe.z.string().optional(),facebook:pe.z.string().optional(),github:pe.z.string().optional(),medium:pe.z.string().optional(),linkedin:pe.z.string().optional(),reddit:pe.z.string().optional(),discord:pe.z.string().optional()}),Pht=Sht.extend({avatar:pe.z.string().nullable().optional()}),Rht=pe.z.object({id:pe.z.string(),timestamp:eo,metadataUri:pe.z.string()}),iae=pe.z.object({title:pe.z.string().optional(),author:pe.z.string().optional(),details:pe.z.string().optional(),notice:pe.z.string().optional()}),Mht=pe.z.object({name:pe.z.string(),abi:Li,metadata:pe.z.record(pe.z.string(),pe.z.any()),info:iae,licenses:pe.z.array(pe.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),Nht=DI.merge(Mht).extend({bytecode:pe.z.string()}),FOr=new d2.ThirdwebStorage,sae=new Map;function oae(r,e){return`${r}-${e}`}function cae(r,e){let t=oae(r,e);return sae.has(t)}function Bht(r,e){if(!cae(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=oae(r,e);return sae.get(t)}function Dht(r,e,t){let n=oae(e,t);sae.set(n,r)}function rI(r){return r||FOr}async function bL(r){let e=await Re(r.address),[t,n]=yi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(cae(e,a))return Bht(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new BF(t||n,e,await nF(e,Li.parse(i),n,r.sdkOptions,rI(r.storage)),rI(r.storage),r.sdkOptions,a);return Dht(s,e,a),s}async function qOr(r){try{let e=new Z.Contract(r.address,Ane.default,r.provider),t=Z.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return tae(t)}catch{return"custom"}}async function WOr(r){let e=await Re(r.address),[t,n]=yi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(cae(e,a))return Bht(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await qOr({address:e,provider:n});if(i==="custom"){let s=new DF(r.network,r.sdkOptions,rI(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return bL({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await ym[i].getAbi(e,n,rI(r.storage));return bL({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in ym){let i=await ym[r.contractTypeOrAbi].initialize(t||n,e,rI(r.storage),r.sdkOptions);return Dht(i,e,a),i}else return bL({...r,address:e,abi:r.contractTypeOrAbi})}var gL=new WeakMap;async function uae(r){let[,e]=yi(r.network,r.sdkOptions),t;return gL.has(e)?t=gL.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw gL.delete(e),n}),gL.set(e,t)),await t}async function UOr(r){let[,e]=yi(r.network,r.sdkOptions);return e.getBlockNumber()}var tI=new Map;async function Oht(r){let e=await uae(r),t=r.block,n=`${e}_${t}`,a;if(tI.has(n))a=tI.get(n);else{let[,i]=yi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw tI.delete(n),s}),tI.set(n,a)}return await a}var Lre=new Map;async function Lht(r){let e=await uae(r),t=r.block,n=`${e}_${t}`,a;if(tI.has(n))a=Lre.get(n);else{let[,i]=yi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw Lre.delete(n),s}),Lre.set(n,a)}return await a}function lae(r){let[,e]=yi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function HOr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Oht({block:a,...t}))}catch{}}return lae({...t,onBlockNumber:n})}function Fht(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Lht({block:a,...t}))}catch{}}return lae({...t,onBlockNumber:n})}function jOr(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return Fht({...n,onBlock:i})}re.ALL_ROLES=zne;re.APPROVED_IMPLEMENTATIONS=Hre;re.AbiObjectSchema=Eht;re.AbiSchema=Li;re.AbiTypeSchema=Ine;re.AddressOrEnsSchema=Oi;re.AddressSchema=Mne;re.AdminRoleMissingError=one;re.AssetNotFoundError=$re;re.AuctionAlreadyStartedError=rne;re.AuctionHasNotEndedError=Lx;re.BYOCContractMetadataSchema=_ht;re.BaseSignaturePayloadInput=HF;re.BigNumberSchema=Bs;re.BigNumberTransformSchema=tpt;re.BigNumberishSchema=eo;re.CONTRACTS_MAP=eae;re.CONTRACT_ADDRESSES=j1;re.CallOverrideSchema=rpt;re.ChainId=Be;re.ChainIdToAddressSchema=kne;re.ChainInfoInputSchema=npt;re.ClaimConditionInputArray=opt;re.ClaimConditionInputSchema=MI;re.ClaimConditionMetadataSchema=spt;re.ClaimConditionOutputSchema=One;re.ClaimEligibility=ka;re.CommonContractOutputSchema=pd;re.CommonContractSchema=Pl;re.CommonPlatformFeeSchema=Ap;re.CommonPrimarySaleSchema=z1;re.CommonRoyaltySchema=Zo;re.CommonSymbolSchema=To;re.CommonTrustedForwarderSchema=hd;re.CompilerMetadataFetchedSchema=Mht;re.ContractAppURI=CI;re.ContractDeployer=LF;re.ContractEncoder=f2;re.ContractEvents=m2;re.ContractInfoSchema=iae;re.ContractInterceptor=y2;re.ContractMetadata=W0;re.ContractOwner=FF;re.ContractPlatformFee=MF;re.ContractPrimarySale=sF;re.ContractPublishedMetadata=NF;re.ContractRoles=aF;re.ContractRoyalty=iF;re.ContractWrapper=Ds;re.CurrencySchema=apt;re.CurrencyValueSchema=ipt;re.CustomContractDeploy=Tht;re.CustomContractInput=nae;re.CustomContractOutput=xht;re.CustomContractSchema=l2;re.DelayedReveal=xI;re.DropClaimConditions=TI;re.DropErc1155ClaimConditions=oF;re.DropErc1155ContractSchema=_pt;re.DropErc20ContractSchema=hht;re.DropErc721ContractSchema=qne;re.DuplicateFileNameError=Qre;re.DuplicateLeafsError=EL;re.EditionDropInitializer=qh;re.EditionInitializer=j0;re.EndDateSchema=PI;re.Erc1155=AF;re.Erc1155BatchMintable=CF;re.Erc1155Burnable=xF;re.Erc1155Enumerable=TF;re.Erc1155LazyMintable=EF;re.Erc1155Mintable=IF;re.Erc1155SignatureMintable=kF;re.Erc20=pF;re.Erc20BatchMintable=uF;re.Erc20Burnable=cF;re.Erc20Mintable=lF;re.Erc20SignatureMintable=dF;re.Erc721=_F;re.Erc721BatchMintable=yF;re.Erc721Burnable=hF;re.Erc721ClaimableWithConditions=fF;re.Erc721Enumerable=bF;re.Erc721LazyMintable=mF;re.Erc721Mintable=gF;re.Erc721Supply=vF;re.Erc721WithQuantitySignatureMintable=wF;re.EventType=kl;re.ExtensionNotImplementedError=U0;re.ExtraPublishMetadataSchemaInput=aae;re.ExtraPublishMetadataSchemaOutput=Iht;re.FEATURE_DIRECT_LISTINGS=dI;re.FEATURE_ENGLISH_AUCTIONS=pI;re.FEATURE_NFT_REVEALABLE=gI;re.FEATURE_OFFERS=hI;re.FEATURE_PACK_VRF=cne;re.FactoryDeploymentSchema=Cht;re.FetchError=tne;re.FileNameMissingError=Jre;re.FullPublishMetadataSchemaInput=kht;re.FullPublishMetadataSchemaOutput=Aht;re.FunctionDeprecatedError=nne;re.GasCostEstimator=g2;re.GenericRequest=bpt;re.InterfaceId_IERC1155=AI;re.InterfaceId_IERC721=kI;re.InvalidAddressError=Vre;re.LINK_TOKEN_ADDRESS=$Br;re.LOCAL_NODE_PKEY=Ydt;re.ListingNotFoundError=ane;re.MarketplaceContractSchema=Wne;re.MarketplaceInitializer=Ip;re.MarketplaceV3DirectListings=SF;re.MarketplaceV3EnglishAuctions=PF;re.MarketplaceV3Initializer=mm;re.MarketplaceV3Offers=RF;re.MerkleSchema=V0;re.MintRequest1155=ypt;re.MintRequest20=fpt;re.MintRequest721=mpt;re.MintRequest721withQuantity=gpt;re.MissingOwnerRoleError=Xre;re.MissingRoleError=TL;re.MultiwrapContractSchema=mht;re.MultiwrapInitializer=kp;re.NATIVE_TOKENS=iI;re.NATIVE_TOKEN_ADDRESS=Vu;re.NFTCollectionInitializer=z0;re.NFTDropInitializer=Wh;re.NotEnoughTokensError=Zre;re.NotFoundError=oI;re.OZ_DEFENDER_FORWARDER_ADDRESS=H1;re.PREBUILT_CONTRACTS_APPURI_MAP=yht;re.PREBUILT_CONTRACTS_MAP=ym;re.PackContractSchema=Ept;re.PackInitializer=Sl;re.PartialClaimConditionInputSchema=ZBr;re.PreDeployMetadata=DI;re.PreDeployMetadataFetchedSchema=Nht;re.ProfileSchemaInput=Sht;re.ProfileSchemaOutput=Pht;re.PublishedContractSchema=Rht;re.QuantityAboveLimitError=ene;re.RawDateSchema=SI;re.RestrictedTransferError=sne;re.SUPPORTED_CHAIN_IDS=Gdt;re.Signature1155PayloadInput=upt;re.Signature1155PayloadInputWithTokenId=lpt;re.Signature1155PayloadOutput=dpt;re.Signature20PayloadInput=Lne;re.Signature20PayloadOutput=cpt;re.Signature721PayloadInput=jF;re.Signature721PayloadOutput=Fne;re.Signature721WithQuantityInput=ppt;re.Signature721WithQuantityOutput=hpt;re.SignatureDropInitializer=Uh;re.SnapshotEntryInput=_L;re.SnapshotEntryWithProofSchema=Bne;re.SnapshotInfoSchema=QBr;re.SnapshotInputSchema=RI;re.SnapshotSchema=Dne;re.SplitInitializer=Hh;re.SplitsContractSchema=Ipt;re.StartDateSchema=Nne;re.Status=Qo;re.ThirdwebSDK=fm;re.TokenDropInitializer=K0;re.TokenErc1155ContractSchema=Mpt;re.TokenErc20ContractSchema=Apt;re.TokenErc721ContractSchema=Ppt;re.TokenInitializer=jh;re.Transaction=Oe;re.TransactionError=cI;re.UploadError=Yre;re.UserWallet=Vx;re.VoteContractSchema=Dpt;re.VoteInitializer=zh;re.WrongListingTypeError=ine;re.approveErc20Allowance=jne;re.assertEnabled=er;re.buildTransactionFunction=Ee;re.cleanCurrencyAddress=IL;re.convertToReadableQuantity=Z8;re.createSnapshot=Vpt;re.detectContractFeature=Ye;re.detectFeatures=NI;re.extractConstructorParams=nht;re.extractConstructorParamsFromAbi=Vne;re.extractEventsFromAbi=oht;re.extractFunctionParamsFromAbi=sht;re.extractFunctions=aht;re.extractFunctionsFromAbi=jx;re.extractIPFSHashFromBytecode=uht;re.extractMinimalProxyImplementationAddress=cht;re.fetchAbiFromAddress=Rl;re.fetchContractMetadata=qF;re.fetchContractMetadataFromAddress=G0;re.fetchCurrencyMetadata=Yx;re.fetchCurrencyValue=Cp;re.fetchExtendedReleaseMetadata=Yne;re.fetchPreDeployMetadata=zx;re.fetchRawPredeployMetadata=$ne;re.fetchSnapshotEntryForAddress=KF;re.fetchSourceFilesFromMetadata=$F;re.fetchTokenMetadataForContract=BI;re.getAllDetectedFeatureNames=gne;re.getAllDetectedFeatures=fOr;re.getApprovedImplementation=Jdt;re.getBlock=Oht;re.getBlockNumber=UOr;re.getBlockWithTransactions=Lht;re.getChainId=uae;re.getChainIdFromNetwork=Opt;re.getChainProvider=sI;re.getContract=WOr;re.getContractAddressByChainId=aI;re.getContractFromAbi=bL;re.getContractName=rae;re.getContractPublisherAddress=Qdt;re.getContractTypeForRemoteName=tae;re.getDefaultTrustedForwarders=Pne;re.getMultichainRegistryAddress=jre;re.getNativeTokenByChainId=wL;re.getProviderFromRpcUrl=xL;re.getRoleHash=Ox;re.getSignerAndProvider=yi;re.getSupportedChains=$dt;re.handleTokenApproval=EI;re.hasERC20Allowance=BDr;re.hasFunction=_o;re.hasMatchingAbi=Gne;re.includesErrorMessage=uI;re.isChainConfig=zF;re.isDowngradeVersion=LOr;re.isFeatureEnabled=Kx;re.isIncrementalVersion=wht;re.isNativeToken=Kh;re.isProvider=Rne;re.isSigner=UF;re.isTokenApprovedForTransfer=dht;re.isWinningBid=TOr;re.mapOffer=xOr;re.matchesPrebuiltAbi=dOr;re.normalizeAmount=DDr;re.normalizePriceValue=Ic;re.parseRevertReason=Une;re.resolveAddress=Re;re.resolveContractUriFromAddress=_I;re.setErc20Allowance=H0;re.setSupportedChains=Vdt;re.toDisplayValue=qDr;re.toEther=ODr;re.toSemver=$x;re.toUnits=FDr;re.toWei=LDr;re.uploadOrExtractURI=Zne;re.validateNewListingParam=_Or;re.watchBlock=HOr;re.watchBlockNumber=lae;re.watchBlockWithTransactions=Fht;re.watchTransactions=jOr});var Hht=x($0=>{"use strict";d();p();var Jx=ms(),gm=kr(),YF=Pi(),qht=yn(),Wht=gm.z.object({}).catchall(gm.z.union([Jx.BigNumberTransformSchema,gm.z.unknown()])),zOr=gm.z.union([gm.z.array(Wht),Wht]).optional(),Uht=gm.z.object({supply:Jx.BigNumberSchema,metadata:YF.CommonNFTOutput}),KOr=Uht.extend({owner:gm.z.string(),quantityOwned:Jx.BigNumberSchema}),GOr=gm.z.object({supply:Jx.BigNumberishSchema,metadata:YF.CommonNFTInput}),VOr=gm.z.object({supply:Jx.BigNumberishSchema,metadata:YF.NFTInputOrUriSchema}),$Or=gm.z.object({toAddress:Jx.AddressOrEnsSchema,amount:YF.AmountSchema}),YOr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function JOr(r){if(r in qht.GENERATED_ABI)return qht.GENERATED_ABI[r]}$0.EditionMetadataInputOrUriSchema=VOr;$0.EditionMetadataInputSchema=GOr;$0.EditionMetadataOutputSchema=Uht;$0.EditionMetadataWithOwnerOutputSchema=KOr;$0.OptionalPropertiesInput=zOr;$0.ProposalState=YOr;$0.TokenMintInputSchema=$Or;$0.getCachedAbiForContract=JOr});var jht=x(ae=>{"use strict";d();p();Object.defineProperty(ae,"__esModule",{value:!0});var QOr=Pi(),oe=ms(),K1=Hht(),ZOr=pre(),XOr=kre(),eLr=hL(),tLr=Tx(),rLr=$8(),dae=vre(),nLr=Are(),OI=J8();Ir();je();kr();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();Ln();pn();Fn();qn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();Jn();hn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Qe();fa();bn();Gr();Xr();ma();ya();ga();qr();mn();ba();va();wa();_a();xa();Ta();yn();Ea();Ca();globalThis.global=globalThis;ae.getRpcUrl=QOr.getRpcUrl;ae.ALL_ROLES=oe.ALL_ROLES;ae.APPROVED_IMPLEMENTATIONS=oe.APPROVED_IMPLEMENTATIONS;ae.AbiObjectSchema=oe.AbiObjectSchema;ae.AbiSchema=oe.AbiSchema;ae.AbiTypeSchema=oe.AbiTypeSchema;ae.AddressOrEnsSchema=oe.AddressOrEnsSchema;ae.AddressSchema=oe.AddressSchema;ae.AdminRoleMissingError=oe.AdminRoleMissingError;ae.AssetNotFoundError=oe.AssetNotFoundError;ae.AuctionAlreadyStartedError=oe.AuctionAlreadyStartedError;ae.AuctionHasNotEndedError=oe.AuctionHasNotEndedError;ae.BYOCContractMetadataSchema=oe.BYOCContractMetadataSchema;ae.BaseSignaturePayloadInput=oe.BaseSignaturePayloadInput;ae.BigNumberSchema=oe.BigNumberSchema;ae.BigNumberTransformSchema=oe.BigNumberTransformSchema;ae.BigNumberishSchema=oe.BigNumberishSchema;ae.CONTRACTS_MAP=oe.CONTRACTS_MAP;ae.CONTRACT_ADDRESSES=oe.CONTRACT_ADDRESSES;ae.CallOverrideSchema=oe.CallOverrideSchema;ae.ChainId=oe.ChainId;ae.ChainIdToAddressSchema=oe.ChainIdToAddressSchema;ae.ChainInfoInputSchema=oe.ChainInfoInputSchema;ae.ClaimConditionInputArray=oe.ClaimConditionInputArray;ae.ClaimConditionInputSchema=oe.ClaimConditionInputSchema;ae.ClaimConditionMetadataSchema=oe.ClaimConditionMetadataSchema;ae.ClaimConditionOutputSchema=oe.ClaimConditionOutputSchema;ae.ClaimEligibility=oe.ClaimEligibility;ae.CommonContractOutputSchema=oe.CommonContractOutputSchema;ae.CommonContractSchema=oe.CommonContractSchema;ae.CommonPlatformFeeSchema=oe.CommonPlatformFeeSchema;ae.CommonPrimarySaleSchema=oe.CommonPrimarySaleSchema;ae.CommonRoyaltySchema=oe.CommonRoyaltySchema;ae.CommonSymbolSchema=oe.CommonSymbolSchema;ae.CommonTrustedForwarderSchema=oe.CommonTrustedForwarderSchema;ae.CompilerMetadataFetchedSchema=oe.CompilerMetadataFetchedSchema;ae.ContractAppURI=oe.ContractAppURI;ae.ContractDeployer=oe.ContractDeployer;ae.ContractEncoder=oe.ContractEncoder;ae.ContractEvents=oe.ContractEvents;ae.ContractInfoSchema=oe.ContractInfoSchema;ae.ContractInterceptor=oe.ContractInterceptor;ae.ContractMetadata=oe.ContractMetadata;ae.ContractOwner=oe.ContractOwner;ae.ContractPlatformFee=oe.ContractPlatformFee;ae.ContractPrimarySale=oe.ContractPrimarySale;ae.ContractPublishedMetadata=oe.ContractPublishedMetadata;ae.ContractRoles=oe.ContractRoles;ae.ContractRoyalty=oe.ContractRoyalty;ae.CurrencySchema=oe.CurrencySchema;ae.CurrencyValueSchema=oe.CurrencyValueSchema;ae.CustomContractDeploy=oe.CustomContractDeploy;ae.CustomContractInput=oe.CustomContractInput;ae.CustomContractOutput=oe.CustomContractOutput;ae.CustomContractSchema=oe.CustomContractSchema;ae.DelayedReveal=oe.DelayedReveal;ae.DropClaimConditions=oe.DropClaimConditions;ae.DropErc1155ClaimConditions=oe.DropErc1155ClaimConditions;ae.DuplicateFileNameError=oe.DuplicateFileNameError;ae.DuplicateLeafsError=oe.DuplicateLeafsError;ae.EditionDropInitializer=oe.EditionDropInitializer;ae.EditionInitializer=oe.EditionInitializer;ae.EndDateSchema=oe.EndDateSchema;ae.Erc1155=oe.Erc1155;ae.Erc1155BatchMintable=oe.Erc1155BatchMintable;ae.Erc1155Burnable=oe.Erc1155Burnable;ae.Erc1155Enumerable=oe.Erc1155Enumerable;ae.Erc1155LazyMintable=oe.Erc1155LazyMintable;ae.Erc1155Mintable=oe.Erc1155Mintable;ae.Erc1155SignatureMintable=oe.Erc1155SignatureMintable;ae.Erc20=oe.Erc20;ae.Erc20BatchMintable=oe.Erc20BatchMintable;ae.Erc20Burnable=oe.Erc20Burnable;ae.Erc20Mintable=oe.Erc20Mintable;ae.Erc20SignatureMintable=oe.Erc20SignatureMintable;ae.Erc721=oe.Erc721;ae.Erc721BatchMintable=oe.Erc721BatchMintable;ae.Erc721Burnable=oe.Erc721Burnable;ae.Erc721ClaimableWithConditions=oe.Erc721ClaimableWithConditions;ae.Erc721Enumerable=oe.Erc721Enumerable;ae.Erc721LazyMintable=oe.Erc721LazyMintable;ae.Erc721Mintable=oe.Erc721Mintable;ae.Erc721Supply=oe.Erc721Supply;ae.Erc721WithQuantitySignatureMintable=oe.Erc721WithQuantitySignatureMintable;ae.EventType=oe.EventType;ae.ExtensionNotImplementedError=oe.ExtensionNotImplementedError;ae.ExtraPublishMetadataSchemaInput=oe.ExtraPublishMetadataSchemaInput;ae.ExtraPublishMetadataSchemaOutput=oe.ExtraPublishMetadataSchemaOutput;ae.FactoryDeploymentSchema=oe.FactoryDeploymentSchema;ae.FetchError=oe.FetchError;ae.FileNameMissingError=oe.FileNameMissingError;ae.FullPublishMetadataSchemaInput=oe.FullPublishMetadataSchemaInput;ae.FullPublishMetadataSchemaOutput=oe.FullPublishMetadataSchemaOutput;ae.FunctionDeprecatedError=oe.FunctionDeprecatedError;ae.GasCostEstimator=oe.GasCostEstimator;ae.GenericRequest=oe.GenericRequest;ae.InterfaceId_IERC1155=oe.InterfaceId_IERC1155;ae.InterfaceId_IERC721=oe.InterfaceId_IERC721;ae.InvalidAddressError=oe.InvalidAddressError;ae.LINK_TOKEN_ADDRESS=oe.LINK_TOKEN_ADDRESS;ae.LOCAL_NODE_PKEY=oe.LOCAL_NODE_PKEY;ae.ListingNotFoundError=oe.ListingNotFoundError;ae.MarketplaceInitializer=oe.MarketplaceInitializer;ae.MarketplaceV3DirectListings=oe.MarketplaceV3DirectListings;ae.MarketplaceV3EnglishAuctions=oe.MarketplaceV3EnglishAuctions;ae.MarketplaceV3Initializer=oe.MarketplaceV3Initializer;ae.MarketplaceV3Offers=oe.MarketplaceV3Offers;ae.MerkleSchema=oe.MerkleSchema;ae.MintRequest1155=oe.MintRequest1155;ae.MintRequest20=oe.MintRequest20;ae.MintRequest721=oe.MintRequest721;ae.MintRequest721withQuantity=oe.MintRequest721withQuantity;ae.MissingOwnerRoleError=oe.MissingOwnerRoleError;ae.MissingRoleError=oe.MissingRoleError;ae.MultiwrapInitializer=oe.MultiwrapInitializer;ae.NATIVE_TOKENS=oe.NATIVE_TOKENS;ae.NATIVE_TOKEN_ADDRESS=oe.NATIVE_TOKEN_ADDRESS;ae.NFTCollectionInitializer=oe.NFTCollectionInitializer;ae.NFTDropInitializer=oe.NFTDropInitializer;ae.NotEnoughTokensError=oe.NotEnoughTokensError;ae.NotFoundError=oe.NotFoundError;ae.OZ_DEFENDER_FORWARDER_ADDRESS=oe.OZ_DEFENDER_FORWARDER_ADDRESS;ae.PREBUILT_CONTRACTS_APPURI_MAP=oe.PREBUILT_CONTRACTS_APPURI_MAP;ae.PREBUILT_CONTRACTS_MAP=oe.PREBUILT_CONTRACTS_MAP;ae.PackInitializer=oe.PackInitializer;ae.PartialClaimConditionInputSchema=oe.PartialClaimConditionInputSchema;ae.PreDeployMetadata=oe.PreDeployMetadata;ae.PreDeployMetadataFetchedSchema=oe.PreDeployMetadataFetchedSchema;ae.ProfileSchemaInput=oe.ProfileSchemaInput;ae.ProfileSchemaOutput=oe.ProfileSchemaOutput;ae.PublishedContractSchema=oe.PublishedContractSchema;ae.QuantityAboveLimitError=oe.QuantityAboveLimitError;ae.RawDateSchema=oe.RawDateSchema;ae.RestrictedTransferError=oe.RestrictedTransferError;ae.SUPPORTED_CHAIN_IDS=oe.SUPPORTED_CHAIN_IDS;ae.Signature1155PayloadInput=oe.Signature1155PayloadInput;ae.Signature1155PayloadInputWithTokenId=oe.Signature1155PayloadInputWithTokenId;ae.Signature1155PayloadOutput=oe.Signature1155PayloadOutput;ae.Signature20PayloadInput=oe.Signature20PayloadInput;ae.Signature20PayloadOutput=oe.Signature20PayloadOutput;ae.Signature721PayloadInput=oe.Signature721PayloadInput;ae.Signature721PayloadOutput=oe.Signature721PayloadOutput;ae.Signature721WithQuantityInput=oe.Signature721WithQuantityInput;ae.Signature721WithQuantityOutput=oe.Signature721WithQuantityOutput;ae.SignatureDropInitializer=oe.SignatureDropInitializer;ae.SnapshotEntryInput=oe.SnapshotEntryInput;ae.SnapshotEntryWithProofSchema=oe.SnapshotEntryWithProofSchema;ae.SnapshotInfoSchema=oe.SnapshotInfoSchema;ae.SnapshotInputSchema=oe.SnapshotInputSchema;ae.SnapshotSchema=oe.SnapshotSchema;ae.SplitInitializer=oe.SplitInitializer;ae.StartDateSchema=oe.StartDateSchema;ae.Status=oe.Status;ae.ThirdwebSDK=oe.ThirdwebSDK;ae.TokenDropInitializer=oe.TokenDropInitializer;ae.TokenInitializer=oe.TokenInitializer;ae.Transaction=oe.Transaction;ae.TransactionError=oe.TransactionError;ae.UploadError=oe.UploadError;ae.UserWallet=oe.UserWallet;ae.VoteInitializer=oe.VoteInitializer;ae.WrongListingTypeError=oe.WrongListingTypeError;ae.approveErc20Allowance=oe.approveErc20Allowance;ae.assertEnabled=oe.assertEnabled;ae.cleanCurrencyAddress=oe.cleanCurrencyAddress;ae.convertToReadableQuantity=oe.convertToReadableQuantity;ae.createSnapshot=oe.createSnapshot;ae.detectContractFeature=oe.detectContractFeature;ae.detectFeatures=oe.detectFeatures;ae.extractConstructorParams=oe.extractConstructorParams;ae.extractConstructorParamsFromAbi=oe.extractConstructorParamsFromAbi;ae.extractEventsFromAbi=oe.extractEventsFromAbi;ae.extractFunctionParamsFromAbi=oe.extractFunctionParamsFromAbi;ae.extractFunctions=oe.extractFunctions;ae.extractFunctionsFromAbi=oe.extractFunctionsFromAbi;ae.extractIPFSHashFromBytecode=oe.extractIPFSHashFromBytecode;ae.extractMinimalProxyImplementationAddress=oe.extractMinimalProxyImplementationAddress;ae.fetchAbiFromAddress=oe.fetchAbiFromAddress;ae.fetchContractMetadata=oe.fetchContractMetadata;ae.fetchContractMetadataFromAddress=oe.fetchContractMetadataFromAddress;ae.fetchCurrencyMetadata=oe.fetchCurrencyMetadata;ae.fetchCurrencyValue=oe.fetchCurrencyValue;ae.fetchExtendedReleaseMetadata=oe.fetchExtendedReleaseMetadata;ae.fetchPreDeployMetadata=oe.fetchPreDeployMetadata;ae.fetchRawPredeployMetadata=oe.fetchRawPredeployMetadata;ae.fetchSnapshotEntryForAddress=oe.fetchSnapshotEntryForAddress;ae.fetchSourceFilesFromMetadata=oe.fetchSourceFilesFromMetadata;ae.getAllDetectedFeatureNames=oe.getAllDetectedFeatureNames;ae.getAllDetectedFeatures=oe.getAllDetectedFeatures;ae.getApprovedImplementation=oe.getApprovedImplementation;ae.getBlock=oe.getBlock;ae.getBlockNumber=oe.getBlockNumber;ae.getBlockWithTransactions=oe.getBlockWithTransactions;ae.getChainId=oe.getChainId;ae.getChainIdFromNetwork=oe.getChainIdFromNetwork;ae.getChainProvider=oe.getChainProvider;ae.getContract=oe.getContract;ae.getContractAddressByChainId=oe.getContractAddressByChainId;ae.getContractFromAbi=oe.getContractFromAbi;ae.getContractName=oe.getContractName;ae.getContractPublisherAddress=oe.getContractPublisherAddress;ae.getContractTypeForRemoteName=oe.getContractTypeForRemoteName;ae.getDefaultTrustedForwarders=oe.getDefaultTrustedForwarders;ae.getMultichainRegistryAddress=oe.getMultichainRegistryAddress;ae.getNativeTokenByChainId=oe.getNativeTokenByChainId;ae.getProviderFromRpcUrl=oe.getProviderFromRpcUrl;ae.getRoleHash=oe.getRoleHash;ae.getSignerAndProvider=oe.getSignerAndProvider;ae.getSupportedChains=oe.getSupportedChains;ae.hasERC20Allowance=oe.hasERC20Allowance;ae.hasFunction=oe.hasFunction;ae.hasMatchingAbi=oe.hasMatchingAbi;ae.includesErrorMessage=oe.includesErrorMessage;ae.isChainConfig=oe.isChainConfig;ae.isDowngradeVersion=oe.isDowngradeVersion;ae.isFeatureEnabled=oe.isFeatureEnabled;ae.isIncrementalVersion=oe.isIncrementalVersion;ae.isNativeToken=oe.isNativeToken;ae.isProvider=oe.isProvider;ae.isSigner=oe.isSigner;ae.matchesPrebuiltAbi=oe.matchesPrebuiltAbi;ae.normalizeAmount=oe.normalizeAmount;ae.normalizePriceValue=oe.normalizePriceValue;ae.parseRevertReason=oe.parseRevertReason;ae.resolveContractUriFromAddress=oe.resolveContractUriFromAddress;ae.setErc20Allowance=oe.setErc20Allowance;ae.setSupportedChains=oe.setSupportedChains;ae.toDisplayValue=oe.toDisplayValue;ae.toEther=oe.toEther;ae.toSemver=oe.toSemver;ae.toUnits=oe.toUnits;ae.toWei=oe.toWei;ae.watchBlock=oe.watchBlock;ae.watchBlockNumber=oe.watchBlockNumber;ae.watchBlockWithTransactions=oe.watchBlockWithTransactions;ae.watchTransactions=oe.watchTransactions;ae.EditionMetadataInputOrUriSchema=K1.EditionMetadataInputOrUriSchema;ae.EditionMetadataInputSchema=K1.EditionMetadataInputSchema;ae.EditionMetadataOutputSchema=K1.EditionMetadataOutputSchema;ae.EditionMetadataWithOwnerOutputSchema=K1.EditionMetadataWithOwnerOutputSchema;ae.OptionalPropertiesInput=K1.OptionalPropertiesInput;ae.ProposalState=K1.ProposalState;ae.TokenMintInputSchema=K1.TokenMintInputSchema;ae.getCachedAbiForContract=K1.getCachedAbiForContract;ae.DropErc1155History=ZOr.DropErc1155History;ae.TokenERC20History=XOr.TokenERC20History;ae.StandardErc20=eLr.StandardErc20;ae.StandardErc721=tLr.StandardErc721;ae.StandardErc1155=rLr.StandardErc1155;ae.ListingType=dae.ListingType;ae.MarketplaceAuction=dae.MarketplaceAuction;ae.MarketplaceDirect=dae.MarketplaceDirect;ae.VoteType=nLr.VoteType;ae.PAPER_API_URL=OI.PAPER_API_URL;ae.PaperCheckout=OI.PaperCheckout;ae.createCheckoutLinkIntent=OI.createCheckoutLinkIntent;ae.fetchRegisteredCheckoutId=OI.fetchRegisteredCheckoutId;ae.parseChainIdToPaperChain=OI.parseChainIdToPaperChain});var zht=x((PVn,pae)=>{"use strict";d();p();g.env.NODE_ENV==="production"?pae.exports=alt():pae.exports=jht()});var ec=x(Kht=>{"use strict";d();p();function aLr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function iLr(r){var e=aLr(r,"string");return typeof e=="symbol"?e:String(e)}function sLr(r,e,t){return e=iLr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}Kht._defineProperty=sLr});var Qx=x(fae=>{"use strict";d();p();var oLr=ec(),cLr=Qe();function uLr(r){return r&&r.__esModule?r:{default:r}}var lLr=uLr(cLr),JF=class extends lLr.default{},hae=class extends JF{constructor(e){super(),oLr._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};fae.TWConnector=JF;fae.WagmiAdapter=hae});var Yu=x(Ght=>{"use strict";d();p();function dLr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}Ght._checkPrivateRedeclaration=dLr});var bm=x(mae=>{"use strict";d();p();var pLr=Yu();function hLr(r,e){pLr._checkPrivateRedeclaration(r,e),e.add(r)}function fLr(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}mae._classPrivateMethodGet=fLr;mae._classPrivateMethodInitSpec=hLr});var G1=x(QF=>{"use strict";d();p();Object.defineProperty(QF,"__esModule",{value:!0});var Vht=ec(),Zx=je(),mLr=Qe();function yLr(r){return r&&r.__esModule?r:{default:r}}var gLr=yLr(mLr);function bLr(r){return`https://${r}.rpc.thirdweb.com`}var vLr=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],wLr="0x1626ba7e";async function $ht(r,e,t,n){let a=new Zx.providers.JsonRpcProvider(bLr(n)),i=new Zx.Contract(t,vLr,a),s=Zx.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===wLr}catch{return!1}}var yae=class extends gLr.default{constructor(){super(...arguments),Vht._defineProperty(this,"type","evm"),Vht._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=Zx.utils.hashMessage(e),s=Zx.utils.arrayify(i);if(Zx.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await $ht(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};QF.AbstractWallet=yae;QF.checkContractWalletSignature=$ht});var Xx=x(LI=>{"use strict";d();p();var Yht=bm(),v2=ec(),Ml=vt(),_Lr=G1(),gae="__TW__",ZF=class{constructor(e){v2._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${gae}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${gae}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${gae}/${this.name}/${e}`),t()})}};function bae(r){return new ZF(r)}var Ka=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({});Ka.Mainnet,Ka.Goerli,Ka.Polygon,Ka.Mumbai,Ka.Fantom,Ka.FantomTestnet,Ka.Avalanche,Ka.AvalancheFujiTestnet,Ka.Optimism,Ka.OptimismGoerli,Ka.Arbitrum,Ka.ArbitrumGoerli,Ka.BinanceSmartChainMainnet,Ka.BinanceSmartChainTestnet;var xLr={[Ka.Mainnet]:Ml.Ethereum,[Ka.Goerli]:Ml.Goerli,[Ka.Polygon]:Ml.Polygon,[Ka.Mumbai]:Ml.Mumbai,[Ka.Avalanche]:Ml.Avalanche,[Ka.AvalancheFujiTestnet]:Ml.AvalancheFuji,[Ka.Fantom]:Ml.Fantom,[Ka.FantomTestnet]:Ml.FantomTestnet,[Ka.Arbitrum]:Ml.Arbitrum,[Ka.ArbitrumGoerli]:Ml.ArbitrumGoerli,[Ka.Optimism]:Ml.Optimism,[Ka.OptimismGoerli]:Ml.OptimismGoerli,[Ka.BinanceSmartChainMainnet]:Ml.Binance,[Ka.BinanceSmartChainTestnet]:Ml.BinanceTestnet},Qht=Object.values(xLr),Jht=new WeakSet,XF=class extends _Lr.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),Yht._classPrivateMethodInitSpec(this,Jht),v2._defineProperty(this,"walletId",void 0),v2._defineProperty(this,"coordinatorStorage",void 0),v2._defineProperty(this,"walletStorage",void 0),v2._defineProperty(this,"chains",void 0),v2._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t.chains||Qht,this.coordinatorStorage=t.coordinatorStorage||bae("coordinator"),this.walletStorage=t.walletStorage||bae(this.walletId)}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")!==this.walletId)return;let t=await this.walletStorage.getItem("lastConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}return await this.connect(n)}async connect(e){let t=await this.getConnector();Yht._classPrivateMethodGet(this,Jht,TLr).call(this,t);let n=async()=>{if(e?.saveParams!==!1)try{await this.walletStorage.setItem("lastConnectedParams",JSON.stringify(e)),await this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId)}catch(i){console.error(i)}};if(await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),await n(),e?.chainId&&await t.switchChain(e?.chainId),i}else{let i=await t.connect(e);return await n(),i}}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async onDisconnect(){await this.coordinatorStorage.getItem("lastConnectedWallet")===this.walletId&&await this.coordinatorStorage.removeItem("lastConnectedWallet")}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),e.removeAllListeners(),await this.onDisconnect())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function TLr(r){r.on("connect",e=>{this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId),this.emit("connect",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{await this.onDisconnect(),this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}v2._defineProperty(XF,"meta",void 0);LI.AbstractBrowserWallet=XF;LI.AsyncLocalStorage=ZF;LI.createAsyncLocalStorage=bae;LI.thirdwebChains=Qht});var vm=x(eq=>{"use strict";d();p();var ELr=Yu();function CLr(r,e,t){ELr._checkPrivateRedeclaration(r,e),e.set(r,t)}function ILr(r,e){return e.get?e.get.call(r):e.value}function Zht(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function kLr(r,e){var t=Zht(r,e,"get");return ILr(r,t)}function ALr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function SLr(r,e,t){var n=Zht(r,e,"set");return ALr(r,n,t),t}eq._classPrivateFieldGet=kLr;eq._classPrivateFieldInitSpec=CLr;eq._classPrivateFieldSet=SLr});var eT=x(Y0=>{"use strict";d();p();var xu=ec(),PLr=vt(),RLr=Qe();function MLr(r){return r&&r.__esModule?r:{default:r}}var NLr=MLr(RLr),vae=class extends NLr.default{constructor(e){let{chains:t=PLr.defaultChains,options:n}=e;super(),xu._defineProperty(this,"id",void 0),xu._defineProperty(this,"name",void 0),xu._defineProperty(this,"chains",void 0),xu._defineProperty(this,"options",void 0),xu._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},tq=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),xu._defineProperty(this,"cause",void 0),xu._defineProperty(this,"code",void 0),xu._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},FI=class extends tq{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},wae=class extends Error{constructor(){super(...arguments),xu._defineProperty(this,"name","AddChainError"),xu._defineProperty(this,"message","Error adding chain")}},_ae=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),xu._defineProperty(this,"name","ChainNotConfigured")}},xae=class extends Error{constructor(){super(...arguments),xu._defineProperty(this,"name","ConnectorNotFoundError"),xu._defineProperty(this,"message","Connector not found")}},Tae=class extends tq{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),xu._defineProperty(this,"name","ResourceUnavailable")}},Eae=class extends FI{constructor(e){super("Error switching chain",{cause:e,code:4902}),xu._defineProperty(this,"name","SwitchChainError")}},Cae=class extends FI{constructor(e){super("User rejected request",{cause:e,code:4001}),xu._defineProperty(this,"name","UserRejectedRequestError")}};Y0.AddChainError=wae;Y0.ChainNotConfiguredError=_ae;Y0.Connector=vae;Y0.ConnectorNotFoundError=xae;Y0.ProviderRpcError=FI;Y0.ResourceUnavailableError=Tae;Y0.SwitchChainError=Eae;Y0.UserRejectedRequestError=Cae});var tT=x(Xht=>{"use strict";d();p();function BLr(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}Xht.normalizeChainId=BLr});var eft=x(rq=>{"use strict";d();p();Object.defineProperty(rq,"__esModule",{value:!0});rq.walletLogo=void 0;var DLr=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};rq.walletLogo=DLr});var tft=x(nq=>{"use strict";d();p();Object.defineProperty(nq,"__esModule",{value:!0});nq.ScopedLocalStorage=void 0;var Iae=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};nq.ScopedLocalStorage=Iae});var qI=x(Aae=>{"use strict";d();p();Object.defineProperty(Aae,"__esModule",{value:!0});var OLr=Ou();function rft(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function LLr(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let o=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw o.context=s,o}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")rft(i,this,t);else{let s=i.length,o=LLr(i);for(let c=0;c{d();p();oft.exports=WI;WI.default=WI;WI.stable=ift;WI.stableStringify=ift;var aq="[...]",nft="[Circular]",_2=[],w2=[];function aft(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function WI(r,e,t,n){typeof n>"u"&&(n=aft()),Sae(r,"",0,[],void 0,0,n);var a;try{w2.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,sft(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;_2.length!==0;){var i=_2.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function rT(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),_2.push([n,t,e,a])):w2.push([e,t,r]):(n[t]=r,_2.push([n,t,e]))}function Sae(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){rT(aq,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){rT(aq,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;oe?1:0}function ift(r,e,t,n){typeof n>"u"&&(n=aft());var a=Pae(r,"",0,[],void 0,0,n)||r,i;try{w2.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,sft(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;_2.length!==0;){var s=_2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Pae(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){rT(aq,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){rT(aq,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;o0)for(var n=0;n{"use strict";d();p();Object.defineProperty(nT,"__esModule",{value:!0});nT.EthereumProviderError=nT.EthereumRpcError=void 0;var qLr=Rae(),iq=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return qLr.default(this.serialize(),ULr,2)}};nT.EthereumRpcError=iq;var Mae=class extends iq{constructor(e,t,n){if(!WLr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};nT.EthereumProviderError=Mae;function WLr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function ULr(r,e){if(e!=="[Circular]")return e}});var oq=x(aT=>{"use strict";d();p();Object.defineProperty(aT,"__esModule",{value:!0});aT.errorValues=aT.errorCodes=void 0;aT.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};aT.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var Dae=x(Gh=>{"use strict";d();p();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.serializeError=Gh.isValidCode=Gh.getMessageFromCode=Gh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var cq=oq(),HLr=sq(),cft=cq.errorCodes.rpc.internal,jLr="Unspecified error message. This is a bug, please report it.",zLr={code:cft,message:Bae(cft)};Gh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function Bae(r,e=jLr){if(Number.isInteger(r)){let t=r.toString();if(Nae(cq.errorValues,t))return cq.errorValues[t].message;if(dft(r))return Gh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Gh.getMessageFromCode=Bae;function lft(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(cq.errorValues[e]||dft(r))}Gh.isValidCode=lft;function KLr(r,{fallbackError:e=zLr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof HLr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&Nae(r,"code")&&lft(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,Nae(o,"data")&&(i.data=o.data)):(i.message=Bae(i.code),i.data={originalError:uft(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:uft(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Gh.serializeError=KLr;function dft(r){return r>=-32099&&r<=-32e3}function uft(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function Nae(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var fft=x(uq=>{"use strict";d();p();Object.defineProperty(uq,"__esModule",{value:!0});uq.ethErrors=void 0;var Oae=sq(),pft=Dae(),Tu=oq();uq.ethErrors={rpc:{parse:r=>Pp(Tu.errorCodes.rpc.parse,r),invalidRequest:r=>Pp(Tu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Pp(Tu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Pp(Tu.errorCodes.rpc.methodNotFound,r),internal:r=>Pp(Tu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Pp(e,r)},invalidInput:r=>Pp(Tu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Pp(Tu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Pp(Tu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Pp(Tu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Pp(Tu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Pp(Tu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>UI(Tu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>UI(Tu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>UI(Tu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>UI(Tu.errorCodes.provider.disconnected,r),chainDisconnected:r=>UI(Tu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new Oae.EthereumProviderError(e,t,n)}}};function Pp(r,e){let[t,n]=hft(e);return new Oae.EthereumRpcError(r,t||pft.getMessageFromCode(r),n)}function UI(r,e){let[t,n]=hft(e);return new Oae.EthereumProviderError(r,t||pft.getMessageFromCode(r),n)}function hft(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var lq=x(Nl=>{"use strict";d();p();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.getMessageFromCode=Nl.serializeError=Nl.EthereumProviderError=Nl.EthereumRpcError=Nl.ethErrors=Nl.errorCodes=void 0;var mft=sq();Object.defineProperty(Nl,"EthereumRpcError",{enumerable:!0,get:function(){return mft.EthereumRpcError}});Object.defineProperty(Nl,"EthereumProviderError",{enumerable:!0,get:function(){return mft.EthereumProviderError}});var yft=Dae();Object.defineProperty(Nl,"serializeError",{enumerable:!0,get:function(){return yft.serializeError}});Object.defineProperty(Nl,"getMessageFromCode",{enumerable:!0,get:function(){return yft.getMessageFromCode}});var GLr=fft();Object.defineProperty(Nl,"ethErrors",{enumerable:!0,get:function(){return GLr.ethErrors}});var VLr=oq();Object.defineProperty(Nl,"errorCodes",{enumerable:!0,get:function(){return VLr.errorCodes}})});var pq=x(dq=>{"use strict";d();p();Object.defineProperty(dq,"__esModule",{value:!0});dq.EVENTS=void 0;dq.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var gft=x(()=>{d();p()});var Lft=x((W$n,Oft)=>{d();p();var Gae=typeof Map=="function"&&Map.prototype,Lae=Object.getOwnPropertyDescriptor&&Gae?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fq=Gae&&Lae&&typeof Lae.get=="function"?Lae.get:null,bft=Gae&&Map.prototype.forEach,Vae=typeof Set=="function"&&Set.prototype,Fae=Object.getOwnPropertyDescriptor&&Vae?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,mq=Vae&&Fae&&typeof Fae.get=="function"?Fae.get:null,vft=Vae&&Set.prototype.forEach,$Lr=typeof WeakMap=="function"&&WeakMap.prototype,jI=$Lr?WeakMap.prototype.has:null,YLr=typeof WeakSet=="function"&&WeakSet.prototype,zI=YLr?WeakSet.prototype.has:null,JLr=typeof WeakRef=="function"&&WeakRef.prototype,wft=JLr?WeakRef.prototype.deref:null,QLr=Boolean.prototype.valueOf,ZLr=Object.prototype.toString,XLr=Function.prototype.toString,eFr=String.prototype.match,$ae=String.prototype.slice,$1=String.prototype.replace,tFr=String.prototype.toUpperCase,_ft=String.prototype.toLowerCase,Pft=RegExp.prototype.test,xft=Array.prototype.concat,wm=Array.prototype.join,rFr=Array.prototype.slice,Tft=Math.floor,Uae=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qae=Object.getOwnPropertySymbols,Hae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,iT=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Eu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===iT?"object":"symbol")?Symbol.toStringTag:null,Rft=Object.prototype.propertyIsEnumerable,Eft=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Cft(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Pft.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Tft(-r):Tft(r);if(n!==r){var a=String(n),i=$ae.call(e,a.length+1);return $1.call(a,t,"$&_")+"."+$1.call($1.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $1.call(e,t,"$&_")}var jae=gft(),Ift=jae.custom,kft=Nft(Ift)?Ift:null;Oft.exports=function r(e,t,n,a){var i=t||{};if(V1(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V1(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=V1(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V1(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V1(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Dft(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return o?Cft(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return o?Cft(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return zae(e)?"[Array]":"[Object]";var h=wFr(i,n);if(typeof a>"u")a=[];else if(Bft(a,e)>=0)return"[Circular]";function f(A,v,k){if(v&&(a=rFr.call(a),a.push(v)),k){var O={depth:i.depth};return V1(i,"quoteStyle")&&(O.quoteStyle=i.quoteStyle),r(A,O,n+1,a)}return r(A,i,n+1,a)}if(typeof e=="function"&&!Aft(e)){var m=dFr(e),y=hq(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+wm.call(y,", ")+" }":"")}if(Nft(e)){var E=iT?$1.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Hae.call(e);return typeof e=="object"&&!iT?HI(E):E}if(gFr(e)){for(var I="<"+_ft.call(String(e.nodeName)),S=e.attributes||[],L=0;L",I}if(zae(e)){if(e.length===0)return"[]";var q=hq(e,f);return h&&!vFr(q)?"["+Kae(q,h)+"]":"[ "+wm.call(q,", ")+" ]"}if(iFr(e)){var W=hq(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Rft.call(e,"cause")?"{ ["+String(e)+"] "+wm.call(xft.call("[cause]: "+f(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+wm.call(W,", ")+" }"}if(typeof e=="object"&&s){if(kft&&typeof e[kft]=="function"&&jae)return jae(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(pFr(e)){var V=[];return bft&&bft.call(e,function(A,v){V.push(f(v,e,!0)+" => "+f(A,e))}),Sft("Map",fq.call(e),V,h)}if(mFr(e)){var K=[];return vft&&vft.call(e,function(A){K.push(f(A,e))}),Sft("Set",mq.call(e),K,h)}if(hFr(e))return Wae("WeakMap");if(yFr(e))return Wae("WeakSet");if(fFr(e))return Wae("WeakRef");if(oFr(e))return HI(f(Number(e)));if(uFr(e))return HI(f(Uae.call(e)));if(cFr(e))return HI(QLr.call(e));if(sFr(e))return HI(f(String(e)));if(!aFr(e)&&!Aft(e)){var H=hq(e,f),G=Eft?Eft(e)===Object.prototype:e instanceof Object||e.constructor===Object,J=e instanceof Object?"":"null prototype",F=!G&&Eu&&Object(e)===e&&Eu in e?$ae.call(Y1(e),8,-1):J?"Object":"",T=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=T+(F||J?"["+wm.call(xft.call([],F||[],J||[]),": ")+"] ":"");return H.length===0?P+"{}":h?P+"{"+Kae(H,h)+"}":P+"{ "+wm.call(H,", ")+" }"}return String(e)};function Mft(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function nFr(r){return $1.call(String(r),/"/g,""")}function zae(r){return Y1(r)==="[object Array]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function aFr(r){return Y1(r)==="[object Date]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function Aft(r){return Y1(r)==="[object RegExp]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function iFr(r){return Y1(r)==="[object Error]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function sFr(r){return Y1(r)==="[object String]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function oFr(r){return Y1(r)==="[object Number]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function cFr(r){return Y1(r)==="[object Boolean]"&&(!Eu||!(typeof r=="object"&&Eu in r))}function Nft(r){if(iT)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Hae)return!1;try{return Hae.call(r),!0}catch{}return!1}function uFr(r){if(!r||typeof r!="object"||!Uae)return!1;try{return Uae.call(r),!0}catch{}return!1}var lFr=Object.prototype.hasOwnProperty||function(r){return r in this};function V1(r,e){return lFr.call(r,e)}function Y1(r){return ZLr.call(r)}function dFr(r){if(r.name)return r.name;var e=eFr.call(XLr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Bft(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Dft($ae.call(r,0,e.maxStringLength),e)+n}var a=$1.call($1.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bFr);return Mft(a,"single",e)}function bFr(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+tFr.call(e.toString(16))}function HI(r){return"Object("+r+")"}function Wae(r){return r+" { ? }"}function Sft(r,e,t,n){var a=n?Kae(t,n):wm.call(t,", ");return r+" ("+e+") {"+a+"}"}function vFr(r){for(var e=0;e=0)return!1;return!0}function wFr(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=wm.call(Array(r.indent+1)," ");else return null;return{base:t,prev:wm.call(Array(e+1),t)}}function Kae(r,e){if(r.length===0)return"";var t=` -`+e.prev+e.base;return t+wm.call(r,","+t)+` -`+e.prev}function hq(r,e){var t=zae(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";d();p();var Yae=HE(),sT=jE(),_Fr=Lft(),xFr=Yae("%TypeError%"),yq=Yae("%WeakMap%",!0),gq=Yae("%Map%",!0),TFr=sT("WeakMap.prototype.get",!0),EFr=sT("WeakMap.prototype.set",!0),CFr=sT("WeakMap.prototype.has",!0),IFr=sT("Map.prototype.get",!0),kFr=sT("Map.prototype.set",!0),AFr=sT("Map.prototype.has",!0),Jae=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},SFr=function(r,e){var t=Jae(r,e);return t&&t.value},PFr=function(r,e,t){var n=Jae(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},RFr=function(r,e){return!!Jae(r,e)};Fft.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new xFr("Side channel does not contain "+_Fr(i))},get:function(i){if(yq&&i&&(typeof i=="object"||typeof i=="function")){if(e)return TFr(e,i)}else if(gq){if(t)return IFr(t,i)}else if(n)return SFr(n,i)},has:function(i){if(yq&&i&&(typeof i=="object"||typeof i=="function")){if(e)return CFr(e,i)}else if(gq){if(t)return AFr(t,i)}else if(n)return RFr(n,i);return!1},set:function(i,s){yq&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new yq),EFr(e,i,s)):gq?(t||(t=new gq),kFr(t,i,s)):(n||(n={key:{},next:null}),PFr(n,i,s))}};return a}});var bq=x((G$n,Wft)=>{"use strict";d();p();var MFr=String.prototype.replace,NFr=/%20/g,Qae={RFC1738:"RFC1738",RFC3986:"RFC3986"};Wft.exports={default:Qae.RFC3986,formatters:{RFC1738:function(r){return MFr.call(r,NFr,"+")},RFC3986:function(r){return String(r)}},RFC1738:Qae.RFC1738,RFC3986:Qae.RFC3986}});var Xae=x((Y$n,Hft)=>{"use strict";d();p();var BFr=bq(),Zae=Object.prototype.hasOwnProperty,x2=Array.isArray,_m=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),DFr=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(x2(n)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===BFr.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+_m[u];continue}if(u<2048){o=o+(_m[192|u>>6]+_m[128|u&63]);continue}if(u<55296||u>=57344){o=o+(_m[224|u>>12]+_m[128|u>>6&63]+_m[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=_m[240|u>>18]+_m[128|u>>12&63]+_m[128|u>>6&63]+_m[128|u&63]}return o},WFr=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";d();p();var Kft=qft(),vq=Xae(),KI=bq(),KFr=Object.prototype.hasOwnProperty,jft={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},J0=Array.isArray,GFr=Array.prototype.push,Gft=function(r,e){GFr.apply(r,J0(e)?e:[e])},VFr=Date.prototype.toISOString,zft=KI.default,Cu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:vq.encode,encodeValuesOnly:!1,format:zft,formatter:KI.formatters[zft],indices:!1,serializeDate:function(e){return VFr.call(e)},skipNulls:!1,strictNullHandling:!1},$Fr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},eie={},YFr=function r(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E,I){for(var S=e,L=I,q=0,W=!1;(L=L.get(eie))!==void 0&&!W;){var V=L.get(e);if(q+=1,typeof V<"u"){if(V===q)throw new RangeError("Cyclic object value");W=!0}typeof L.get(eie)>"u"&&(q=0)}if(typeof c=="function"?S=c(t,S):S instanceof Date?S=h(S):n==="comma"&&J0(S)&&(S=vq.maybeMap(S,function(O){return O instanceof Date?h(O):O})),S===null){if(i)return o&&!y?o(t,Cu.encoder,E,"key",f):t;S=""}if($Fr(S)||vq.isBuffer(S)){if(o){var K=y?t:o(t,Cu.encoder,E,"key",f);return[m(K)+"="+m(o(S,Cu.encoder,E,"value",f))]}return[m(t)+"="+m(String(S))]}var H=[];if(typeof S>"u")return H;var G;if(n==="comma"&&J0(S))y&&o&&(S=vq.maybeMap(S,o)),G=[{value:S.length>0?S.join(",")||null:void 0}];else if(J0(c))G=c;else{var J=Object.keys(S);G=u?J.sort(u):J}for(var F=a&&J0(S)&&S.length===1?t+"[]":t,T=0;T"u"?Cu.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Cu.charsetSentinel,delimiter:typeof e.delimiter>"u"?Cu.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Cu.encode,encoder:typeof e.encoder=="function"?e.encoder:Cu.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Cu.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Cu.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Cu.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Cu.strictNullHandling}};Vft.exports=function(r,e){var t=r,n=JFr(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):J0(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in jft?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var c=jft[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var l=Kft(),h=0;h0?y+m:""}});var Qft=x((tYn,Jft)=>{"use strict";d();p();var oT=Xae(),tie=Object.prototype.hasOwnProperty,QFr=Array.isArray,tc={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oT.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ZFr=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Yft=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},XFr="utf8=%26%2310003%3B",eqr="utf8=%E2%9C%93",tqr=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),o=-1,c,u=t.charset;if(t.charsetSentinel)for(c=0;c-1&&(y=QFr(y)?[y]:y),tie.call(n,m)?n[m]=oT.combine(n[m],y):n[m]=y}return n},rqr=function(r,e,t,n){for(var a=n?e:Yft(e,t),i=r.length-1;i>=0;--i){var s,o=r[i];if(o==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!t.parseArrays&&c===""?s={0:a}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(s=[],s[u]=a):c!=="__proto__"&&(s[c]=a)}a=s}return a},nqr=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&tie.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var h=0;n.depth>0&&(c=o.exec(i))!==null&&h"u"?tc.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?tc.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:tc.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:tc.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:tc.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:tc.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:tc.comma,decoder:typeof e.decoder=="function"?e.decoder:tc.decoder,delimiter:typeof e.delimiter=="string"||oT.isRegExp(e.delimiter)?e.delimiter:tc.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:tc.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:tc.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:tc.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:tc.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:tc.strictNullHandling}};Jft.exports=function(r,e){var t=aqr(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?tqr(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";d();p();var iqr=$ft(),sqr=Qft(),oqr=bq();Zft.exports={formats:oqr,parse:sqr,stringify:iqr}});var VI=x(Ac=>{"use strict";d();p();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ProviderType=Ac.RegExpString=Ac.IntNumber=Ac.BigIntString=Ac.AddressString=Ac.HexString=Ac.OpaqueType=void 0;function GI(){return r=>r}Ac.OpaqueType=GI;Ac.HexString=GI();Ac.AddressString=GI();Ac.BigIntString=GI();function cqr(r){return Math.floor(r)}Ac.IntNumber=cqr;Ac.RegExpString=GI();var uqr;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(uqr=Ac.ProviderType||(Ac.ProviderType={}))});var Q0=x(Ht=>{"use strict";d();p();var lqr=Ht&&Ht.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isInIFrame=Ht.createQrUrl=Ht.getFavicon=Ht.range=Ht.isBigNumber=Ht.ensureParsedJSONObject=Ht.ensureBN=Ht.ensureRegExpString=Ht.ensureIntNumber=Ht.ensureBuffer=Ht.ensureAddressString=Ht.ensureEvenLengthHexString=Ht.ensureHexString=Ht.isHexString=Ht.prepend0x=Ht.strip0x=Ht.has0xPrefix=Ht.hexStringFromIntNumber=Ht.intNumberFromHexString=Ht.bigIntStringFromBN=Ht.hexStringFromBuffer=Ht.hexStringToUint8Array=Ht.uint8ArrayToHex=Ht.randomBytesHex=void 0;var J1=lqr(Ir()),dqr=Xft(),Rp=VI(),emt=/^[0-9]*$/,tmt=/^[a-f0-9]*$/;function pqr(r){return rmt(crypto.getRandomValues(new Uint8Array(r)))}Ht.randomBytesHex=pqr;function rmt(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}Ht.uint8ArrayToHex=rmt;function hqr(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}Ht.hexStringToUint8Array=hqr;function fqr(r,e=!1){let t=r.toString("hex");return(0,Rp.HexString)(e?"0x"+t:t)}Ht.hexStringFromBuffer=fqr;function mqr(r){return(0,Rp.BigIntString)(r.toString(10))}Ht.bigIntStringFromBN=mqr;function yqr(r){return(0,Rp.IntNumber)(new J1.default(YI(r,!1),16).toNumber())}Ht.intNumberFromHexString=yqr;function gqr(r){return(0,Rp.HexString)("0x"+new J1.default(r).toString(16))}Ht.hexStringFromIntNumber=gqr;function rie(r){return r.startsWith("0x")||r.startsWith("0X")}Ht.has0xPrefix=rie;function wq(r){return rie(r)?r.slice(2):r}Ht.strip0x=wq;function nmt(r){return rie(r)?"0x"+r.slice(2):"0x"+r}Ht.prepend0x=nmt;function $I(r){if(typeof r!="string")return!1;let e=wq(r).toLowerCase();return tmt.test(e)}Ht.isHexString=$I;function amt(r,e=!1){if(typeof r=="string"){let t=wq(r).toLowerCase();if(tmt.test(t))return(0,Rp.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}Ht.ensureHexString=amt;function YI(r,e=!1){let t=amt(r,!1);return t.length%2===1&&(t=(0,Rp.HexString)("0"+t)),e?(0,Rp.HexString)("0x"+t):t}Ht.ensureEvenLengthHexString=YI;function bqr(r){if(typeof r=="string"){let e=wq(r).toLowerCase();if($I(e)&&e.length===40)return(0,Rp.AddressString)(nmt(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}Ht.ensureAddressString=bqr;function vqr(r){if(b.Buffer.isBuffer(r))return r;if(typeof r=="string")if($I(r)){let e=YI(r,!1);return b.Buffer.from(e,"hex")}else return b.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}Ht.ensureBuffer=vqr;function imt(r){if(typeof r=="number"&&Number.isInteger(r))return(0,Rp.IntNumber)(r);if(typeof r=="string"){if(emt.test(r))return(0,Rp.IntNumber)(Number(r));if($I(r))return(0,Rp.IntNumber)(new J1.default(YI(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureIntNumber=imt;function wqr(r){if(r instanceof RegExp)return(0,Rp.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}Ht.ensureRegExpString=wqr;function _qr(r){if(r!==null&&(J1.default.isBN(r)||smt(r)))return new J1.default(r.toString(10),10);if(typeof r=="number")return new J1.default(imt(r));if(typeof r=="string"){if(emt.test(r))return new J1.default(r,10);if($I(r))return new J1.default(YI(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureBN=_qr;function xqr(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}Ht.ensureParsedJSONObject=xqr;function smt(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}Ht.isBigNumber=smt;function Tqr(r,e){return Array.from({length:e-r},(t,n)=>r+n)}Ht.range=Tqr;function Eqr(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}Ht.getFavicon=Eqr;function Cqr(r,e,t,n,a,i){let s=n?"parent-id":"id",o=(0,dqr.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${o}`}Ht.createQrUrl=Cqr;function Iqr(){try{return window.frameElement!==null}catch{return!1}}Ht.isInIFrame=Iqr});var xq=x(_q=>{"use strict";d();p();Object.defineProperty(_q,"__esModule",{value:!0});_q.Session=void 0;var omt=hC(),cmt=Q0(),umt="session:id",lmt="session:secret",dmt="session:linked",JI=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,cmt.randomBytesHex)(16),this._secret=n||(0,cmt.randomBytesHex)(32),this._key=new omt.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(umt),n=e.getItem(dmt),a=e.getItem(lmt);return t&&a?new JI(e,t,a,n==="1"):null}static hash(e){return new omt.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(umt,this._id),this._storage.setItem(lmt,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(dmt,this._linked?"1":"0")}};_q.Session=JI});var aie=x(xm=>{"use strict";d();p();Object.defineProperty(xm,"__esModule",{value:!0});xm.WalletSDKRelayAbstract=xm.APP_VERSION_KEY=xm.LOCAL_STORAGE_ADDRESSES_KEY=xm.WALLET_USER_NAME_KEY=void 0;var pmt=lq();xm.WALLET_USER_NAME_KEY="walletUsername";xm.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";xm.APP_VERSION_KEY="AppVersion";var nie=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw pmt.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,pmt.serializeError)(i);return a})}};xm.WalletSDKRelayAbstract=nie});var mmt=x((vYn,fmt)=>{d();p();var{Transform:kqr}=rC();fmt.exports=r=>class hmt extends kqr{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new hmt(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var bmt=x((xYn,gmt)=>{d();p();var{Transform:Aqr}=rC();gmt.exports=r=>class ymt extends Aqr{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new ymt(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var wmt=x((CYn,vmt)=>{d();p();var Sqr=mmt(),Pqr=bmt();vmt.exports=function(r){let e=Sqr(r),t=Pqr(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var Tmt=x(xmt=>{d();p();var _mt=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];xmt.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],o=r[5]^r[15]^r[25]^r[35]^r[45],c=r[6]^r[16]^r[26]^r[36]^r[46],u=r[7]^r[17]^r[27]^r[37]^r[47],l=r[8]^r[18]^r[28]^r[38]^r[48],h=r[9]^r[19]^r[29]^r[39]^r[49],f=l^(a<<1|i>>>31),m=h^(i<<1|a>>>31),y=r[0]^f,E=r[1]^m,I=r[10]^f,S=r[11]^m,L=r[20]^f,q=r[21]^m,W=r[30]^f,V=r[31]^m,K=r[40]^f,H=r[41]^m;f=t^(s<<1|o>>>31),m=n^(o<<1|s>>>31);let G=r[2]^f,J=r[3]^m,F=r[12]^f,T=r[13]^m,P=r[22]^f,A=r[23]^m,v=r[32]^f,k=r[33]^m,O=r[42]^f,D=r[43]^m;f=a^(c<<1|u>>>31),m=i^(u<<1|c>>>31);let B=r[4]^f,_=r[5]^m,N=r[14]^f,U=r[15]^m,C=r[24]^f,z=r[25]^m,ee=r[34]^f,j=r[35]^m,X=r[44]^f,ie=r[45]^m;f=s^(l<<1|h>>>31),m=o^(h<<1|l>>>31);let ue=r[6]^f,he=r[7]^m,ke=r[16]^f,ge=r[17]^m,me=r[26]^f,Ke=r[27]^m,ve=r[36]^f,Ae=r[37]^m,lo=r[46]^f,It=r[47]^m;f=c^(t<<1|n>>>31),m=u^(n<<1|t>>>31);let bt=r[8]^f,li=r[9]^m,_t=r[18]^f,st=r[19]^m,di=r[28]^f,Nt=r[29]^m,dt=r[38]^f,po=r[39]^m,jt=r[48]^f,Bt=r[49]^m,sc=y,ot=E,pt=S<<4|I>>>28,Dc=I<<4|S>>>28,kt=L<<3|q>>>29,At=q<<3|L>>>29,Oc=V<<9|W>>>23,Dt=W<<9|V>>>23,St=K<<18|H>>>14,Lc=H<<18|K>>>14,Pt=G<<1|J>>>31,Ot=J<<1|G>>>31,oc=T<<12|F>>>20,Lt=F<<12|T>>>20,Ft=P<<10|A>>>22,Fc=A<<10|P>>>22,Rt=k<<13|v>>>19,qt=v<<13|k>>>19,qc=O<<2|D>>>30,Mt=D<<2|O>>>30,Wt=_<<30|B>>>2,cc=B<<30|_>>>2,Je=N<<6|U>>>26,it=U<<6|N>>>26,uc=z<<11|C>>>21,Ut=C<<11|z>>>21,Kt=ee<<15|j>>>17,ol=j<<15|ee>>>17,Gt=ie<<29|X>>>3,Vt=X<<29|ie>>>3,cl=ue<<28|he>>>4,$t=he<<28|ue>>>4,Yt=ge<<23|ke>>>9,Bu=ke<<23|ge>>>9,on=me<<25|Ke>>>7,cn=Ke<<25|me>>>7,Wc=ve<<21|Ae>>>11,Uc=Ae<<21|ve>>>11,Hc=It<<24|lo>>>8,jc=lo<<24|It>>>8,zc=bt<<27|li>>>5,Gp=li<<27|bt>>>5,Vp=_t<<20|st>>>12,$p=st<<20|_t>>>12,Yp=Nt<<7|di>>>25,Jp=di<<7|Nt>>>25,Qp=dt<<8|po>>>24,Zp=po<<8|dt>>>24,Xp=jt<<14|Bt>>>18,eh=Bt<<14|jt>>>18;r[0]=sc^~oc&uc,r[1]=ot^~Lt&Ut,r[10]=cl^~Vp&kt,r[11]=$t^~$p&At,r[20]=Pt^~Je&on,r[21]=Ot^~it&cn,r[30]=zc^~pt&Ft,r[31]=Gp^~Dc&Fc,r[40]=Wt^~Yt&Yp,r[41]=cc^~Bu&Jp,r[2]=oc^~uc&Wc,r[3]=Lt^~Ut&Uc,r[12]=Vp^~kt&Rt,r[13]=$p^~At&qt,r[22]=Je^~on&Qp,r[23]=it^~cn&Zp,r[32]=pt^~Ft&Kt,r[33]=Dc^~Fc&ol,r[42]=Yt^~Yp&Oc,r[43]=Bu^~Jp&Dt,r[4]=uc^~Wc&Xp,r[5]=Ut^~Uc&eh,r[14]=kt^~Rt&Gt,r[15]=At^~qt&Vt,r[24]=on^~Qp&St,r[25]=cn^~Zp&Lc,r[34]=Ft^~Kt&Hc,r[35]=Fc^~ol&jc,r[44]=Yp^~Oc&qc,r[45]=Jp^~Dt&Mt,r[6]=Wc^~Xp&sc,r[7]=Uc^~eh&ot,r[16]=Rt^~Gt&cl,r[17]=qt^~Vt&$t,r[26]=Qp^~St&Pt,r[27]=Zp^~Lc&Ot,r[36]=Kt^~Hc&zc,r[37]=ol^~jc&Gp,r[46]=Oc^~qc&Wt,r[47]=Dt^~Mt&cc,r[8]=Xp^~sc&oc,r[9]=eh^~ot&Lt,r[18]=Gt^~cl&Vp,r[19]=Vt^~$t&$p,r[28]=St^~Pt&Je,r[29]=Lc^~Ot&it,r[38]=Hc^~zc&pt,r[39]=jc^~Gp&Dc,r[48]=qc^~Wt&Yt,r[49]=Mt^~cc&Bu,r[0]^=_mt[e*2],r[1]^=_mt[e*2+1]}}});var Cmt=x((RYn,Emt)=>{d();p();var Tq=Tmt();function cT(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}cT.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};cT.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Tq.p1600(this.state),this.count=0);return e};cT.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};Emt.exports=cT});var kmt=x((BYn,Imt)=>{d();p();Imt.exports=wmt()(Cmt())});var iie=x((LYn,Mmt)=>{d();p();var Rqr=kmt(),Mqr=Ir();function Amt(r){return b.Buffer.allocUnsafe(r).fill(0)}function Smt(r,e,t){let n=Amt(e);return r=Eq(r),t?r.length{d();p();var C2=iie(),E2=Ir();function Bmt(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function uT(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function Nmt(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function Dmt(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function T2(r){var e=typeof r;if(e==="string")return C2.isHexString(r)?new E2(C2.stripHexPrefix(r),16):new E2(r,10);if(e==="number")return new E2(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function Tm(r,e){var t,n,a,i;if(r==="address")return Tm("uint160",T2(e));if(r==="bool")return Tm("uint8",e?1:0);if(r==="string")return Tm("bytes",new b.Buffer(e,"utf8"));if(Fqr(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=Dmt(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(Tm(r,e[i]));if(t==="dynamic"){var s=Tm("uint256",e.length);a.unshift(s)}return b.Buffer.concat(a)}else{if(r==="bytes")return e=new b.Buffer(e),a=b.Buffer.concat([Tm("uint256",e.length),e]),e.length%32!==0&&(a=b.Buffer.concat([a,C2.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=uT(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return C2.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=uT(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=T2(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("int")){if(t=uT(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=T2(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=Nmt(r),n=T2(e),n<0)throw new Error("Supplied ufixed is negative");return Tm("uint256",n.mul(new E2(2).pow(new E2(t[1]))))}else if(r.startsWith("fixed"))return t=Nmt(r),Tm("int256",T2(e).mul(new E2(2).pow(new E2(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function Lqr(r){return r==="string"||r==="bytes"||Dmt(r)==="dynamic"}function Fqr(r){return r.lastIndexOf("]")===r.length-1}function qqr(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=Bmt(r[i]),o=e[i],c=Tm(s,o);Lqr(s)?(t.push(Tm("uint256",a)),n.push(c),a+=c.length):t.push(c)}return b.Buffer.concat(t.concat(n))}function Omt(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(C2.setLengthRight(o,t))}else if(s.startsWith("uint")){if(t=uT(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=T2(o),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(b.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=uT(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=T2(o),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(b.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return b.Buffer.concat(a)}function Wqr(r,e){return C2.keccak(Omt(r,e))}Lmt.exports={rawEncode:qqr,solidityPack:Omt,soliditySHA3:Wqr}});var Umt=x((jYn,Wmt)=>{d();p();var Vh=iie(),QI=Fmt(),qmt={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},sie={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(o,c,u)=>{if(t[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Vh.keccak(this.encodeData(c,u,t,n))];if(u===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",Vh.keccak(u)];if(c==="string")return typeof u=="string"&&(u=b.Buffer.from(u,"utf8")),["bytes32",Vh.keccak(u)];if(c.lastIndexOf("]")===c.length-1){let l=c.slice(0,c.lastIndexOf("[")),h=u.map(f=>s(o,l,f));return["bytes32",Vh.keccak(QI.rawEncode(h.map(([f])=>f),h.map(([,f])=>f)))]}return[c,u]};for(let o of t[r]){let[c,u]=s(o.name,o.type,e[o.name]);a.push(c),i.push(u)}}else for(let s of t[r]){let o=e[s.name];if(o!==void 0)if(s.type==="bytes")a.push("bytes32"),o=Vh.keccak(o),i.push(o);else if(s.type==="string")a.push("bytes32"),typeof o=="string"&&(o=b.Buffer.from(o,"utf8")),o=Vh.keccak(o),i.push(o);else if(t[s.type]!==void 0)a.push("bytes32"),o=Vh.keccak(this.encodeData(s.type,o,t,n)),i.push(o);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(o)}}return QI.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:o})=>o+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return Vh.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return Vh.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in qmt.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[b.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),Vh.keccak(b.Buffer.concat(n))}};Wmt.exports={TYPED_MESSAGE_SCHEMA:qmt,TypedDataUtils:sie,hashForSignTypedDataLegacy:function(r){return Uqr(r.data)},hashForSignTypedData_v3:function(r){return sie.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return sie.hash(r.data)}};function Uqr(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?Vh.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return QI.soliditySHA3(["bytes32","bytes32"],[QI.soliditySHA3(new Array(r.length).fill("string"),a),QI.soliditySHA3(n,t)])}});var Gmt=x(dT=>{"use strict";d();p();Object.defineProperty(dT,"__esModule",{value:!0});dT.filterFromParam=dT.FilterPolyfill=void 0;var lT=VI(),Ju=Q0(),Hqr=5*60*1e3,I2={jsonrpc:"2.0",id:0},oie=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,lT.IntNumber)(1),this.provider=e}async newFilter(e){let t=Kmt(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,Ju.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Ju.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Ju.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,Ju.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,Ju.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(Cq())}async getFilterLogs(e){let t=(0,Ju.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_getLogs",params:[Hmt(n)]})):Cq()}makeFilterId(){return(0,lT.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return Cq();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return Iq();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_getLogs",params:[Hmt(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let o=s.result.map(u=>(0,Ju.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...o);if(c&&c>n){let u=(0,lT.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return Cq();let n=await this.getCurrentBlockHeight();if(t>n)return Iq();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,Ju.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,lT.IntNumber)(s))))).filter(s=>!!s),i=(0,lT.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},I2),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(Iq())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},Hqr);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_blockNumber",params:[]}));return(0,Ju.intNumberFromHexString)((0,Ju.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_getBlockByNumber",params:[(0,Ju.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,Ju.ensureHexString)(t.result.hash):null}};dT.FilterPolyfill=oie;function Kmt(r){return{fromBlock:jmt(r.fromBlock),toBlock:jmt(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}dT.filterFromParam=Kmt;function Hmt(r){let e={fromBlock:zmt(r.fromBlock),toBlock:zmt(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function jmt(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,lT.IntNumber)(0);if((0,Ju.isHexString)(r))return(0,Ju.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function zmt(r){return r==="latest"?r:(0,Ju.hexStringFromIntNumber)(r)}function Cq(){return Object.assign(Object.assign({},I2),{error:{code:-32e3,message:"filter not found"}})}function Iq(){return Object.assign(Object.assign({},I2),{result:[]})}});var Vmt=x(ZI=>{"use strict";d();p();Object.defineProperty(ZI,"__esModule",{value:!0});ZI.JSONRPCMethod=void 0;var jqr;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(jqr=ZI.JSONRPCMethod||(ZI.JSONRPCMethod={}))});var cie=x((ZYn,Ymt)=>{"use strict";d();p();var $mt=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,o){if(e.multiArgs){let c=new Array(arguments.length-1);for(let u=1;u{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):$mt(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?$mt(i,e):i}return n}});var Qmt=x((tJn,Jmt)=>{d();p();Jmt.exports=Kqr;var zqr=Object.prototype.hasOwnProperty;function Kqr(){for(var r={},e=0;e{d();p();Zmt.exports=Gqr;function Gqr(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var uie=x((oJn,e0t)=>{d();p();var Vqr=Qmt(),$qr=Xmt()();e0t.exports=dr;function dr(r){let e=this;e.currentProvider=r}dr.prototype.getBalance=XI(2,"eth_getBalance");dr.prototype.getCode=XI(2,"eth_getCode");dr.prototype.getTransactionCount=XI(2,"eth_getTransactionCount");dr.prototype.getStorageAt=XI(3,"eth_getStorageAt");dr.prototype.call=XI(2,"eth_call");dr.prototype.protocolVersion=Mr("eth_protocolVersion");dr.prototype.syncing=Mr("eth_syncing");dr.prototype.coinbase=Mr("eth_coinbase");dr.prototype.mining=Mr("eth_mining");dr.prototype.hashrate=Mr("eth_hashrate");dr.prototype.gasPrice=Mr("eth_gasPrice");dr.prototype.accounts=Mr("eth_accounts");dr.prototype.blockNumber=Mr("eth_blockNumber");dr.prototype.getBlockTransactionCountByHash=Mr("eth_getBlockTransactionCountByHash");dr.prototype.getBlockTransactionCountByNumber=Mr("eth_getBlockTransactionCountByNumber");dr.prototype.getUncleCountByBlockHash=Mr("eth_getUncleCountByBlockHash");dr.prototype.getUncleCountByBlockNumber=Mr("eth_getUncleCountByBlockNumber");dr.prototype.sign=Mr("eth_sign");dr.prototype.sendTransaction=Mr("eth_sendTransaction");dr.prototype.sendRawTransaction=Mr("eth_sendRawTransaction");dr.prototype.estimateGas=Mr("eth_estimateGas");dr.prototype.getBlockByHash=Mr("eth_getBlockByHash");dr.prototype.getBlockByNumber=Mr("eth_getBlockByNumber");dr.prototype.getTransactionByHash=Mr("eth_getTransactionByHash");dr.prototype.getTransactionByBlockHashAndIndex=Mr("eth_getTransactionByBlockHashAndIndex");dr.prototype.getTransactionByBlockNumberAndIndex=Mr("eth_getTransactionByBlockNumberAndIndex");dr.prototype.getTransactionReceipt=Mr("eth_getTransactionReceipt");dr.prototype.getUncleByBlockHashAndIndex=Mr("eth_getUncleByBlockHashAndIndex");dr.prototype.getUncleByBlockNumberAndIndex=Mr("eth_getUncleByBlockNumberAndIndex");dr.prototype.getCompilers=Mr("eth_getCompilers");dr.prototype.compileLLL=Mr("eth_compileLLL");dr.prototype.compileSolidity=Mr("eth_compileSolidity");dr.prototype.compileSerpent=Mr("eth_compileSerpent");dr.prototype.newFilter=Mr("eth_newFilter");dr.prototype.newBlockFilter=Mr("eth_newBlockFilter");dr.prototype.newPendingTransactionFilter=Mr("eth_newPendingTransactionFilter");dr.prototype.uninstallFilter=Mr("eth_uninstallFilter");dr.prototype.getFilterChanges=Mr("eth_getFilterChanges");dr.prototype.getFilterLogs=Mr("eth_getFilterLogs");dr.prototype.getLogs=Mr("eth_getLogs");dr.prototype.getWork=Mr("eth_getWork");dr.prototype.submitWork=Mr("eth_submitWork");dr.prototype.submitHashrate=Mr("eth_submitHashrate");dr.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(Yqr(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function Mr(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function XI(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{d();p();var Jqr=SR(),r0t=Ou(),lie=typeof Reflect=="object"?Reflect:null,Qqr=lie&&typeof lie.apply=="function"?lie.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};n0t.exports=die;function die(){r0t.call(this)}Jqr.inherits(die,r0t);die.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var o=a[r];if(o===void 0)return!1;if(typeof o=="function")t0t(o,this,e);else for(var c=o.length,u=Zqr(o,c),t=0;t{throw n})}}function Zqr(r,e){for(var t=new Array(e),n=0;n{d();p();var hJn=uie(),fJn=cie(),Xqr=a0t(),eWr=1e3,tWr=(r,e)=>r+e,i0t=["sync","latest"],pie=class extends Xqr{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*eWr,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!i0t.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return i0t.map(e=>this.listenerCount(e)).reduce(tWr)}_newPotentialLatest(e){let t=this._currentBlock;t&&s0t(e)<=s0t(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};o0t.exports=pie;function s0t(r){return Number.parseInt(r,16)}});var d0t=x((bJn,l0t)=>{d();p();var rWr=cie(),nWr=c0t(),aWr=1e3,hie=class extends nWr{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*aWr,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await u0t(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await u0t(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await rWr(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${t.error}`);return t.result}};l0t.exports=hie;function u0t(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var mie=x(kq=>{"use strict";d();p();Object.defineProperty(kq,"__esModule",{value:!0});kq.getUniqueId=void 0;var p0t=4294967295,fie=Math.floor(Math.random()*p0t);function iWr(){return fie=(fie+1)%p0t,fie}kq.getUniqueId=iWr});var h0t=x(Aq=>{"use strict";d();p();Object.defineProperty(Aq,"__esModule",{value:!0});Aq.createIdRemapMiddleware=void 0;var sWr=mie();function oWr(){return(r,e,t,n)=>{let a=r.id,i=sWr.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}Aq.createIdRemapMiddleware=oWr});var f0t=x(Sq=>{"use strict";d();p();Object.defineProperty(Sq,"__esModule",{value:!0});Sq.createAsyncMiddleware=void 0;function cWr(r){return async(e,t,n,a)=>{let i,s=new Promise(l=>{i=l}),o=null,c=!1,u=async()=>{c=!0,n(l=>{o=l,i()}),await s};try{await r(e,t,u),c?(await s,o(null)):a(null)}catch(l){o?o(l):a(l)}}}Sq.createAsyncMiddleware=cWr});var m0t=x(Pq=>{"use strict";d();p();Object.defineProperty(Pq,"__esModule",{value:!0});Pq.createScaffoldMiddleware=void 0;function uWr(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}Pq.createScaffoldMiddleware=uWr});var Mq=x(pT=>{"use strict";d();p();Object.defineProperty(pT,"__esModule",{value:!0});pT.EthereumProviderError=pT.EthereumRpcError=void 0;var lWr=Rae(),Rq=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return lWr.default(this.serialize(),pWr,2)}};pT.EthereumRpcError=Rq;var yie=class extends Rq{constructor(e,t,n){if(!dWr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};pT.EthereumProviderError=yie;function dWr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function pWr(r,e){if(e!=="[Circular]")return e}});var Nq=x(hT=>{"use strict";d();p();Object.defineProperty(hT,"__esModule",{value:!0});hT.errorValues=hT.errorCodes=void 0;hT.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};hT.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var vie=x($h=>{"use strict";d();p();Object.defineProperty($h,"__esModule",{value:!0});$h.serializeError=$h.isValidCode=$h.getMessageFromCode=$h.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Bq=Nq(),hWr=Mq(),y0t=Bq.errorCodes.rpc.internal,fWr="Unspecified error message. This is a bug, please report it.",mWr={code:y0t,message:bie(y0t)};$h.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function bie(r,e=fWr){if(Number.isInteger(r)){let t=r.toString();if(gie(Bq.errorValues,t))return Bq.errorValues[t].message;if(v0t(r))return $h.JSON_RPC_SERVER_ERROR_MESSAGE}return e}$h.getMessageFromCode=bie;function b0t(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(Bq.errorValues[e]||v0t(r))}$h.isValidCode=b0t;function yWr(r,{fallbackError:e=mWr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof hWr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&gie(r,"code")&&b0t(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,gie(o,"data")&&(i.data=o.data)):(i.message=bie(i.code),i.data={originalError:g0t(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:g0t(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}$h.serializeError=yWr;function v0t(r){return r>=-32099&&r<=-32e3}function g0t(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function gie(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var x0t=x(Dq=>{"use strict";d();p();Object.defineProperty(Dq,"__esModule",{value:!0});Dq.ethErrors=void 0;var wie=Mq(),w0t=vie(),Iu=Nq();Dq.ethErrors={rpc:{parse:r=>Mp(Iu.errorCodes.rpc.parse,r),invalidRequest:r=>Mp(Iu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Mp(Iu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Mp(Iu.errorCodes.rpc.methodNotFound,r),internal:r=>Mp(Iu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Mp(e,r)},invalidInput:r=>Mp(Iu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Mp(Iu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Mp(Iu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Mp(Iu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Mp(Iu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Mp(Iu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>ek(Iu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>ek(Iu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>ek(Iu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>ek(Iu.errorCodes.provider.disconnected,r),chainDisconnected:r=>ek(Iu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new wie.EthereumProviderError(e,t,n)}}};function Mp(r,e){let[t,n]=_0t(e);return new wie.EthereumRpcError(r,t||w0t.getMessageFromCode(r),n)}function ek(r,e){let[t,n]=_0t(e);return new wie.EthereumProviderError(r,t||w0t.getMessageFromCode(r),n)}function _0t(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var C0t=x(Bl=>{"use strict";d();p();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.getMessageFromCode=Bl.serializeError=Bl.EthereumProviderError=Bl.EthereumRpcError=Bl.ethErrors=Bl.errorCodes=void 0;var T0t=Mq();Object.defineProperty(Bl,"EthereumRpcError",{enumerable:!0,get:function(){return T0t.EthereumRpcError}});Object.defineProperty(Bl,"EthereumProviderError",{enumerable:!0,get:function(){return T0t.EthereumProviderError}});var E0t=vie();Object.defineProperty(Bl,"serializeError",{enumerable:!0,get:function(){return E0t.serializeError}});Object.defineProperty(Bl,"getMessageFromCode",{enumerable:!0,get:function(){return E0t.getMessageFromCode}});var gWr=x0t();Object.defineProperty(Bl,"ethErrors",{enumerable:!0,get:function(){return gWr.ethErrors}});var bWr=Nq();Object.defineProperty(Bl,"errorCodes",{enumerable:!0,get:function(){return bWr.errorCodes}})});var xie=x(fT=>{"use strict";d();p();var vWr=fT&&fT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fT,"__esModule",{value:!0});fT.JsonRpcEngine=void 0;var wWr=vWr(qI()),Np=C0t(),Yh=class extends wWr.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,o]=await Yh._runAllMiddleware(e,t,this._middleware);return s?(await Yh._runReturnHandlers(o),a(i)):n(async c=>{try{await Yh._runReturnHandlers(o)}catch(u){return c(u)}return c()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Np.EthereumRpcError(Np.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Np.EthereumRpcError(Np.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Np.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await Yh._runAllMiddleware(e,t,this._middleware);if(Yh._checkForCompletion(e,t,a),await Yh._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let o of n)if([i,s]=await Yh._runMiddleware(e,t,o,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=c=>{let u=c||t.error;u&&(t.error=Np.serializeError(u)),i([u,!0])},o=c=>{t.error?s(t.error):(c&&(typeof c!="function"&&s(new Np.EthereumRpcError(Np.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request: -${_ie(e)}`,{request:e})),a.push(c)),i([null,!1]))};try{n(e,t,o,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Np.EthereumRpcError(Np.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${_ie(e)}`,{request:e});if(!n)throw new Np.EthereumRpcError(Np.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${_ie(e)}`,{request:e})}};fT.JsonRpcEngine=Yh;function _ie(r){return JSON.stringify(r,null,2)}});var I0t=x(Oq=>{"use strict";d();p();Object.defineProperty(Oq,"__esModule",{value:!0});Oq.mergeMiddleware=void 0;var _Wr=xie();function xWr(r){let e=new _Wr.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}Oq.mergeMiddleware=xWr});var Tie=x(Bp=>{"use strict";d();p();var TWr=Bp&&Bp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),mT=Bp&&Bp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&TWr(e,r,t)};Object.defineProperty(Bp,"__esModule",{value:!0});mT(h0t(),Bp);mT(f0t(),Bp);mT(m0t(),Bp);mT(mie(),Bp);mT(xie(),Bp);mT(I0t(),Bp)});var Wq=x((nQn,qq)=>{d();p();var k0t,A0t,S0t,P0t,R0t,M0t,N0t,B0t,D0t,O0t,L0t,F0t,q0t,Lq,Eie,W0t,U0t,H0t,yT,j0t,z0t,K0t,G0t,V0t,$0t,Y0t,J0t,Q0t,Fq;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof qq=="object"&&typeof qq.exports=="object"?r(t(e,t(qq.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};k0t=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},A0t=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;l--)(u=n[l])&&(c=(o<3?u(c):o>3?u(a,i,c):u(a,i))||c);return o>3&&c&&Object.defineProperty(a,i,c),c},R0t=function(n,a){return function(i,s){a(i,s,n)}},M0t=function(n,a,i,s,o,c){function u(W){if(W!==void 0&&typeof W!="function")throw new TypeError("Function expected");return W}for(var l=s.kind,h=l==="getter"?"get":l==="setter"?"set":"value",f=!a&&n?s.static?n:n.prototype:null,m=a||(f?Object.getOwnPropertyDescriptor(f,s.name):{}),y,E=!1,I=i.length-1;I>=0;I--){var S={};for(var L in s)S[L]=L==="access"?{}:s[L];for(var L in s.access)S.access[L]=s.access[L];S.addInitializer=function(W){if(E)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(W||null))};var q=(0,i[I])(l==="accessor"?{get:m.get,set:m.set}:m[h],S);if(l==="accessor"){if(q===void 0)continue;if(q===null||typeof q!="object")throw new TypeError("Object expected");(y=u(q.get))&&(m.get=y),(y=u(q.set))&&(m.set=y),(y=u(q.init))&&o.push(y)}else(y=u(q))&&(l==="field"?o.push(y):m[h]=y)}f&&Object.defineProperty(f,s.name,m),E=!0},N0t=function(n,a,i){for(var s=arguments.length>2,o=0;o0&&c[c.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Eie=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,c=[],u;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},W0t=function(){for(var n=[],a=0;a1||l(E,I)})})}function l(E,I){try{h(s[E](I))}catch(S){y(c[0][3],S)}}function h(E){E.value instanceof yT?Promise.resolve(E.value.v).then(f,m):y(c[0][2],E)}function f(E){l("next",E)}function m(E){l("throw",E)}function y(E,I){E(I),c.shift(),c.length&&l(c[0][0],c[0][1])}},z0t=function(n){var a,i;return a={},s("next"),s("throw",function(o){throw o}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(o,c){a[o]=n[o]?function(u){return(i=!i)?{value:yT(n[o](u)),done:!1}:c?c(u):u}:c}},K0t=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof Lq=="function"?Lq(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(c){i[c]=n[c]&&function(u){return new Promise(function(l,h){u=n[c](u),o(l,h,u.done,u.value)})}}function o(c,u,l,h){Promise.resolve(h).then(function(f){c({value:f,done:l})},u)}},G0t=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};V0t=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&Fq(a,n,i);return t(a,n),a},$0t=function(n){return n&&n.__esModule?n:{default:n}},Y0t=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},J0t=function(n,a,i,s,o){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!o:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?o.call(n,i):o?o.value=i:a.set(n,i),i},Q0t=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",k0t),r("__assign",A0t),r("__rest",S0t),r("__decorate",P0t),r("__param",R0t),r("__esDecorate",M0t),r("__runInitializers",N0t),r("__propKey",B0t),r("__setFunctionName",D0t),r("__metadata",O0t),r("__awaiter",L0t),r("__generator",F0t),r("__exportStar",q0t),r("__createBinding",Fq),r("__values",Lq),r("__read",Eie),r("__spread",W0t),r("__spreadArrays",U0t),r("__spreadArray",H0t),r("__await",yT),r("__asyncGenerator",j0t),r("__asyncDelegator",z0t),r("__asyncValues",K0t),r("__makeTemplateObject",G0t),r("__importStar",V0t),r("__importDefault",$0t),r("__classPrivateFieldGet",Y0t),r("__classPrivateFieldSet",J0t),r("__classPrivateFieldIn",Q0t)})});var Iie=x(Cie=>{"use strict";d();p();Object.defineProperty(Cie,"__esModule",{value:!0});var Z0t=Wq(),EWr=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return Z0t.__awaiter(this,void 0,void 0,function(){var t,n,a;return Z0t.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();Cie.default=EWr});var eyt=x(kie=>{"use strict";d();p();Object.defineProperty(kie,"__esModule",{value:!0});var X0t=Wq(),CWr=Iie(),IWr=function(){function r(){this._semaphore=new CWr.default(1)}return r.prototype.acquire=function(){return X0t.__awaiter(this,void 0,void 0,function(){var e,t;return X0t.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();kie.default=IWr});var tyt=x(Hq=>{"use strict";d();p();Object.defineProperty(Hq,"__esModule",{value:!0});Hq.withTimeout=void 0;var Uq=Wq();function kWr(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return Uq.__awaiter(n,void 0,void 0,function(){var s,o,c;return Uq.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return o=u.sent(),s?(c=Array.isArray(o)?o[1]:o,c()):a(o),[2]}})})})},runExclusive:function(a){return Uq.__awaiter(this,void 0,void 0,function(){var i,s;return Uq.__generator(this,function(o){switch(o.label){case 0:i=function(){},o.label=1;case 1:return o.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=o.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,o.sent()];case 4:return i=s,[4,a()];case 5:return[2,o.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}Hq.withTimeout=kWr});var ryt=x(Q1=>{"use strict";d();p();Object.defineProperty(Q1,"__esModule",{value:!0});Q1.withTimeout=Q1.Semaphore=Q1.Mutex=void 0;var AWr=eyt();Object.defineProperty(Q1,"Mutex",{enumerable:!0,get:function(){return AWr.default}});var SWr=Iie();Object.defineProperty(Q1,"Semaphore",{enumerable:!0,get:function(){return SWr.default}});var PWr=tyt();Object.defineProperty(Q1,"withTimeout",{enumerable:!0,get:function(){return PWr.withTimeout}})});var syt=x((bQn,iyt)=>{"use strict";d();p();var nyt=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,o)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?o(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,l)=>{u?o(u):s(l)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},ayt=new WeakMap;iyt.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,o)=>{let c=ayt.get(s);if(c||(c={},ayt.set(s,c)),o in c)return c[o];let u=y=>typeof y=="string"||typeof o=="symbol"?o===y:y.test(o),l=Reflect.getOwnPropertyDescriptor(s,o),h=l===void 0||l.writable||l.configurable,m=(e.include?e.include.some(u):!e.exclude.some(u))&&h;return c[o]=m,m},a=new WeakMap,i=new Proxy(r,{apply(s,o,c){let u=a.get(s);if(u)return Reflect.apply(u,o,c);let l=e.excludeMain?s:nyt(s,e,i,s);return a.set(s,l),Reflect.apply(l,o,c)},get(s,o){let c=s[o];if(!n(s,o)||c===Function.prototype[o])return c;let u=a.get(c);if(u)return u;if(typeof c=="function"){let l=nyt(c,e,i,s);return a.set(c,l),l}return c}});return i}});var jq=x((_Qn,oyt)=>{d();p();var RWr=qI().default,Aie=class extends RWr{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};oyt.exports=Aie});var uyt=x((EQn,cyt)=>{d();p();var MWr=jq(),Sie=class extends MWr{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};cyt.exports=Sie});var gT=x((kQn,pyt)=>{d();p();pyt.exports={minBlockRef:NWr,maxBlockRef:BWr,sortBlockRefs:Pie,bnToHex:DWr,blockRefIsNumber:OWr,hexToInt:zq,incrementHexInt:LWr,intToHex:dyt,unsafeRandomBytes:FWr};function NWr(...r){return Pie(r)[0]}function BWr(...r){let e=Pie(r);return e[e.length-1]}function Pie(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:zq(e)-zq(t))}function DWr(r){return"0x"+r.toString(16)}function OWr(r){return r&&!["earliest","latest","pending"].includes(r)}function zq(r){return r==null?r:Number.parseInt(r,16)}function LWr(r){if(r==null)return r;let e=zq(r);return dyt(e+1)}function dyt(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function FWr(r){let e="0x";for(let t=0;t{d();p();var qWr=uie(),WWr=syt(),UWr=uyt(),{bnToHex:PQn,hexToInt:Kq,incrementHexInt:HWr,minBlockRef:jWr,blockRefIsNumber:zWr}=gT(),Rie=class extends UWr{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new qWr(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=jWr(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=HWr(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),o=(await this._fetchLogs(i)).filter(c=>this.matchLog(c));this.addResults(o)}async _fetchLogs(e){return await WWr(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(Kq(this.params.fromBlock)>=Kq(e.blockNumber)||zWr(this.params.toBlock)&&Kq(this.params.toBlock)<=Kq(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let o=Array.isArray(a)?a:[a];return o.includes(null)?!0:(o=o.map(l=>l.toLowerCase()),o.includes(s))})}};hyt.exports=Rie});var Gq=x((BQn,yyt)=>{d();p();yyt.exports=KWr;async function KWr({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=myt(e),i=myt(t)-n+1,s=Array(i).fill().map((c,u)=>n+u).map(GWr);return await Promise.all(s.map(c=>$Wr(r,"eth_getBlockByNumber",[c,!1])))}function myt(r){return r==null?r:Number.parseInt(r,16)}function GWr(r){return r==null?r:"0x"+r.toString(16)}function VWr(r,e){return new Promise((t,n)=>{r.sendAsync(e,(a,i)=>{a?n(a):i.error?n(i.error):i.result?t(i.result):n(new Error("Result was empty"))})})}async function $Wr(r,e,t){for(let n=0;n<3;n++)try{return await VWr(r,{id:1,jsonrpc:"2.0",method:e,params:t})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(t)}`)}});var byt=x((LQn,gyt)=>{d();p();var YWr=jq(),JWr=Gq(),{incrementHexInt:QWr}=gT(),Mie=class extends YWr{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=QWr(e),s=(await JWr({provider:this.provider,fromBlock:a,toBlock:n})).map(o=>o.hash);this.addResults(s)}};gyt.exports=Mie});var wyt=x((WQn,vyt)=>{d();p();var ZWr=jq(),XWr=Gq(),{incrementHexInt:eUr}=gT(),Nie=class extends ZWr{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=eUr(e),a=await XWr({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};vyt.exports=Nie});var Tyt=x((jQn,xyt)=>{d();p();var tUr=ryt().Mutex,{createAsyncMiddleware:rUr,createScaffoldMiddleware:nUr}=Tie(),aUr=fyt(),iUr=byt(),sUr=wyt(),{intToHex:_yt,hexToInt:Bie}=gT();xyt.exports=oUr;function oUr({blockTracker:r,provider:e}){let t=0,n={},a=new tUr,i=cUr({mutex:a}),s=nUr({eth_newFilter:i(Die(c)),eth_newBlockFilter:i(Die(u)),eth_newPendingTransactionFilter:i(Die(l)),eth_uninstallFilter:i(Vq(m)),eth_getFilterChanges:i(Vq(h)),eth_getFilterLogs:i(Vq(f))}),o=async({oldBlock:L,newBlock:q})=>{if(n.length===0)return;let W=await a.acquire();try{await Promise.all(bT(n).map(async V=>{try{await V.update({oldBlock:L,newBlock:q})}catch(K){console.error(K)}}))}catch(V){console.error(V)}W()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=l,s.uninstallFilter=m,s.getFilterChanges=h,s.getFilterLogs=f,s.destroy=()=>{I()},s;async function c(L){let q=new aUr({provider:e,params:L}),W=await y(q);return q}async function u(){let L=new iUr({provider:e}),q=await y(L);return L}async function l(){let L=new sUr({provider:e}),q=await y(L);return L}async function h(L){let q=Bie(L),W=n[q];if(!W)throw new Error(`No filter for index "${q}"`);return W.getChangesAndClear()}async function f(L){let q=Bie(L),W=n[q];if(!W)throw new Error(`No filter for index "${q}"`);let V=[];return W.type==="log"&&(V=W.getAllResults()),V}async function m(L){let q=Bie(L),W=n[q],V=Boolean(W);return V&&await E(q),V}async function y(L){let q=bT(n).length,W=await r.getLatestBlock();await L.initialize({currentBlock:W}),t++,n[t]=L,L.id=t,L.idHex=_yt(t);let V=bT(n).length;return S({prevFilterCount:q,newFilterCount:V}),t}async function E(L){let q=bT(n).length;delete n[L];let W=bT(n).length;S({prevFilterCount:q,newFilterCount:W})}async function I(){let L=bT(n).length;n={},S({prevFilterCount:L,newFilterCount:0})}function S({prevFilterCount:L,newFilterCount:q}){if(L===0&&q>0){r.on("sync",o);return}if(L>0&&q===0){r.removeListener("sync",o);return}}}function Die(r){return Vq(async(...e)=>{let t=await r(...e);return _yt(t.id)})}function Vq(r){return rUr(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function cUr({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function bT(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var Iyt=x((GQn,Cyt)=>{d();p();var uUr=qI().default,{createAsyncMiddleware:Eyt,createScaffoldMiddleware:lUr}=Tie(),dUr=Tyt(),{unsafeRandomBytes:pUr,incrementHexInt:hUr}=gT(),fUr=Gq();Cyt.exports=mUr;function mUr({blockTracker:r,provider:e}){let t={},n=dUr({blockTracker:r,provider:e}),a=!1,i=new uUr,s=lUr({eth_subscribe:Eyt(o),eth_unsubscribe:Eyt(c)});return s.destroy=l,{events:i,middleware:s};async function o(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=pUr(16),E;switch(m){case"newHeads":E=I({subId:y});break;case"logs":let L=h.params[1],q=await n.newLogFilter(L);E=S({subId:y,filter:q});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${m}"`)}t[y]=E,f.result=y;return;function I({subId:L}){let q={type:m,destroy:async()=>{r.removeListener("sync",q.update)},update:async({oldBlock:W,newBlock:V})=>{let K=V,H=hUr(W);(await fUr({provider:e,fromBlock:H,toBlock:K})).map(yUr).filter(F=>F!==null).forEach(F=>{u(L,F)})}};return r.on("sync",q.update),q}function S({subId:L,filter:q}){return q.on("update",V=>u(L,V)),{type:m,destroy:async()=>await n.uninstallFilter(q.idHex)}}}async function c(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=t[m];if(!y){f.result=!1;return}delete t[m],await y.destroy(),f.result=!0}function u(h,f){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:h,result:f}})}function l(){i.removeAllListeners();for(let h in t)t[h].destroy(),delete t[h];a=!0}}function yUr(r){return r==null?null:{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var Ayt=x($q=>{"use strict";d();p();Object.defineProperty($q,"__esModule",{value:!0});$q.SubscriptionManager=void 0;var gUr=d0t(),bUr=Iyt(),kyt=()=>{},Oie=class{constructor(e){let t=new gUr({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=bUr({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,kyt,kyt),t}destroy(){this.subscriptionMiddleware.destroy()}};$q.SubscriptionManager=Oie});var Yq=x(vT=>{"use strict";d();p();var Wie=vT&&vT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vT,"__esModule",{value:!0});vT.CoinbaseWalletProvider=void 0;var vUr=Wie(qI()),wUr=Wie(Ir()),ku=lq(),Lie=pq(),Syt=xq(),Pyt=aie(),Ar=Q0(),Fie=Wie(Umt()),_Ur=Gmt(),Na=Vmt(),xUr=Ayt(),Ryt="DefaultChainId",Myt="DefaultJsonRpcUrl",qie=class extends vUr.default{constructor(e){var t,n;super(),this._filterPolyfill=new _Ur.FilterPolyfill(this),this._subscriptionManager=new xUr.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,Ar.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(Pyt.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let o=s.split(" ");o[0]!==""&&(this._addresses=o.map(c=>(0,Ar.ensureAddressString)(c)),this.emit("accountsChanged",o))}this._subscriptionManager.events.on("notification",o=>{this.emit("message",{type:o.method,data:o.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",o=>{var c;if(!(o.origin!==location.origin||o.source!==window)&&o.data.type==="walletLinkMessage"){if(o.data.data.action==="defaultChainChanged"||o.data.data.action==="dappChainSwitched"){let u=o.data.data.chainId,l=(c=o.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(l,Number(u))}o.data.data.action==="addressChanged"&&this._setAddresses([o.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Ar.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(Myt))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(Myt,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(Ryt,t.toString(10)),((0,Ar.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var o,c;if((0,Ar.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),l=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!l&&await u.requestEthereumAccounts().promise;let h=await u.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((o=h.result)===null||o===void 0?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw ku.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(Lie.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?Syt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(Na.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(o=>o.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw ku.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw ku.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw ku.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,Ar.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,Ar.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(Pyt.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(o=>t(Object.assign(Object.assign({},o),{id:e.id}))).catch(o=>n(o));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(o=>t({jsonrpc:"2.0",id:e.id,result:o.result})).catch(o=>n(o));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_accounts:return this._eth_accounts();case Na.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case Na.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case Na.JSONRPCMethod.net_version:return this._net_version();case Na.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case Na.JSONRPCMethod.eth_sign:return this._eth_sign(n);case Na.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case Na.JSONRPCMethod.personal_sign:return this._personal_sign(n);case Na.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case Na.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case Na.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case Na.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case Na.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case Na.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case Na.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case Na.JSONRPCMethod.eth_signTypedData_v4:case Na.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case Na.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case Na.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case Na.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case Na.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case Na.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case Na.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case Na.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case Na.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case Na.JSONRPCMethod.eth_subscribe:case Na.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,Ar.ensureAddressString)(e);return this._addresses.map(a=>(0,Ar.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(Lie.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,Ar.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,Ar.ensureAddressString)(e.to):null,a=e.value!=null?(0,Ar.ensureBN)(e.value):new wUr.default(0),i=e.data?(0,Ar.ensureBuffer)(e.data):b.Buffer.alloc(0),s=e.nonce!=null?(0,Ar.ensureIntNumber)(e.nonce):null,o=e.gasPrice!=null?(0,Ar.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,Ar.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,Ar.ensureBN)(e.maxPriorityFeePerGas):null,l=e.gas!=null?(0,Ar.ensureBN)(e.gas):null,h=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:l,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw ku.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw ku.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Ar.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(Ryt);if(!e)return(0,Ar.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,Ar.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(Lie.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?Syt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,Ar.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,Ar.ensureParsedJSONObject)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=Fie.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Fie.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Fie.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw ku.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw ku.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw ku.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw ku.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw ku.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw ku.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,o,s,n)}}_eth_uninstallFilter(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};vT.CoinbaseWalletProvider=qie});var Ol={};cr(Ol,{Component:()=>Dl,Fragment:()=>Dp,cloneElement:()=>zie,createContext:()=>ik,createElement:()=>fd,createRef:()=>ak,h:()=>fd,hydrate:()=>Xq,isValidElement:()=>Fyt,options:()=>at,render:()=>A2,toChildArray:()=>Jh});function Z0(r,e){for(var t in e)r[t]=e[t];return r}function Hyt(r){var e=r.parentNode;e&&e.removeChild(r)}function fd(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?nk.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return tk(r,s,n,a,null)}function tk(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Lyt};return a==null&&at.vnode!=null&&at.vnode(i),i}function ak(){return{current:null}}function Dp(r){return r.children}function Dl(r,e){this.props=r,this.context=e}function rk(r,e){if(e==null)return r.__?rk(r.__,r.__.__k.indexOf(r)+1):null;for(var t;ee&&k2.sort(Uie));Qq.__r=0}function zyt(r,e,t,n,a,i,s,o,c,u){var l,h,f,m,y,E,I,S=n&&n.__k||Uyt,L=S.length;for(t.__k=[],l=0;l0?tk(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=t,m.__b=t.__b+1,(f=S[l])===null||f&&m.key==f.key&&m.type===f.type)S[l]=void 0;else for(h=0;h=0;e--)if((t=r.__k[e])&&(n=Vyt(t)))return n}return null}function EUr(r,e,t,n,a){var i;for(i in t)i==="children"||i==="key"||i in e||Zq(r,i,null,t[i],n);for(i in e)a&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||t[i]===e[i]||Zq(r,i,e[i],t[i],n)}function Byt(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||TUr.test(e)?t:t+"px"}function Zq(r,e,t,n,a){var i;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||Byt(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||Byt(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+i]=t,t?n||r.addEventListener(e,i?Oyt:Dyt,i):r.removeEventListener(e,i?Oyt:Dyt,i);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function Dyt(r){return this.l[r.type+!1](at.event?at.event(r):r)}function Oyt(r){return this.l[r.type+!0](at.event?at.event(r):r)}function jie(r,e,t,n,a,i,s,o,c){var u,l,h,f,m,y,E,I,S,L,q,W,V,K,H,G=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,i=[o]),(u=at.__b)&&u(e);try{e:if(typeof G=="function"){if(I=e.props,S=(u=G.contextType)&&n[u.__c],L=u?S?S.props.value:u.__:n,t.__c?E=(l=e.__c=t.__c).__=l.__E:("prototype"in G&&G.prototype.render?e.__c=l=new G(I,L):(e.__c=l=new Dl(I,L),l.constructor=G,l.render=IUr),S&&S.sub(l),l.props=I,l.state||(l.state={}),l.context=L,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),G.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Z0({},l.__s)),Z0(l.__s,G.getDerivedStateFromProps(I,l.__s))),f=l.props,m=l.state,l.__v=e,h)G.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(G.getDerivedStateFromProps==null&&I!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(I,L),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(I,l.__s,L)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(l.props=I,l.state=l.__s,l.__d=!1),l.__e=!1,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(J){J&&(J.__=e)}),q=0;q2&&(s.children=arguments.length>3?nk.call(arguments,2):t),tk(r.type,s,n||r.key,a||r.ref,null)}function ik(r,e){var t={__c:e="__cC"+Wyt++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(o){o.__e=!0,Hie(o)})},this.sub=function(s){a.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),o&&o.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var nk,at,Lyt,Fyt,k2,Nyt,qyt,Uie,Wyt,Jq,Uyt,TUr,Sc=ce(()=>{d();p();Jq={},Uyt=[],TUr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;nk=Uyt.slice,at={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(o){r=o}throw r}},Lyt=0,Fyt=function(r){return r!=null&&r.constructor===void 0},Dl.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Z0({},this.state),typeof r=="function"&&(r=r(Z0({},t),this.props)),r&&Z0(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),Hie(this))},Dl.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),Hie(this))},Dl.prototype.render=Dp,k2=[],qyt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Uie=function(r,e){return r.__v.__b-e.__v.__b},Qq.__r=0,Wyt=0});var wT=x(Kie=>{"use strict";d();p();Object.defineProperty(Kie,"__esModule",{value:!0});function kUr(r){return typeof r=="function"}Kie.isFunction=kUr});var sk=x(Vie=>{"use strict";d();p();Object.defineProperty(Vie,"__esModule",{value:!0});var Gie=!1;Vie.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: -`+e.stack)}else Gie&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Gie=r},get useDeprecatedSynchronousErrorHandling(){return Gie}}});var eW=x($ie=>{"use strict";d();p();Object.defineProperty($ie,"__esModule",{value:!0});function AUr(r){setTimeout(function(){throw r},0)}$ie.hostReportError=AUr});var Jie=x(Yie=>{"use strict";d();p();Object.defineProperty(Yie,"__esModule",{value:!0});var SUr=sk(),PUr=eW();Yie.empty={closed:!0,next:function(r){},error:function(r){if(SUr.config.useDeprecatedSynchronousErrorHandling)throw r;PUr.hostReportError(r)},complete:function(){}}});var Qu=x(Qie=>{"use strict";d();p();Object.defineProperty(Qie,"__esModule",{value:!0});Qie.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var tW=x(Zie=>{"use strict";d();p();Object.defineProperty(Zie,"__esModule",{value:!0});function RUr(r){return r!==null&&typeof r=="object"}Zie.isObject=RUr});var ese=x(Xie=>{"use strict";d();p();Object.defineProperty(Xie,"__esModule",{value:!0});var MUr=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in Mpt.GENERATED_ABI)return await this.getContractFromAbi(n,Mpt.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await fm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in fm?a=await fm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Z.Contract(await Re(e),E8e.default,this.getProvider()),n=Z.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return J8e(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Re(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>f8e((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yee.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new pm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>f8e((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=pi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new hme(this.getSignerOrProvider(),n,await Bfe(n,Qi.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return Tp(this.getProvider(),Ku,await this.getProvider().getBalance(await Re(e)))}getPublisher(){return this._publisher}},mme=class extends Rs{constructor(e,t,n,a){super(t,e,JOr.default,a),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"DEFAULT_VERSION_MAP",{[qh.contractType]:3,[H0.contractType]:1,[Fh.contractType]:4,[Ep.contractType]:1,[Oh.contractType]:2,[U0.contractType]:1,[j0.contractType]:2,[Uh.contractType]:1,[Hh.contractType]:1,[Wh.contractType]:1,[Ip.contractType]:2,[hm.contractType]:1,[Pl.contractType]:2}),$._defineProperty(this,"deploy",Ie(async(i,s,o,c,u)=>{let l=fm[i],h=await l.schema.deploy.parseAsync(s),f=await this.storage.upload(h),m=await this.getImplementation(l,c)||void 0;if(!m||m===Z.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let y=await l.getAbi(m,this.getProvider(),this.storage),I=this.getSigner();Tt.default(I,"A signer is required to deploy contracts");let C=await Vft(i,h,f,I),R=Z.Contract.getInterface(y).encodeFunctionData("initialize",C),L=await this.getProvider().getBlockNumber(),F=Z.ethers.utils.formatBytes32String(L.toString());return Le.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[m,R,F],parse:W=>{u&&u();let V=this.parseLogs("ProxyDeployed",W.logs);if(V.length<1)throw new Error("No ProxyDeployed event found");let K=V[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:K,transactionHash:W.transactionHash}),K}})})),$._defineProperty(this,"deployProxyByImplementation",Ie(async(i,s,o,c,u,l)=>{let h=Z.Contract.getInterface(s).encodeFunctionData(o,c),f=await this.getProvider().getBlockNumber();return Le.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,h,Z.ethers.utils.formatBytes32String(f.toString())],parse:m=>{l&&l();let y=this.parseLogs("ProxyDeployed",m.logs);if(y.length<1)throw new Error("No ProxyDeployed event found");let I=y[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:I,transactionHash:m.transactionHash}),I}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Pl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case qh.contractType:case H0.contractType:let i=await qh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Fh.contractType:let s=await Fh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Ep.contractType:let o=await Ep.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Oh.contractType:case U0.contractType:let c=await Oh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case j0.contractType:case Uh.contractType:let u=await Uh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Hh.contractType:let l=await Hh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Z.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Wh.contractType:let h=await Wh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(I=>I.address),h.recipients.map(I=>Z.BigNumber.from(I.sharesBps))];case Ip.contractType:let f=await Ip.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case hm.contractType:let m=await hm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Pl.contractType:let y=await Pl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return k8e(e)}async getImplementation(e,t){let n=Z.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=Cht(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=Z8e(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Z.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},_8e=class extends Rs{constructor(e,t,n){super(t,e,ZOr.default,n),$._defineProperty(this,"addContract",Ie(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Ie(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Re(o)])));return Le.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Ie(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Ie(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Re(o)])));return Le.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t)&&t.toLowerCase()!==Z.constants.AddressZero)}},UFr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",yme=class extends H2{constructor(e,t,n){var a;super(e,t),a=this,$._defineProperty(this,"_factory",void 0),$._defineProperty(this,"_registry",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"deployMetadataCache",{}),$._defineProperty(this,"transactionListener",i=>{i.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.transactionHash})}),$._defineProperty(this,"deployNFTCollection",$o(async i=>await this.deployBuiltInContract.prepare(H0.contractType,i))),$._defineProperty(this,"deployNFTDrop",$o(async i=>await this.deployBuiltInContract.prepare(qh.contractType,i))),$._defineProperty(this,"deploySignatureDrop",$o(async i=>await this.deployBuiltInContract.prepare(Fh.contractType,i))),$._defineProperty(this,"deployMultiwrap",$o(async i=>await this.deployBuiltInContract.prepare(Ep.contractType,i))),$._defineProperty(this,"deployEdition",$o(async i=>await this.deployBuiltInContract.prepare(U0.contractType,i))),$._defineProperty(this,"deployEditionDrop",$o(async i=>await this.deployBuiltInContract.prepare(Oh.contractType,i))),$._defineProperty(this,"deployToken",$o(async i=>await this.deployBuiltInContract.prepare(Uh.contractType,i))),$._defineProperty(this,"deployTokenDrop",$o(async i=>await this.deployBuiltInContract.prepare(j0.contractType,i))),$._defineProperty(this,"deployMarketplace",$o(async i=>await this.deployBuiltInContract.prepare(Ip.contractType,i))),$._defineProperty(this,"deployMarketplaceV3",$o(async i=>await this.deployBuiltInContract.prepare(hm.contractType,i))),$._defineProperty(this,"deployPack",$o(async i=>await this.deployBuiltInContract.prepare(Pl.contractType,i))),$._defineProperty(this,"deploySplit",$o(async i=>await this.deployBuiltInContract.prepare(Wh.contractType,i))),$._defineProperty(this,"deployVote",$o(async i=>await this.deployBuiltInContract.prepare(Hh.contractType,i))),$._defineProperty(this,"deployBuiltInContract",$o(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",c=a.getSigner();Tt.default(c,"A signer is required to deploy contracts");let u={app_uri:Gft[i],...await fm[i].schema.deploy.parseAsync(s)};if(a.hasLocalFactory()){let R;try{R=parseInt(o),isNaN(R)&&(R=void 0)}catch{R=void 0}let L=await a.getFactory();if(!L)throw new Error("Factory not found");return L.on(kl.Transaction,a.transactionListener),L.deploy.prepare(i,u,a.events,R,()=>{L.off(kl.Transaction,a.transactionListener)})}let l=Z8e(i);Tt.default(l,"Contract name not found");let h=await a.storage.upload(u),f=await Vft(i,u,h,c),m=(await a.getProvider().getNetwork()).chainId,y=await a.fetchPublishedContractFromPolygon(UFr,l,o),I=await a.fetchAndCacheDeployMetadata(y.metadataUri),C=I.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[m];if(C)return a.deployContractFromUri.prepare(y.metadataUri,f);{C=await a.deployContractFromUri(y.metadataUri,a.getConstructorParamsForImplementation(i,m),{forceDirectDeploy:!0});let R=await Re(C);return a.deployProxy.prepare(R,I.compilerMetadata.abi,"initialize",f)}})),$._defineProperty(this,"deployReleasedContract",$o(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",u=arguments.length>4?arguments[4]:void 0,l=await a.fetchPublishedContractFromPolygon(i,s,c);return await a.deployContractFromUri.prepare(l.metadataUri,o,u)})),$._defineProperty(this,"deployViaFactory",Ie(async(i,s,o,c,u)=>{let l=await Re(i),h=await Re(s),f=this.getSigner();Tt.default(f,"signer is required");let m=new mme(l,this.getSignerOrProvider(),this.storage,this.options);return m.on(kl.Transaction,this.transactionListener),await m.deployProxyByImplementation.prepare(h,o,c,u,this.events,()=>{m.off(kl.Transaction,this.transactionListener)})})),$._defineProperty(this,"deployProxy",$o(async(i,s,o,c)=>{let u=await Re(i),l=Z.Contract.getInterface(s).encodeFunctionData(o,c),{TWProxy__factory:h}=await Promise.resolve().then(function(){return Xo(CIe())});return this.deployContractWithAbi.prepare(h.abi,h.bytecode,[u,l])})),$._defineProperty(this,"deployContractFromUri",$o(async(i,s,o)=>{let c=this.getSigner();Tt.default(c,"A signer is required");let{compilerMetadata:u,extendedMetadata:l}=await this.fetchAndCacheDeployMetadata(i),h=o?.forceDirectDeploy||!1;if(l&&l.factoryDeploymentData&&(l.isDeployableViaProxy||l.isDeployableViaFactory)&&!h){console.log("Deploying directly...");let I=(await this.getProvider().getNetwork()).chainId;Tt.default(l.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let C=l.factoryDeploymentData.implementationAddresses[I],R=await Re(C);Tt.default(R,`implementationAddress not found for chainId '${I}'`),Tt.default(l.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let L=Lft(u.abi,l.factoryDeploymentData.implementationInitializerFunction).map(W=>W.type),F=this.convertParamValues(L,s);if(l.isDeployableViaFactory){Tt.default(l.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let W=l.factoryDeploymentData.factoryAddresses[I];Tt.default(W,`isDeployableViaFactory is true and factoryAddress not found for chainId '${I}'`);let V=await Re(W);return await this.deployViaFactory.prepare(V,R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}else if(l.isDeployableViaProxy)return await this.deployProxy.prepare(R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}let f=u.bytecode.startsWith("0x")?u.bytecode:`0x${u.bytecode}`;if(!Z.ethers.utils.isHexString(f))throw new Error(`Contract bytecode is invalid. + +${f}`);let m=j8e(u.abi).map(I=>I.type),y=this.convertParamValues(m,s);return this.deployContractWithAbi.prepare(u.abi,f,y)})),$._defineProperty(this,"deployContractWithAbi",$o(async(i,s,o)=>{let c=this.getSigner(),u=this.getProvider();Tt.default(c,"Signer is required to deploy contracts");let l=new Z.ethers.ContractFactory(i,s).connect(c);return new Lfe({args:o,provider:u,signer:c,factory:l,storage:this.storage,events:this.events})})),this.storage=n,this.events=new lht.EventEmitter,this.getFactory(),this.getRegistry()}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=kee(t,"twRegistry");if(!!n)return new _8e(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=kee(t,"twFactory");return n?new mme(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await pY(e,this.storage),n;try{n=await K8e(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Re(e),i=await new pm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case Ip.contractType:case Ep.contractType:return[Jhe(t)?.wrapped?.address||Z.ethers.constants.AddressZero];case Pl.contractType:return[Jhe(t).wrapped.address||Z.ethers.constants.AddressZero,Z.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Tt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Z.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Tt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Z.BigNumber.from(t[a].toString()):t[a])}},gme=class{constructor(e){$._defineProperty(this,"featureName",mfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Ie(async t=>{let n=await Re(t);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},Yft={},HFr=new pm("polygon");function $ft(r,e){return`${r}-${e}`}function jFr(r,e,t){Yft[$ft(r,e)]=t}function zFr(r,e){return Yft[$ft(r,e)]}async function z0(r,e,t){let n=(await e.getNetwork()).chainId,a=zFr(r,n);if(a)return a;let i;try{let s=await jee(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await bme(s,t)}catch{try{let o=await HFr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await bme(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return jFr(r,n,i),i}async function Rl(r,e,t){try{let n=await z0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function bme(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Qi.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=t4e.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function Ame(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var cht=256,NCe="0|[1-9]\\d*",KFr=`(${NCe})\\.(${NCe})\\.(${NCe})`,GFr=new RegExp(KFr);function yY(r){if(r.length>cht)throw new Error(`version is longer than ${cht} characters`);let e=r.trim().match(GFr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Qft(r,e){let t=yY(r),n=yY(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function VFr(r,e){let t=yY(r),n=yY(e);if(n.major{try{return yY(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:pe.z.string().optional(),description:pe.z.string().optional(),readme:pe.z.string().optional(),license:pe.z.string().optional(),changelog:pe.z.string().optional(),tags:pe.z.array(pe.z.string()).optional(),audit:$.FileOrBufferOrStringSchema.nullable().optional(),logo:$.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:pe.z.boolean().optional(),isDeployableViaProxy:pe.z.boolean().optional(),factoryDeploymentData:tmt.optional(),constructorParams:pe.z.record(pe.z.string(),pe.z.object({displayName:pe.z.string().optional(),description:pe.z.string().optional(),defaultValue:pe.z.string().optional()}).catchall(pe.z.any())).optional()}).catchall(pe.z.any()),rmt=e4e.extend({audit:pe.z.string().nullable().optional(),logo:pe.z.string().nullable().optional()}),nmt=nte.merge(e4e).extend({publisher:Ri.optional()}),amt=nte.merge(rmt).extend({publisher:Ri.optional()}),imt=pe.z.object({name:pe.z.string().optional(),bio:pe.z.string().optional(),avatar:$.FileOrBufferOrStringSchema.nullable().optional(),website:pe.z.string().optional(),twitter:pe.z.string().optional(),telegram:pe.z.string().optional(),facebook:pe.z.string().optional(),github:pe.z.string().optional(),medium:pe.z.string().optional(),linkedin:pe.z.string().optional(),reddit:pe.z.string().optional(),discord:pe.z.string().optional()}),smt=imt.extend({avatar:pe.z.string().nullable().optional()}),omt=pe.z.object({id:pe.z.string(),timestamp:Qs,metadataUri:pe.z.string()}),t4e=pe.z.object({title:pe.z.string().optional(),author:pe.z.string().optional(),details:pe.z.string().optional(),notice:pe.z.string().optional()}),cmt=pe.z.object({name:pe.z.string(),abi:Qi,metadata:pe.z.record(pe.z.string(),pe.z.any()),info:t4e,licenses:pe.z.array(pe.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),umt=nte.merge(cmt).extend({bytecode:pe.z.string()}),YFr=new zg.ThirdwebStorage,r4e=new Map;function n4e(r,e){return`${r}-${e}`}function a4e(r,e){let t=n4e(r,e);return r4e.has(t)}function lmt(r,e){if(!a4e(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=n4e(r,e);return r4e.get(t)}function dmt(r,e,t){let n=n4e(e,t);r4e.set(n,r)}function Eee(r){return r||YFr}async function $he(r){let e=await Re(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(a4e(e,a))return lmt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new hme(t||n,e,await Bfe(e,Qi.parse(i),n,r.sdkOptions,Eee(r.storage)),Eee(r.storage),r.sdkOptions,a);return dmt(s,e,a),s}async function $Fr(r){try{let e=new Z.Contract(r.address,E8e.default,r.provider),t=Z.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return J8e(t)}catch{return"custom"}}async function QFr(r){let e=await Re(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(a4e(e,a))return lmt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await $Fr({address:e,provider:n});if(i==="custom"){let s=new fme(r.network,r.sdkOptions,Eee(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return $he({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await fm[i].getAbi(e,n,Eee(r.storage));return $he({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in fm){let i=await fm[r.contractTypeOrAbi].initialize(t||n,e,Eee(r.storage),r.sdkOptions);return dmt(i,e,a),i}else return $he({...r,address:e,abi:r.contractTypeOrAbi})}var Yhe=new WeakMap;async function i4e(r){let[,e]=pi(r.network,r.sdkOptions),t;return Yhe.has(e)?t=Yhe.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw Yhe.delete(e),n}),Yhe.set(e,t)),await t}async function JFr(r){let[,e]=pi(r.network,r.sdkOptions);return e.getBlockNumber()}var Iee=new Map;async function pmt(r){let e=await i4e(r),t=r.block,n=`${e}_${t}`,a;if(Iee.has(n))a=Iee.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw Iee.delete(n),s}),Iee.set(n,a)}return await a}var BCe=new Map;async function hmt(r){let e=await i4e(r),t=r.block,n=`${e}_${t}`,a;if(Iee.has(n))a=BCe.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw BCe.delete(n),s}),BCe.set(n,a)}return await a}function s4e(r){let[,e]=pi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function ZFr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await pmt({block:a,...t}))}catch{}}return s4e({...t,onBlockNumber:n})}function fmt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await hmt({block:a,...t}))}catch{}}return s4e({...t,onBlockNumber:n})}function XFr(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return fmt({...n,onBlock:i})}re.ALL_ROLES=W8e;re.APPROVED_IMPLEMENTATIONS=FCe;re.AbiObjectSchema=emt;re.AbiSchema=Qi;re.AbiTypeSchema=T8e;re.AddressOrEnsSchema=Ri;re.AddressSchema=P8e;re.AdminRoleMissingError=a8e;re.AssetNotFoundError=KCe;re.AuctionAlreadyStartedError=XCe;re.AuctionHasNotEndedError=aY;re.BYOCContractMetadataSchema=Jft;re.BaseSignaturePayloadInput=xme;re.BigNumberSchema=Ss;re.BigNumberTransformSchema=Rht;re.BigNumberishSchema=Qs;re.CONTRACTS_MAP=Q8e;re.CONTRACT_ADDRESSES=Kg;re.CallOverrideSchema=Mht;re.ChainId=Be;re.ChainIdToAddressSchema=I8e;re.ChainInfoInputSchema=Nht;re.ClaimConditionInputArray=Oht;re.ClaimConditionInputSchema=ete;re.ClaimConditionMetadataSchema=Lht;re.ClaimConditionOutputSchema=N8e;re.ClaimEligibility=ka;re.CommonContractOutputSchema=ld;re.CommonContractSchema=Sl;re.CommonPlatformFeeSchema=Cp;re.CommonPrimarySaleSchema=Gg;re.CommonRoyaltySchema=Zo;re.CommonSymbolSchema=xo;re.CommonTrustedForwarderSchema=dd;re.CompilerMetadataFetchedSchema=cmt;re.ContractAppURI=Vee;re.ContractDeployer=yme;re.ContractEncoder=z2;re.ContractEvents=K2;re.ContractInfoSchema=t4e;re.ContractInterceptor=G2;re.ContractMetadata=q0;re.ContractOwner=gme;re.ContractPlatformFee=dme;re.ContractPrimarySale=Ffe;re.ContractPublishedMetadata=pme;re.ContractRoles=Ofe;re.ContractRoyalty=qfe;re.ContractWrapper=Rs;re.CurrencySchema=Bht;re.CurrencyValueSchema=Dht;re.CustomContractDeploy=Xft;re.CustomContractInput=X8e;re.CustomContractOutput=Zft;re.CustomContractSchema=U2;re.DelayedReveal=zee;re.DeployTransaction=Lfe;re.DropClaimConditions=Kee;re.DropErc1155ClaimConditions=Wfe;re.DropErc1155ContractSchema=Jht;re.DropErc20ContractSchema=jft;re.DropErc721ContractSchema=L8e;re.DuplicateFileNameError=YCe;re.DuplicateLeafsError=tfe;re.EditionDropInitializer=Oh;re.EditionInitializer=U0;re.EndDateSchema=Zee;re.Erc1155=ome;re.Erc1155BatchMintable=ame;re.Erc1155Burnable=tme;re.Erc1155Enumerable=rme;re.Erc1155LazyMintable=nme;re.Erc1155Mintable=ime;re.Erc1155SignatureMintable=sme;re.Erc20=Kfe;re.Erc20BatchMintable=Hfe;re.Erc20Burnable=Ufe;re.Erc20Mintable=jfe;re.Erc20SignatureMintable=zfe;re.Erc721=eme;re.Erc721BatchMintable=$fe;re.Erc721Burnable=Gfe;re.Erc721ClaimableWithConditions=Vfe;re.Erc721Enumerable=Jfe;re.Erc721LazyMintable=Yfe;re.Erc721Mintable=Qfe;re.Erc721Supply=Zfe;re.Erc721WithQuantitySignatureMintable=Xfe;re.EventType=kl;re.ExtensionNotImplementedError=F0;re.ExtraPublishMetadataSchemaInput=e4e;re.ExtraPublishMetadataSchemaOutput=rmt;re.FEATURE_DIRECT_LISTINGS=Nee;re.FEATURE_ENGLISH_AUCTIONS=Bee;re.FEATURE_NFT_REVEALABLE=Fee;re.FEATURE_OFFERS=Dee;re.FEATURE_PACK_VRF=i8e;re.FactoryDeploymentSchema=tmt;re.FetchError=ZCe;re.FileNameMissingError=VCe;re.FullPublishMetadataSchemaInput=nmt;re.FullPublishMetadataSchemaOutput=amt;re.FunctionDeprecatedError=e8e;re.GasCostEstimator=V2;re.GenericRequest=Yht;re.InterfaceId_IERC1155=Qee;re.InterfaceId_IERC721=$ee;re.InvalidAddressError=zCe;re.LINK_TOKEN_ADDRESS=aqr;re.LOCAL_NODE_PKEY=Eht;re.ListingNotFoundError=t8e;re.MarketplaceContractSchema=O8e;re.MarketplaceInitializer=Ip;re.MarketplaceV3DirectListings=cme;re.MarketplaceV3EnglishAuctions=ume;re.MarketplaceV3Initializer=hm;re.MarketplaceV3Offers=lme;re.MerkleSchema=K0;re.MintRequest1155=Ght;re.MintRequest20=zht;re.MintRequest721=Kht;re.MintRequest721withQuantity=Vht;re.MissingOwnerRoleError=QCe;re.MissingRoleError=efe;re.MultiwrapContractSchema=Kft;re.MultiwrapInitializer=Ep;re.NATIVE_TOKENS=Aee;re.NATIVE_TOKEN_ADDRESS=Ku;re.NFTCollectionInitializer=H0;re.NFTDropInitializer=qh;re.NotEnoughTokensError=$Ce;re.NotFoundError=See;re.OZ_DEFENDER_FORWARDER_ADDRESS=jg;re.PREBUILT_CONTRACTS_APPURI_MAP=Gft;re.PREBUILT_CONTRACTS_MAP=fm;re.PackContractSchema=eft;re.PackInitializer=Pl;re.PartialClaimConditionInputSchema=cqr;re.PreDeployMetadata=nte;re.PreDeployMetadataFetchedSchema=umt;re.ProfileSchemaInput=imt;re.ProfileSchemaOutput=smt;re.PublishedContractSchema=omt;re.QuantityAboveLimitError=JCe;re.RawDateSchema=Jee;re.RestrictedTransferError=n8e;re.SUPPORTED_CHAIN_IDS=_ht;re.Signature1155PayloadInput=Fht;re.Signature1155PayloadInputWithTokenId=Wht;re.Signature1155PayloadOutput=Uht;re.Signature20PayloadInput=B8e;re.Signature20PayloadOutput=qht;re.Signature721PayloadInput=_me;re.Signature721PayloadOutput=D8e;re.Signature721WithQuantityInput=Hht;re.Signature721WithQuantityOutput=jht;re.SignatureDropInitializer=Fh;re.SnapshotEntryInput=Zhe;re.SnapshotEntryWithProofSchema=R8e;re.SnapshotInfoSchema=oqr;re.SnapshotInputSchema=Xee;re.SnapshotSchema=M8e;re.SplitInitializer=Wh;re.SplitsContractSchema=rft;re.StartDateSchema=S8e;re.Status=Jo;re.ThirdwebSDK=pm;re.TokenDropInitializer=j0;re.TokenErc1155ContractSchema=cft;re.TokenErc20ContractSchema=aft;re.TokenErc721ContractSchema=sft;re.TokenInitializer=Uh;re.Transaction=Le;re.TransactionError=oY;re.UploadError=GCe;re.UserWallet=mY;re.VoteContractSchema=dft;re.VoteInitializer=Hh;re.WrongListingTypeError=r8e;re.approveErc20Allowance=F8e;re.assertEnabled=er;re.buildTransactionFunction=Ie;re.cleanCurrencyAddress=nfe;re.convertToReadableQuantity=xee;re.createSnapshot=Tft;re.detectContractFeature=$e;re.detectFeatures=tte;re.extractConstructorParams=Nft;re.extractConstructorParamsFromAbi=j8e;re.extractEventsFromAbi=Oft;re.extractFunctionParamsFromAbi=Lft;re.extractFunctions=Bft;re.extractFunctionsFromAbi=dY;re.extractIPFSHashFromBytecode=Fft;re.extractMinimalProxyImplementationAddress=qft;re.fetchAbiFromAddress=Rl;re.fetchContractMetadata=bme;re.fetchContractMetadataFromAddress=z0;re.fetchCurrencyMetadata=gY;re.fetchCurrencyValue=Tp;re.fetchExtendedReleaseMetadata=K8e;re.fetchPreDeployMetadata=pY;re.fetchRawPredeployMetadata=z8e;re.fetchSnapshotEntryForAddress=Eme;re.fetchSourceFilesFromMetadata=Ame;re.fetchTokenMetadataForContract=rte;re.getAllDetectedFeatureNames=f8e;re.getAllDetectedFeatures=IFr;re.getApprovedImplementation=Cht;re.getBlock=pmt;re.getBlockNumber=JFr;re.getBlockWithTransactions=hmt;re.getChainId=i4e;re.getChainIdFromNetwork=pft;re.getChainProvider=Pee;re.getContract=QFr;re.getContractAddressByChainId=kee;re.getContractFromAbi=$he;re.getContractName=Z8e;re.getContractPublisherAddress=kht;re.getContractTypeForRemoteName=J8e;re.getDefaultTrustedForwarders=k8e;re.getMultichainRegistryAddress=WCe;re.getNativeTokenByChainId=Jhe;re.getProviderFromRpcUrl=Xhe;re.getRoleHash=nY;re.getSignerAndProvider=pi;re.getSupportedChains=Iht;re.handleTokenApproval=Gee;re.hasERC20Allowance=zqr;re.hasFunction=vo;re.hasMatchingAbi=H8e;re.includesErrorMessage=Ree;re.isChainConfig=Tme;re.isDowngradeVersion=VFr;re.isFeatureEnabled=hY;re.isIncrementalVersion=Qft;re.isNativeToken=jh;re.isProvider=A8e;re.isSigner=wme;re.isTokenApprovedForTransfer=Uft;re.isWinningBid=NFr;re.mapOffer=MFr;re.matchesPrebuiltAbi=xFr;re.normalizeAmount=Kqr;re.normalizePriceValue=Cc;re.parseRevertReason=Ime;re.resolveAddress=Re;re.resolveContractUriFromAddress=jee;re.setErc20Allowance=W0;re.setSupportedChains=Tht;re.toDisplayValue=$qr;re.toEther=Gqr;re.toSemver=yY;re.toUnits=Yqr;re.toWei=Vqr;re.uploadOrExtractURI=Y8e;re.validateNewListingParam=RFr;re.watchBlock=ZFr;re.watchBlockNumber=s4e;re.watchBlockWithTransactions=fmt;re.watchTransactions=XFr});var bmt=_(G0=>{"use strict";d();p();var bY=ls(),mm=kr(),Pme=Ei(),mmt=yn(),ymt=mm.z.object({}).catchall(mm.z.union([bY.BigNumberTransformSchema,mm.z.unknown()])),eWr=mm.z.union([mm.z.array(ymt),ymt]).optional(),gmt=mm.z.object({supply:bY.BigNumberSchema,metadata:Pme.CommonNFTOutput}),tWr=gmt.extend({owner:mm.z.string(),quantityOwned:bY.BigNumberSchema}),rWr=mm.z.object({supply:bY.BigNumberishSchema,metadata:Pme.CommonNFTInput}),nWr=mm.z.object({supply:bY.BigNumberishSchema,metadata:Pme.NFTInputOrUriSchema}),aWr=mm.z.object({toAddress:bY.AddressOrEnsSchema,amount:Pme.AmountSchema}),iWr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function sWr(r){if(r in mmt.GENERATED_ABI)return mmt.GENERATED_ABI[r]}G0.EditionMetadataInputOrUriSchema=nWr;G0.EditionMetadataInputSchema=rWr;G0.EditionMetadataOutputSchema=gmt;G0.EditionMetadataWithOwnerOutputSchema=tWr;G0.OptionalPropertiesInput=eWr;G0.ProposalState=iWr;G0.TokenMintInputSchema=aWr;G0.getCachedAbiForContract=sWr});var vmt=_(ae=>{"use strict";d();p();Object.defineProperty(ae,"__esModule",{value:!0});var oWr=Ei(),oe=ls(),Vg=bmt(),cWr=lCe(),uWr=ICe(),lWr=zhe(),dWr=KV(),pWr=yee(),o4e=gCe(),hWr=ECe(),ate=bee();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();globalThis.global=globalThis;ae.getRpcUrl=oWr.getRpcUrl;ae.ALL_ROLES=oe.ALL_ROLES;ae.APPROVED_IMPLEMENTATIONS=oe.APPROVED_IMPLEMENTATIONS;ae.AbiObjectSchema=oe.AbiObjectSchema;ae.AbiSchema=oe.AbiSchema;ae.AbiTypeSchema=oe.AbiTypeSchema;ae.AddressOrEnsSchema=oe.AddressOrEnsSchema;ae.AddressSchema=oe.AddressSchema;ae.AdminRoleMissingError=oe.AdminRoleMissingError;ae.AssetNotFoundError=oe.AssetNotFoundError;ae.AuctionAlreadyStartedError=oe.AuctionAlreadyStartedError;ae.AuctionHasNotEndedError=oe.AuctionHasNotEndedError;ae.BYOCContractMetadataSchema=oe.BYOCContractMetadataSchema;ae.BaseSignaturePayloadInput=oe.BaseSignaturePayloadInput;ae.BigNumberSchema=oe.BigNumberSchema;ae.BigNumberTransformSchema=oe.BigNumberTransformSchema;ae.BigNumberishSchema=oe.BigNumberishSchema;ae.CONTRACTS_MAP=oe.CONTRACTS_MAP;ae.CONTRACT_ADDRESSES=oe.CONTRACT_ADDRESSES;ae.CallOverrideSchema=oe.CallOverrideSchema;ae.ChainId=oe.ChainId;ae.ChainIdToAddressSchema=oe.ChainIdToAddressSchema;ae.ChainInfoInputSchema=oe.ChainInfoInputSchema;ae.ClaimConditionInputArray=oe.ClaimConditionInputArray;ae.ClaimConditionInputSchema=oe.ClaimConditionInputSchema;ae.ClaimConditionMetadataSchema=oe.ClaimConditionMetadataSchema;ae.ClaimConditionOutputSchema=oe.ClaimConditionOutputSchema;ae.ClaimEligibility=oe.ClaimEligibility;ae.CommonContractOutputSchema=oe.CommonContractOutputSchema;ae.CommonContractSchema=oe.CommonContractSchema;ae.CommonPlatformFeeSchema=oe.CommonPlatformFeeSchema;ae.CommonPrimarySaleSchema=oe.CommonPrimarySaleSchema;ae.CommonRoyaltySchema=oe.CommonRoyaltySchema;ae.CommonSymbolSchema=oe.CommonSymbolSchema;ae.CommonTrustedForwarderSchema=oe.CommonTrustedForwarderSchema;ae.CompilerMetadataFetchedSchema=oe.CompilerMetadataFetchedSchema;ae.ContractAppURI=oe.ContractAppURI;ae.ContractDeployer=oe.ContractDeployer;ae.ContractEncoder=oe.ContractEncoder;ae.ContractEvents=oe.ContractEvents;ae.ContractInfoSchema=oe.ContractInfoSchema;ae.ContractInterceptor=oe.ContractInterceptor;ae.ContractMetadata=oe.ContractMetadata;ae.ContractOwner=oe.ContractOwner;ae.ContractPlatformFee=oe.ContractPlatformFee;ae.ContractPrimarySale=oe.ContractPrimarySale;ae.ContractPublishedMetadata=oe.ContractPublishedMetadata;ae.ContractRoles=oe.ContractRoles;ae.ContractRoyalty=oe.ContractRoyalty;ae.CurrencySchema=oe.CurrencySchema;ae.CurrencyValueSchema=oe.CurrencyValueSchema;ae.CustomContractDeploy=oe.CustomContractDeploy;ae.CustomContractInput=oe.CustomContractInput;ae.CustomContractOutput=oe.CustomContractOutput;ae.CustomContractSchema=oe.CustomContractSchema;ae.DelayedReveal=oe.DelayedReveal;ae.DeployTransaction=oe.DeployTransaction;ae.DropClaimConditions=oe.DropClaimConditions;ae.DropErc1155ClaimConditions=oe.DropErc1155ClaimConditions;ae.DuplicateFileNameError=oe.DuplicateFileNameError;ae.DuplicateLeafsError=oe.DuplicateLeafsError;ae.EditionDropInitializer=oe.EditionDropInitializer;ae.EditionInitializer=oe.EditionInitializer;ae.EndDateSchema=oe.EndDateSchema;ae.Erc1155=oe.Erc1155;ae.Erc1155BatchMintable=oe.Erc1155BatchMintable;ae.Erc1155Burnable=oe.Erc1155Burnable;ae.Erc1155Enumerable=oe.Erc1155Enumerable;ae.Erc1155LazyMintable=oe.Erc1155LazyMintable;ae.Erc1155Mintable=oe.Erc1155Mintable;ae.Erc1155SignatureMintable=oe.Erc1155SignatureMintable;ae.Erc20=oe.Erc20;ae.Erc20BatchMintable=oe.Erc20BatchMintable;ae.Erc20Burnable=oe.Erc20Burnable;ae.Erc20Mintable=oe.Erc20Mintable;ae.Erc20SignatureMintable=oe.Erc20SignatureMintable;ae.Erc721=oe.Erc721;ae.Erc721BatchMintable=oe.Erc721BatchMintable;ae.Erc721Burnable=oe.Erc721Burnable;ae.Erc721ClaimableWithConditions=oe.Erc721ClaimableWithConditions;ae.Erc721Enumerable=oe.Erc721Enumerable;ae.Erc721LazyMintable=oe.Erc721LazyMintable;ae.Erc721Mintable=oe.Erc721Mintable;ae.Erc721Supply=oe.Erc721Supply;ae.Erc721WithQuantitySignatureMintable=oe.Erc721WithQuantitySignatureMintable;ae.EventType=oe.EventType;ae.ExtensionNotImplementedError=oe.ExtensionNotImplementedError;ae.ExtraPublishMetadataSchemaInput=oe.ExtraPublishMetadataSchemaInput;ae.ExtraPublishMetadataSchemaOutput=oe.ExtraPublishMetadataSchemaOutput;ae.FactoryDeploymentSchema=oe.FactoryDeploymentSchema;ae.FetchError=oe.FetchError;ae.FileNameMissingError=oe.FileNameMissingError;ae.FullPublishMetadataSchemaInput=oe.FullPublishMetadataSchemaInput;ae.FullPublishMetadataSchemaOutput=oe.FullPublishMetadataSchemaOutput;ae.FunctionDeprecatedError=oe.FunctionDeprecatedError;ae.GasCostEstimator=oe.GasCostEstimator;ae.GenericRequest=oe.GenericRequest;ae.InterfaceId_IERC1155=oe.InterfaceId_IERC1155;ae.InterfaceId_IERC721=oe.InterfaceId_IERC721;ae.InvalidAddressError=oe.InvalidAddressError;ae.LINK_TOKEN_ADDRESS=oe.LINK_TOKEN_ADDRESS;ae.LOCAL_NODE_PKEY=oe.LOCAL_NODE_PKEY;ae.ListingNotFoundError=oe.ListingNotFoundError;ae.MarketplaceInitializer=oe.MarketplaceInitializer;ae.MarketplaceV3DirectListings=oe.MarketplaceV3DirectListings;ae.MarketplaceV3EnglishAuctions=oe.MarketplaceV3EnglishAuctions;ae.MarketplaceV3Initializer=oe.MarketplaceV3Initializer;ae.MarketplaceV3Offers=oe.MarketplaceV3Offers;ae.MerkleSchema=oe.MerkleSchema;ae.MintRequest1155=oe.MintRequest1155;ae.MintRequest20=oe.MintRequest20;ae.MintRequest721=oe.MintRequest721;ae.MintRequest721withQuantity=oe.MintRequest721withQuantity;ae.MissingOwnerRoleError=oe.MissingOwnerRoleError;ae.MissingRoleError=oe.MissingRoleError;ae.MultiwrapInitializer=oe.MultiwrapInitializer;ae.NATIVE_TOKENS=oe.NATIVE_TOKENS;ae.NATIVE_TOKEN_ADDRESS=oe.NATIVE_TOKEN_ADDRESS;ae.NFTCollectionInitializer=oe.NFTCollectionInitializer;ae.NFTDropInitializer=oe.NFTDropInitializer;ae.NotEnoughTokensError=oe.NotEnoughTokensError;ae.NotFoundError=oe.NotFoundError;ae.OZ_DEFENDER_FORWARDER_ADDRESS=oe.OZ_DEFENDER_FORWARDER_ADDRESS;ae.PREBUILT_CONTRACTS_APPURI_MAP=oe.PREBUILT_CONTRACTS_APPURI_MAP;ae.PREBUILT_CONTRACTS_MAP=oe.PREBUILT_CONTRACTS_MAP;ae.PackInitializer=oe.PackInitializer;ae.PartialClaimConditionInputSchema=oe.PartialClaimConditionInputSchema;ae.PreDeployMetadata=oe.PreDeployMetadata;ae.PreDeployMetadataFetchedSchema=oe.PreDeployMetadataFetchedSchema;ae.ProfileSchemaInput=oe.ProfileSchemaInput;ae.ProfileSchemaOutput=oe.ProfileSchemaOutput;ae.PublishedContractSchema=oe.PublishedContractSchema;ae.QuantityAboveLimitError=oe.QuantityAboveLimitError;ae.RawDateSchema=oe.RawDateSchema;ae.RestrictedTransferError=oe.RestrictedTransferError;ae.SUPPORTED_CHAIN_IDS=oe.SUPPORTED_CHAIN_IDS;ae.Signature1155PayloadInput=oe.Signature1155PayloadInput;ae.Signature1155PayloadInputWithTokenId=oe.Signature1155PayloadInputWithTokenId;ae.Signature1155PayloadOutput=oe.Signature1155PayloadOutput;ae.Signature20PayloadInput=oe.Signature20PayloadInput;ae.Signature20PayloadOutput=oe.Signature20PayloadOutput;ae.Signature721PayloadInput=oe.Signature721PayloadInput;ae.Signature721PayloadOutput=oe.Signature721PayloadOutput;ae.Signature721WithQuantityInput=oe.Signature721WithQuantityInput;ae.Signature721WithQuantityOutput=oe.Signature721WithQuantityOutput;ae.SignatureDropInitializer=oe.SignatureDropInitializer;ae.SnapshotEntryInput=oe.SnapshotEntryInput;ae.SnapshotEntryWithProofSchema=oe.SnapshotEntryWithProofSchema;ae.SnapshotInfoSchema=oe.SnapshotInfoSchema;ae.SnapshotInputSchema=oe.SnapshotInputSchema;ae.SnapshotSchema=oe.SnapshotSchema;ae.SplitInitializer=oe.SplitInitializer;ae.StartDateSchema=oe.StartDateSchema;ae.Status=oe.Status;ae.ThirdwebSDK=oe.ThirdwebSDK;ae.TokenDropInitializer=oe.TokenDropInitializer;ae.TokenInitializer=oe.TokenInitializer;ae.Transaction=oe.Transaction;ae.TransactionError=oe.TransactionError;ae.UploadError=oe.UploadError;ae.UserWallet=oe.UserWallet;ae.VoteInitializer=oe.VoteInitializer;ae.WrongListingTypeError=oe.WrongListingTypeError;ae.approveErc20Allowance=oe.approveErc20Allowance;ae.assertEnabled=oe.assertEnabled;ae.cleanCurrencyAddress=oe.cleanCurrencyAddress;ae.convertToReadableQuantity=oe.convertToReadableQuantity;ae.createSnapshot=oe.createSnapshot;ae.detectContractFeature=oe.detectContractFeature;ae.detectFeatures=oe.detectFeatures;ae.extractConstructorParams=oe.extractConstructorParams;ae.extractConstructorParamsFromAbi=oe.extractConstructorParamsFromAbi;ae.extractEventsFromAbi=oe.extractEventsFromAbi;ae.extractFunctionParamsFromAbi=oe.extractFunctionParamsFromAbi;ae.extractFunctions=oe.extractFunctions;ae.extractFunctionsFromAbi=oe.extractFunctionsFromAbi;ae.extractIPFSHashFromBytecode=oe.extractIPFSHashFromBytecode;ae.extractMinimalProxyImplementationAddress=oe.extractMinimalProxyImplementationAddress;ae.fetchAbiFromAddress=oe.fetchAbiFromAddress;ae.fetchContractMetadata=oe.fetchContractMetadata;ae.fetchContractMetadataFromAddress=oe.fetchContractMetadataFromAddress;ae.fetchCurrencyMetadata=oe.fetchCurrencyMetadata;ae.fetchCurrencyValue=oe.fetchCurrencyValue;ae.fetchExtendedReleaseMetadata=oe.fetchExtendedReleaseMetadata;ae.fetchPreDeployMetadata=oe.fetchPreDeployMetadata;ae.fetchRawPredeployMetadata=oe.fetchRawPredeployMetadata;ae.fetchSnapshotEntryForAddress=oe.fetchSnapshotEntryForAddress;ae.fetchSourceFilesFromMetadata=oe.fetchSourceFilesFromMetadata;ae.getAllDetectedFeatureNames=oe.getAllDetectedFeatureNames;ae.getAllDetectedFeatures=oe.getAllDetectedFeatures;ae.getApprovedImplementation=oe.getApprovedImplementation;ae.getBlock=oe.getBlock;ae.getBlockNumber=oe.getBlockNumber;ae.getBlockWithTransactions=oe.getBlockWithTransactions;ae.getChainId=oe.getChainId;ae.getChainIdFromNetwork=oe.getChainIdFromNetwork;ae.getChainProvider=oe.getChainProvider;ae.getContract=oe.getContract;ae.getContractAddressByChainId=oe.getContractAddressByChainId;ae.getContractFromAbi=oe.getContractFromAbi;ae.getContractName=oe.getContractName;ae.getContractPublisherAddress=oe.getContractPublisherAddress;ae.getContractTypeForRemoteName=oe.getContractTypeForRemoteName;ae.getDefaultTrustedForwarders=oe.getDefaultTrustedForwarders;ae.getMultichainRegistryAddress=oe.getMultichainRegistryAddress;ae.getNativeTokenByChainId=oe.getNativeTokenByChainId;ae.getProviderFromRpcUrl=oe.getProviderFromRpcUrl;ae.getRoleHash=oe.getRoleHash;ae.getSignerAndProvider=oe.getSignerAndProvider;ae.getSupportedChains=oe.getSupportedChains;ae.hasERC20Allowance=oe.hasERC20Allowance;ae.hasFunction=oe.hasFunction;ae.hasMatchingAbi=oe.hasMatchingAbi;ae.includesErrorMessage=oe.includesErrorMessage;ae.isChainConfig=oe.isChainConfig;ae.isDowngradeVersion=oe.isDowngradeVersion;ae.isFeatureEnabled=oe.isFeatureEnabled;ae.isIncrementalVersion=oe.isIncrementalVersion;ae.isNativeToken=oe.isNativeToken;ae.isProvider=oe.isProvider;ae.isSigner=oe.isSigner;ae.matchesPrebuiltAbi=oe.matchesPrebuiltAbi;ae.normalizeAmount=oe.normalizeAmount;ae.normalizePriceValue=oe.normalizePriceValue;ae.parseRevertReason=oe.parseRevertReason;ae.resolveContractUriFromAddress=oe.resolveContractUriFromAddress;ae.setErc20Allowance=oe.setErc20Allowance;ae.setSupportedChains=oe.setSupportedChains;ae.toDisplayValue=oe.toDisplayValue;ae.toEther=oe.toEther;ae.toSemver=oe.toSemver;ae.toUnits=oe.toUnits;ae.toWei=oe.toWei;ae.watchBlock=oe.watchBlock;ae.watchBlockNumber=oe.watchBlockNumber;ae.watchBlockWithTransactions=oe.watchBlockWithTransactions;ae.watchTransactions=oe.watchTransactions;ae.EditionMetadataInputOrUriSchema=Vg.EditionMetadataInputOrUriSchema;ae.EditionMetadataInputSchema=Vg.EditionMetadataInputSchema;ae.EditionMetadataOutputSchema=Vg.EditionMetadataOutputSchema;ae.EditionMetadataWithOwnerOutputSchema=Vg.EditionMetadataWithOwnerOutputSchema;ae.OptionalPropertiesInput=Vg.OptionalPropertiesInput;ae.ProposalState=Vg.ProposalState;ae.TokenMintInputSchema=Vg.TokenMintInputSchema;ae.getCachedAbiForContract=Vg.getCachedAbiForContract;ae.DropErc1155History=cWr.DropErc1155History;ae.TokenERC20History=uWr.TokenERC20History;ae.StandardErc20=lWr.StandardErc20;ae.StandardErc721=dWr.StandardErc721;ae.StandardErc1155=pWr.StandardErc1155;ae.ListingType=o4e.ListingType;ae.MarketplaceAuction=o4e.MarketplaceAuction;ae.MarketplaceDirect=o4e.MarketplaceDirect;ae.VoteType=hWr.VoteType;ae.PAPER_API_URL=ate.PAPER_API_URL;ae.PaperCheckout=ate.PaperCheckout;ae.createCheckoutLinkIntent=ate.createCheckoutLinkIntent;ae.fetchRegisteredCheckoutId=ate.fetchRegisteredCheckoutId;ae.parseChainIdToPaperChain=ate.parseChainIdToPaperChain});var wmt=_((HQn,c4e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?c4e.exports=Bdt():c4e.exports=vmt()});var ec=_(xmt=>{"use strict";d();p();function fWr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function mWr(r){var e=fWr(r,"string");return typeof e=="symbol"?e:String(e)}function yWr(r,e,t){return e=mWr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}xmt._defineProperty=yWr});var vY=_(l4e=>{"use strict";d();p();var gWr=ec(),bWr=Je();function vWr(r){return r&&r.__esModule?r:{default:r}}var wWr=vWr(bWr),Sme=class extends wWr.default{},u4e=class extends Sme{constructor(e){super(),gWr._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};l4e.TWConnector=Sme;l4e.WagmiAdapter=u4e});var Vu=_(_mt=>{"use strict";d();p();function xWr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}_mt._checkPrivateRedeclaration=xWr});var ym=_(d4e=>{"use strict";d();p();var _Wr=Vu();function TWr(r,e){_Wr._checkPrivateRedeclaration(r,e),e.add(r)}function IWr(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}d4e._classPrivateMethodGet=IWr;d4e._classPrivateMethodInitSpec=TWr});var Yg=_(Rme=>{"use strict";d();p();Object.defineProperty(Rme,"__esModule",{value:!0});var Tmt=ec(),wY=je(),EWr=Je();function CWr(r){return r&&r.__esModule?r:{default:r}}var kWr=CWr(EWr);function AWr(r){return`https://${r}.rpc.thirdweb.com`}var PWr=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],SWr="0x1626ba7e";async function Imt(r,e,t,n){let a=new wY.providers.JsonRpcProvider(AWr(n)),i=new wY.Contract(t,PWr,a),s=wY.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===SWr}catch{return!1}}var p4e=class extends kWr.default{constructor(){super(...arguments),Tmt._defineProperty(this,"type","evm"),Tmt._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=wY.utils.hashMessage(e),s=wY.utils.arrayify(i);if(wY.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await Imt(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};Rme.AbstractWallet=p4e;Rme.checkContractWalletSignature=Imt});var xY=_(ste=>{"use strict";d();p();var ite=ym(),$2=ec(),RWr=Yg(),MWr=vt(),h4e="__TW__",Mme=class{constructor(e){$2._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${h4e}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${h4e}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${h4e}/${this.name}/${e}`),t()})}};function Cmt(r){return new Mme(r)}var kmt={name:"thirdweb powered dApp",url:"https://thirdweb.com",description:"thirdweb powered dApp",logoUrl:"https://thirdweb.com/favicon.ico",isDarkMode:!0},f4e=new WeakSet,Amt=new WeakSet,Nme=class extends RWr.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),ite._classPrivateMethodInitSpec(this,Amt),ite._classPrivateMethodInitSpec(this,f4e),$2._defineProperty(this,"walletId",void 0),$2._defineProperty(this,"walletStorage",void 0),$2._defineProperty(this,"chains",void 0),$2._defineProperty(this,"dappMetadata",void 0),$2._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t?.chains||MWr.defaultChains,this.dappMetadata=t?.dappMetadata||kmt,this.walletStorage=t?.walletStorage||Cmt(this.walletId)}async autoConnect(e){let t=e?{...e,chainId:void 0}:void 0;return ite._classPrivateMethodGet(this,f4e,Emt).call(this,!0,t)}async connect(e){let t=await ite._classPrivateMethodGet(this,f4e,Emt).call(this,!1,e);if(!t)throw new Error("Failed to connect to the wallet.");return t}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),this.emit("disconnect"),e.removeAllListeners())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function Emt(r,e){let t=await this.getConnector();if(ite._classPrivateMethodGet(this,Amt,NWr).call(this,t),await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),e?.chainId&&await t.switchChain(e?.chainId),this.emit("connect",{address:i,chainId:await this.getChainId()}),i}if(r)throw new Error("Failed to auto connect to the wallet.");return await t.connect(e)}async function NWr(r){r.on("connect",e=>{this.emit("connect",{address:e.account,chainId:e.chain?.id})}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id})}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}$2._defineProperty(Nme,"meta",void 0);ste.AbstractBrowserWallet=Nme;ste.AsyncLocalStorage=Mme;ste.DEFAULT_DAPP_META=kmt;ste.createAsyncLocalStorage=Cmt});var gm=_(Bme=>{"use strict";d();p();var BWr=Vu();function DWr(r,e,t){BWr._checkPrivateRedeclaration(r,e),e.set(r,t)}function LWr(r,e){return e.get?e.get.call(r):e.value}function Pmt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function OWr(r,e){var t=Pmt(r,e,"get");return LWr(r,t)}function qWr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function FWr(r,e,t){var n=Pmt(r,e,"set");return qWr(r,n,t),t}Bme._classPrivateFieldGet=OWr;Bme._classPrivateFieldInitSpec=DWr;Bme._classPrivateFieldSet=FWr});var _Y=_(V0=>{"use strict";d();p();var _u=ec(),WWr=vt(),UWr=Je();function HWr(r){return r&&r.__esModule?r:{default:r}}var jWr=HWr(UWr),m4e=class extends jWr.default{constructor(e){let{chains:t=WWr.defaultChains,options:n}=e;super(),_u._defineProperty(this,"id",void 0),_u._defineProperty(this,"name",void 0),_u._defineProperty(this,"chains",void 0),_u._defineProperty(this,"options",void 0),_u._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},Dme=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),_u._defineProperty(this,"cause",void 0),_u._defineProperty(this,"code",void 0),_u._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},ote=class extends Dme{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},y4e=class extends Error{constructor(){super(...arguments),_u._defineProperty(this,"name","AddChainError"),_u._defineProperty(this,"message","Error adding chain")}},g4e=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),_u._defineProperty(this,"name","ChainNotConfigured")}},b4e=class extends Error{constructor(){super(...arguments),_u._defineProperty(this,"name","ConnectorNotFoundError"),_u._defineProperty(this,"message","Connector not found")}},v4e=class extends Dme{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),_u._defineProperty(this,"name","ResourceUnavailable")}},w4e=class extends ote{constructor(e){super("Error switching chain",{cause:e,code:4902}),_u._defineProperty(this,"name","SwitchChainError")}},x4e=class extends ote{constructor(e){super("User rejected request",{cause:e,code:4001}),_u._defineProperty(this,"name","UserRejectedRequestError")}};V0.AddChainError=y4e;V0.ChainNotConfiguredError=g4e;V0.Connector=m4e;V0.ConnectorNotFoundError=b4e;V0.ProviderRpcError=ote;V0.ResourceUnavailableError=v4e;V0.SwitchChainError=w4e;V0.UserRejectedRequestError=x4e});var TY=_(Smt=>{"use strict";d();p();function zWr(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}Smt.normalizeChainId=zWr});var Rmt=_(Lme=>{"use strict";d();p();Object.defineProperty(Lme,"__esModule",{value:!0});Lme.walletLogo=void 0;var KWr=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};Lme.walletLogo=KWr});var Mmt=_(Ome=>{"use strict";d();p();Object.defineProperty(Ome,"__esModule",{value:!0});Ome.ScopedLocalStorage=void 0;var _4e=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};Ome.ScopedLocalStorage=_4e});var cte=_(I4e=>{"use strict";d();p();Object.defineProperty(I4e,"__esModule",{value:!0});var GWr=Lu();function Nmt(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function VWr(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let o=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw o.context=s,o}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")Nmt(i,this,t);else{let s=i.length,o=VWr(i);for(let c=0;c{d();p();qmt.exports=ute;ute.default=ute;ute.stable=Lmt;ute.stableStringify=Lmt;var qme="[...]",Bmt="[Circular]",J2=[],Q2=[];function Dmt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function ute(r,e,t,n){typeof n>"u"&&(n=Dmt()),E4e(r,"",0,[],void 0,0,n);var a;try{Q2.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,Omt(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;J2.length!==0;){var i=J2.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function IY(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),J2.push([n,t,e,a])):Q2.push([e,t,r]):(n[t]=r,J2.push([n,t,e]))}function E4e(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){IY(qme,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){IY(qme,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;oe?1:0}function Lmt(r,e,t,n){typeof n>"u"&&(n=Dmt());var a=C4e(r,"",0,[],void 0,0,n)||r,i;try{Q2.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,Omt(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;J2.length!==0;){var s=J2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function C4e(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){IY(qme,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){IY(qme,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;o0)for(var n=0;n{"use strict";d();p();Object.defineProperty(EY,"__esModule",{value:!0});EY.EthereumProviderError=EY.EthereumRpcError=void 0;var $Wr=k4e(),Fme=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return $Wr.default(this.serialize(),JWr,2)}};EY.EthereumRpcError=Fme;var A4e=class extends Fme{constructor(e,t,n){if(!QWr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};EY.EthereumProviderError=A4e;function QWr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function JWr(r,e){if(e!=="[Circular]")return e}});var Ume=_(CY=>{"use strict";d();p();Object.defineProperty(CY,"__esModule",{value:!0});CY.errorValues=CY.errorCodes=void 0;CY.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};CY.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var R4e=_(zh=>{"use strict";d();p();Object.defineProperty(zh,"__esModule",{value:!0});zh.serializeError=zh.isValidCode=zh.getMessageFromCode=zh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Hme=Ume(),ZWr=Wme(),Fmt=Hme.errorCodes.rpc.internal,XWr="Unspecified error message. This is a bug, please report it.",eUr={code:Fmt,message:S4e(Fmt)};zh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function S4e(r,e=XWr){if(Number.isInteger(r)){let t=r.toString();if(P4e(Hme.errorValues,t))return Hme.errorValues[t].message;if(Hmt(r))return zh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}zh.getMessageFromCode=S4e;function Umt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(Hme.errorValues[e]||Hmt(r))}zh.isValidCode=Umt;function tUr(r,{fallbackError:e=eUr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof ZWr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&P4e(r,"code")&&Umt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,P4e(o,"data")&&(i.data=o.data)):(i.message=S4e(i.code),i.data={originalError:Wmt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:Wmt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}zh.serializeError=tUr;function Hmt(r){return r>=-32099&&r<=-32e3}function Wmt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function P4e(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var Kmt=_(jme=>{"use strict";d();p();Object.defineProperty(jme,"__esModule",{value:!0});jme.ethErrors=void 0;var M4e=Wme(),jmt=R4e(),Tu=Ume();jme.ethErrors={rpc:{parse:r=>Ap(Tu.errorCodes.rpc.parse,r),invalidRequest:r=>Ap(Tu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Ap(Tu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Ap(Tu.errorCodes.rpc.methodNotFound,r),internal:r=>Ap(Tu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Ap(e,r)},invalidInput:r=>Ap(Tu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Ap(Tu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Ap(Tu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Ap(Tu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Ap(Tu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Ap(Tu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>lte(Tu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>lte(Tu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>lte(Tu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>lte(Tu.errorCodes.provider.disconnected,r),chainDisconnected:r=>lte(Tu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new M4e.EthereumProviderError(e,t,n)}}};function Ap(r,e){let[t,n]=zmt(e);return new M4e.EthereumRpcError(r,t||jmt.getMessageFromCode(r),n)}function lte(r,e){let[t,n]=zmt(e);return new M4e.EthereumProviderError(r,t||jmt.getMessageFromCode(r),n)}function zmt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var zme=_(Ml=>{"use strict";d();p();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.getMessageFromCode=Ml.serializeError=Ml.EthereumProviderError=Ml.EthereumRpcError=Ml.ethErrors=Ml.errorCodes=void 0;var Gmt=Wme();Object.defineProperty(Ml,"EthereumRpcError",{enumerable:!0,get:function(){return Gmt.EthereumRpcError}});Object.defineProperty(Ml,"EthereumProviderError",{enumerable:!0,get:function(){return Gmt.EthereumProviderError}});var Vmt=R4e();Object.defineProperty(Ml,"serializeError",{enumerable:!0,get:function(){return Vmt.serializeError}});Object.defineProperty(Ml,"getMessageFromCode",{enumerable:!0,get:function(){return Vmt.getMessageFromCode}});var rUr=Kmt();Object.defineProperty(Ml,"ethErrors",{enumerable:!0,get:function(){return rUr.ethErrors}});var nUr=Ume();Object.defineProperty(Ml,"errorCodes",{enumerable:!0,get:function(){return nUr.errorCodes}})});var Gme=_(Kme=>{"use strict";d();p();Object.defineProperty(Kme,"__esModule",{value:!0});Kme.EVENTS=void 0;Kme.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var Ymt=_(()=>{d();p()});var f0t=_((ZJn,h0t)=>{d();p();var H4e=typeof Map=="function"&&Map.prototype,N4e=Object.getOwnPropertyDescriptor&&H4e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yme=H4e&&N4e&&typeof N4e.get=="function"?N4e.get:null,$mt=H4e&&Map.prototype.forEach,j4e=typeof Set=="function"&&Set.prototype,B4e=Object.getOwnPropertyDescriptor&&j4e?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$me=j4e&&B4e&&typeof B4e.get=="function"?B4e.get:null,Qmt=j4e&&Set.prototype.forEach,aUr=typeof WeakMap=="function"&&WeakMap.prototype,pte=aUr?WeakMap.prototype.has:null,iUr=typeof WeakSet=="function"&&WeakSet.prototype,hte=iUr?WeakSet.prototype.has:null,sUr=typeof WeakRef=="function"&&WeakRef.prototype,Jmt=sUr?WeakRef.prototype.deref:null,oUr=Boolean.prototype.valueOf,cUr=Object.prototype.toString,uUr=Function.prototype.toString,lUr=String.prototype.match,z4e=String.prototype.slice,Qg=String.prototype.replace,dUr=String.prototype.toUpperCase,Zmt=String.prototype.toLowerCase,o0t=RegExp.prototype.test,Xmt=Array.prototype.concat,bm=Array.prototype.join,pUr=Array.prototype.slice,e0t=Math.floor,O4e=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D4e=Object.getOwnPropertySymbols,q4e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,kY=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Iu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===kY?"object":"symbol")?Symbol.toStringTag:null,c0t=Object.prototype.propertyIsEnumerable,t0t=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function r0t(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||o0t.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-e0t(-r):e0t(r);if(n!==r){var a=String(n),i=z4e.call(e,a.length+1);return Qg.call(a,t,"$&_")+"."+Qg.call(Qg.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Qg.call(e,t,"$&_")}var F4e=Ymt(),n0t=F4e.custom,a0t=l0t(n0t)?n0t:null;h0t.exports=function r(e,t,n,a){var i=t||{};if($g(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if($g(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=$g(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($g(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($g(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return p0t(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return o?r0t(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return o?r0t(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return W4e(e)?"[Array]":"[Object]";var h=SUr(i,n);if(typeof a>"u")a=[];else if(d0t(a,e)>=0)return"[Circular]";function f(A,v,k){if(v&&(a=pUr.call(a),a.push(v)),k){var O={depth:i.depth};return $g(i,"quoteStyle")&&(O.quoteStyle=i.quoteStyle),r(A,O,n+1,a)}return r(A,i,n+1,a)}if(typeof e=="function"&&!i0t(e)){var m=xUr(e),y=Vme(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+bm.call(y,", ")+" }":"")}if(l0t(e)){var I=kY?Qg.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):q4e.call(e);return typeof e=="object"&&!kY?dte(I):I}if(kUr(e)){for(var C="<"+Zmt.call(String(e.nodeName)),R=e.attributes||[],L=0;L",C}if(W4e(e)){if(e.length===0)return"[]";var F=Vme(e,f);return h&&!PUr(F)?"["+U4e(F,h)+"]":"[ "+bm.call(F,", ")+" ]"}if(mUr(e)){var W=Vme(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!c0t.call(e,"cause")?"{ ["+String(e)+"] "+bm.call(Xmt.call("[cause]: "+f(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+bm.call(W,", ")+" }"}if(typeof e=="object"&&s){if(a0t&&typeof e[a0t]=="function"&&F4e)return F4e(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_Ur(e)){var V=[];return $mt&&$mt.call(e,function(A,v){V.push(f(v,e,!0)+" => "+f(A,e))}),s0t("Map",Yme.call(e),V,h)}if(EUr(e)){var K=[];return Qmt&&Qmt.call(e,function(A){K.push(f(A,e))}),s0t("Set",$me.call(e),K,h)}if(TUr(e))return L4e("WeakMap");if(CUr(e))return L4e("WeakSet");if(IUr(e))return L4e("WeakRef");if(gUr(e))return dte(f(Number(e)));if(vUr(e))return dte(f(O4e.call(e)));if(bUr(e))return dte(oUr.call(e));if(yUr(e))return dte(f(String(e)));if(!fUr(e)&&!i0t(e)){var H=Vme(e,f),G=t0t?t0t(e)===Object.prototype:e instanceof Object||e.constructor===Object,Q=e instanceof Object?"":"null prototype",q=!G&&Iu&&Object(e)===e&&Iu in e?z4e.call(Jg(e),8,-1):Q?"Object":"",T=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",M=T+(q||Q?"["+bm.call(Xmt.call([],q||[],Q||[]),": ")+"] ":"");return H.length===0?M+"{}":h?M+"{"+U4e(H,h)+"}":M+"{ "+bm.call(H,", ")+" }"}return String(e)};function u0t(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function hUr(r){return Qg.call(String(r),/"/g,""")}function W4e(r){return Jg(r)==="[object Array]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function fUr(r){return Jg(r)==="[object Date]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function i0t(r){return Jg(r)==="[object RegExp]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function mUr(r){return Jg(r)==="[object Error]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function yUr(r){return Jg(r)==="[object String]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function gUr(r){return Jg(r)==="[object Number]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function bUr(r){return Jg(r)==="[object Boolean]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function l0t(r){if(kY)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!q4e)return!1;try{return q4e.call(r),!0}catch{}return!1}function vUr(r){if(!r||typeof r!="object"||!O4e)return!1;try{return O4e.call(r),!0}catch{}return!1}var wUr=Object.prototype.hasOwnProperty||function(r){return r in this};function $g(r,e){return wUr.call(r,e)}function Jg(r){return cUr.call(r)}function xUr(r){if(r.name)return r.name;var e=lUr.call(uUr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function d0t(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return p0t(z4e.call(r,0,e.maxStringLength),e)+n}var a=Qg.call(Qg.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,AUr);return u0t(a,"single",e)}function AUr(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+dUr.call(e.toString(16))}function dte(r){return"Object("+r+")"}function L4e(r){return r+" { ? }"}function s0t(r,e,t,n){var a=n?U4e(t,n):bm.call(t,", ");return r+" ("+e+") {"+a+"}"}function PUr(r){for(var e=0;e=0)return!1;return!0}function SUr(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=bm.call(Array(r.indent+1)," ");else return null;return{base:t,prev:bm.call(Array(e+1),t)}}function U4e(r,e){if(r.length===0)return"";var t=` +`+e.prev+e.base;return t+bm.call(r,","+t)+` +`+e.prev}function Vme(r,e){var t=W4e(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";d();p();var K4e=lJ(),AY=dJ(),RUr=f0t(),MUr=K4e("%TypeError%"),Qme=K4e("%WeakMap%",!0),Jme=K4e("%Map%",!0),NUr=AY("WeakMap.prototype.get",!0),BUr=AY("WeakMap.prototype.set",!0),DUr=AY("WeakMap.prototype.has",!0),LUr=AY("Map.prototype.get",!0),OUr=AY("Map.prototype.set",!0),qUr=AY("Map.prototype.has",!0),G4e=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},FUr=function(r,e){var t=G4e(r,e);return t&&t.value},WUr=function(r,e,t){var n=G4e(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},UUr=function(r,e){return!!G4e(r,e)};m0t.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new MUr("Side channel does not contain "+RUr(i))},get:function(i){if(Qme&&i&&(typeof i=="object"||typeof i=="function")){if(e)return NUr(e,i)}else if(Jme){if(t)return LUr(t,i)}else if(n)return FUr(n,i)},has:function(i){if(Qme&&i&&(typeof i=="object"||typeof i=="function")){if(e)return DUr(e,i)}else if(Jme){if(t)return qUr(t,i)}else if(n)return UUr(n,i);return!1},set:function(i,s){Qme&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Qme),BUr(e,i,s)):Jme?(t||(t=new Jme),OUr(t,i,s)):(n||(n={key:{},next:null}),WUr(n,i,s))}};return a}});var Zme=_((aZn,g0t)=>{"use strict";d();p();var HUr=String.prototype.replace,jUr=/%20/g,V4e={RFC1738:"RFC1738",RFC3986:"RFC3986"};g0t.exports={default:V4e.RFC3986,formatters:{RFC1738:function(r){return HUr.call(r,jUr,"+")},RFC3986:function(r){return String(r)}},RFC1738:V4e.RFC1738,RFC3986:V4e.RFC3986}});var $4e=_((oZn,v0t)=>{"use strict";d();p();var zUr=Zme(),Y4e=Object.prototype.hasOwnProperty,Z2=Array.isArray,vm=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),KUr=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Z2(n)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===zUr.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+vm[u];continue}if(u<2048){o=o+(vm[192|u>>6]+vm[128|u&63]);continue}if(u<55296||u>=57344){o=o+(vm[224|u>>12]+vm[128|u>>6&63]+vm[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=vm[240|u>>18]+vm[128|u>>12&63]+vm[128|u>>6&63]+vm[128|u&63]}return o},QUr=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";d();p();var _0t=y0t(),Xme=$4e(),fte=Zme(),tHr=Object.prototype.hasOwnProperty,w0t={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Y0=Array.isArray,rHr=Array.prototype.push,T0t=function(r,e){rHr.apply(r,Y0(e)?e:[e])},nHr=Date.prototype.toISOString,x0t=fte.default,Eu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Xme.encode,encodeValuesOnly:!1,format:x0t,formatter:fte.formatters[x0t],indices:!1,serializeDate:function(e){return nHr.call(e)},skipNulls:!1,strictNullHandling:!1},aHr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Q4e={},iHr=function r(e,t,n,a,i,s,o,c,u,l,h,f,m,y,I,C){for(var R=e,L=C,F=0,W=!1;(L=L.get(Q4e))!==void 0&&!W;){var V=L.get(e);if(F+=1,typeof V<"u"){if(V===F)throw new RangeError("Cyclic object value");W=!0}typeof L.get(Q4e)>"u"&&(F=0)}if(typeof c=="function"?R=c(t,R):R instanceof Date?R=h(R):n==="comma"&&Y0(R)&&(R=Xme.maybeMap(R,function(O){return O instanceof Date?h(O):O})),R===null){if(i)return o&&!y?o(t,Eu.encoder,I,"key",f):t;R=""}if(aHr(R)||Xme.isBuffer(R)){if(o){var K=y?t:o(t,Eu.encoder,I,"key",f);return[m(K)+"="+m(o(R,Eu.encoder,I,"value",f))]}return[m(t)+"="+m(String(R))]}var H=[];if(typeof R>"u")return H;var G;if(n==="comma"&&Y0(R))y&&o&&(R=Xme.maybeMap(R,o)),G=[{value:R.length>0?R.join(",")||null:void 0}];else if(Y0(c))G=c;else{var Q=Object.keys(R);G=u?Q.sort(u):Q}for(var q=a&&Y0(R)&&R.length===1?t+"[]":t,T=0;T"u"?Eu.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Eu.charsetSentinel,delimiter:typeof e.delimiter>"u"?Eu.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Eu.encode,encoder:typeof e.encoder=="function"?e.encoder:Eu.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Eu.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Eu.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Eu.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Eu.strictNullHandling}};I0t.exports=function(r,e){var t=r,n=sHr(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):Y0(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in w0t?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var c=w0t[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var l=_0t(),h=0;h0?y+m:""}});var A0t=_((hZn,k0t)=>{"use strict";d();p();var PY=$4e(),J4e=Object.prototype.hasOwnProperty,oHr=Array.isArray,tc={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:PY.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cHr=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},C0t=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},uHr="utf8=%26%2310003%3B",lHr="utf8=%E2%9C%93",dHr=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),o=-1,c,u=t.charset;if(t.charsetSentinel)for(c=0;c-1&&(y=oHr(y)?[y]:y),J4e.call(n,m)?n[m]=PY.combine(n[m],y):n[m]=y}return n},pHr=function(r,e,t,n){for(var a=n?e:C0t(e,t),i=r.length-1;i>=0;--i){var s,o=r[i];if(o==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!t.parseArrays&&c===""?s={0:a}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(s=[],s[u]=a):c!=="__proto__"&&(s[c]=a)}a=s}return a},hHr=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&J4e.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var h=0;n.depth>0&&(c=o.exec(i))!==null&&h"u"?tc.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?tc.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:tc.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:tc.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:tc.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:tc.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:tc.comma,decoder:typeof e.decoder=="function"?e.decoder:tc.decoder,delimiter:typeof e.delimiter=="string"||PY.isRegExp(e.delimiter)?e.delimiter:tc.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:tc.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:tc.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:tc.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:tc.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:tc.strictNullHandling}};k0t.exports=function(r,e){var t=fHr(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?dHr(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";d();p();var mHr=E0t(),yHr=A0t(),gHr=Zme();P0t.exports={formats:gHr,parse:yHr,stringify:mHr}});var yte=_(Ac=>{"use strict";d();p();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ProviderType=Ac.RegExpString=Ac.IntNumber=Ac.BigIntString=Ac.AddressString=Ac.HexString=Ac.OpaqueType=void 0;function mte(){return r=>r}Ac.OpaqueType=mte;Ac.HexString=mte();Ac.AddressString=mte();Ac.BigIntString=mte();function bHr(r){return Math.floor(r)}Ac.IntNumber=bHr;Ac.RegExpString=mte();var vHr;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(vHr=Ac.ProviderType||(Ac.ProviderType={}))});var $0=_(Ht=>{"use strict";d();p();var wHr=Ht&&Ht.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isInIFrame=Ht.createQrUrl=Ht.getFavicon=Ht.range=Ht.isBigNumber=Ht.ensureParsedJSONObject=Ht.ensureBN=Ht.ensureRegExpString=Ht.ensureIntNumber=Ht.ensureBuffer=Ht.ensureAddressString=Ht.ensureEvenLengthHexString=Ht.ensureHexString=Ht.isHexString=Ht.prepend0x=Ht.strip0x=Ht.has0xPrefix=Ht.hexStringFromIntNumber=Ht.intNumberFromHexString=Ht.bigIntStringFromBN=Ht.hexStringFromBuffer=Ht.hexStringToUint8Array=Ht.uint8ArrayToHex=Ht.randomBytesHex=void 0;var Zg=wHr(Cr()),xHr=S0t(),Pp=yte(),R0t=/^[0-9]*$/,M0t=/^[a-f0-9]*$/;function _Hr(r){return N0t(crypto.getRandomValues(new Uint8Array(r)))}Ht.randomBytesHex=_Hr;function N0t(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}Ht.uint8ArrayToHex=N0t;function THr(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}Ht.hexStringToUint8Array=THr;function IHr(r,e=!1){let t=r.toString("hex");return(0,Pp.HexString)(e?"0x"+t:t)}Ht.hexStringFromBuffer=IHr;function EHr(r){return(0,Pp.BigIntString)(r.toString(10))}Ht.bigIntStringFromBN=EHr;function CHr(r){return(0,Pp.IntNumber)(new Zg.default(bte(r,!1),16).toNumber())}Ht.intNumberFromHexString=CHr;function kHr(r){return(0,Pp.HexString)("0x"+new Zg.default(r).toString(16))}Ht.hexStringFromIntNumber=kHr;function Z4e(r){return r.startsWith("0x")||r.startsWith("0X")}Ht.has0xPrefix=Z4e;function e0e(r){return Z4e(r)?r.slice(2):r}Ht.strip0x=e0e;function B0t(r){return Z4e(r)?"0x"+r.slice(2):"0x"+r}Ht.prepend0x=B0t;function gte(r){if(typeof r!="string")return!1;let e=e0e(r).toLowerCase();return M0t.test(e)}Ht.isHexString=gte;function D0t(r,e=!1){if(typeof r=="string"){let t=e0e(r).toLowerCase();if(M0t.test(t))return(0,Pp.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}Ht.ensureHexString=D0t;function bte(r,e=!1){let t=D0t(r,!1);return t.length%2===1&&(t=(0,Pp.HexString)("0"+t)),e?(0,Pp.HexString)("0x"+t):t}Ht.ensureEvenLengthHexString=bte;function AHr(r){if(typeof r=="string"){let e=e0e(r).toLowerCase();if(gte(e)&&e.length===40)return(0,Pp.AddressString)(B0t(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}Ht.ensureAddressString=AHr;function PHr(r){if(b.Buffer.isBuffer(r))return r;if(typeof r=="string")if(gte(r)){let e=bte(r,!1);return b.Buffer.from(e,"hex")}else return b.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}Ht.ensureBuffer=PHr;function L0t(r){if(typeof r=="number"&&Number.isInteger(r))return(0,Pp.IntNumber)(r);if(typeof r=="string"){if(R0t.test(r))return(0,Pp.IntNumber)(Number(r));if(gte(r))return(0,Pp.IntNumber)(new Zg.default(bte(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureIntNumber=L0t;function SHr(r){if(r instanceof RegExp)return(0,Pp.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}Ht.ensureRegExpString=SHr;function RHr(r){if(r!==null&&(Zg.default.isBN(r)||O0t(r)))return new Zg.default(r.toString(10),10);if(typeof r=="number")return new Zg.default(L0t(r));if(typeof r=="string"){if(R0t.test(r))return new Zg.default(r,10);if(gte(r))return new Zg.default(bte(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureBN=RHr;function MHr(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}Ht.ensureParsedJSONObject=MHr;function O0t(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}Ht.isBigNumber=O0t;function NHr(r,e){return Array.from({length:e-r},(t,n)=>r+n)}Ht.range=NHr;function BHr(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}Ht.getFavicon=BHr;function DHr(r,e,t,n,a,i){let s=n?"parent-id":"id",o=(0,xHr.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${o}`}Ht.createQrUrl=DHr;function LHr(){try{return window.frameElement!==null}catch{return!1}}Ht.isInIFrame=LHr});var r0e=_(t0e=>{"use strict";d();p();Object.defineProperty(t0e,"__esModule",{value:!0});t0e.Session=void 0;var q0t=DJ(),F0t=$0(),W0t="session:id",U0t="session:secret",H0t="session:linked",vte=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,F0t.randomBytesHex)(16),this._secret=n||(0,F0t.randomBytesHex)(32),this._key=new q0t.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(W0t),n=e.getItem(H0t),a=e.getItem(U0t);return t&&a?new vte(e,t,a,n==="1"):null}static hash(e){return new q0t.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(W0t,this._id),this._storage.setItem(U0t,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(H0t,this._linked?"1":"0")}};t0e.Session=vte});var eke=_(wm=>{"use strict";d();p();Object.defineProperty(wm,"__esModule",{value:!0});wm.WalletSDKRelayAbstract=wm.APP_VERSION_KEY=wm.LOCAL_STORAGE_ADDRESSES_KEY=wm.WALLET_USER_NAME_KEY=void 0;var j0t=zme();wm.WALLET_USER_NAME_KEY="walletUsername";wm.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";wm.APP_VERSION_KEY="AppVersion";var X4e=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw j0t.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,j0t.serializeError)(i);return a})}};wm.WalletSDKRelayAbstract=X4e});var G0t=_((RZn,K0t)=>{d();p();var{Transform:OHr}=IJ();K0t.exports=r=>class z0t extends OHr{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new z0t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var $0t=_((BZn,Y0t)=>{d();p();var{Transform:qHr}=IJ();Y0t.exports=r=>class V0t extends qHr{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new V0t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var J0t=_((OZn,Q0t)=>{d();p();var FHr=G0t(),WHr=$0t();Q0t.exports=function(r){let e=FHr(r),t=WHr(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var eyt=_(X0t=>{d();p();var Z0t=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];X0t.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],o=r[5]^r[15]^r[25]^r[35]^r[45],c=r[6]^r[16]^r[26]^r[36]^r[46],u=r[7]^r[17]^r[27]^r[37]^r[47],l=r[8]^r[18]^r[28]^r[38]^r[48],h=r[9]^r[19]^r[29]^r[39]^r[49],f=l^(a<<1|i>>>31),m=h^(i<<1|a>>>31),y=r[0]^f,I=r[1]^m,C=r[10]^f,R=r[11]^m,L=r[20]^f,F=r[21]^m,W=r[30]^f,V=r[31]^m,K=r[40]^f,H=r[41]^m;f=t^(s<<1|o>>>31),m=n^(o<<1|s>>>31);let G=r[2]^f,Q=r[3]^m,q=r[12]^f,T=r[13]^m,M=r[22]^f,A=r[23]^m,v=r[32]^f,k=r[33]^m,O=r[42]^f,D=r[43]^m;f=a^(c<<1|u>>>31),m=i^(u<<1|c>>>31);let B=r[4]^f,x=r[5]^m,N=r[14]^f,U=r[15]^m,E=r[24]^f,z=r[25]^m,ee=r[34]^f,j=r[35]^m,X=r[44]^f,ie=r[45]^m;f=s^(l<<1|h>>>31),m=o^(h<<1|l>>>31);let ue=r[6]^f,he=r[7]^m,ke=r[16]^f,ge=r[17]^m,me=r[26]^f,Ke=r[27]^m,ve=r[36]^f,Ae=r[37]^m,so=r[46]^f,It=r[47]^m;f=c^(t<<1|n>>>31),m=u^(n<<1|t>>>31);let bt=r[8]^f,ai=r[9]^m,xt=r[18]^f,st=r[19]^m,ii=r[28]^f,Nt=r[29]^m,dt=r[38]^f,oo=r[39]^m,jt=r[48]^f,Bt=r[49]^m,sc=y,ot=I,pt=R<<4|C>>>28,Dc=C<<4|R>>>28,Et=L<<3|F>>>29,Ct=F<<3|L>>>29,Lc=V<<9|W>>>23,Dt=W<<9|V>>>23,kt=K<<18|H>>>14,Oc=H<<18|K>>>14,At=G<<1|Q>>>31,Lt=Q<<1|G>>>31,oc=T<<12|q>>>20,Ot=q<<12|T>>>20,qt=M<<10|A>>>22,qc=A<<10|M>>>22,Pt=k<<13|v>>>19,Ft=v<<13|k>>>19,Fc=O<<2|D>>>30,St=D<<2|O>>>30,Wt=x<<30|B>>>2,cc=B<<30|x>>>2,Qe=N<<6|U>>>26,it=U<<6|N>>>26,uc=z<<11|E>>>21,Ut=E<<11|z>>>21,Kt=ee<<15|j>>>17,il=j<<15|ee>>>17,Gt=ie<<29|X>>>3,Vt=X<<29|ie>>>3,sl=ue<<28|he>>>4,Yt=he<<28|ue>>>4,$t=ge<<23|ke>>>9,Bu=ke<<23|ge>>>9,on=me<<25|Ke>>>7,cn=Ke<<25|me>>>7,Wc=ve<<21|Ae>>>11,Uc=Ae<<21|ve>>>11,Hc=It<<24|so>>>8,jc=so<<24|It>>>8,zc=bt<<27|ai>>>5,zp=ai<<27|bt>>>5,Kp=xt<<20|st>>>12,Gp=st<<20|xt>>>12,Vp=Nt<<7|ii>>>25,Yp=ii<<7|Nt>>>25,$p=dt<<8|oo>>>24,Qp=oo<<8|dt>>>24,Jp=jt<<14|Bt>>>18,Zp=Bt<<14|jt>>>18;r[0]=sc^~oc&uc,r[1]=ot^~Ot&Ut,r[10]=sl^~Kp&Et,r[11]=Yt^~Gp&Ct,r[20]=At^~Qe&on,r[21]=Lt^~it&cn,r[30]=zc^~pt&qt,r[31]=zp^~Dc&qc,r[40]=Wt^~$t&Vp,r[41]=cc^~Bu&Yp,r[2]=oc^~uc&Wc,r[3]=Ot^~Ut&Uc,r[12]=Kp^~Et&Pt,r[13]=Gp^~Ct&Ft,r[22]=Qe^~on&$p,r[23]=it^~cn&Qp,r[32]=pt^~qt&Kt,r[33]=Dc^~qc&il,r[42]=$t^~Vp&Lc,r[43]=Bu^~Yp&Dt,r[4]=uc^~Wc&Jp,r[5]=Ut^~Uc&Zp,r[14]=Et^~Pt&Gt,r[15]=Ct^~Ft&Vt,r[24]=on^~$p&kt,r[25]=cn^~Qp&Oc,r[34]=qt^~Kt&Hc,r[35]=qc^~il&jc,r[44]=Vp^~Lc&Fc,r[45]=Yp^~Dt&St,r[6]=Wc^~Jp&sc,r[7]=Uc^~Zp&ot,r[16]=Pt^~Gt&sl,r[17]=Ft^~Vt&Yt,r[26]=$p^~kt&At,r[27]=Qp^~Oc&Lt,r[36]=Kt^~Hc&zc,r[37]=il^~jc&zp,r[46]=Lc^~Fc&Wt,r[47]=Dt^~St&cc,r[8]=Jp^~sc&oc,r[9]=Zp^~ot&Ot,r[18]=Gt^~sl&Kp,r[19]=Vt^~Yt&Gp,r[28]=kt^~At&Qe,r[29]=Oc^~Lt&it,r[38]=Hc^~zc&pt,r[39]=jc^~zp&Dc,r[48]=Fc^~Wt&$t,r[49]=St^~cc&Bu,r[0]^=Z0t[e*2],r[1]^=Z0t[e*2+1]}}});var ryt=_((jZn,tyt)=>{d();p();var n0e=eyt();function SY(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}SY.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};SY.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(n0e.p1600(this.state),this.count=0);return e};SY.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};tyt.exports=SY});var ayt=_((GZn,nyt)=>{d();p();nyt.exports=J0t()(ryt())});var tke=_(($Zn,uyt)=>{d();p();var UHr=ayt(),HHr=Cr();function iyt(r){return b.Buffer.allocUnsafe(r).fill(0)}function syt(r,e,t){let n=iyt(e);return r=a0e(r),t?r.length{d();p();var tw=tke(),ew=Cr();function dyt(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function RY(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function lyt(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function pyt(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function X2(r){var e=typeof r;if(e==="string")return tw.isHexString(r)?new ew(tw.stripHexPrefix(r),16):new ew(r,10);if(e==="number")return new ew(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function xm(r,e){var t,n,a,i;if(r==="address")return xm("uint160",X2(e));if(r==="bool")return xm("uint8",e?1:0);if(r==="string")return xm("bytes",new b.Buffer(e,"utf8"));if(YHr(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=pyt(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(xm(r,e[i]));if(t==="dynamic"){var s=xm("uint256",e.length);a.unshift(s)}return b.Buffer.concat(a)}else{if(r==="bytes")return e=new b.Buffer(e),a=b.Buffer.concat([xm("uint256",e.length),e]),e.length%32!==0&&(a=b.Buffer.concat([a,tw.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=RY(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return tw.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=RY(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=X2(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("int")){if(t=RY(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=X2(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=lyt(r),n=X2(e),n<0)throw new Error("Supplied ufixed is negative");return xm("uint256",n.mul(new ew(2).pow(new ew(t[1]))))}else if(r.startsWith("fixed"))return t=lyt(r),xm("int256",X2(e).mul(new ew(2).pow(new ew(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function VHr(r){return r==="string"||r==="bytes"||pyt(r)==="dynamic"}function YHr(r){return r.lastIndexOf("]")===r.length-1}function $Hr(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=dyt(r[i]),o=e[i],c=xm(s,o);VHr(s)?(t.push(xm("uint256",a)),n.push(c),a+=c.length):t.push(c)}return b.Buffer.concat(t.concat(n))}function hyt(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(tw.setLengthRight(o,t))}else if(s.startsWith("uint")){if(t=RY(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=X2(o),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(b.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=RY(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=X2(o),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(b.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return b.Buffer.concat(a)}function QHr(r,e){return tw.keccak(hyt(r,e))}fyt.exports={rawEncode:$Hr,solidityPack:hyt,soliditySHA3:QHr}});var byt=_((tXn,gyt)=>{d();p();var Kh=tke(),wte=myt(),yyt={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},rke={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(o,c,u)=>{if(t[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Kh.keccak(this.encodeData(c,u,t,n))];if(u===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",Kh.keccak(u)];if(c==="string")return typeof u=="string"&&(u=b.Buffer.from(u,"utf8")),["bytes32",Kh.keccak(u)];if(c.lastIndexOf("]")===c.length-1){let l=c.slice(0,c.lastIndexOf("[")),h=u.map(f=>s(o,l,f));return["bytes32",Kh.keccak(wte.rawEncode(h.map(([f])=>f),h.map(([,f])=>f)))]}return[c,u]};for(let o of t[r]){let[c,u]=s(o.name,o.type,e[o.name]);a.push(c),i.push(u)}}else for(let s of t[r]){let o=e[s.name];if(o!==void 0)if(s.type==="bytes")a.push("bytes32"),o=Kh.keccak(o),i.push(o);else if(s.type==="string")a.push("bytes32"),typeof o=="string"&&(o=b.Buffer.from(o,"utf8")),o=Kh.keccak(o),i.push(o);else if(t[s.type]!==void 0)a.push("bytes32"),o=Kh.keccak(this.encodeData(s.type,o,t,n)),i.push(o);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(o)}}return wte.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:o})=>o+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return Kh.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return Kh.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in yyt.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[b.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),Kh.keccak(b.Buffer.concat(n))}};gyt.exports={TYPED_MESSAGE_SCHEMA:yyt,TypedDataUtils:rke,hashForSignTypedDataLegacy:function(r){return JHr(r.data)},hashForSignTypedData_v3:function(r){return rke.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return rke.hash(r.data)}};function JHr(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?Kh.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return wte.soliditySHA3(["bytes32","bytes32"],[wte.soliditySHA3(new Array(r.length).fill("string"),a),wte.soliditySHA3(n,t)])}});var Tyt=_(NY=>{"use strict";d();p();Object.defineProperty(NY,"__esModule",{value:!0});NY.filterFromParam=NY.FilterPolyfill=void 0;var MY=yte(),Yu=$0(),ZHr=5*60*1e3,rw={jsonrpc:"2.0",id:0},nke=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,MY.IntNumber)(1),this.provider=e}async newFilter(e){let t=_yt(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,Yu.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Yu.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Yu.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,Yu.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,Yu.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(i0e())}async getFilterLogs(e){let t=(0,Yu.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_getLogs",params:[vyt(n)]})):i0e()}makeFilterId(){return(0,MY.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return i0e();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return s0e();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_getLogs",params:[vyt(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let o=s.result.map(u=>(0,Yu.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...o);if(c&&c>n){let u=(0,MY.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return i0e();let n=await this.getCurrentBlockHeight();if(t>n)return s0e();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,Yu.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,MY.IntNumber)(s))))).filter(s=>!!s),i=(0,MY.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},rw),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(s0e())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},ZHr);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_blockNumber",params:[]}));return(0,Yu.intNumberFromHexString)((0,Yu.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_getBlockByNumber",params:[(0,Yu.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,Yu.ensureHexString)(t.result.hash):null}};NY.FilterPolyfill=nke;function _yt(r){return{fromBlock:wyt(r.fromBlock),toBlock:wyt(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}NY.filterFromParam=_yt;function vyt(r){let e={fromBlock:xyt(r.fromBlock),toBlock:xyt(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function wyt(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,MY.IntNumber)(0);if((0,Yu.isHexString)(r))return(0,Yu.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function xyt(r){return r==="latest"?r:(0,Yu.hexStringFromIntNumber)(r)}function i0e(){return Object.assign(Object.assign({},rw),{error:{code:-32e3,message:"filter not found"}})}function s0e(){return Object.assign(Object.assign({},rw),{result:[]})}});var Iyt=_(xte=>{"use strict";d();p();Object.defineProperty(xte,"__esModule",{value:!0});xte.JSONRPCMethod=void 0;var XHr;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(XHr=xte.JSONRPCMethod||(xte.JSONRPCMethod={}))});var ake=_((lXn,Cyt)=>{"use strict";d();p();var Eyt=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,o){if(e.multiArgs){let c=new Array(arguments.length-1);for(let u=1;u{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):Eyt(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?Eyt(i,e):i}return n}});var Ayt=_((hXn,kyt)=>{d();p();kyt.exports=tjr;var ejr=Object.prototype.hasOwnProperty;function tjr(){for(var r={},e=0;e{d();p();Pyt.exports=rjr;function rjr(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var ike=_((vXn,Ryt)=>{d();p();var njr=Ayt(),ajr=Syt()();Ryt.exports=dr;function dr(r){let e=this;e.currentProvider=r}dr.prototype.getBalance=_te(2,"eth_getBalance");dr.prototype.getCode=_te(2,"eth_getCode");dr.prototype.getTransactionCount=_te(2,"eth_getTransactionCount");dr.prototype.getStorageAt=_te(3,"eth_getStorageAt");dr.prototype.call=_te(2,"eth_call");dr.prototype.protocolVersion=Mr("eth_protocolVersion");dr.prototype.syncing=Mr("eth_syncing");dr.prototype.coinbase=Mr("eth_coinbase");dr.prototype.mining=Mr("eth_mining");dr.prototype.hashrate=Mr("eth_hashrate");dr.prototype.gasPrice=Mr("eth_gasPrice");dr.prototype.accounts=Mr("eth_accounts");dr.prototype.blockNumber=Mr("eth_blockNumber");dr.prototype.getBlockTransactionCountByHash=Mr("eth_getBlockTransactionCountByHash");dr.prototype.getBlockTransactionCountByNumber=Mr("eth_getBlockTransactionCountByNumber");dr.prototype.getUncleCountByBlockHash=Mr("eth_getUncleCountByBlockHash");dr.prototype.getUncleCountByBlockNumber=Mr("eth_getUncleCountByBlockNumber");dr.prototype.sign=Mr("eth_sign");dr.prototype.sendTransaction=Mr("eth_sendTransaction");dr.prototype.sendRawTransaction=Mr("eth_sendRawTransaction");dr.prototype.estimateGas=Mr("eth_estimateGas");dr.prototype.getBlockByHash=Mr("eth_getBlockByHash");dr.prototype.getBlockByNumber=Mr("eth_getBlockByNumber");dr.prototype.getTransactionByHash=Mr("eth_getTransactionByHash");dr.prototype.getTransactionByBlockHashAndIndex=Mr("eth_getTransactionByBlockHashAndIndex");dr.prototype.getTransactionByBlockNumberAndIndex=Mr("eth_getTransactionByBlockNumberAndIndex");dr.prototype.getTransactionReceipt=Mr("eth_getTransactionReceipt");dr.prototype.getUncleByBlockHashAndIndex=Mr("eth_getUncleByBlockHashAndIndex");dr.prototype.getUncleByBlockNumberAndIndex=Mr("eth_getUncleByBlockNumberAndIndex");dr.prototype.getCompilers=Mr("eth_getCompilers");dr.prototype.compileLLL=Mr("eth_compileLLL");dr.prototype.compileSolidity=Mr("eth_compileSolidity");dr.prototype.compileSerpent=Mr("eth_compileSerpent");dr.prototype.newFilter=Mr("eth_newFilter");dr.prototype.newBlockFilter=Mr("eth_newBlockFilter");dr.prototype.newPendingTransactionFilter=Mr("eth_newPendingTransactionFilter");dr.prototype.uninstallFilter=Mr("eth_uninstallFilter");dr.prototype.getFilterChanges=Mr("eth_getFilterChanges");dr.prototype.getFilterLogs=Mr("eth_getFilterLogs");dr.prototype.getLogs=Mr("eth_getLogs");dr.prototype.getWork=Mr("eth_getWork");dr.prototype.submitWork=Mr("eth_submitWork");dr.prototype.submitHashrate=Mr("eth_submitHashrate");dr.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(ijr(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function Mr(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function _te(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{d();p();var sjr=noe(),Nyt=Lu(),ske=typeof Reflect=="object"?Reflect:null,ojr=ske&&typeof ske.apply=="function"?ske.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};Byt.exports=oke;function oke(){Nyt.call(this)}sjr.inherits(oke,Nyt);oke.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var o=a[r];if(o===void 0)return!1;if(typeof o=="function")Myt(o,this,e);else for(var c=o.length,u=cjr(o,c),t=0;t{throw n})}}function cjr(r,e){for(var t=new Array(e),n=0;n{d();p();var EXn=ike(),CXn=ake(),ujr=Dyt(),ljr=1e3,djr=(r,e)=>r+e,Lyt=["sync","latest"],cke=class extends ujr{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*ljr,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!Lyt.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return Lyt.map(e=>this.listenerCount(e)).reduce(djr)}_newPotentialLatest(e){let t=this._currentBlock;t&&Oyt(e)<=Oyt(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};qyt.exports=cke;function Oyt(r){return Number.parseInt(r,16)}});var Hyt=_((SXn,Uyt)=>{d();p();var pjr=ake(),hjr=Fyt(),fjr=1e3,uke=class extends hjr{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*fjr,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await Wyt(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: +${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await Wyt(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await pjr(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: +${t.error}`);return t.result}};Uyt.exports=uke;function Wyt(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var dke=_(o0e=>{"use strict";d();p();Object.defineProperty(o0e,"__esModule",{value:!0});o0e.getUniqueId=void 0;var jyt=4294967295,lke=Math.floor(Math.random()*jyt);function mjr(){return lke=(lke+1)%jyt,lke}o0e.getUniqueId=mjr});var zyt=_(c0e=>{"use strict";d();p();Object.defineProperty(c0e,"__esModule",{value:!0});c0e.createIdRemapMiddleware=void 0;var yjr=dke();function gjr(){return(r,e,t,n)=>{let a=r.id,i=yjr.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}c0e.createIdRemapMiddleware=gjr});var Kyt=_(u0e=>{"use strict";d();p();Object.defineProperty(u0e,"__esModule",{value:!0});u0e.createAsyncMiddleware=void 0;function bjr(r){return async(e,t,n,a)=>{let i,s=new Promise(l=>{i=l}),o=null,c=!1,u=async()=>{c=!0,n(l=>{o=l,i()}),await s};try{await r(e,t,u),c?(await s,o(null)):a(null)}catch(l){o?o(l):a(l)}}}u0e.createAsyncMiddleware=bjr});var Gyt=_(l0e=>{"use strict";d();p();Object.defineProperty(l0e,"__esModule",{value:!0});l0e.createScaffoldMiddleware=void 0;function vjr(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}l0e.createScaffoldMiddleware=vjr});var p0e=_(BY=>{"use strict";d();p();Object.defineProperty(BY,"__esModule",{value:!0});BY.EthereumProviderError=BY.EthereumRpcError=void 0;var wjr=k4e(),d0e=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return wjr.default(this.serialize(),_jr,2)}};BY.EthereumRpcError=d0e;var pke=class extends d0e{constructor(e,t,n){if(!xjr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};BY.EthereumProviderError=pke;function xjr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function _jr(r,e){if(e!=="[Circular]")return e}});var h0e=_(DY=>{"use strict";d();p();Object.defineProperty(DY,"__esModule",{value:!0});DY.errorValues=DY.errorCodes=void 0;DY.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};DY.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var mke=_(Gh=>{"use strict";d();p();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.serializeError=Gh.isValidCode=Gh.getMessageFromCode=Gh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var f0e=h0e(),Tjr=p0e(),Vyt=f0e.errorCodes.rpc.internal,Ijr="Unspecified error message. This is a bug, please report it.",Ejr={code:Vyt,message:fke(Vyt)};Gh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function fke(r,e=Ijr){if(Number.isInteger(r)){let t=r.toString();if(hke(f0e.errorValues,t))return f0e.errorValues[t].message;if(Qyt(r))return Gh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Gh.getMessageFromCode=fke;function $yt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(f0e.errorValues[e]||Qyt(r))}Gh.isValidCode=$yt;function Cjr(r,{fallbackError:e=Ejr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof Tjr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&hke(r,"code")&&$yt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,hke(o,"data")&&(i.data=o.data)):(i.message=fke(i.code),i.data={originalError:Yyt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:Yyt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Gh.serializeError=Cjr;function Qyt(r){return r>=-32099&&r<=-32e3}function Yyt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function hke(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var Xyt=_(m0e=>{"use strict";d();p();Object.defineProperty(m0e,"__esModule",{value:!0});m0e.ethErrors=void 0;var yke=p0e(),Jyt=mke(),Cu=h0e();m0e.ethErrors={rpc:{parse:r=>Sp(Cu.errorCodes.rpc.parse,r),invalidRequest:r=>Sp(Cu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Sp(Cu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Sp(Cu.errorCodes.rpc.methodNotFound,r),internal:r=>Sp(Cu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Sp(e,r)},invalidInput:r=>Sp(Cu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Sp(Cu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Sp(Cu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Sp(Cu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Sp(Cu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Sp(Cu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>Tte(Cu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>Tte(Cu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>Tte(Cu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>Tte(Cu.errorCodes.provider.disconnected,r),chainDisconnected:r=>Tte(Cu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new yke.EthereumProviderError(e,t,n)}}};function Sp(r,e){let[t,n]=Zyt(e);return new yke.EthereumRpcError(r,t||Jyt.getMessageFromCode(r),n)}function Tte(r,e){let[t,n]=Zyt(e);return new yke.EthereumProviderError(r,t||Jyt.getMessageFromCode(r),n)}function Zyt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var rgt=_(Nl=>{"use strict";d();p();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.getMessageFromCode=Nl.serializeError=Nl.EthereumProviderError=Nl.EthereumRpcError=Nl.ethErrors=Nl.errorCodes=void 0;var egt=p0e();Object.defineProperty(Nl,"EthereumRpcError",{enumerable:!0,get:function(){return egt.EthereumRpcError}});Object.defineProperty(Nl,"EthereumProviderError",{enumerable:!0,get:function(){return egt.EthereumProviderError}});var tgt=mke();Object.defineProperty(Nl,"serializeError",{enumerable:!0,get:function(){return tgt.serializeError}});Object.defineProperty(Nl,"getMessageFromCode",{enumerable:!0,get:function(){return tgt.getMessageFromCode}});var kjr=Xyt();Object.defineProperty(Nl,"ethErrors",{enumerable:!0,get:function(){return kjr.ethErrors}});var Ajr=h0e();Object.defineProperty(Nl,"errorCodes",{enumerable:!0,get:function(){return Ajr.errorCodes}})});var bke=_(LY=>{"use strict";d();p();var Pjr=LY&&LY.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(LY,"__esModule",{value:!0});LY.JsonRpcEngine=void 0;var Sjr=Pjr(cte()),Rp=rgt(),Vh=class extends Sjr.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,o]=await Vh._runAllMiddleware(e,t,this._middleware);return s?(await Vh._runReturnHandlers(o),a(i)):n(async c=>{try{await Vh._runReturnHandlers(o)}catch(u){return c(u)}return c()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Rp.EthereumRpcError(Rp.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Rp.EthereumRpcError(Rp.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Rp.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await Vh._runAllMiddleware(e,t,this._middleware);if(Vh._checkForCompletion(e,t,a),await Vh._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let o of n)if([i,s]=await Vh._runMiddleware(e,t,o,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=c=>{let u=c||t.error;u&&(t.error=Rp.serializeError(u)),i([u,!0])},o=c=>{t.error?s(t.error):(c&&(typeof c!="function"&&s(new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request: +${gke(e)}`,{request:e})),a.push(c)),i([null,!1]))};try{n(e,t,o,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: +${gke(e)}`,{request:e});if(!n)throw new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: +${gke(e)}`,{request:e})}};LY.JsonRpcEngine=Vh;function gke(r){return JSON.stringify(r,null,2)}});var ngt=_(y0e=>{"use strict";d();p();Object.defineProperty(y0e,"__esModule",{value:!0});y0e.mergeMiddleware=void 0;var Rjr=bke();function Mjr(r){let e=new Rjr.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}y0e.mergeMiddleware=Mjr});var vke=_(Mp=>{"use strict";d();p();var Njr=Mp&&Mp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),OY=Mp&&Mp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Njr(e,r,t)};Object.defineProperty(Mp,"__esModule",{value:!0});OY(zyt(),Mp);OY(Kyt(),Mp);OY(Gyt(),Mp);OY(dke(),Mp);OY(bke(),Mp);OY(ngt(),Mp)});var w0e=_((mea,v0e)=>{d();p();var agt,igt,sgt,ogt,cgt,ugt,lgt,dgt,pgt,hgt,fgt,mgt,ygt,g0e,wke,ggt,bgt,vgt,qY,wgt,xgt,_gt,Tgt,Igt,Egt,Cgt,kgt,Agt,b0e;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof v0e=="object"&&typeof v0e.exports=="object"?r(t(e,t(v0e.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};agt=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},igt=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;l--)(u=n[l])&&(c=(o<3?u(c):o>3?u(a,i,c):u(a,i))||c);return o>3&&c&&Object.defineProperty(a,i,c),c},cgt=function(n,a){return function(i,s){a(i,s,n)}},ugt=function(n,a,i,s,o,c){function u(W){if(W!==void 0&&typeof W!="function")throw new TypeError("Function expected");return W}for(var l=s.kind,h=l==="getter"?"get":l==="setter"?"set":"value",f=!a&&n?s.static?n:n.prototype:null,m=a||(f?Object.getOwnPropertyDescriptor(f,s.name):{}),y,I=!1,C=i.length-1;C>=0;C--){var R={};for(var L in s)R[L]=L==="access"?{}:s[L];for(var L in s.access)R.access[L]=s.access[L];R.addInitializer=function(W){if(I)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(W||null))};var F=(0,i[C])(l==="accessor"?{get:m.get,set:m.set}:m[h],R);if(l==="accessor"){if(F===void 0)continue;if(F===null||typeof F!="object")throw new TypeError("Object expected");(y=u(F.get))&&(m.get=y),(y=u(F.set))&&(m.set=y),(y=u(F.init))&&o.push(y)}else(y=u(F))&&(l==="field"?o.push(y):m[h]=y)}f&&Object.defineProperty(f,s.name,m),I=!0},lgt=function(n,a,i){for(var s=arguments.length>2,o=0;o0&&c[c.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},wke=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,c=[],u;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},ggt=function(){for(var n=[],a=0;a1||l(I,C)})})}function l(I,C){try{h(s[I](C))}catch(R){y(c[0][3],R)}}function h(I){I.value instanceof qY?Promise.resolve(I.value.v).then(f,m):y(c[0][2],I)}function f(I){l("next",I)}function m(I){l("throw",I)}function y(I,C){I(C),c.shift(),c.length&&l(c[0][0],c[0][1])}},xgt=function(n){var a,i;return a={},s("next"),s("throw",function(o){throw o}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(o,c){a[o]=n[o]?function(u){return(i=!i)?{value:qY(n[o](u)),done:!1}:c?c(u):u}:c}},_gt=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof g0e=="function"?g0e(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(c){i[c]=n[c]&&function(u){return new Promise(function(l,h){u=n[c](u),o(l,h,u.done,u.value)})}}function o(c,u,l,h){Promise.resolve(h).then(function(f){c({value:f,done:l})},u)}},Tgt=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};Igt=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&b0e(a,n,i);return t(a,n),a},Egt=function(n){return n&&n.__esModule?n:{default:n}},Cgt=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},kgt=function(n,a,i,s,o){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!o:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?o.call(n,i):o?o.value=i:a.set(n,i),i},Agt=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",agt),r("__assign",igt),r("__rest",sgt),r("__decorate",ogt),r("__param",cgt),r("__esDecorate",ugt),r("__runInitializers",lgt),r("__propKey",dgt),r("__setFunctionName",pgt),r("__metadata",hgt),r("__awaiter",fgt),r("__generator",mgt),r("__exportStar",ygt),r("__createBinding",b0e),r("__values",g0e),r("__read",wke),r("__spread",ggt),r("__spreadArrays",bgt),r("__spreadArray",vgt),r("__await",qY),r("__asyncGenerator",wgt),r("__asyncDelegator",xgt),r("__asyncValues",_gt),r("__makeTemplateObject",Tgt),r("__importStar",Igt),r("__importDefault",Egt),r("__classPrivateFieldGet",Cgt),r("__classPrivateFieldSet",kgt),r("__classPrivateFieldIn",Agt)})});var _ke=_(xke=>{"use strict";d();p();Object.defineProperty(xke,"__esModule",{value:!0});var Pgt=w0e(),Bjr=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return Pgt.__awaiter(this,void 0,void 0,function(){var t,n,a;return Pgt.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();xke.default=Bjr});var Rgt=_(Tke=>{"use strict";d();p();Object.defineProperty(Tke,"__esModule",{value:!0});var Sgt=w0e(),Djr=_ke(),Ljr=function(){function r(){this._semaphore=new Djr.default(1)}return r.prototype.acquire=function(){return Sgt.__awaiter(this,void 0,void 0,function(){var e,t;return Sgt.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();Tke.default=Ljr});var Mgt=_(_0e=>{"use strict";d();p();Object.defineProperty(_0e,"__esModule",{value:!0});_0e.withTimeout=void 0;var x0e=w0e();function Ojr(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return x0e.__awaiter(n,void 0,void 0,function(){var s,o,c;return x0e.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return o=u.sent(),s?(c=Array.isArray(o)?o[1]:o,c()):a(o),[2]}})})})},runExclusive:function(a){return x0e.__awaiter(this,void 0,void 0,function(){var i,s;return x0e.__generator(this,function(o){switch(o.label){case 0:i=function(){},o.label=1;case 1:return o.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=o.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,o.sent()];case 4:return i=s,[4,a()];case 5:return[2,o.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}_0e.withTimeout=Ojr});var Ngt=_(Xg=>{"use strict";d();p();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.withTimeout=Xg.Semaphore=Xg.Mutex=void 0;var qjr=Rgt();Object.defineProperty(Xg,"Mutex",{enumerable:!0,get:function(){return qjr.default}});var Fjr=_ke();Object.defineProperty(Xg,"Semaphore",{enumerable:!0,get:function(){return Fjr.default}});var Wjr=Mgt();Object.defineProperty(Xg,"withTimeout",{enumerable:!0,get:function(){return Wjr.withTimeout}})});var Ogt=_((Sea,Lgt)=>{"use strict";d();p();var Bgt=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,o)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?o(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,l)=>{u?o(u):s(l)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},Dgt=new WeakMap;Lgt.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,o)=>{let c=Dgt.get(s);if(c||(c={},Dgt.set(s,c)),o in c)return c[o];let u=y=>typeof y=="string"||typeof o=="symbol"?o===y:y.test(o),l=Reflect.getOwnPropertyDescriptor(s,o),h=l===void 0||l.writable||l.configurable,m=(e.include?e.include.some(u):!e.exclude.some(u))&&h;return c[o]=m,m},a=new WeakMap,i=new Proxy(r,{apply(s,o,c){let u=a.get(s);if(u)return Reflect.apply(u,o,c);let l=e.excludeMain?s:Bgt(s,e,i,s);return a.set(s,l),Reflect.apply(l,o,c)},get(s,o){let c=s[o];if(!n(s,o)||c===Function.prototype[o])return c;let u=a.get(c);if(u)return u;if(typeof c=="function"){let l=Bgt(c,e,i,s);return a.set(c,l),l}return c}});return i}});var T0e=_((Nea,qgt)=>{d();p();var Ujr=cte().default,Ike=class extends Ujr{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};qgt.exports=Ike});var Wgt=_((Lea,Fgt)=>{d();p();var Hjr=T0e(),Eke=class extends Hjr{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};Fgt.exports=Eke});var FY=_((Fea,jgt)=>{d();p();jgt.exports={minBlockRef:jjr,maxBlockRef:zjr,sortBlockRefs:Cke,bnToHex:Kjr,blockRefIsNumber:Gjr,hexToInt:I0e,incrementHexInt:Vjr,intToHex:Hgt,unsafeRandomBytes:Yjr};function jjr(...r){return Cke(r)[0]}function zjr(...r){let e=Cke(r);return e[e.length-1]}function Cke(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:I0e(e)-I0e(t))}function Kjr(r){return"0x"+r.toString(16)}function Gjr(r){return r&&!["earliest","latest","pending"].includes(r)}function I0e(r){return r==null?r:Number.parseInt(r,16)}function Vjr(r){if(r==null)return r;let e=I0e(r);return Hgt(e+1)}function Hgt(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function Yjr(r){let e="0x";for(let t=0;t{d();p();var $jr=ike(),Qjr=Ogt(),Jjr=Wgt(),{bnToHex:Hea,hexToInt:E0e,incrementHexInt:Zjr,minBlockRef:Xjr,blockRefIsNumber:ezr}=FY(),kke=class extends Jjr{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new $jr(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=Xjr(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=Zjr(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),o=(await this._fetchLogs(i)).filter(c=>this.matchLog(c));this.addResults(o)}async _fetchLogs(e){return await Qjr(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(E0e(this.params.fromBlock)>=E0e(e.blockNumber)||ezr(this.params.toBlock)&&E0e(this.params.toBlock)<=E0e(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let o=Array.isArray(a)?a:[a];return o.includes(null)?!0:(o=o.map(l=>l.toLowerCase()),o.includes(s))})}};zgt.exports=kke});var C0e=_((Gea,Vgt)=>{d();p();Vgt.exports=tzr;async function tzr({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=Ggt(e),i=Ggt(t)-n+1,s=Array(i).fill().map((c,u)=>n+u).map(rzr);return await Promise.all(s.map(c=>azr(r,"eth_getBlockByNumber",[c,!1])))}function Ggt(r){return r==null?r:Number.parseInt(r,16)}function rzr(r){return r==null?r:"0x"+r.toString(16)}function nzr(r,e){return new Promise((t,n)=>{r.sendAsync(e,(a,i)=>{a?n(a):i.error?n(i.error):i.result?t(i.result):n(new Error("Result was empty"))})})}async function azr(r,e,t){for(let n=0;n<3;n++)try{return await nzr(r,{id:1,jsonrpc:"2.0",method:e,params:t})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(t)}`)}});var $gt=_(($ea,Ygt)=>{d();p();var izr=T0e(),szr=C0e(),{incrementHexInt:ozr}=FY(),Ake=class extends izr{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=ozr(e),s=(await szr({provider:this.provider,fromBlock:a,toBlock:n})).map(o=>o.hash);this.addResults(s)}};Ygt.exports=Ake});var Jgt=_((Zea,Qgt)=>{d();p();var czr=T0e(),uzr=C0e(),{incrementHexInt:lzr}=FY(),Pke=class extends czr{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=lzr(e),a=await uzr({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};Qgt.exports=Pke});var e1t=_((tta,Xgt)=>{d();p();var dzr=Ngt().Mutex,{createAsyncMiddleware:pzr,createScaffoldMiddleware:hzr}=vke(),fzr=Kgt(),mzr=$gt(),yzr=Jgt(),{intToHex:Zgt,hexToInt:Ske}=FY();Xgt.exports=gzr;function gzr({blockTracker:r,provider:e}){let t=0,n={},a=new dzr,i=bzr({mutex:a}),s=hzr({eth_newFilter:i(Rke(c)),eth_newBlockFilter:i(Rke(u)),eth_newPendingTransactionFilter:i(Rke(l)),eth_uninstallFilter:i(k0e(m)),eth_getFilterChanges:i(k0e(h)),eth_getFilterLogs:i(k0e(f))}),o=async({oldBlock:L,newBlock:F})=>{if(n.length===0)return;let W=await a.acquire();try{await Promise.all(WY(n).map(async V=>{try{await V.update({oldBlock:L,newBlock:F})}catch(K){console.error(K)}}))}catch(V){console.error(V)}W()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=l,s.uninstallFilter=m,s.getFilterChanges=h,s.getFilterLogs=f,s.destroy=()=>{C()},s;async function c(L){let F=new fzr({provider:e,params:L}),W=await y(F);return F}async function u(){let L=new mzr({provider:e}),F=await y(L);return L}async function l(){let L=new yzr({provider:e}),F=await y(L);return L}async function h(L){let F=Ske(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);return W.getChangesAndClear()}async function f(L){let F=Ske(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);let V=[];return W.type==="log"&&(V=W.getAllResults()),V}async function m(L){let F=Ske(L),W=n[F],V=Boolean(W);return V&&await I(F),V}async function y(L){let F=WY(n).length,W=await r.getLatestBlock();await L.initialize({currentBlock:W}),t++,n[t]=L,L.id=t,L.idHex=Zgt(t);let V=WY(n).length;return R({prevFilterCount:F,newFilterCount:V}),t}async function I(L){let F=WY(n).length;delete n[L];let W=WY(n).length;R({prevFilterCount:F,newFilterCount:W})}async function C(){let L=WY(n).length;n={},R({prevFilterCount:L,newFilterCount:0})}function R({prevFilterCount:L,newFilterCount:F}){if(L===0&&F>0){r.on("sync",o);return}if(L>0&&F===0){r.removeListener("sync",o);return}}}function Rke(r){return k0e(async(...e)=>{let t=await r(...e);return Zgt(t.id)})}function k0e(r){return pzr(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function bzr({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function WY(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var n1t=_((ata,r1t)=>{d();p();var vzr=cte().default,{createAsyncMiddleware:t1t,createScaffoldMiddleware:wzr}=vke(),xzr=e1t(),{unsafeRandomBytes:_zr,incrementHexInt:Tzr}=FY(),Izr=C0e();r1t.exports=Ezr;function Ezr({blockTracker:r,provider:e}){let t={},n=xzr({blockTracker:r,provider:e}),a=!1,i=new vzr,s=wzr({eth_subscribe:t1t(o),eth_unsubscribe:t1t(c)});return s.destroy=l,{events:i,middleware:s};async function o(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=_zr(16),I;switch(m){case"newHeads":I=C({subId:y});break;case"logs":let L=h.params[1],F=await n.newLogFilter(L);I=R({subId:y,filter:F});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${m}"`)}t[y]=I,f.result=y;return;function C({subId:L}){let F={type:m,destroy:async()=>{r.removeListener("sync",F.update)},update:async({oldBlock:W,newBlock:V})=>{let K=V,H=Tzr(W);(await Izr({provider:e,fromBlock:H,toBlock:K})).map(Czr).filter(q=>q!==null).forEach(q=>{u(L,q)})}};return r.on("sync",F.update),F}function R({subId:L,filter:F}){return F.on("update",V=>u(L,V)),{type:m,destroy:async()=>await n.uninstallFilter(F.idHex)}}}async function c(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=t[m];if(!y){f.result=!1;return}delete t[m],await y.destroy(),f.result=!0}function u(h,f){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:h,result:f}})}function l(){i.removeAllListeners();for(let h in t)t[h].destroy(),delete t[h];a=!0}}function Czr(r){return r==null?null:{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var i1t=_(A0e=>{"use strict";d();p();Object.defineProperty(A0e,"__esModule",{value:!0});A0e.SubscriptionManager=void 0;var kzr=Hyt(),Azr=n1t(),a1t=()=>{},Mke=class{constructor(e){let t=new kzr({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=Azr({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,a1t,a1t),t}destroy(){this.subscriptionMiddleware.destroy()}};A0e.SubscriptionManager=Mke});var P0e=_(UY=>{"use strict";d();p();var Lke=UY&&UY.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(UY,"__esModule",{value:!0});UY.CoinbaseWalletProvider=void 0;var Pzr=Lke(cte()),Szr=Lke(Cr()),ku=zme(),Nke=Gme(),s1t=r0e(),o1t=eke(),Ar=$0(),Bke=Lke(byt()),Rzr=Tyt(),Na=Iyt(),Mzr=i1t(),c1t="DefaultChainId",u1t="DefaultJsonRpcUrl",Dke=class extends Pzr.default{constructor(e){var t,n;super(),this._filterPolyfill=new Rzr.FilterPolyfill(this),this._subscriptionManager=new Mzr.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,Ar.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(o1t.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let o=s.split(" ");o[0]!==""&&(this._addresses=o.map(c=>(0,Ar.ensureAddressString)(c)),this.emit("accountsChanged",o))}this._subscriptionManager.events.on("notification",o=>{this.emit("message",{type:o.method,data:o.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",o=>{var c;if(!(o.origin!==location.origin||o.source!==window)&&o.data.type==="walletLinkMessage"){if(o.data.data.action==="defaultChainChanged"||o.data.data.action==="dappChainSwitched"){let u=o.data.data.chainId,l=(c=o.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(l,Number(u))}o.data.data.action==="addressChanged"&&this._setAddresses([o.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Ar.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(u1t))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(u1t,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(c1t,t.toString(10)),((0,Ar.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var o,c;if((0,Ar.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),l=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!l&&await u.requestEthereumAccounts().promise;let h=await u.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((o=h.result)===null||o===void 0?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw ku.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(Nke.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?s1t.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(Na.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(o=>o.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw ku.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw ku.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw ku.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,Ar.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,Ar.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(o1t.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(o=>t(Object.assign(Object.assign({},o),{id:e.id}))).catch(o=>n(o));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(o=>t({jsonrpc:"2.0",id:e.id,result:o.result})).catch(o=>n(o));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_accounts:return this._eth_accounts();case Na.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case Na.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case Na.JSONRPCMethod.net_version:return this._net_version();case Na.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case Na.JSONRPCMethod.eth_sign:return this._eth_sign(n);case Na.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case Na.JSONRPCMethod.personal_sign:return this._personal_sign(n);case Na.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case Na.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case Na.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case Na.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case Na.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case Na.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case Na.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case Na.JSONRPCMethod.eth_signTypedData_v4:case Na.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case Na.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case Na.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case Na.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case Na.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case Na.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case Na.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case Na.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case Na.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case Na.JSONRPCMethod.eth_subscribe:case Na.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,Ar.ensureAddressString)(e);return this._addresses.map(a=>(0,Ar.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(Nke.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,Ar.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,Ar.ensureAddressString)(e.to):null,a=e.value!=null?(0,Ar.ensureBN)(e.value):new Szr.default(0),i=e.data?(0,Ar.ensureBuffer)(e.data):b.Buffer.alloc(0),s=e.nonce!=null?(0,Ar.ensureIntNumber)(e.nonce):null,o=e.gasPrice!=null?(0,Ar.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,Ar.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,Ar.ensureBN)(e.maxPriorityFeePerGas):null,l=e.gas!=null?(0,Ar.ensureBN)(e.gas):null,h=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:l,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw ku.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw ku.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Ar.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(c1t);if(!e)return(0,Ar.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,Ar.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(Nke.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?s1t.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,Ar.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,Ar.ensureParsedJSONObject)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=Bke.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Bke.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Bke.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw ku.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw ku.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw ku.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw ku.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw ku.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw ku.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,o,s,n)}}_eth_uninstallFilter(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};UY.CoinbaseWalletProvider=Dke});var Dl={};cr(Dl,{Component:()=>Bl,Fragment:()=>Np,cloneElement:()=>Wke,createContext:()=>Ate,createElement:()=>pd,createRef:()=>kte,h:()=>pd,hydrate:()=>N0e,isValidElement:()=>m1t,options:()=>at,render:()=>aw,toChildArray:()=>Yh});function Q0(r,e){for(var t in e)r[t]=e[t];return r}function v1t(r){var e=r.parentNode;e&&e.removeChild(r)}function pd(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?Cte.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return Ite(r,s,n,a,null)}function Ite(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++f1t};return a==null&&at.vnode!=null&&at.vnode(i),i}function kte(){return{current:null}}function Np(r){return r.children}function Bl(r,e){this.props=r,this.context=e}function Ete(r,e){if(e==null)return r.__?Ete(r.__,r.__.__k.indexOf(r)+1):null;for(var t;ee&&nw.sort(Oke));R0e.__r=0}function x1t(r,e,t,n,a,i,s,o,c,u){var l,h,f,m,y,I,C,R=n&&n.__k||b1t,L=R.length;for(t.__k=[],l=0;l0?Ite(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=t,m.__b=t.__b+1,(f=R[l])===null||f&&m.key==f.key&&m.type===f.type)R[l]=void 0;else for(h=0;h=0;e--)if((t=r.__k[e])&&(n=I1t(t)))return n}return null}function Bzr(r,e,t,n,a){var i;for(i in t)i==="children"||i==="key"||i in e||M0e(r,i,null,t[i],n);for(i in e)a&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||t[i]===e[i]||M0e(r,i,e[i],t[i],n)}function d1t(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||Nzr.test(e)?t:t+"px"}function M0e(r,e,t,n,a){var i;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||d1t(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||d1t(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+i]=t,t?n||r.addEventListener(e,i?h1t:p1t,i):r.removeEventListener(e,i?h1t:p1t,i);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function p1t(r){return this.l[r.type+!1](at.event?at.event(r):r)}function h1t(r){return this.l[r.type+!0](at.event?at.event(r):r)}function Fke(r,e,t,n,a,i,s,o,c){var u,l,h,f,m,y,I,C,R,L,F,W,V,K,H,G=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,i=[o]),(u=at.__b)&&u(e);try{e:if(typeof G=="function"){if(C=e.props,R=(u=G.contextType)&&n[u.__c],L=u?R?R.props.value:u.__:n,t.__c?I=(l=e.__c=t.__c).__=l.__E:("prototype"in G&&G.prototype.render?e.__c=l=new G(C,L):(e.__c=l=new Bl(C,L),l.constructor=G,l.render=Lzr),R&&R.sub(l),l.props=C,l.state||(l.state={}),l.context=L,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),G.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Q0({},l.__s)),Q0(l.__s,G.getDerivedStateFromProps(C,l.__s))),f=l.props,m=l.state,l.__v=e,h)G.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(G.getDerivedStateFromProps==null&&C!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(C,L),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(C,l.__s,L)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(l.props=C,l.state=l.__s,l.__d=!1),l.__e=!1,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(Q){Q&&(Q.__=e)}),F=0;F2&&(s.children=arguments.length>3?Cte.call(arguments,2):t),Ite(r.type,s,n||r.key,a||r.ref,null)}function Ate(r,e){var t={__c:e="__cC"+g1t++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(o){o.__e=!0,qke(o)})},this.sub=function(s){a.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),o&&o.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var Cte,at,f1t,m1t,nw,l1t,y1t,Oke,g1t,S0e,b1t,Nzr,Pc=ce(()=>{d();p();S0e={},b1t=[],Nzr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;Cte=b1t.slice,at={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(o){r=o}throw r}},f1t=0,m1t=function(r){return r!=null&&r.constructor===void 0},Bl.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Q0({},this.state),typeof r=="function"&&(r=r(Q0({},t),this.props)),r&&Q0(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),qke(this))},Bl.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),qke(this))},Bl.prototype.render=Np,nw=[],y1t=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Oke=function(r,e){return r.__v.__b-e.__v.__b},R0e.__r=0,g1t=0});var HY=_(Uke=>{"use strict";d();p();Object.defineProperty(Uke,"__esModule",{value:!0});function Ozr(r){return typeof r=="function"}Uke.isFunction=Ozr});var Pte=_(jke=>{"use strict";d();p();Object.defineProperty(jke,"__esModule",{value:!0});var Hke=!1;jke.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: +`+e.stack)}else Hke&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Hke=r},get useDeprecatedSynchronousErrorHandling(){return Hke}}});var B0e=_(zke=>{"use strict";d();p();Object.defineProperty(zke,"__esModule",{value:!0});function qzr(r){setTimeout(function(){throw r},0)}zke.hostReportError=qzr});var Gke=_(Kke=>{"use strict";d();p();Object.defineProperty(Kke,"__esModule",{value:!0});var Fzr=Pte(),Wzr=B0e();Kke.empty={closed:!0,next:function(r){},error:function(r){if(Fzr.config.useDeprecatedSynchronousErrorHandling)throw r;Wzr.hostReportError(r)},complete:function(){}}});var $u=_(Vke=>{"use strict";d();p();Object.defineProperty(Vke,"__esModule",{value:!0});Vke.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var D0e=_(Yke=>{"use strict";d();p();Object.defineProperty(Yke,"__esModule",{value:!0});function Uzr(r){return r!==null&&typeof r=="object"}Yke.isObject=Uzr});var Qke=_($ke=>{"use strict";d();p();Object.defineProperty($ke,"__esModule",{value:!0});var Hzr=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(t,n){return n+1+") "+t.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();Xie.UnsubscriptionError=MUr});var Eo=x(tse=>{"use strict";d();p();Object.defineProperty(tse,"__esModule",{value:!0});var NUr=Qu(),BUr=tW(),DUr=wT(),rW=ese(),OUr=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var o=0;o{"use strict";d();p();Object.defineProperty(ok,"__esModule",{value:!0});ok.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();ok.$$rxSubscriber=ok.rxSubscriber});var tr=x(xT=>{"use strict";d();p();var Xyt=xT&&xT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xT,"__esModule",{value:!0});var Zyt=wT(),rse=Jie(),LUr=Eo(),FUr=nW(),_T=sk(),aW=eW(),e1t=function(r){Xyt(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=rse.empty;break;case 1:if(!t){i.destination=rse.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new nse(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new nse(i,t,n,a);break}return i}return e.prototype[FUr.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(LUr.Subscription);xT.Subscriber=e1t;var nse=function(r){Xyt(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var o,c=s;return Zyt.isFunction(n)?o=n:n&&(o=n.next,a=n.error,i=n.complete,n!==rse.empty&&(c=Object.create(n),Zyt.isFunction(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!_T.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=_T.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):aW.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;aW.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!_T.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),_T.config.useDeprecatedSynchronousErrorHandling)throw a;aW.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!_T.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return _T.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(aW.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(e1t);xT.SafeSubscriber=nse});var iW=x(ase=>{"use strict";d();p();Object.defineProperty(ase,"__esModule",{value:!0});var qUr=tr();function WUr(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof qUr.Subscriber?r=n:r=null}return!0}ase.canReportError=WUr});var r1t=x(sse=>{"use strict";d();p();Object.defineProperty(sse,"__esModule",{value:!0});var ise=tr(),t1t=nW(),UUr=Jie();function HUr(r,e,t){if(r){if(r instanceof ise.Subscriber)return r;if(r[t1t.rxSubscriber])return r[t1t.rxSubscriber]()}return!r&&!e&&!t?new ise.Subscriber(UUr.empty):new ise.Subscriber(r,e,t)}sse.toSubscriber=HUr});var S2=x(ose=>{"use strict";d();p();Object.defineProperty(ose,"__esModule",{value:!0});ose.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var Z1=x(cse=>{"use strict";d();p();Object.defineProperty(cse,"__esModule",{value:!0});function jUr(r){return r}cse.identity=jUr});var oW=x(sW=>{"use strict";d();p();Object.defineProperty(sW,"__esModule",{value:!0});var zUr=Z1();function KUr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(use,"__esModule",{value:!0});var GUr=iW(),VUr=r1t(),$Ur=S2(),YUr=oW(),cW=sk(),JUr=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=VUr.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||cW.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),cW.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){cW.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),GUr.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=a1t(t),new t(function(a,i){var s;s=n.subscribe(function(o){try{e(o)}catch(c){i(c),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[$Ur.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(lse,"__esModule",{value:!0});var QUr=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();lse.ObjectUnsubscribedError=QUr});var dse=x(uk=>{"use strict";d();p();var ZUr=uk&&uk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uk,"__esModule",{value:!0});var XUr=Eo(),eHr=function(r){ZUr(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(XUr.Subscription);uk.SubjectSubscription=eHr});var Au=x(P2=>{"use strict";d();p();var fse=P2&&P2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(P2,"__esModule",{value:!0});var i1t=sn(),tHr=tr(),pse=Eo(),lk=ck(),rHr=dse(),nHr=nW(),s1t=function(r){fse(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(tHr.Subscriber);P2.SubjectSubscriber=s1t;var o1t=function(r){fse(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[nHr.rxSubscriber]=function(){return new s1t(this)},e.prototype.lift=function(t){var n=new hse(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new lk.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";d();p();var aHr=dk&&dk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dk,"__esModule",{value:!0});var iHr=tr();function sHr(){return function(e){return e.lift(new oHr(e))}}dk.refCount=sHr;var oHr=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new cHr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),cHr=function(r){aHr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(iHr.Subscriber)});var yse=x(TT=>{"use strict";d();p();var mse=TT&&TT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(TT,"__esModule",{value:!0});var uHr=Au(),lHr=sn(),dHr=tr(),c1t=Eo(),pHr=uW(),u1t=function(r){mse(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new c1t.Subscription,t.add(this.source.subscribe(new hHr(this.getSubject(),this))),t.closed&&(this._connection=null,t=c1t.Subscription.EMPTY)),t},e.prototype.refCount=function(){return pHr.refCount()(this)},e}(lHr.Observable);TT.ConnectableObservable=u1t;TT.connectableObservableDescriptor=function(){var r=u1t.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var hHr=function(r){mse(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(uHr.SubjectSubscriber),uXn=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new fHr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),fHr=function(r){mse(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(dHr.Subscriber)});var bse=x(ET=>{"use strict";d();p();var lW=ET&&ET.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ET,"__esModule",{value:!0});var l1t=tr(),d1t=Eo(),mHr=sn(),yHr=Au();function gHr(r,e,t,n){return function(a){return a.lift(new bHr(r,e,t,n))}}ET.groupBy=gHr;var bHr=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new vHr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),vHr=function(r){lW(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.keySelector=n,o.elementSelector=a,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(u){this.error(u)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new yHr.Subject,a.set(n,i);var o=new gse(n,i,this);if(this.destination.next(o),this.durationSelector){var c=void 0;try{c=this.durationSelector(new gse(n,i))}catch(u){this.error(u);return}this.add(c.subscribe(new wHr(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(l1t.Subscriber),wHr=function(r){lW(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(l1t.Subscriber),gse=function(r){lW(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new d1t.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new _Hr(i)),n.add(s.subscribe(t)),n},e}(mHr.Observable);ET.GroupedObservable=gse;var _Hr=function(r){lW(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(d1t.Subscription)});var vse=x(pk=>{"use strict";d();p();var xHr=pk&&pk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pk,"__esModule",{value:!0});var THr=Au(),EHr=ck(),CHr=function(r){xHr(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new EHr.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(THr.Subject);pk.BehaviorSubject=CHr});var p1t=x(hk=>{"use strict";d();p();var IHr=hk&&hk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hk,"__esModule",{value:!0});var kHr=Eo(),AHr=function(r){IHr(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}(kHr.Subscription);hk.Action=AHr});var CT=x(fk=>{"use strict";d();p();var SHr=fk&&fk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fk,"__esModule",{value:!0});var PHr=p1t(),RHr=function(r){SHr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(PHr.Action);fk.AsyncAction=RHr});var h1t=x(mk=>{"use strict";d();p();var MHr=mk&&mk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mk,"__esModule",{value:!0});var NHr=CT(),BHr=function(r){MHr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(NHr.AsyncAction);mk.QueueAction=BHr});var _se=x(wse=>{"use strict";d();p();Object.defineProperty(wse,"__esModule",{value:!0});var DHr=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();wse.Scheduler=DHr});var IT=x(yk=>{"use strict";d();p();var OHr=yk&&yk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yk,"__esModule",{value:!0});var f1t=_se(),LHr=function(r){OHr(e,r);function e(t,n){n===void 0&&(n=f1t.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}(f1t.Scheduler);yk.AsyncScheduler=LHr});var m1t=x(gk=>{"use strict";d();p();var FHr=gk&&gk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gk,"__esModule",{value:!0});var qHr=IT(),WHr=function(r){FHr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(qHr.AsyncScheduler);gk.QueueScheduler=WHr});var xse=x(bk=>{"use strict";d();p();Object.defineProperty(bk,"__esModule",{value:!0});var UHr=h1t(),HHr=m1t();bk.queueScheduler=new HHr.QueueScheduler(UHr.QueueAction);bk.queue=bk.queueScheduler});var Qh=x(vk=>{"use strict";d();p();Object.defineProperty(vk,"__esModule",{value:!0});var y1t=sn();vk.EMPTY=new y1t.Observable(function(r){return r.complete()});function jHr(r){return r?zHr(r):vk.EMPTY}vk.empty=jHr;function zHr(r){return new y1t.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var Zh=x(Tse=>{"use strict";d();p();Object.defineProperty(Tse,"__esModule",{value:!0});function KHr(r){return r&&typeof r.schedule=="function"}Tse.isScheduler=KHr});var Cse=x(Ese=>{"use strict";d();p();Object.defineProperty(Ese,"__esModule",{value:!0});Ese.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";d();p();Object.defineProperty(Ise,"__esModule",{value:!0});var GHr=sn(),VHr=Eo();function $Hr(r,e){return new GHr.Observable(function(t){var n=new VHr.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}Ise.scheduleArray=$Hr});var kT=x(kse=>{"use strict";d();p();Object.defineProperty(kse,"__esModule",{value:!0});var YHr=sn(),JHr=Cse(),QHr=dW();function ZHr(r,e){return e?QHr.scheduleArray(r,e):new YHr.Observable(JHr.subscribeToArray(r))}kse.fromArray=ZHr});var wk=x(Ase=>{"use strict";d();p();Object.defineProperty(Ase,"__esModule",{value:!0});var XHr=Zh(),ejr=kT(),tjr=dW();function rjr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Sse,"__esModule",{value:!0});var g1t=sn();function njr(r,e){return e?new g1t.Observable(function(t){return e.schedule(ajr,0,{error:r,subscriber:t})}):new g1t.Observable(function(t){return t.error(r)})}Sse.throwError=njr;function ajr(r){var e=r.error,t=r.subscriber;t.error(e)}});var xk=x(_k=>{"use strict";d();p();Object.defineProperty(_k,"__esModule",{value:!0});var ijr=Qh(),sjr=wk(),ojr=pW(),cjr;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(cjr=_k.NotificationKind||(_k.NotificationKind={}));var ujr=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return sjr.of(this.value);case"E":return ojr.throwError(this.error);case"C":return ijr.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();_k.Notification=ujr});var Rse=x(X1=>{"use strict";d();p();var ljr=X1&&X1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X1,"__esModule",{value:!0});var djr=tr(),Pse=xk();function pjr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new b1t(r,e))}}X1.observeOn=pjr;var b1t=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new v1t(e,this.scheduler,this.delay))},r}();X1.ObserveOnOperator=b1t;var v1t=function(r){ljr(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new w1t(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Pse.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Pse.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Pse.Notification.createComplete()),this.unsubscribe()},e}(djr.Subscriber);X1.ObserveOnSubscriber=v1t;var w1t=function(){function r(e,t){this.notification=e,this.destination=t}return r}();X1.ObserveOnMessage=w1t});var hW=x(Tk=>{"use strict";d();p();var hjr=Tk&&Tk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tk,"__esModule",{value:!0});var fjr=Au(),mjr=xse(),yjr=Eo(),gjr=Rse(),bjr=ck(),vjr=dse(),wjr=function(r){hjr(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new _jr(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,o;if(this.closed)throw new bjr.ObjectUnsubscribedError;if(this.isStopped||this.hasError?o=yjr.Subscription.EMPTY:(this.observers.push(t),o=new vjr.SubjectSubscription(this,t)),i&&t.add(t=new gjr.ObserveOnSubscriber(t,i)),n)for(var c=0;cn&&(o=Math.max(o,s-n)),o>0&&i.splice(0,o),i},e}(fjr.Subject);Tk.ReplaySubject=wjr;var _jr=function(){function r(e,t){this.time=e,this.value=t}return r}()});var Ck=x(Ek=>{"use strict";d();p();var xjr=Ek&&Ek.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ek,"__esModule",{value:!0});var Tjr=Au(),_1t=Eo(),Ejr=function(r){xjr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),_1t.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),_1t.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(Tjr.Subject);Ek.AsyncSubject=Ejr});var T1t=x(mW=>{"use strict";d();p();Object.defineProperty(mW,"__esModule",{value:!0});var Cjr=1,Ijr=function(){return Promise.resolve()}(),fW={};function x1t(r){return r in fW?(delete fW[r],!0):!1}mW.Immediate={setImmediate:function(r){var e=Cjr++;return fW[e]=!0,Ijr.then(function(){return x1t(e)&&r()}),e},clearImmediate:function(r){x1t(r)}};mW.TestTools={pending:function(){return Object.keys(fW).length}}});var C1t=x(Ik=>{"use strict";d();p();var kjr=Ik&&Ik.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ik,"__esModule",{value:!0});var E1t=T1t(),Ajr=CT(),Sjr=function(r){kjr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=E1t.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(E1t.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(Ajr.AsyncAction);Ik.AsapAction=Sjr});var I1t=x(kk=>{"use strict";d();p();var Pjr=kk&&kk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kk,"__esModule",{value:!0});var Rjr=IT(),Mjr=function(r){Pjr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(Ak,"__esModule",{value:!0});var Njr=C1t(),Bjr=I1t();Ak.asapScheduler=new Bjr.AsapScheduler(Njr.AsapAction);Ak.asap=Ak.asapScheduler});var Zu=x(Sk=>{"use strict";d();p();Object.defineProperty(Sk,"__esModule",{value:!0});var Djr=CT(),Ojr=IT();Sk.asyncScheduler=new Ojr.AsyncScheduler(Djr.AsyncAction);Sk.async=Sk.asyncScheduler});var k1t=x(Pk=>{"use strict";d();p();var Ljr=Pk&&Pk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pk,"__esModule",{value:!0});var Fjr=CT(),qjr=function(r){Ljr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(Fjr.AsyncAction);Pk.AnimationFrameAction=qjr});var A1t=x(Rk=>{"use strict";d();p();var Wjr=Rk&&Rk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rk,"__esModule",{value:!0});var Ujr=IT(),Hjr=function(r){Wjr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(Mk,"__esModule",{value:!0});var jjr=k1t(),zjr=A1t();Mk.animationFrameScheduler=new zjr.AnimationFrameScheduler(jjr.AnimationFrameAction);Mk.animationFrame=Mk.animationFrameScheduler});var M1t=x(AT=>{"use strict";d();p();var P1t=AT&&AT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(AT,"__esModule",{value:!0});var Kjr=CT(),Gjr=IT(),Vjr=function(r){P1t(e,r);function e(t,n){t===void 0&&(t=R1t),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(Gjr.AsyncScheduler);AT.VirtualTimeScheduler=Vjr;var R1t=function(r){P1t(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(Kjr.AsyncAction);AT.VirtualAction=R1t});var yW=x(Nse=>{"use strict";d();p();Object.defineProperty(Nse,"__esModule",{value:!0});function $jr(){}Nse.noop=$jr});var N1t=x(Bse=>{"use strict";d();p();Object.defineProperty(Bse,"__esModule",{value:!0});var Yjr=sn();function Jjr(r){return!!r&&(r instanceof Yjr.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}Bse.isObservable=Jjr});var ST=x(Dse=>{"use strict";d();p();Object.defineProperty(Dse,"__esModule",{value:!0});var Qjr=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();Dse.ArgumentOutOfRangeError=Qjr});var PT=x(Ose=>{"use strict";d();p();Object.defineProperty(Ose,"__esModule",{value:!0});var Zjr=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();Ose.EmptyError=Zjr});var Fse=x(Lse=>{"use strict";d();p();Object.defineProperty(Lse,"__esModule",{value:!0});var Xjr=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();Lse.TimeoutError=Xjr});var md=x(RT=>{"use strict";d();p();var ezr=RT&&RT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(RT,"__esModule",{value:!0});var tzr=tr();function rzr(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new B1t(r,e))}}RT.map=rzr;var B1t=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new nzr(e,this.project,this.thisArg))},r}();RT.MapOperator=B1t;var nzr=function(r){ezr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(tzr.Subscriber)});var L1t=x(qse=>{"use strict";d();p();Object.defineProperty(qse,"__esModule",{value:!0});var azr=sn(),D1t=Ck(),izr=md(),szr=iW(),ozr=Qu(),czr=Zh();function O1t(r,e,t){if(e)if(czr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();Object.defineProperty(Wse,"__esModule",{value:!0});var dzr=sn(),q1t=Ck(),pzr=md(),hzr=iW(),fzr=Zh(),mzr=Qu();function W1t(r,e,t){if(e)if(fzr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();var bzr=Nk&&Nk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nk,"__esModule",{value:!0});var vzr=tr(),wzr=function(r){bzr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(vzr.Subscriber);Nk.OuterSubscriber=wzr});var H1t=x(Bk=>{"use strict";d();p();var _zr=Bk&&Bk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bk,"__esModule",{value:!0});var xzr=tr(),Tzr=function(r){_zr(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(xzr.Subscriber);Bk.InnerSubscriber=Tzr});var j1t=x(Use=>{"use strict";d();p();Object.defineProperty(Use,"__esModule",{value:!0});var Ezr=eW();Use.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Ezr.hostReportError),e}}});var NT=x(MT=>{"use strict";d();p();Object.defineProperty(MT,"__esModule",{value:!0});function z1t(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}MT.getSymbolIterator=z1t;MT.iterator=z1t();MT.$$iterator=MT.iterator});var K1t=x(Hse=>{"use strict";d();p();Object.defineProperty(Hse,"__esModule",{value:!0});var Czr=NT();Hse.subscribeToIterable=function(r){return function(e){var t=r[Czr.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var G1t=x(jse=>{"use strict";d();p();Object.defineProperty(jse,"__esModule",{value:!0});var Izr=S2();jse.subscribeToObservable=function(r){return function(e){var t=r[Izr.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var Kse=x(zse=>{"use strict";d();p();Object.defineProperty(zse,"__esModule",{value:!0});zse.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var Vse=x(Gse=>{"use strict";d();p();Object.defineProperty(Gse,"__esModule",{value:!0});function kzr(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}Gse.isPromise=kzr});var Dk=x($se=>{"use strict";d();p();Object.defineProperty($se,"__esModule",{value:!0});var Azr=Cse(),Szr=j1t(),Pzr=K1t(),Rzr=G1t(),Mzr=Kse(),Nzr=Vse(),Bzr=tW(),Dzr=NT(),Ozr=S2();$se.subscribeTo=function(r){if(!!r&&typeof r[Ozr.observable]=="function")return Rzr.subscribeToObservable(r);if(Mzr.isArrayLike(r))return Azr.subscribeToArray(r);if(Nzr.isPromise(r))return Szr.subscribeToPromise(r);if(!!r&&typeof r[Dzr.iterator]=="function")return Pzr.subscribeToIterable(r);var e=Bzr.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var tg=x(Yse=>{"use strict";d();p();Object.defineProperty(Yse,"__esModule",{value:!0});var Lzr=H1t(),Fzr=Dk(),qzr=sn();function Wzr(r,e,t,n,a){if(a===void 0&&(a=new Lzr.InnerSubscriber(r,t,n)),!a.closed)return e instanceof qzr.Observable?e.subscribe(a):Fzr.subscribeTo(e)(a)}Yse.subscribeToResult=Wzr});var gW=x(R2=>{"use strict";d();p();var Uzr=R2&&R2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(R2,"__esModule",{value:!0});var Hzr=Zh(),jzr=Qu(),zzr=eg(),Kzr=tg(),Gzr=kT(),V1t={};function Vzr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Jse,"__esModule",{value:!0});var $zr=sn(),Yzr=Eo(),Jzr=S2();function Qzr(r,e){return new $zr.Observable(function(t){var n=new Yzr.Subscription;return n.add(e.schedule(function(){var a=r[Jzr.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}Jse.scheduleObservable=Qzr});var Q1t=x(Qse=>{"use strict";d();p();Object.defineProperty(Qse,"__esModule",{value:!0});var Zzr=sn(),Xzr=Eo();function eKr(r,e){return new Zzr.Observable(function(t){var n=new Xzr.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}Qse.schedulePromise=eKr});var Z1t=x(Zse=>{"use strict";d();p();Object.defineProperty(Zse,"__esModule",{value:!0});var tKr=sn(),rKr=Eo(),nKr=NT();function aKr(r,e){if(!r)throw new Error("Iterable cannot be null");return new tKr.Observable(function(t){var n=new rKr.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[nKr.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var o=a.next();i=o.value,s=o.done}catch(c){t.error(c);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}Zse.scheduleIterable=aKr});var X1t=x(Xse=>{"use strict";d();p();Object.defineProperty(Xse,"__esModule",{value:!0});var iKr=S2();function sKr(r){return r&&typeof r[iKr.observable]=="function"}Xse.isInteropObservable=sKr});var egt=x(eoe=>{"use strict";d();p();Object.defineProperty(eoe,"__esModule",{value:!0});var oKr=NT();function cKr(r){return r&&typeof r[oKr.iterator]=="function"}eoe.isIterable=cKr});var roe=x(toe=>{"use strict";d();p();Object.defineProperty(toe,"__esModule",{value:!0});var uKr=J1t(),lKr=Q1t(),dKr=dW(),pKr=Z1t(),hKr=X1t(),fKr=Vse(),mKr=Kse(),yKr=egt();function gKr(r,e){if(r!=null){if(hKr.isInteropObservable(r))return uKr.scheduleObservable(r,e);if(fKr.isPromise(r))return lKr.schedulePromise(r,e);if(mKr.isArrayLike(r))return dKr.scheduleArray(r,e);if(yKr.isIterable(r)||typeof r=="string")return pKr.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}toe.scheduled=gKr});var Xh=x(noe=>{"use strict";d();p();Object.defineProperty(noe,"__esModule",{value:!0});var tgt=sn(),bKr=Dk(),vKr=roe();function wKr(r,e){return e?vKr.scheduled(r,e):r instanceof tgt.Observable?r:new tgt.Observable(bKr.subscribeTo(r))}noe.from=wKr});var ts=x(X0=>{"use strict";d();p();var bW=X0&&X0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X0,"__esModule",{value:!0});var vW=tr(),_Kr=sn(),xKr=Dk(),TKr=function(r){bW(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(vW.Subscriber);X0.SimpleInnerSubscriber=TKr;var EKr=function(r){bW(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(vW.Subscriber);X0.ComplexInnerSubscriber=EKr;var CKr=function(r){bW(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(vW.Subscriber);X0.SimpleOuterSubscriber=CKr;var IKr=function(r){bW(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(vW.Subscriber);X0.ComplexOuterSubscriber=IKr;function kKr(r,e){if(!e.closed){if(r instanceof _Kr.Observable)return r.subscribe(e);var t;try{t=xKr.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}X0.innerSubscribe=kKr});var Ok=x(rg=>{"use strict";d();p();var AKr=rg&&rg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rg,"__esModule",{value:!0});var SKr=md(),PKr=Xh(),aoe=ts();function ioe(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(ioe(function(a,i){return PKr.from(r(a,i)).pipe(SKr.map(function(s,o){return e(a,s,i,o)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new rgt(r,t))})}rg.mergeMap=ioe;var rgt=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new ngt(e,this.project,this.concurrent))},r}();rg.MergeMapOperator=rgt;var ngt=function(r){AKr(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(aoe.SimpleOuterSubscriber);rg.MergeMapSubscriber=ngt;rg.flatMap=ioe});var wW=x(soe=>{"use strict";d();p();Object.defineProperty(soe,"__esModule",{value:!0});var RKr=Ok(),MKr=Z1();function NKr(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),RKr.mergeMap(MKr.identity,r)}soe.mergeAll=NKr});var coe=x(ooe=>{"use strict";d();p();Object.defineProperty(ooe,"__esModule",{value:!0});var BKr=wW();function DKr(){return BKr.mergeAll(1)}ooe.concatAll=DKr});var Lk=x(uoe=>{"use strict";d();p();Object.defineProperty(uoe,"__esModule",{value:!0});var OKr=wk(),LKr=coe();function FKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(loe,"__esModule",{value:!0});var qKr=sn(),WKr=Xh(),UKr=Qh();function HKr(r){return new qKr.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?WKr.from(t):UKr.empty();return n.subscribe(e)})}loe.defer=HKr});var igt=x(doe=>{"use strict";d();p();Object.defineProperty(doe,"__esModule",{value:!0});var jKr=sn(),agt=Qu(),zKr=md(),KKr=tW(),GKr=Xh();function VKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(poe,"__esModule",{value:!0});var $Kr=sn(),YKr=Qu(),JKr=wT(),QKr=md(),Lra=function(){return Object.prototype.toString}();function sgt(r,e,t,n){return JKr.isFunction(t)&&(n=t,t=void 0),n?sgt(r,e,t).pipe(QKr.map(function(a){return YKr.isArray(a)?n.apply(void 0,a):n(a)})):new $Kr.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}ogt(r,e,i,a,t)})}poe.fromEvent=sgt;function ogt(r,e,t,n,a){var i;if(eGr(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(XKr(r)){var o=r;r.on(e,t),i=function(){return o.off(e,t)}}else if(ZKr(r)){var c=r;r.addListener(e,t),i=function(){return c.removeListener(e,t)}}else if(r&&r.length)for(var u=0,l=r.length;u{"use strict";d();p();Object.defineProperty(hoe,"__esModule",{value:!0});var tGr=sn(),rGr=Qu(),nGr=wT(),aGr=md();function ugt(r,e,t){return t?ugt(r,e).pipe(aGr.map(function(n){return rGr.isArray(n)?t.apply(void 0,n):t(n)})):new tGr.Observable(function(n){var a=function(){for(var s=[],o=0;o{"use strict";d();p();Object.defineProperty(foe,"__esModule",{value:!0});var iGr=sn(),dgt=Z1(),sGr=Zh();function oGr(r,e,t,n,a){var i,s;if(arguments.length==1){var o=r;s=o.initialState,e=o.condition,t=o.iterate,i=o.resultSelector||dgt.identity,a=o.scheduler}else n===void 0||sGr.isScheduler(n)?(s=r,i=dgt.identity,a=n):(s=r,i=n);return new iGr.Observable(function(c){var u=s;if(a)return a.schedule(cGr,0,{subscriber:c,iterate:t,condition:e,resultSelector:i,state:u});do{if(e){var l=void 0;try{l=e(u)}catch(f){c.error(f);return}if(!l){c.complete();break}}var h=void 0;try{h=i(u)}catch(f){c.error(f);return}if(c.next(h),c.closed)break;try{u=t(u)}catch(f){c.error(f);return}}while(!0)})}foe.generate=oGr;function cGr(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var fgt=x(moe=>{"use strict";d();p();Object.defineProperty(moe,"__esModule",{value:!0});var uGr=_W(),hgt=Qh();function lGr(r,e,t){return e===void 0&&(e=hgt.EMPTY),t===void 0&&(t=hgt.EMPTY),uGr.defer(function(){return r()?e:t})}moe.iif=lGr});var Fk=x(yoe=>{"use strict";d();p();Object.defineProperty(yoe,"__esModule",{value:!0});var dGr=Qu();function pGr(r){return!dGr.isArray(r)&&r-parseFloat(r)+1>=0}yoe.isNumeric=pGr});var ygt=x(goe=>{"use strict";d();p();Object.defineProperty(goe,"__esModule",{value:!0});var hGr=sn(),mgt=Zu(),fGr=Fk();function mGr(r,e){return r===void 0&&(r=0),e===void 0&&(e=mgt.async),(!fGr.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=mgt.async),new hGr.Observable(function(t){return t.add(e.schedule(yGr,r,{subscriber:t,counter:0,period:r})),t})}goe.interval=mGr;function yGr(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var voe=x(boe=>{"use strict";d();p();Object.defineProperty(boe,"__esModule",{value:!0});var gGr=sn(),bGr=Zh(),vGr=wW(),wGr=kT();function _Gr(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof gGr.Observable?r[0]:vGr.mergeAll(t)(wGr.fromArray(r,n))}boe.merge=_Gr});var woe=x(qk=>{"use strict";d();p();Object.defineProperty(qk,"__esModule",{value:!0});var xGr=sn(),TGr=yW();qk.NEVER=new xGr.Observable(TGr.noop);function EGr(){return qk.NEVER}qk.never=EGr});var ggt=x(xoe=>{"use strict";d();p();Object.defineProperty(xoe,"__esModule",{value:!0});var CGr=sn(),IGr=Xh(),kGr=Qu(),AGr=Qh();function _oe(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(TW,"__esModule",{value:!0});var bgt=sn(),SGr=Eo();function PGr(r,e){return e?new bgt.Observable(function(t){var n=Object.keys(r),a=new SGr.Subscription;return a.add(e.schedule(vgt,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new bgt.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";d();p();Object.defineProperty(Toe,"__esModule",{value:!0});function RGr(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}Toe.not=RGr});var M2=x(Wk=>{"use strict";d();p();var MGr=Wk&&Wk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wk,"__esModule",{value:!0});var NGr=tr();function BGr(r,e){return function(n){return n.lift(new DGr(r,e))}}Wk.filter=BGr;var DGr=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new OGr(e,this.predicate,this.thisArg))},r}(),OGr=function(r){MGr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(NGr.Subscriber)});var Egt=x(Coe=>{"use strict";d();p();Object.defineProperty(Coe,"__esModule",{value:!0});var LGr=Eoe(),_gt=Dk(),xgt=M2(),Tgt=sn();function FGr(r,e,t){return[xgt.filter(e,t)(new Tgt.Observable(_gt.subscribeTo(r))),xgt.filter(LGr.not(e,t))(new Tgt.Observable(_gt.subscribeTo(r)))]}Coe.partition=FGr});var Ioe=x(N2=>{"use strict";d();p();var qGr=N2&&N2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(N2,"__esModule",{value:!0});var WGr=Qu(),UGr=kT(),HGr=eg(),jGr=tg();function zGr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(EW,"__esModule",{value:!0});var KGr=sn();function GGr(r,e,t){return r===void 0&&(r=0),new KGr.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(kgt,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}EW.range=GGr;function kgt(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}EW.dispatch=kgt});var Aoe=x(koe=>{"use strict";d();p();Object.defineProperty(koe,"__esModule",{value:!0});var VGr=sn(),$Gr=Zu(),Sgt=Fk(),Pgt=Zh();function YGr(r,e,t){r===void 0&&(r=0);var n=-1;return Sgt.isNumeric(e)?n=Number(e)<1&&1||Number(e):Pgt.isScheduler(e)&&(t=e),Pgt.isScheduler(t)||(t=$Gr.async),new VGr.Observable(function(a){var i=Sgt.isNumeric(r)?r:+r-t.now();return t.schedule(JGr,i,{index:0,period:n,subscriber:a})})}koe.timer=YGr;function JGr(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var Rgt=x(Soe=>{"use strict";d();p();Object.defineProperty(Soe,"__esModule",{value:!0});var QGr=sn(),ZGr=Xh(),XGr=Qh();function eVr(r,e){return new QGr.Observable(function(t){var n;try{n=r()}catch(o){t.error(o);return}var a;try{a=e(n)}catch(o){t.error(o);return}var i=a?ZGr.from(a):XGr.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}Soe.using=eVr});var IW=x(B2=>{"use strict";d();p();var Mgt=B2&&B2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(B2,"__esModule",{value:!0});var tVr=kT(),rVr=Qu(),nVr=tr(),CW=NT(),Poe=ts();function aVr(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),oVr=function(r){Mgt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[CW.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Poe.innerSubscribe(this.observable,new Poe.SimpleInnerSubscriber(this))},e}(Poe.SimpleOuterSubscriber)});var Uk=x(et=>{"use strict";d();p();Object.defineProperty(et,"__esModule",{value:!0});var cVr=sn();et.Observable=cVr.Observable;var uVr=yse();et.ConnectableObservable=uVr.ConnectableObservable;var lVr=bse();et.GroupedObservable=lVr.GroupedObservable;var dVr=S2();et.observable=dVr.observable;var pVr=Au();et.Subject=pVr.Subject;var hVr=vse();et.BehaviorSubject=hVr.BehaviorSubject;var fVr=hW();et.ReplaySubject=fVr.ReplaySubject;var mVr=Ck();et.AsyncSubject=mVr.AsyncSubject;var Dgt=Mse();et.asap=Dgt.asap;et.asapScheduler=Dgt.asapScheduler;var Ogt=Zu();et.async=Ogt.async;et.asyncScheduler=Ogt.asyncScheduler;var Lgt=xse();et.queue=Lgt.queue;et.queueScheduler=Lgt.queueScheduler;var Fgt=S1t();et.animationFrame=Fgt.animationFrame;et.animationFrameScheduler=Fgt.animationFrameScheduler;var qgt=M1t();et.VirtualTimeScheduler=qgt.VirtualTimeScheduler;et.VirtualAction=qgt.VirtualAction;var yVr=_se();et.Scheduler=yVr.Scheduler;var gVr=Eo();et.Subscription=gVr.Subscription;var bVr=tr();et.Subscriber=bVr.Subscriber;var Wgt=xk();et.Notification=Wgt.Notification;et.NotificationKind=Wgt.NotificationKind;var vVr=oW();et.pipe=vVr.pipe;var wVr=yW();et.noop=wVr.noop;var _Vr=Z1();et.identity=_Vr.identity;var xVr=N1t();et.isObservable=xVr.isObservable;var TVr=ST();et.ArgumentOutOfRangeError=TVr.ArgumentOutOfRangeError;var EVr=PT();et.EmptyError=EVr.EmptyError;var CVr=ck();et.ObjectUnsubscribedError=CVr.ObjectUnsubscribedError;var IVr=ese();et.UnsubscriptionError=IVr.UnsubscriptionError;var kVr=Fse();et.TimeoutError=kVr.TimeoutError;var AVr=L1t();et.bindCallback=AVr.bindCallback;var SVr=U1t();et.bindNodeCallback=SVr.bindNodeCallback;var PVr=gW();et.combineLatest=PVr.combineLatest;var RVr=Lk();et.concat=RVr.concat;var MVr=_W();et.defer=MVr.defer;var NVr=Qh();et.empty=NVr.empty;var BVr=igt();et.forkJoin=BVr.forkJoin;var DVr=Xh();et.from=DVr.from;var OVr=cgt();et.fromEvent=OVr.fromEvent;var LVr=lgt();et.fromEventPattern=LVr.fromEventPattern;var FVr=pgt();et.generate=FVr.generate;var qVr=fgt();et.iif=qVr.iif;var WVr=ygt();et.interval=WVr.interval;var UVr=voe();et.merge=UVr.merge;var HVr=woe();et.never=HVr.never;var jVr=wk();et.of=jVr.of;var zVr=ggt();et.onErrorResumeNext=zVr.onErrorResumeNext;var KVr=wgt();et.pairs=KVr.pairs;var GVr=Egt();et.partition=GVr.partition;var VVr=Ioe();et.race=VVr.race;var $Vr=Agt();et.range=$Vr.range;var YVr=pW();et.throwError=YVr.throwError;var JVr=Aoe();et.timer=JVr.timer;var QVr=Rgt();et.using=QVr.using;var ZVr=IW();et.zip=ZVr.zip;var XVr=roe();et.scheduled=XVr.scheduled;var e$r=Qh();et.EMPTY=e$r.EMPTY;var t$r=woe();et.NEVER=t$r.NEVER;var r$r=sk();et.config=r$r.config});var Hk=x((Una,Roe)=>{d();p();function Hgt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;eRW,useContext:()=>MW,useDebugValue:()=>NW,useEffect:()=>zk,useErrorBoundary:()=>Qgt,useId:()=>BW,useImperativeHandle:()=>PW,useLayoutEffect:()=>O2,useMemo:()=>OT,useReducer:()=>jk,useRef:()=>SW,useState:()=>DT});function D2(r,e){at.__h&&at.__h(ei,r,BT||e),BT=0;var t=ei.__H||(ei.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:kW}),t.__[r]}function DT(r){return BT=1,jk(Zgt,r)}function jk(r,e,t){var n=D2(ng++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):Zgt(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,o);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=ei,!ei.u)){var a=function(o,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!i||i.call(this,o,c,u);var h=!1;return l.forEach(function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(h=!0)}}),!(!h&&n.__c.props===o)&&(!i||i.call(this,o,c,u))};ei.u=!0;var i=ei.shouldComponentUpdate,s=ei.componentWillUpdate;ei.componentWillUpdate=function(o,c,u){if(this.__e){var l=i;i=void 0,a(o,c,u),i=l}s&&s.call(this,o,c,u)},ei.shouldComponentUpdate=a}return n.__N||n.__}function zk(r,e){var t=D2(ng++,3);!at.__s&&Boe(t.__H,e)&&(t.__=r,t.i=e,ei.__H.__h.push(t))}function O2(r,e){var t=D2(ng++,4);!at.__s&&Boe(t.__H,e)&&(t.__=r,t.i=e,ei.__h.push(t))}function SW(r){return BT=5,OT(function(){return{current:r}},[])}function PW(r,e,t){BT=6,O2(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function OT(r,e){var t=D2(ng++,7);return Boe(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function RW(r,e){return BT=8,OT(function(){return r},e)}function MW(r){var e=ei.context[r.__c],t=D2(ng++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(ei)),e.props.value):r.__}function NW(r,e){at.useDebugValue&&at.useDebugValue(e?e(r):r)}function Qgt(r){var e=D2(ng++,10),t=DT();return e.__=r,ei.componentDidCatch||(ei.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function BW(){var r=D2(ng++,11);if(!r.__){for(var e=ei.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function n$r(){for(var r;r=Jgt.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(AW),r.__H.__h.forEach(Noe),r.__H.__h=[]}catch(e){r.__H.__h=[],at.__e(e,r.__v)}}function a$r(r){var e,t=function(){clearTimeout(n),Ygt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Ygt&&(e=requestAnimationFrame(t))}function AW(r){var e=ei,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),ei=e}function Noe(r){var e=ei;r.__c=r.__(),ei=e}function Boe(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function Zgt(r,e){return typeof e=="function"?e(r):e}var ng,ei,Moe,jgt,BT,Jgt,kW,zgt,Kgt,Ggt,Vgt,$gt,Ygt,ag=ce(()=>{d();p();Sc();BT=0,Jgt=[],kW=[],zgt=at.__b,Kgt=at.__r,Ggt=at.diffed,Vgt=at.__c,$gt=at.unmount;at.__b=function(r){ei=null,zgt&&zgt(r)},at.__r=function(r){Kgt&&Kgt(r),ng=0;var e=(ei=r.__c).__H;e&&(Moe===ei?(e.__h=[],ei.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=kW,t.__N=t.i=void 0})):(e.__h.forEach(AW),e.__h.forEach(Noe),e.__h=[])),Moe=ei},at.diffed=function(r){Ggt&&Ggt(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(Jgt.push(e)!==1&&jgt===at.requestAnimationFrame||((jgt=at.requestAnimationFrame)||a$r)(n$r)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==kW&&(t.__=t.__V),t.i=void 0,t.__V=kW})),Moe=ei=null},at.__c=function(r,e){e.some(function(t){try{t.__h.forEach(AW),t.__h=t.__h.filter(function(n){return!n.__||Noe(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],at.__e(n,t.__v)}}),Vgt&&Vgt(r,e)},at.unmount=function(r){$gt&&$gt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{AW(n)}catch(a){e=a}}),t.__H=void 0,e&&at.__e(e,t.__v))};Ygt=typeof requestAnimationFrame=="function"});var Xgt=x(DW=>{"use strict";d();p();Object.defineProperty(DW,"__esModule",{value:!0});DW.LIB_VERSION=void 0;DW.LIB_VERSION="3.6.4"});var tbt=x(OW=>{"use strict";d();p();Object.defineProperty(OW,"__esModule",{value:!0});OW.CloseIcon=void 0;var ebt=(Sc(),nt(Ol));function i$r(r){return(0,ebt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,ebt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}OW.CloseIcon=i$r});var rbt=x(Doe=>{"use strict";d();p();Object.defineProperty(Doe,"__esModule",{value:!0});Doe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var nbt=x(Ooe=>{"use strict";d();p();Object.defineProperty(Ooe,"__esModule",{value:!0});Ooe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var abt=x(LW=>{"use strict";d();p();Object.defineProperty(LW,"__esModule",{value:!0});LW.QRCodeIcon=void 0;var Em=(Sc(),nt(Ol));function s$r(r){return(0,Em.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,Em.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,Em.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,Em.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,Em.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,Em.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,Em.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,Em.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,Em.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,Em.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}LW.QRCodeIcon=s$r});var ibt=x(Loe=>{"use strict";d();p();Object.defineProperty(Loe,"__esModule",{value:!0});var o$r=` + `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();$ke.UnsubscriptionError=Hzr});var _o=_(Jke=>{"use strict";d();p();Object.defineProperty(Jke,"__esModule",{value:!0});var jzr=$u(),zzr=D0e(),Kzr=HY(),L0e=Qke(),Gzr=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var o=0;o{"use strict";d();p();Object.defineProperty(Ste,"__esModule",{value:!0});Ste.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();Ste.$$rxSubscriber=Ste.rxSubscriber});var tr=_(zY=>{"use strict";d();p();var S1t=zY&&zY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zY,"__esModule",{value:!0});var P1t=HY(),Zke=Gke(),Vzr=_o(),Yzr=O0e(),jY=Pte(),q0e=B0e(),R1t=function(r){S1t(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=Zke.empty;break;case 1:if(!t){i.destination=Zke.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new Xke(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new Xke(i,t,n,a);break}return i}return e.prototype[Yzr.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(Vzr.Subscription);zY.Subscriber=R1t;var Xke=function(r){S1t(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var o,c=s;return P1t.isFunction(n)?o=n:n&&(o=n.next,a=n.error,i=n.complete,n!==Zke.empty&&(c=Object.create(n),P1t.isFunction(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!jY.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=jY.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):q0e.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;q0e.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!jY.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),jY.config.useDeprecatedSynchronousErrorHandling)throw a;q0e.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!jY.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return jY.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(q0e.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(R1t);zY.SafeSubscriber=Xke});var F0e=_(eAe=>{"use strict";d();p();Object.defineProperty(eAe,"__esModule",{value:!0});var $zr=tr();function Qzr(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof $zr.Subscriber?r=n:r=null}return!0}eAe.canReportError=Qzr});var N1t=_(rAe=>{"use strict";d();p();Object.defineProperty(rAe,"__esModule",{value:!0});var tAe=tr(),M1t=O0e(),Jzr=Gke();function Zzr(r,e,t){if(r){if(r instanceof tAe.Subscriber)return r;if(r[M1t.rxSubscriber])return r[M1t.rxSubscriber]()}return!r&&!e&&!t?new tAe.Subscriber(Jzr.empty):new tAe.Subscriber(r,e,t)}rAe.toSubscriber=Zzr});var iw=_(nAe=>{"use strict";d();p();Object.defineProperty(nAe,"__esModule",{value:!0});nAe.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var e1=_(aAe=>{"use strict";d();p();Object.defineProperty(aAe,"__esModule",{value:!0});function Xzr(r){return r}aAe.identity=Xzr});var U0e=_(W0e=>{"use strict";d();p();Object.defineProperty(W0e,"__esModule",{value:!0});var eKr=e1();function tKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(iAe,"__esModule",{value:!0});var rKr=F0e(),nKr=N1t(),aKr=iw(),iKr=U0e(),H0e=Pte(),sKr=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=nKr.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||H0e.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),H0e.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){H0e.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),rKr.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=D1t(t),new t(function(a,i){var s;s=n.subscribe(function(o){try{e(o)}catch(c){i(c),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[aKr.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(sAe,"__esModule",{value:!0});var oKr=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();sAe.ObjectUnsubscribedError=oKr});var oAe=_(Mte=>{"use strict";d();p();var cKr=Mte&&Mte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mte,"__esModule",{value:!0});var uKr=_o(),lKr=function(r){cKr(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(uKr.Subscription);Mte.SubjectSubscription=lKr});var Au=_(sw=>{"use strict";d();p();var lAe=sw&&sw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sw,"__esModule",{value:!0});var L1t=sn(),dKr=tr(),cAe=_o(),Nte=Rte(),pKr=oAe(),hKr=O0e(),O1t=function(r){lAe(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(dKr.Subscriber);sw.SubjectSubscriber=O1t;var q1t=function(r){lAe(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[hKr.rxSubscriber]=function(){return new O1t(this)},e.prototype.lift=function(t){var n=new uAe(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new Nte.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";d();p();var fKr=Bte&&Bte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bte,"__esModule",{value:!0});var mKr=tr();function yKr(){return function(e){return e.lift(new gKr(e))}}Bte.refCount=yKr;var gKr=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new bKr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),bKr=function(r){fKr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(mKr.Subscriber)});var pAe=_(KY=>{"use strict";d();p();var dAe=KY&&KY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(KY,"__esModule",{value:!0});var vKr=Au(),wKr=sn(),xKr=tr(),F1t=_o(),_Kr=j0e(),W1t=function(r){dAe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new F1t.Subscription,t.add(this.source.subscribe(new TKr(this.getSubject(),this))),t.closed&&(this._connection=null,t=F1t.Subscription.EMPTY)),t},e.prototype.refCount=function(){return _Kr.refCount()(this)},e}(wKr.Observable);KY.ConnectableObservable=W1t;KY.connectableObservableDescriptor=function(){var r=W1t.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var TKr=function(r){dAe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(vKr.SubjectSubscriber),xra=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new IKr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),IKr=function(r){dAe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(xKr.Subscriber)});var fAe=_(GY=>{"use strict";d();p();var z0e=GY&&GY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(GY,"__esModule",{value:!0});var U1t=tr(),H1t=_o(),EKr=sn(),CKr=Au();function kKr(r,e,t,n){return function(a){return a.lift(new AKr(r,e,t,n))}}GY.groupBy=kKr;var AKr=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new PKr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),PKr=function(r){z0e(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.keySelector=n,o.elementSelector=a,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(u){this.error(u)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new CKr.Subject,a.set(n,i);var o=new hAe(n,i,this);if(this.destination.next(o),this.durationSelector){var c=void 0;try{c=this.durationSelector(new hAe(n,i))}catch(u){this.error(u);return}this.add(c.subscribe(new SKr(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(U1t.Subscriber),SKr=function(r){z0e(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(U1t.Subscriber),hAe=function(r){z0e(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new H1t.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new RKr(i)),n.add(s.subscribe(t)),n},e}(EKr.Observable);GY.GroupedObservable=hAe;var RKr=function(r){z0e(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(H1t.Subscription)});var mAe=_(Dte=>{"use strict";d();p();var MKr=Dte&&Dte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Dte,"__esModule",{value:!0});var NKr=Au(),BKr=Rte(),DKr=function(r){MKr(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new BKr.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(NKr.Subject);Dte.BehaviorSubject=DKr});var j1t=_(Lte=>{"use strict";d();p();var LKr=Lte&&Lte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lte,"__esModule",{value:!0});var OKr=_o(),qKr=function(r){LKr(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}(OKr.Subscription);Lte.Action=qKr});var VY=_(Ote=>{"use strict";d();p();var FKr=Ote&&Ote.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ote,"__esModule",{value:!0});var WKr=j1t(),UKr=function(r){FKr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(WKr.Action);Ote.AsyncAction=UKr});var z1t=_(qte=>{"use strict";d();p();var HKr=qte&&qte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qte,"__esModule",{value:!0});var jKr=VY(),zKr=function(r){HKr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(jKr.AsyncAction);qte.QueueAction=zKr});var gAe=_(yAe=>{"use strict";d();p();Object.defineProperty(yAe,"__esModule",{value:!0});var KKr=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();yAe.Scheduler=KKr});var YY=_(Fte=>{"use strict";d();p();var GKr=Fte&&Fte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fte,"__esModule",{value:!0});var K1t=gAe(),VKr=function(r){GKr(e,r);function e(t,n){n===void 0&&(n=K1t.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}(K1t.Scheduler);Fte.AsyncScheduler=VKr});var G1t=_(Wte=>{"use strict";d();p();var YKr=Wte&&Wte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wte,"__esModule",{value:!0});var $Kr=YY(),QKr=function(r){YKr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}($Kr.AsyncScheduler);Wte.QueueScheduler=QKr});var bAe=_(Ute=>{"use strict";d();p();Object.defineProperty(Ute,"__esModule",{value:!0});var JKr=z1t(),ZKr=G1t();Ute.queueScheduler=new ZKr.QueueScheduler(JKr.QueueAction);Ute.queue=Ute.queueScheduler});var $h=_(Hte=>{"use strict";d();p();Object.defineProperty(Hte,"__esModule",{value:!0});var V1t=sn();Hte.EMPTY=new V1t.Observable(function(r){return r.complete()});function XKr(r){return r?eGr(r):Hte.EMPTY}Hte.empty=XKr;function eGr(r){return new V1t.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var Qh=_(vAe=>{"use strict";d();p();Object.defineProperty(vAe,"__esModule",{value:!0});function tGr(r){return r&&typeof r.schedule=="function"}vAe.isScheduler=tGr});var xAe=_(wAe=>{"use strict";d();p();Object.defineProperty(wAe,"__esModule",{value:!0});wAe.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";d();p();Object.defineProperty(_Ae,"__esModule",{value:!0});var rGr=sn(),nGr=_o();function aGr(r,e){return new rGr.Observable(function(t){var n=new nGr.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}_Ae.scheduleArray=aGr});var $Y=_(TAe=>{"use strict";d();p();Object.defineProperty(TAe,"__esModule",{value:!0});var iGr=sn(),sGr=xAe(),oGr=K0e();function cGr(r,e){return e?oGr.scheduleArray(r,e):new iGr.Observable(sGr.subscribeToArray(r))}TAe.fromArray=cGr});var jte=_(IAe=>{"use strict";d();p();Object.defineProperty(IAe,"__esModule",{value:!0});var uGr=Qh(),lGr=$Y(),dGr=K0e();function pGr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(EAe,"__esModule",{value:!0});var Y1t=sn();function hGr(r,e){return e?new Y1t.Observable(function(t){return e.schedule(fGr,0,{error:r,subscriber:t})}):new Y1t.Observable(function(t){return t.error(r)})}EAe.throwError=hGr;function fGr(r){var e=r.error,t=r.subscriber;t.error(e)}});var Kte=_(zte=>{"use strict";d();p();Object.defineProperty(zte,"__esModule",{value:!0});var mGr=$h(),yGr=jte(),gGr=G0e(),bGr;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(bGr=zte.NotificationKind||(zte.NotificationKind={}));var vGr=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return yGr.of(this.value);case"E":return gGr.throwError(this.error);case"C":return mGr.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();zte.Notification=vGr});var kAe=_(t1=>{"use strict";d();p();var wGr=t1&&t1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t1,"__esModule",{value:!0});var xGr=tr(),CAe=Kte();function _Gr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new $1t(r,e))}}t1.observeOn=_Gr;var $1t=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new Q1t(e,this.scheduler,this.delay))},r}();t1.ObserveOnOperator=$1t;var Q1t=function(r){wGr(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new J1t(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(CAe.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(CAe.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(CAe.Notification.createComplete()),this.unsubscribe()},e}(xGr.Subscriber);t1.ObserveOnSubscriber=Q1t;var J1t=function(){function r(e,t){this.notification=e,this.destination=t}return r}();t1.ObserveOnMessage=J1t});var V0e=_(Gte=>{"use strict";d();p();var TGr=Gte&&Gte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gte,"__esModule",{value:!0});var IGr=Au(),EGr=bAe(),CGr=_o(),kGr=kAe(),AGr=Rte(),PGr=oAe(),SGr=function(r){TGr(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new RGr(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,o;if(this.closed)throw new AGr.ObjectUnsubscribedError;if(this.isStopped||this.hasError?o=CGr.Subscription.EMPTY:(this.observers.push(t),o=new PGr.SubjectSubscription(this,t)),i&&t.add(t=new kGr.ObserveOnSubscriber(t,i)),n)for(var c=0;cn&&(o=Math.max(o,s-n)),o>0&&i.splice(0,o),i},e}(IGr.Subject);Gte.ReplaySubject=SGr;var RGr=function(){function r(e,t){this.time=e,this.value=t}return r}()});var Yte=_(Vte=>{"use strict";d();p();var MGr=Vte&&Vte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vte,"__esModule",{value:!0});var NGr=Au(),Z1t=_o(),BGr=function(r){MGr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),Z1t.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),Z1t.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(NGr.Subject);Vte.AsyncSubject=BGr});var ebt=_($0e=>{"use strict";d();p();Object.defineProperty($0e,"__esModule",{value:!0});var DGr=1,LGr=function(){return Promise.resolve()}(),Y0e={};function X1t(r){return r in Y0e?(delete Y0e[r],!0):!1}$0e.Immediate={setImmediate:function(r){var e=DGr++;return Y0e[e]=!0,LGr.then(function(){return X1t(e)&&r()}),e},clearImmediate:function(r){X1t(r)}};$0e.TestTools={pending:function(){return Object.keys(Y0e).length}}});var rbt=_($te=>{"use strict";d();p();var OGr=$te&&$te.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($te,"__esModule",{value:!0});var tbt=ebt(),qGr=VY(),FGr=function(r){OGr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=tbt.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(tbt.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(qGr.AsyncAction);$te.AsapAction=FGr});var nbt=_(Qte=>{"use strict";d();p();var WGr=Qte&&Qte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qte,"__esModule",{value:!0});var UGr=YY(),HGr=function(r){WGr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(Jte,"__esModule",{value:!0});var jGr=rbt(),zGr=nbt();Jte.asapScheduler=new zGr.AsapScheduler(jGr.AsapAction);Jte.asap=Jte.asapScheduler});var Qu=_(Zte=>{"use strict";d();p();Object.defineProperty(Zte,"__esModule",{value:!0});var KGr=VY(),GGr=YY();Zte.asyncScheduler=new GGr.AsyncScheduler(KGr.AsyncAction);Zte.async=Zte.asyncScheduler});var abt=_(Xte=>{"use strict";d();p();var VGr=Xte&&Xte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xte,"__esModule",{value:!0});var YGr=VY(),$Gr=function(r){VGr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(YGr.AsyncAction);Xte.AnimationFrameAction=$Gr});var ibt=_(ere=>{"use strict";d();p();var QGr=ere&&ere.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ere,"__esModule",{value:!0});var JGr=YY(),ZGr=function(r){QGr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(tre,"__esModule",{value:!0});var XGr=abt(),eVr=ibt();tre.animationFrameScheduler=new eVr.AnimationFrameScheduler(XGr.AnimationFrameAction);tre.animationFrame=tre.animationFrameScheduler});var ubt=_(QY=>{"use strict";d();p();var obt=QY&&QY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(QY,"__esModule",{value:!0});var tVr=VY(),rVr=YY(),nVr=function(r){obt(e,r);function e(t,n){t===void 0&&(t=cbt),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(rVr.AsyncScheduler);QY.VirtualTimeScheduler=nVr;var cbt=function(r){obt(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(tVr.AsyncAction);QY.VirtualAction=cbt});var Q0e=_(PAe=>{"use strict";d();p();Object.defineProperty(PAe,"__esModule",{value:!0});function aVr(){}PAe.noop=aVr});var lbt=_(SAe=>{"use strict";d();p();Object.defineProperty(SAe,"__esModule",{value:!0});var iVr=sn();function sVr(r){return!!r&&(r instanceof iVr.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}SAe.isObservable=sVr});var JY=_(RAe=>{"use strict";d();p();Object.defineProperty(RAe,"__esModule",{value:!0});var oVr=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();RAe.ArgumentOutOfRangeError=oVr});var ZY=_(MAe=>{"use strict";d();p();Object.defineProperty(MAe,"__esModule",{value:!0});var cVr=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();MAe.EmptyError=cVr});var BAe=_(NAe=>{"use strict";d();p();Object.defineProperty(NAe,"__esModule",{value:!0});var uVr=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();NAe.TimeoutError=uVr});var hd=_(XY=>{"use strict";d();p();var lVr=XY&&XY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(XY,"__esModule",{value:!0});var dVr=tr();function pVr(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new dbt(r,e))}}XY.map=pVr;var dbt=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new hVr(e,this.project,this.thisArg))},r}();XY.MapOperator=dbt;var hVr=function(r){lVr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(dVr.Subscriber)});var fbt=_(DAe=>{"use strict";d();p();Object.defineProperty(DAe,"__esModule",{value:!0});var fVr=sn(),pbt=Yte(),mVr=hd(),yVr=F0e(),gVr=$u(),bVr=Qh();function hbt(r,e,t){if(e)if(bVr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();Object.defineProperty(LAe,"__esModule",{value:!0});var xVr=sn(),ybt=Yte(),_Vr=hd(),TVr=F0e(),IVr=Qh(),EVr=$u();function gbt(r,e,t){if(e)if(IVr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();var AVr=rre&&rre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rre,"__esModule",{value:!0});var PVr=tr(),SVr=function(r){AVr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(PVr.Subscriber);rre.OuterSubscriber=SVr});var vbt=_(nre=>{"use strict";d();p();var RVr=nre&&nre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nre,"__esModule",{value:!0});var MVr=tr(),NVr=function(r){RVr(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(MVr.Subscriber);nre.InnerSubscriber=NVr});var wbt=_(OAe=>{"use strict";d();p();Object.defineProperty(OAe,"__esModule",{value:!0});var BVr=B0e();OAe.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,BVr.hostReportError),e}}});var t$=_(e$=>{"use strict";d();p();Object.defineProperty(e$,"__esModule",{value:!0});function xbt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}e$.getSymbolIterator=xbt;e$.iterator=xbt();e$.$$iterator=e$.iterator});var _bt=_(qAe=>{"use strict";d();p();Object.defineProperty(qAe,"__esModule",{value:!0});var DVr=t$();qAe.subscribeToIterable=function(r){return function(e){var t=r[DVr.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var Tbt=_(FAe=>{"use strict";d();p();Object.defineProperty(FAe,"__esModule",{value:!0});var LVr=iw();FAe.subscribeToObservable=function(r){return function(e){var t=r[LVr.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var UAe=_(WAe=>{"use strict";d();p();Object.defineProperty(WAe,"__esModule",{value:!0});WAe.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var jAe=_(HAe=>{"use strict";d();p();Object.defineProperty(HAe,"__esModule",{value:!0});function OVr(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}HAe.isPromise=OVr});var are=_(zAe=>{"use strict";d();p();Object.defineProperty(zAe,"__esModule",{value:!0});var qVr=xAe(),FVr=wbt(),WVr=_bt(),UVr=Tbt(),HVr=UAe(),jVr=jAe(),zVr=D0e(),KVr=t$(),GVr=iw();zAe.subscribeTo=function(r){if(!!r&&typeof r[GVr.observable]=="function")return UVr.subscribeToObservable(r);if(HVr.isArrayLike(r))return qVr.subscribeToArray(r);if(jVr.isPromise(r))return FVr.subscribeToPromise(r);if(!!r&&typeof r[KVr.iterator]=="function")return WVr.subscribeToIterable(r);var e=zVr.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var n1=_(KAe=>{"use strict";d();p();Object.defineProperty(KAe,"__esModule",{value:!0});var VVr=vbt(),YVr=are(),$Vr=sn();function QVr(r,e,t,n,a){if(a===void 0&&(a=new VVr.InnerSubscriber(r,t,n)),!a.closed)return e instanceof $Vr.Observable?e.subscribe(a):YVr.subscribeTo(e)(a)}KAe.subscribeToResult=QVr});var J0e=_(ow=>{"use strict";d();p();var JVr=ow&&ow.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ow,"__esModule",{value:!0});var ZVr=Qh(),XVr=$u(),eYr=r1(),tYr=n1(),rYr=$Y(),Ibt={};function nYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(GAe,"__esModule",{value:!0});var aYr=sn(),iYr=_o(),sYr=iw();function oYr(r,e){return new aYr.Observable(function(t){var n=new iYr.Subscription;return n.add(e.schedule(function(){var a=r[sYr.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}GAe.scheduleObservable=oYr});var Abt=_(VAe=>{"use strict";d();p();Object.defineProperty(VAe,"__esModule",{value:!0});var cYr=sn(),uYr=_o();function lYr(r,e){return new cYr.Observable(function(t){var n=new uYr.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}VAe.schedulePromise=lYr});var Pbt=_(YAe=>{"use strict";d();p();Object.defineProperty(YAe,"__esModule",{value:!0});var dYr=sn(),pYr=_o(),hYr=t$();function fYr(r,e){if(!r)throw new Error("Iterable cannot be null");return new dYr.Observable(function(t){var n=new pYr.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[hYr.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var o=a.next();i=o.value,s=o.done}catch(c){t.error(c);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}YAe.scheduleIterable=fYr});var Sbt=_($Ae=>{"use strict";d();p();Object.defineProperty($Ae,"__esModule",{value:!0});var mYr=iw();function yYr(r){return r&&typeof r[mYr.observable]=="function"}$Ae.isInteropObservable=yYr});var Rbt=_(QAe=>{"use strict";d();p();Object.defineProperty(QAe,"__esModule",{value:!0});var gYr=t$();function bYr(r){return r&&typeof r[gYr.iterator]=="function"}QAe.isIterable=bYr});var ZAe=_(JAe=>{"use strict";d();p();Object.defineProperty(JAe,"__esModule",{value:!0});var vYr=kbt(),wYr=Abt(),xYr=K0e(),_Yr=Pbt(),TYr=Sbt(),IYr=jAe(),EYr=UAe(),CYr=Rbt();function kYr(r,e){if(r!=null){if(TYr.isInteropObservable(r))return vYr.scheduleObservable(r,e);if(IYr.isPromise(r))return wYr.schedulePromise(r,e);if(EYr.isArrayLike(r))return xYr.scheduleArray(r,e);if(CYr.isIterable(r)||typeof r=="string")return _Yr.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}JAe.scheduled=kYr});var Jh=_(XAe=>{"use strict";d();p();Object.defineProperty(XAe,"__esModule",{value:!0});var Mbt=sn(),AYr=are(),PYr=ZAe();function SYr(r,e){return e?PYr.scheduled(r,e):r instanceof Mbt.Observable?r:new Mbt.Observable(AYr.subscribeTo(r))}XAe.from=SYr});var Ji=_(J0=>{"use strict";d();p();var Z0e=J0&&J0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J0,"__esModule",{value:!0});var X0e=tr(),RYr=sn(),MYr=are(),NYr=function(r){Z0e(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(X0e.Subscriber);J0.SimpleInnerSubscriber=NYr;var BYr=function(r){Z0e(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(X0e.Subscriber);J0.ComplexInnerSubscriber=BYr;var DYr=function(r){Z0e(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(X0e.Subscriber);J0.SimpleOuterSubscriber=DYr;var LYr=function(r){Z0e(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(X0e.Subscriber);J0.ComplexOuterSubscriber=LYr;function OYr(r,e){if(!e.closed){if(r instanceof RYr.Observable)return r.subscribe(e);var t;try{t=MYr.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}J0.innerSubscribe=OYr});var ire=_(a1=>{"use strict";d();p();var qYr=a1&&a1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a1,"__esModule",{value:!0});var FYr=hd(),WYr=Jh(),ePe=Ji();function tPe(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(tPe(function(a,i){return WYr.from(r(a,i)).pipe(FYr.map(function(s,o){return e(a,s,i,o)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new Nbt(r,t))})}a1.mergeMap=tPe;var Nbt=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new Bbt(e,this.project,this.concurrent))},r}();a1.MergeMapOperator=Nbt;var Bbt=function(r){qYr(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(ePe.SimpleOuterSubscriber);a1.MergeMapSubscriber=Bbt;a1.flatMap=tPe});var eye=_(rPe=>{"use strict";d();p();Object.defineProperty(rPe,"__esModule",{value:!0});var UYr=ire(),HYr=e1();function jYr(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),UYr.mergeMap(HYr.identity,r)}rPe.mergeAll=jYr});var aPe=_(nPe=>{"use strict";d();p();Object.defineProperty(nPe,"__esModule",{value:!0});var zYr=eye();function KYr(){return zYr.mergeAll(1)}nPe.concatAll=KYr});var sre=_(iPe=>{"use strict";d();p();Object.defineProperty(iPe,"__esModule",{value:!0});var GYr=jte(),VYr=aPe();function YYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(sPe,"__esModule",{value:!0});var $Yr=sn(),QYr=Jh(),JYr=$h();function ZYr(r){return new $Yr.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?QYr.from(t):JYr.empty();return n.subscribe(e)})}sPe.defer=ZYr});var Lbt=_(oPe=>{"use strict";d();p();Object.defineProperty(oPe,"__esModule",{value:!0});var XYr=sn(),Dbt=$u(),e$r=hd(),t$r=D0e(),r$r=Jh();function n$r(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(cPe,"__esModule",{value:!0});var a$r=sn(),i$r=$u(),s$r=HY(),o$r=hd(),$ia=function(){return Object.prototype.toString}();function Obt(r,e,t,n){return s$r.isFunction(t)&&(n=t,t=void 0),n?Obt(r,e,t).pipe(o$r.map(function(a){return i$r.isArray(a)?n.apply(void 0,a):n(a)})):new a$r.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}qbt(r,e,i,a,t)})}cPe.fromEvent=Obt;function qbt(r,e,t,n,a){var i;if(l$r(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(u$r(r)){var o=r;r.on(e,t),i=function(){return o.off(e,t)}}else if(c$r(r)){var c=r;r.addListener(e,t),i=function(){return c.removeListener(e,t)}}else if(r&&r.length)for(var u=0,l=r.length;u{"use strict";d();p();Object.defineProperty(uPe,"__esModule",{value:!0});var d$r=sn(),p$r=$u(),h$r=HY(),f$r=hd();function Wbt(r,e,t){return t?Wbt(r,e).pipe(f$r.map(function(n){return p$r.isArray(n)?t.apply(void 0,n):t(n)})):new d$r.Observable(function(n){var a=function(){for(var s=[],o=0;o{"use strict";d();p();Object.defineProperty(lPe,"__esModule",{value:!0});var m$r=sn(),Hbt=e1(),y$r=Qh();function g$r(r,e,t,n,a){var i,s;if(arguments.length==1){var o=r;s=o.initialState,e=o.condition,t=o.iterate,i=o.resultSelector||Hbt.identity,a=o.scheduler}else n===void 0||y$r.isScheduler(n)?(s=r,i=Hbt.identity,a=n):(s=r,i=n);return new m$r.Observable(function(c){var u=s;if(a)return a.schedule(b$r,0,{subscriber:c,iterate:t,condition:e,resultSelector:i,state:u});do{if(e){var l=void 0;try{l=e(u)}catch(f){c.error(f);return}if(!l){c.complete();break}}var h=void 0;try{h=i(u)}catch(f){c.error(f);return}if(c.next(h),c.closed)break;try{u=t(u)}catch(f){c.error(f);return}}while(!0)})}lPe.generate=g$r;function b$r(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var Kbt=_(dPe=>{"use strict";d();p();Object.defineProperty(dPe,"__esModule",{value:!0});var v$r=tye(),zbt=$h();function w$r(r,e,t){return e===void 0&&(e=zbt.EMPTY),t===void 0&&(t=zbt.EMPTY),v$r.defer(function(){return r()?e:t})}dPe.iif=w$r});var ore=_(pPe=>{"use strict";d();p();Object.defineProperty(pPe,"__esModule",{value:!0});var x$r=$u();function _$r(r){return!x$r.isArray(r)&&r-parseFloat(r)+1>=0}pPe.isNumeric=_$r});var Vbt=_(hPe=>{"use strict";d();p();Object.defineProperty(hPe,"__esModule",{value:!0});var T$r=sn(),Gbt=Qu(),I$r=ore();function E$r(r,e){return r===void 0&&(r=0),e===void 0&&(e=Gbt.async),(!I$r.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=Gbt.async),new T$r.Observable(function(t){return t.add(e.schedule(C$r,r,{subscriber:t,counter:0,period:r})),t})}hPe.interval=E$r;function C$r(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var mPe=_(fPe=>{"use strict";d();p();Object.defineProperty(fPe,"__esModule",{value:!0});var k$r=sn(),A$r=Qh(),P$r=eye(),S$r=$Y();function R$r(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof k$r.Observable?r[0]:P$r.mergeAll(t)(S$r.fromArray(r,n))}fPe.merge=R$r});var yPe=_(cre=>{"use strict";d();p();Object.defineProperty(cre,"__esModule",{value:!0});var M$r=sn(),N$r=Q0e();cre.NEVER=new M$r.Observable(N$r.noop);function B$r(){return cre.NEVER}cre.never=B$r});var Ybt=_(bPe=>{"use strict";d();p();Object.defineProperty(bPe,"__esModule",{value:!0});var D$r=sn(),L$r=Jh(),O$r=$u(),q$r=$h();function gPe(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(nye,"__esModule",{value:!0});var $bt=sn(),F$r=_o();function W$r(r,e){return e?new $bt.Observable(function(t){var n=Object.keys(r),a=new F$r.Subscription;return a.add(e.schedule(Qbt,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new $bt.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";d();p();Object.defineProperty(vPe,"__esModule",{value:!0});function U$r(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}vPe.not=U$r});var cw=_(ure=>{"use strict";d();p();var H$r=ure&&ure.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ure,"__esModule",{value:!0});var j$r=tr();function z$r(r,e){return function(n){return n.lift(new K$r(r,e))}}ure.filter=z$r;var K$r=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new G$r(e,this.predicate,this.thisArg))},r}(),G$r=function(r){H$r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(j$r.Subscriber)});var tvt=_(xPe=>{"use strict";d();p();Object.defineProperty(xPe,"__esModule",{value:!0});var V$r=wPe(),Zbt=are(),Xbt=cw(),evt=sn();function Y$r(r,e,t){return[Xbt.filter(e,t)(new evt.Observable(Zbt.subscribeTo(r))),Xbt.filter(V$r.not(e,t))(new evt.Observable(Zbt.subscribeTo(r)))]}xPe.partition=Y$r});var _Pe=_(uw=>{"use strict";d();p();var $$r=uw&&uw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uw,"__esModule",{value:!0});var Q$r=$u(),J$r=$Y(),Z$r=r1(),X$r=n1();function eQr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(aye,"__esModule",{value:!0});var tQr=sn();function rQr(r,e,t){return r===void 0&&(r=0),new tQr.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(avt,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}aye.range=rQr;function avt(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}aye.dispatch=avt});var IPe=_(TPe=>{"use strict";d();p();Object.defineProperty(TPe,"__esModule",{value:!0});var nQr=sn(),aQr=Qu(),svt=ore(),ovt=Qh();function iQr(r,e,t){r===void 0&&(r=0);var n=-1;return svt.isNumeric(e)?n=Number(e)<1&&1||Number(e):ovt.isScheduler(e)&&(t=e),ovt.isScheduler(t)||(t=aQr.async),new nQr.Observable(function(a){var i=svt.isNumeric(r)?r:+r-t.now();return t.schedule(sQr,i,{index:0,period:n,subscriber:a})})}TPe.timer=iQr;function sQr(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var cvt=_(EPe=>{"use strict";d();p();Object.defineProperty(EPe,"__esModule",{value:!0});var oQr=sn(),cQr=Jh(),uQr=$h();function lQr(r,e){return new oQr.Observable(function(t){var n;try{n=r()}catch(o){t.error(o);return}var a;try{a=e(n)}catch(o){t.error(o);return}var i=a?cQr.from(a):uQr.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}EPe.using=lQr});var sye=_(lw=>{"use strict";d();p();var uvt=lw&&lw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lw,"__esModule",{value:!0});var dQr=$Y(),pQr=$u(),hQr=tr(),iye=t$(),CPe=Ji();function fQr(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),gQr=function(r){uvt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[iye.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return CPe.innerSubscribe(this.observable,new CPe.SimpleInnerSubscriber(this))},e}(CPe.SimpleOuterSubscriber)});var lre=_(et=>{"use strict";d();p();Object.defineProperty(et,"__esModule",{value:!0});var bQr=sn();et.Observable=bQr.Observable;var vQr=pAe();et.ConnectableObservable=vQr.ConnectableObservable;var wQr=fAe();et.GroupedObservable=wQr.GroupedObservable;var xQr=iw();et.observable=xQr.observable;var _Qr=Au();et.Subject=_Qr.Subject;var TQr=mAe();et.BehaviorSubject=TQr.BehaviorSubject;var IQr=V0e();et.ReplaySubject=IQr.ReplaySubject;var EQr=Yte();et.AsyncSubject=EQr.AsyncSubject;var pvt=AAe();et.asap=pvt.asap;et.asapScheduler=pvt.asapScheduler;var hvt=Qu();et.async=hvt.async;et.asyncScheduler=hvt.asyncScheduler;var fvt=bAe();et.queue=fvt.queue;et.queueScheduler=fvt.queueScheduler;var mvt=sbt();et.animationFrame=mvt.animationFrame;et.animationFrameScheduler=mvt.animationFrameScheduler;var yvt=ubt();et.VirtualTimeScheduler=yvt.VirtualTimeScheduler;et.VirtualAction=yvt.VirtualAction;var CQr=gAe();et.Scheduler=CQr.Scheduler;var kQr=_o();et.Subscription=kQr.Subscription;var AQr=tr();et.Subscriber=AQr.Subscriber;var gvt=Kte();et.Notification=gvt.Notification;et.NotificationKind=gvt.NotificationKind;var PQr=U0e();et.pipe=PQr.pipe;var SQr=Q0e();et.noop=SQr.noop;var RQr=e1();et.identity=RQr.identity;var MQr=lbt();et.isObservable=MQr.isObservable;var NQr=JY();et.ArgumentOutOfRangeError=NQr.ArgumentOutOfRangeError;var BQr=ZY();et.EmptyError=BQr.EmptyError;var DQr=Rte();et.ObjectUnsubscribedError=DQr.ObjectUnsubscribedError;var LQr=Qke();et.UnsubscriptionError=LQr.UnsubscriptionError;var OQr=BAe();et.TimeoutError=OQr.TimeoutError;var qQr=fbt();et.bindCallback=qQr.bindCallback;var FQr=bbt();et.bindNodeCallback=FQr.bindNodeCallback;var WQr=J0e();et.combineLatest=WQr.combineLatest;var UQr=sre();et.concat=UQr.concat;var HQr=tye();et.defer=HQr.defer;var jQr=$h();et.empty=jQr.empty;var zQr=Lbt();et.forkJoin=zQr.forkJoin;var KQr=Jh();et.from=KQr.from;var GQr=Fbt();et.fromEvent=GQr.fromEvent;var VQr=Ubt();et.fromEventPattern=VQr.fromEventPattern;var YQr=jbt();et.generate=YQr.generate;var $Qr=Kbt();et.iif=$Qr.iif;var QQr=Vbt();et.interval=QQr.interval;var JQr=mPe();et.merge=JQr.merge;var ZQr=yPe();et.never=ZQr.never;var XQr=jte();et.of=XQr.of;var eJr=Ybt();et.onErrorResumeNext=eJr.onErrorResumeNext;var tJr=Jbt();et.pairs=tJr.pairs;var rJr=tvt();et.partition=rJr.partition;var nJr=_Pe();et.race=nJr.race;var aJr=ivt();et.range=aJr.range;var iJr=G0e();et.throwError=iJr.throwError;var sJr=IPe();et.timer=sJr.timer;var oJr=cvt();et.using=oJr.using;var cJr=sye();et.zip=cJr.zip;var uJr=ZAe();et.scheduled=uJr.scheduled;var lJr=$h();et.EMPTY=lJr.EMPTY;var dJr=yPe();et.NEVER=dJr.NEVER;var pJr=Pte();et.config=pJr.config});var dre=_((Xsa,kPe)=>{d();p();function vvt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;edye,useContext:()=>pye,useDebugValue:()=>hye,useEffect:()=>hre,useErrorBoundary:()=>Avt,useId:()=>fye,useImperativeHandle:()=>lye,useLayoutEffect:()=>pw,useMemo:()=>a$,useReducer:()=>pre,useRef:()=>uye,useState:()=>n$});function dw(r,e){at.__h&&at.__h(Qa,r,r$||e),r$=0;var t=Qa.__H||(Qa.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:oye}),t.__[r]}function n$(r){return r$=1,pre(Pvt,r)}function pre(r,e,t){var n=dw(i1++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):Pvt(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,o);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=Qa,!Qa.u)){var a=function(o,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!i||i.call(this,o,c,u);var h=!1;return l.forEach(function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(h=!0)}}),!(!h&&n.__c.props===o)&&(!i||i.call(this,o,c,u))};Qa.u=!0;var i=Qa.shouldComponentUpdate,s=Qa.componentWillUpdate;Qa.componentWillUpdate=function(o,c,u){if(this.__e){var l=i;i=void 0,a(o,c,u),i=l}s&&s.call(this,o,c,u)},Qa.shouldComponentUpdate=a}return n.__N||n.__}function hre(r,e){var t=dw(i1++,3);!at.__s&&SPe(t.__H,e)&&(t.__=r,t.i=e,Qa.__H.__h.push(t))}function pw(r,e){var t=dw(i1++,4);!at.__s&&SPe(t.__H,e)&&(t.__=r,t.i=e,Qa.__h.push(t))}function uye(r){return r$=5,a$(function(){return{current:r}},[])}function lye(r,e,t){r$=6,pw(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function a$(r,e){var t=dw(i1++,7);return SPe(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function dye(r,e){return r$=8,a$(function(){return r},e)}function pye(r){var e=Qa.context[r.__c],t=dw(i1++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(Qa)),e.props.value):r.__}function hye(r,e){at.useDebugValue&&at.useDebugValue(e?e(r):r)}function Avt(r){var e=dw(i1++,10),t=n$();return e.__=r,Qa.componentDidCatch||(Qa.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function fye(){var r=dw(i1++,11);if(!r.__){for(var e=Qa.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function hJr(){for(var r;r=kvt.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(cye),r.__H.__h.forEach(PPe),r.__H.__h=[]}catch(e){r.__H.__h=[],at.__e(e,r.__v)}}function fJr(r){var e,t=function(){clearTimeout(n),Cvt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Cvt&&(e=requestAnimationFrame(t))}function cye(r){var e=Qa,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),Qa=e}function PPe(r){var e=Qa;r.__c=r.__(),Qa=e}function SPe(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function Pvt(r,e){return typeof e=="function"?e(r):e}var i1,Qa,APe,wvt,r$,kvt,oye,xvt,_vt,Tvt,Ivt,Evt,Cvt,s1=ce(()=>{d();p();Pc();r$=0,kvt=[],oye=[],xvt=at.__b,_vt=at.__r,Tvt=at.diffed,Ivt=at.__c,Evt=at.unmount;at.__b=function(r){Qa=null,xvt&&xvt(r)},at.__r=function(r){_vt&&_vt(r),i1=0;var e=(Qa=r.__c).__H;e&&(APe===Qa?(e.__h=[],Qa.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=oye,t.__N=t.i=void 0})):(e.__h.forEach(cye),e.__h.forEach(PPe),e.__h=[])),APe=Qa},at.diffed=function(r){Tvt&&Tvt(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(kvt.push(e)!==1&&wvt===at.requestAnimationFrame||((wvt=at.requestAnimationFrame)||fJr)(hJr)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==oye&&(t.__=t.__V),t.i=void 0,t.__V=oye})),APe=Qa=null},at.__c=function(r,e){e.some(function(t){try{t.__h.forEach(cye),t.__h=t.__h.filter(function(n){return!n.__||PPe(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],at.__e(n,t.__v)}}),Ivt&&Ivt(r,e)},at.unmount=function(r){Evt&&Evt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{cye(n)}catch(a){e=a}}),t.__H=void 0,e&&at.__e(e,t.__v))};Cvt=typeof requestAnimationFrame=="function"});var Svt=_(mye=>{"use strict";d();p();Object.defineProperty(mye,"__esModule",{value:!0});mye.LIB_VERSION=void 0;mye.LIB_VERSION="3.6.4"});var Mvt=_(yye=>{"use strict";d();p();Object.defineProperty(yye,"__esModule",{value:!0});yye.CloseIcon=void 0;var Rvt=(Pc(),nt(Dl));function mJr(r){return(0,Rvt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,Rvt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}yye.CloseIcon=mJr});var Nvt=_(RPe=>{"use strict";d();p();Object.defineProperty(RPe,"__esModule",{value:!0});RPe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var Bvt=_(MPe=>{"use strict";d();p();Object.defineProperty(MPe,"__esModule",{value:!0});MPe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var Dvt=_(gye=>{"use strict";d();p();Object.defineProperty(gye,"__esModule",{value:!0});gye.QRCodeIcon=void 0;var _m=(Pc(),nt(Dl));function yJr(r){return(0,_m.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,_m.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,_m.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,_m.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,_m.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,_m.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,_m.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,_m.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,_m.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,_m.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}gye.QRCodeIcon=yJr});var Lvt=_(NPe=>{"use strict";d();p();Object.defineProperty(NPe,"__esModule",{value:!0});var gJr=` -`;Loe.default=o$r});var sbt=x(Foe=>{"use strict";d();p();Object.defineProperty(Foe,"__esModule",{value:!0});Foe.default=` +`;NPe.default=gJr});var Ovt=_(BPe=>{"use strict";d();p();Object.defineProperty(BPe,"__esModule",{value:!0});BPe.default=` -`});var cbt=x(FW=>{"use strict";d();p();Object.defineProperty(FW,"__esModule",{value:!0});FW.StatusDotIcon=void 0;var obt=(Sc(),nt(Ol));function c$r(r){return(0,obt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,obt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}FW.StatusDotIcon=c$r});var hbt=x((gaa,pbt)=>{d();p();function ubt(r){this.mode=yd.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}ubt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=Im.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=rs.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=rs.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var o=0;o<2;o++)if(this.modules[n][s-o]==null){var c=!1;i>>a&1)==1);var u=rs.getMask(e,n,s-o);u&&(c=!c),this.modules[n][s-o]=c,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};Im.PAD0=236;Im.PAD1=17;Im.createData=function(r,e,t){for(var n=Cm.getRSBlocks(r,e),a=new lbt,i=0;io*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+o*8+")");for(a.getLengthInBits()+4<=o*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=o*8||(a.put(Im.PAD0,8),a.getLengthInBits()>=o*8));)a.put(Im.PAD1,8);return Im.createBytes(a,n)};Im.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),o=0;o=0?m.get(y):0}}for(var E=0,l=0;l=0;)e^=rs.G15<=0;)e^=rs.G18<>>=1;return e},getPatternPosition:function(r){return rs.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case ig.PATTERN000:return(e+t)%2==0;case ig.PATTERN001:return e%2==0;case ig.PATTERN010:return t%3==0;case ig.PATTERN011:return(e+t)%3==0;case ig.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case ig.PATTERN101:return e*t%2+e*t%3==0;case ig.PATTERN110:return(e*t%2+e*t%3)%2==0;case ig.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new FT([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return rc.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(to=0;to<8;to++)rc.EXP_TABLE[to]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var qoe=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function dbt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function n(u){switch(u){case"L":return sg.L;case"M":return sg.M;case"Q":return sg.Q;case"H":return sg.H;default:throw new Error("Unknwon error correction level: "+u)}}function a(u,l){for(var h=i(u),f=1,m=0,y=0,E=qoe.length;y<=E;y++){var I=qoe[y];if(!I)throw new Error("Content too long: expected "+m+" but got "+h);switch(l){case"L":m=I[0];break;case"M":m=I[1];break;case"Q":m=I[2];break;case"H":m=I[3];break;default:throw new Error("Unknwon error correction level: "+l)}if(h<=m)break;f++}if(f>qoe.length)throw new Error("Content too long");return f}function i(u){var l=encodeURI(u).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return l.length+(l.length!=u?3:0)}var s=this.options.content,o=a(s,this.options.ecl),c=n(this.options.ecl);this.qrcode=new Im(o,c),this.qrcode.addData(s),this.qrcode.make()}dbt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r -`:"",s=e.width,o=e.height,c=t.length,u=s/(c+2*e.padding),l=o/(c+2*e.padding),h=typeof e.join<"u"?!!e.join:!1,f=typeof e.swap<"u"?!!e.swap:!1,m=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,y=typeof e.predefined<"u"?!!e.predefined:!1,E=y?a+''+i:"",I=a+''+i,S="",L="",q=0;q'+i:S+=a+''+i}}h&&(S=a+'');let T="";if(this.options.image!==void 0&&this.options.image.svg){let A=s*this.options.image.width/100,v=o*this.options.image.height/100,k=s/2-A/2,O=o/2-v/2;T+=``,T+=this.options.image.svg+i,T+=""}var P="";switch(r.container){case"svg":m&&(P+=''+i),P+=''+i,P+=E+I+S,P+=T,P+="";break;case"svg-viewbox":m&&(P+=''+i),P+=''+i,P+=E+I+S,P+=T,P+="";break;case"g":P+=''+i,P+=E+I+S,P+=T,P+="";break;default:P+=(E+I+S+T).replace(/^\s+/,"");break}return P};pbt.exports=dbt});var mbt=x(qT=>{"use strict";d();p();var u$r=qT&&qT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qT,"__esModule",{value:!0});qT.QRCode=void 0;var l$r=(Sc(),nt(Ol)),fbt=(ag(),nt(LT)),d$r=u$r(hbt()),p$r=r=>{let[e,t]=(0,fbt.useState)("");return(0,fbt.useEffect)(()=>{var n,a;let i=new d$r.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=b.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,l$r.h)("img",{src:e,alt:"QR Code"}):null};qT.QRCode=p$r});var ybt=x(Woe=>{"use strict";d();p();Object.defineProperty(Woe,"__esModule",{value:!0});Woe.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"});var gbt=x(WT=>{"use strict";d();p();var h$r=WT&&WT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(WT,"__esModule",{value:!0});WT.Spinner=void 0;var qW=(Sc(),nt(Ol)),f$r=h$r(ybt()),m$r=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,qW.h)("div",{class:"-cbwsdk-spinner"},(0,qW.h)("style",null,f$r.default),(0,qW.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,qW.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};WT.Spinner=m$r});var bbt=x(Uoe=>{"use strict";d();p();Object.defineProperty(Uoe,"__esModule",{value:!0});Uoe.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"});var Cbt=x(Lp=>{"use strict";d();p();var UT=Lp&&Lp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.CoinbaseAppSteps=Lp.CoinbaseWalletSteps=Lp.ConnectItem=Lp.ConnectContent=void 0;var Op=UT(Hk()),rr=(Sc(),nt(Ol)),vbt=(ag(),nt(LT)),y$r=Q0(),g$r=Xgt(),b$r=tbt(),v$r=UT(rbt()),w$r=UT(nbt()),_bt=abt(),_$r=UT(ibt()),x$r=UT(sbt()),T$r=cbt(),E$r=mbt(),C$r=gbt(),I$r=UT(bbt()),wbt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:w$r.default,steps:Tbt},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:v$r.default,steps:Ebt}},k$r=r=>{switch(r){case"coinbase-app":return _$r.default;case"coinbase-wallet-app":default:return x$r.default}},Hoe=r=>r==="light"?"#FFFFFF":"#0A0B0D";function A$r(r){let{theme:e}=r,[t,n]=(0,vbt.useState)("coinbase-wallet-app"),a=(0,vbt.useCallback)(u=>{n(u)},[]),i=(0,y$r.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=wbt[t];if(!t)return null;let o=s.steps,c=t==="coinbase-app";return(0,rr.h)("div",{"data-testid":"connect-content",class:(0,Op.default)("-cbwsdk-connect-content",e)},(0,rr.h)("style",null,I$r.default),(0,rr.h)("div",{class:"-cbwsdk-connect-content-header"},(0,rr.h)("h2",{class:(0,Op.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,rr.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,rr.h)(b$r.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,rr.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,rr.h)("div",null,Object.entries(wbt).map(([u,l])=>(0,rr.h)(xbt,{key:u,title:l.title,description:l.description,icon:l.icon,selected:t===u,onClick:()=>a(u),theme:e}))),c&&(0,rr.h)("div",{class:(0,Op.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,rr.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,rr.h)(E$r.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:k$r(t),width:25,height:25}}),(0,rr.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:g$r.LIB_VERSION}),(0,rr.h)("input",{type:"hidden",value:i})),(0,rr.h)(o,{theme:e}),!r.isConnected&&(0,rr.h)("div",{"data-testid":"connecting-spinner",class:(0,Op.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,rr.h)(C$r.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,rr.h)("p",null,"Connecting...")))))}Lp.ConnectContent=A$r;function xbt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,rr.h)("div",{onClick:i,class:(0,Op.default)("-cbwsdk-connect-item",a,{selected:n})},(0,rr.h)("div",null,(0,rr.h)("img",{src:t,alt:r})),(0,rr.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,rr.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,rr.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Lp.ConnectItem=xbt;function Tbt({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Op.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,rr.h)("li",{class:(0,Op.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"Scan")," "),(0,rr.h)("span",{class:(0,Op.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(_bt.QRCodeIcon,{fill:Hoe(r)})))))}Lp.CoinbaseWalletSteps=Tbt;function Ebt({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Op.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,rr.h)("li",{class:(0,Op.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"More")),(0,rr.h)("span",{class:(0,Op.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(T$r.StatusDotIcon,{fill:Hoe(r)})),(0,rr.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,rr.h)("strong",null,"Scan")),(0,rr.h)("span",{class:(0,Op.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(_bt.QRCodeIcon,{fill:Hoe(r)})))))}Lp.CoinbaseAppSteps=Ebt});var kbt=x(WW=>{"use strict";d();p();Object.defineProperty(WW,"__esModule",{value:!0});WW.ArrowLeftIcon=void 0;var Ibt=(Sc(),nt(Ol));function S$r(r){return(0,Ibt.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,Ibt.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}WW.ArrowLeftIcon=S$r});var Abt=x(UW=>{"use strict";d();p();Object.defineProperty(UW,"__esModule",{value:!0});UW.LaptopIcon=void 0;var joe=(Sc(),nt(Ol));function P$r(r){return(0,joe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,joe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,joe.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}UW.LaptopIcon=P$r});var Pbt=x(HW=>{"use strict";d();p();Object.defineProperty(HW,"__esModule",{value:!0});HW.SafeIcon=void 0;var Sbt=(Sc(),nt(Ol));function R$r(r){return(0,Sbt.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,Sbt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}HW.SafeIcon=R$r});var Rbt=x(zoe=>{"use strict";d();p();Object.defineProperty(zoe,"__esModule",{value:!0});zoe.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"});var Nbt=x(HT=>{"use strict";d();p();var Mbt=HT&&HT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(HT,"__esModule",{value:!0});HT.TryExtensionContent=void 0;var L2=Mbt(Hk()),ro=(Sc(),nt(Ol)),Koe=(ag(),nt(LT)),M$r=kbt(),N$r=Abt(),B$r=Pbt(),D$r=Mbt(Rbt());function O$r({theme:r}){let[e,t]=(0,Koe.useState)(!1),n=(0,Koe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,Koe.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,ro.h)("div",{class:(0,L2.default)("-cbwsdk-try-extension",r)},(0,ro.h)("style",null,D$r.default),(0,ro.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,ro.h)("h3",{class:(0,L2.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,ro.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,ro.h)("button",{class:(0,L2.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,ro.h)("div",null,!e&&(0,ro.h)(M$r.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,ro.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,ro.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,ro.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,ro.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,ro.h)("span",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,ro.h)(N$r.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,ro.h)("div",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,ro.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,ro.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,ro.h)("span",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,ro.h)(B$r.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,ro.h)("div",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}HT.TryExtensionContent=O$r});var Bbt=x(Goe=>{"use strict";d();p();Object.defineProperty(Goe,"__esModule",{value:!0});Goe.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"});var Obt=x(jT=>{"use strict";d();p();var Dbt=jT&&jT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jT,"__esModule",{value:!0});jT.ConnectDialog=void 0;var Voe=Dbt(Hk()),F2=(Sc(),nt(Ol)),$oe=(ag(),nt(LT)),L$r=Cbt(),F$r=Nbt(),q$r=Dbt(Bbt()),W$r=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,$oe.useState)(!e),[i,s]=(0,$oe.useState)(!e);(0,$oe.useEffect)(()=>{let c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[r.isOpen]);let o=t?"dark":"light";return(0,F2.h)("div",{class:(0,Voe.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,F2.h)("style",null,q$r.default),(0,F2.h)("div",{class:(0,Voe.default)("-cbwsdk-connect-dialog-backdrop",o,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,F2.h)("div",{class:"-cbwsdk-connect-dialog"},(0,F2.h)("div",{class:(0,Voe.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,F2.h)(L$r.ConnectContent,{theme:o,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,F2.h)(F$r.TryExtensionContent,{theme:o}))))};jT.ConnectDialog=W$r});var Fbt=x(jW=>{"use strict";d();p();Object.defineProperty(jW,"__esModule",{value:!0});jW.LinkFlow=void 0;var Yoe=(Sc(),nt(Ol)),Lbt=Uk(),U$r=Obt(),Joe=class{constructor(e){this.extensionUI$=new Lbt.BehaviorSubject({}),this.subscriptions=new Lbt.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,Yoe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,Yoe.render)((0,Yoe.h)(U$r.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};jW.LinkFlow=Joe});var qbt=x(Qoe=>{"use strict";d();p();Object.defineProperty(Qoe,"__esModule",{value:!0});Qoe.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"});var Ubt=x(Fp=>{"use strict";d();p();var Wbt=Fp&&Fp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fp,"__esModule",{value:!0});Fp.SnackbarInstance=Fp.SnackbarContainer=Fp.Snackbar=void 0;var zW=Wbt(Hk()),no=(Sc(),nt(Ol)),Zoe=(ag(),nt(LT)),H$r=Wbt(qbt()),j$r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function z$r(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var Xoe=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,no.render)((0,no.h)("div",null,(0,no.h)(Fp.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,no.h)(Fp.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};Fp.Snackbar=Xoe;var K$r=r=>(0,no.h)("div",{class:(0,zW.default)("-cbwsdk-snackbar-container")},(0,no.h)("style",null,H$r.default),(0,no.h)("div",{class:"-cbwsdk-snackbar"},r.children));Fp.SnackbarContainer=K$r;var G$r=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,Zoe.useState)(!0),[s,o]=(0,Zoe.useState)(r??!1);(0,Zoe.useEffect)(()=>{let u=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{o(!s)};return(0,no.h)("div",{class:(0,zW.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,no.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:c},(0,no.h)("img",{src:z$r(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,no.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,no.h)("div",{class:"-gear-container"},!s&&(0,no.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,no.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,no.h)("img",{src:j$r,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,no.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((u,l)=>(0,no.h)("div",{class:(0,zW.default)("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:l},(0,no.h)("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,no.h)("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),(0,no.h)("span",{class:(0,zW.default)("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};Fp.SnackbarInstance=G$r});var Hbt=x(ece=>{"use strict";d();p();Object.defineProperty(ece,"__esModule",{value:!0});ece.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});var jbt=x(zT=>{"use strict";d();p();var V$r=zT&&zT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(zT,"__esModule",{value:!0});zT.injectCssReset=void 0;var $$r=V$r(Hbt());function Y$r(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode($$r.default)),document.documentElement.appendChild(r)}zT.injectCssReset=Y$r});var zbt=x(KW=>{"use strict";d();p();Object.defineProperty(KW,"__esModule",{value:!0});KW.WalletSDKUI=void 0;var J$r=Fbt(),Q$r=Ubt(),Z$r=jbt(),tce=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new Q$r.Snackbar({darkMode:e.darkMode}),this.linkFlow=new J$r.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,Z$r.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};KW.WalletSDKUI=tce});var Gbt=x(GW=>{"use strict";d();p();Object.defineProperty(GW,"__esModule",{value:!0});var KT;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(KT||(KT={}));function Kbt(r,e,t){if(!t||typeof t.value!==KT.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:KT.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:KT.boolTrue,writable:KT.boolTrue}),n}}}GW.bind=Kbt;GW.default=Kbt});var nce=x(Kk=>{"use strict";d();p();var X$r=Kk&&Kk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kk,"__esModule",{value:!0});var rce=ts();function eYr(r){return function(t){return t.lift(new tYr(r))}}Kk.audit=eYr;var tYr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new rYr(e,this.durationSelector))},r}(),rYr=function(r){X$r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=rce.innerSubscribe(n,new rce.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(rce.SimpleOuterSubscriber)});var Vbt=x(ace=>{"use strict";d();p();Object.defineProperty(ace,"__esModule",{value:!0});var nYr=Zu(),aYr=nce(),iYr=Aoe();function sYr(r,e){return e===void 0&&(e=nYr.async),aYr.audit(function(){return iYr.timer(r,e)})}ace.auditTime=sYr});var $bt=x(Gk=>{"use strict";d();p();var oYr=Gk&&Gk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gk,"__esModule",{value:!0});var ice=ts();function cYr(r){return function(t){return t.lift(new uYr(r))}}Gk.buffer=cYr;var uYr=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new lYr(e,this.closingNotifier))},r}(),lYr=function(r){oYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(ice.innerSubscribe(n,new ice.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(ice.SimpleOuterSubscriber)});var Qbt=x(Vk=>{"use strict";d();p();var Ybt=Vk&&Vk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vk,"__esModule",{value:!0});var Jbt=tr();function dYr(r,e){return e===void 0&&(e=null),function(n){return n.lift(new pYr(r,e))}}Vk.bufferCount=dYr;var pYr=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=hYr:this.subscriberClass=fYr}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),hYr=function(r){Ybt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}(Jbt.Subscriber),fYr=function(r){Ybt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,o=n.count;this.count++,o%i===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(t),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}(Jbt.Subscriber)});var evt=x($k=>{"use strict";d();p();var mYr=$k&&$k.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($k,"__esModule",{value:!0});var yYr=Zu(),gYr=tr(),bYr=Zh();function vYr(r){var e=arguments.length,t=yYr.async;bYr.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new wYr(r,n,a,t))}}$k.bufferTime=vYr;var wYr=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new xYr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),_Yr=function(){function r(){this.buffer=[]}return r}(),xYr=function(r){mYr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=a,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();if(o.timespanOnly=a==null||a<0,o.timespanOnly){var u={subscriber:o,context:c,bufferTimeSpan:n};o.add(c.closeAction=s.schedule(Zbt,n,u))}else{var l={subscriber:o,context:c},h={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:o,scheduler:s};o.add(c.closeAction=s.schedule(Xbt,n,l)),o.add(s.schedule(TYr,a,h))}return o}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(Zbt,a,i))}},e.prototype.openContext=function(){var t=new _Yr;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(gYr.Subscriber);function Zbt(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function TYr(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(Xbt,t,{subscriber:n,context:i})),s.schedule(r,e))}function Xbt(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var rvt=x(Yk=>{"use strict";d();p();var EYr=Yk&&Yk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Yk,"__esModule",{value:!0});var CYr=Eo(),tvt=tg(),IYr=eg();function kYr(r,e){return function(n){return n.lift(new AYr(r,e))}}Yk.bufferToggle=kYr;var AYr=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new SYr(e,this.openings,this.closingSelector))},r}(),SYr=function(r){EYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(tvt.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new CYr.Subscription,s={buffer:a,subscription:i};n.push(s);var o=tvt.subscribeToResult(this,t,s);!o||o.closed?this.closeBuffer(s):(o.context=s,this.add(o),i.add(o))},e}(IYr.OuterSubscriber)});var nvt=x(Jk=>{"use strict";d();p();var PYr=Jk&&Jk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jk,"__esModule",{value:!0});var RYr=Eo(),sce=ts();function MYr(r){return function(e){return e.lift(new NYr(r))}}Jk.bufferWhen=MYr;var NYr=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new BYr(e,this.closingSelector))},r}(),BYr=function(r){PYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new RYr.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(sce.innerSubscribe(a,new sce.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(sce.SimpleOuterSubscriber)});var avt=x(Qk=>{"use strict";d();p();var DYr=Qk&&Qk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qk,"__esModule",{value:!0});var oce=ts();function OYr(r){return function(t){var n=new LYr(r),a=t.lift(n);return n.caught=a}}Qk.catchError=OYr;var LYr=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new FYr(e,this.selector,this.caught))},r}(),FYr=function(r){DYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new oce.SimpleInnerSubscriber(this);this.add(a);var i=oce.innerSubscribe(n,a);i!==a&&this.add(i)}},e}(oce.SimpleOuterSubscriber)});var ivt=x(cce=>{"use strict";d();p();Object.defineProperty(cce,"__esModule",{value:!0});var qYr=gW();function WYr(r){return function(e){return e.lift(new qYr.CombineLatestOperator(r))}}cce.combineAll=WYr});var svt=x(uce=>{"use strict";d();p();Object.defineProperty(uce,"__esModule",{value:!0});var UYr=Qu(),HYr=gW(),jYr=Xh();function zYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(lce,"__esModule",{value:!0});var KYr=Lk();function GYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(dce,"__esModule",{value:!0});var VYr=Ok();function $Yr(r,e){return VYr.mergeMap(r,e,1)}dce.concatMap=$Yr});var cvt=x(hce=>{"use strict";d();p();Object.defineProperty(hce,"__esModule",{value:!0});var YYr=pce();function JYr(r,e){return YYr.concatMap(function(){return r},e)}hce.concatMapTo=JYr});var uvt=x(Zk=>{"use strict";d();p();var QYr=Zk&&Zk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zk,"__esModule",{value:!0});var ZYr=tr();function XYr(r){return function(e){return e.lift(new eJr(r,e))}}Zk.count=XYr;var eJr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new tJr(e,this.predicate,this.source))},r}(),tJr=function(r){QYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(ZYr.Subscriber)});var lvt=x(Xk=>{"use strict";d();p();var rJr=Xk&&Xk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xk,"__esModule",{value:!0});var fce=ts();function nJr(r){return function(e){return e.lift(new aJr(r))}}Xk.debounce=nJr;var aJr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new iJr(e,this.durationSelector))},r}(),iJr=function(r){rJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=fce.innerSubscribe(n,new fce.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(fce.SimpleOuterSubscriber)});var dvt=x(eA=>{"use strict";d();p();var sJr=eA&&eA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(eA,"__esModule",{value:!0});var oJr=tr(),cJr=Zu();function uJr(r,e){return e===void 0&&(e=cJr.async),function(t){return t.lift(new lJr(r,e))}}eA.debounceTime=uJr;var lJr=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new dJr(e,this.dueTime,this.scheduler))},r}(),dJr=function(r){sJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(pJr,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(oJr.Subscriber);function pJr(r){r.debouncedNext()}});var GT=x(tA=>{"use strict";d();p();var hJr=tA&&tA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tA,"__esModule",{value:!0});var fJr=tr();function mJr(r){return r===void 0&&(r=null),function(e){return e.lift(new yJr(r))}}tA.defaultIfEmpty=mJr;var yJr=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new gJr(e,this.defaultValue))},r}(),gJr=function(r){hJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(fJr.Subscriber)});var yce=x(mce=>{"use strict";d();p();Object.defineProperty(mce,"__esModule",{value:!0});function bJr(r){return r instanceof Date&&!isNaN(+r)}mce.isDate=bJr});var hvt=x(rA=>{"use strict";d();p();var vJr=rA&&rA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rA,"__esModule",{value:!0});var wJr=Zu(),_Jr=yce(),xJr=tr(),pvt=xk();function TJr(r,e){e===void 0&&(e=wJr.async);var t=_Jr.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new EJr(n,e))}}rA.delay=TJr;var EJr=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new CJr(e,this.delay,this.scheduler))},r}(),CJr=function(r){vJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var o=Math.max(0,a[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new IJr(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(pvt.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(pvt.Notification.createComplete()),this.unsubscribe()},e}(xJr.Subscriber),IJr=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var mvt=x(nA=>{"use strict";d();p();var gce=nA&&nA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nA,"__esModule",{value:!0});var kJr=tr(),AJr=sn(),SJr=eg(),PJr=tg();function RJr(r,e){return e?function(t){return new NJr(t,e).lift(new fvt(r))}:function(t){return t.lift(new fvt(r))}}nA.delayWhen=RJr;var fvt=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new MJr(e,this.delayDurationSelector))},r}(),MJr=function(r){gce(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=PJr.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(SJr.OuterSubscriber),NJr=function(r){gce(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new BJr(t,this.source))},e}(AJr.Observable),BJr=function(r){gce(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(kJr.Subscriber)});var yvt=x(aA=>{"use strict";d();p();var DJr=aA&&aA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(aA,"__esModule",{value:!0});var OJr=tr();function LJr(){return function(e){return e.lift(new FJr)}}aA.dematerialize=LJr;var FJr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new qJr(e))},r}(),qJr=function(r){DJr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(OJr.Subscriber)});var bvt=x(VT=>{"use strict";d();p();var WJr=VT&&VT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(VT,"__esModule",{value:!0});var bce=ts();function UJr(r,e){return function(t){return t.lift(new HJr(r,e))}}VT.distinct=UJr;var HJr=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new gvt(e,this.keySelector,this.flushes))},r}(),gvt=function(r){WJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add(bce.innerSubscribe(a,new bce.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}(bce.SimpleOuterSubscriber);VT.DistinctSubscriber=gvt});var vce=x(iA=>{"use strict";d();p();var jJr=iA&&iA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(iA,"__esModule",{value:!0});var zJr=tr();function KJr(r,e){return function(t){return t.lift(new GJr(r,e))}}iA.distinctUntilChanged=KJr;var GJr=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new VJr(e,this.compare,this.keySelector))},r}(),VJr=function(r){jJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(o){return this.destination.error(o)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(zJr.Subscriber)});var vvt=x(wce=>{"use strict";d();p();Object.defineProperty(wce,"__esModule",{value:!0});var $Jr=vce();function YJr(r,e){return $Jr.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}wce.distinctUntilKeyChanged=YJr});var oA=x(sA=>{"use strict";d();p();var JJr=sA&&sA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sA,"__esModule",{value:!0});var QJr=PT(),ZJr=tr();function XJr(r){return r===void 0&&(r=rQr),function(e){return e.lift(new eQr(r))}}sA.throwIfEmpty=XJr;var eQr=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new tQr(e,this.errorFactory))},r}(),tQr=function(r){JJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}(ZJr.Subscriber);function rQr(){return new QJr.EmptyError}});var VW=x(cA=>{"use strict";d();p();var nQr=cA&&cA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cA,"__esModule",{value:!0});var aQr=tr(),iQr=ST(),sQr=Qh();function oQr(r){return function(e){return r===0?sQr.empty():e.lift(new cQr(r))}}cA.take=oQr;var cQr=function(){function r(e){if(this.total=e,this.total<0)throw new iQr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new uQr(e,this.total))},r}(),uQr=function(r){nQr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(aQr.Subscriber)});var _vt=x(_ce=>{"use strict";d();p();Object.defineProperty(_ce,"__esModule",{value:!0});var wvt=ST(),lQr=M2(),dQr=oA(),pQr=GT(),hQr=VW();function fQr(r,e){if(r<0)throw new wvt.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(lQr.filter(function(a,i){return i===r}),hQr.take(1),t?pQr.defaultIfEmpty(e):dQr.throwIfEmpty(function(){return new wvt.ArgumentOutOfRangeError}))}}_ce.elementAt=fQr});var xvt=x(xce=>{"use strict";d();p();Object.defineProperty(xce,"__esModule",{value:!0});var mQr=Lk(),yQr=wk();function gQr(){for(var r=[],e=0;e{"use strict";d();p();var bQr=uA&&uA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uA,"__esModule",{value:!0});var vQr=tr();function wQr(r,e){return function(t){return t.lift(new _Qr(r,e,t))}}uA.every=wQr;var _Qr=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new xQr(e,this.predicate,this.thisArg,this.source))},r}(),xQr=function(r){bQr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(vQr.Subscriber)});var Evt=x(lA=>{"use strict";d();p();var TQr=lA&&lA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lA,"__esModule",{value:!0});var Tce=ts();function EQr(){return function(r){return r.lift(new CQr)}}lA.exhaust=EQr;var CQr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new IQr(e))},r}(),IQr=function(r){TQr(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Tce.innerSubscribe(t,new Tce.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Tce.SimpleOuterSubscriber)});var Ivt=x(dA=>{"use strict";d();p();var kQr=dA&&dA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dA,"__esModule",{value:!0});var AQr=md(),SQr=Xh(),Ece=ts();function Cvt(r,e){return e?function(t){return t.pipe(Cvt(function(n,a){return SQr.from(r(n,a)).pipe(AQr.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new PQr(r))}}dA.exhaustMap=Cvt;var PQr=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new RQr(e,this.project))},r}(),RQr=function(r){kQr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new Ece.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=Ece.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Ece.SimpleOuterSubscriber)});var Svt=x(q2=>{"use strict";d();p();var MQr=q2&&q2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(q2,"__esModule",{value:!0});var Cce=ts();function NQr(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new kvt(r,e,t))}}q2.expand=NQr;var kvt=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new Avt(e,this.project,this.concurrent,this.scheduler))},r}();q2.ExpandOperator=kvt;var Avt=function(r){MQr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(Cce.SimpleOuterSubscriber);q2.ExpandSubscriber=Avt});var Pvt=x(pA=>{"use strict";d();p();var BQr=pA&&pA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pA,"__esModule",{value:!0});var DQr=tr(),OQr=Eo();function LQr(r){return function(e){return e.lift(new FQr(r))}}pA.finalize=LQr;var FQr=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new qQr(e,this.callback))},r}(),qQr=function(r){BQr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new OQr.Subscription(n)),a}return e}(DQr.Subscriber)});var Ice=x(W2=>{"use strict";d();p();var WQr=W2&&W2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(W2,"__esModule",{value:!0});var UQr=tr();function HQr(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new Rvt(r,t,!1,e))}}W2.find=HQr;var Rvt=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new Mvt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();W2.FindValueOperator=Rvt;var Mvt=function(r){WQr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.predicate=n,o.source=a,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var o=a.call(i||this,t,s,this.source);o&&this.notifyComplete(this.yieldIndex?s:t)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(UQr.Subscriber);W2.FindValueSubscriber=Mvt});var Nvt=x(kce=>{"use strict";d();p();Object.defineProperty(kce,"__esModule",{value:!0});var jQr=Ice();function zQr(r,e){return function(t){return t.lift(new jQr.FindValueOperator(r,t,!0,e))}}kce.findIndex=zQr});var Bvt=x(Ace=>{"use strict";d();p();Object.defineProperty(Ace,"__esModule",{value:!0});var KQr=PT(),GQr=M2(),VQr=VW(),$Qr=GT(),YQr=oA(),JQr=Z1();function QQr(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?GQr.filter(function(a,i){return r(a,i,n)}):JQr.identity,VQr.take(1),t?$Qr.defaultIfEmpty(e):YQr.throwIfEmpty(function(){return new KQr.EmptyError}))}}Ace.first=QQr});var Dvt=x(hA=>{"use strict";d();p();var ZQr=hA&&hA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hA,"__esModule",{value:!0});var XQr=tr();function eZr(){return function(e){return e.lift(new tZr)}}hA.ignoreElements=eZr;var tZr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new rZr(e))},r}(),rZr=function(r){ZQr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(XQr.Subscriber)});var Ovt=x(fA=>{"use strict";d();p();var nZr=fA&&fA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fA,"__esModule",{value:!0});var aZr=tr();function iZr(){return function(r){return r.lift(new sZr)}}fA.isEmpty=iZr;var sZr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new oZr(e))},r}(),oZr=function(r){nZr(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(aZr.Subscriber)});var $W=x(mA=>{"use strict";d();p();var cZr=mA&&mA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mA,"__esModule",{value:!0});var uZr=tr(),lZr=ST(),dZr=Qh();function pZr(r){return function(t){return r===0?dZr.empty():t.lift(new hZr(r))}}mA.takeLast=pZr;var hZr=function(){function r(e){if(this.total=e,this.total<0)throw new lZr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new fZr(e,this.total))},r}(),fZr=function(r){cZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";d();p();Object.defineProperty(Sce,"__esModule",{value:!0});var mZr=PT(),yZr=M2(),gZr=$W(),bZr=oA(),vZr=GT(),wZr=Z1();function _Zr(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?yZr.filter(function(a,i){return r(a,i,n)}):wZr.identity,gZr.takeLast(1),t?vZr.defaultIfEmpty(e):bZr.throwIfEmpty(function(){return new mZr.EmptyError}))}}Sce.last=_Zr});var Fvt=x(yA=>{"use strict";d();p();var xZr=yA&&yA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yA,"__esModule",{value:!0});var TZr=tr();function EZr(r){return function(e){return e.lift(new CZr(r))}}yA.mapTo=EZr;var CZr=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new IZr(e,this.value))},r}(),IZr=function(r){xZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}(TZr.Subscriber)});var qvt=x(gA=>{"use strict";d();p();var kZr=gA&&gA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gA,"__esModule",{value:!0});var AZr=tr(),Pce=xk();function SZr(){return function(e){return e.lift(new PZr)}}gA.materialize=SZr;var PZr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new RZr(e))},r}(),RZr=function(r){kZr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(Pce.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(Pce.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(Pce.Notification.createComplete()),t.complete()},e}(AZr.Subscriber)});var YW=x(bA=>{"use strict";d();p();var MZr=bA&&bA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(bA,"__esModule",{value:!0});var NZr=tr();function BZr(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new DZr(r,e,t))}}bA.scan=BZr;var DZr=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new OZr(e,this.accumulator,this.seed,this.hasSeed))},r}(),OZr=function(r){MZr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(NZr.Subscriber)});var vA=x(Rce=>{"use strict";d();p();Object.defineProperty(Rce,"__esModule",{value:!0});var Wvt=YW(),Uvt=$W(),LZr=GT(),Hvt=oW();function FZr(r,e){return arguments.length>=2?function(n){return Hvt.pipe(Wvt.scan(r,e),Uvt.takeLast(1),LZr.defaultIfEmpty(e))(n)}:function(n){return Hvt.pipe(Wvt.scan(function(a,i,s){return r(a,i,s+1)}),Uvt.takeLast(1))(n)}}Rce.reduce=FZr});var jvt=x(Mce=>{"use strict";d();p();Object.defineProperty(Mce,"__esModule",{value:!0});var qZr=vA();function WZr(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return qZr.reduce(e)}Mce.max=WZr});var zvt=x(Nce=>{"use strict";d();p();Object.defineProperty(Nce,"__esModule",{value:!0});var UZr=voe();function HZr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Bce,"__esModule",{value:!0});var Kvt=Ok();function jZr(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?Kvt.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),Kvt.mergeMap(function(){return r},t))}Bce.mergeMapTo=jZr});var Yvt=x(U2=>{"use strict";d();p();var zZr=U2&&U2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(U2,"__esModule",{value:!0});var Dce=ts();function KZr(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new Vvt(r,e,t))}}U2.mergeScan=KZr;var Vvt=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new $vt(e,this.accumulator,this.seed,this.concurrent))},r}();U2.MergeScanOperator=Vvt;var $vt=function(r){zZr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(Dce.SimpleOuterSubscriber);U2.MergeScanSubscriber=$vt});var Jvt=x(Oce=>{"use strict";d();p();Object.defineProperty(Oce,"__esModule",{value:!0});var GZr=vA();function VZr(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";d();p();Object.defineProperty(JW,"__esModule",{value:!0});var $Zr=yse();function YZr(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new Qvt(a,e));var i=Object.create(n,$Zr.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}JW.multicast=YZr;var Qvt=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();JW.MulticastOperator=Qvt});var e2t=x($T=>{"use strict";d();p();var JZr=$T&&$T.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($T,"__esModule",{value:!0});var QZr=Xh(),Zvt=Qu(),Lce=ts();function ZZr(){for(var r=[],e=0;e{"use strict";d();p();var tXr=wA&&wA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wA,"__esModule",{value:!0});var rXr=tr();function nXr(){return function(r){return r.lift(new aXr)}}wA.pairwise=nXr;var aXr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new iXr(e))},r}(),iXr=function(r){tXr(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(rXr.Subscriber)});var n2t=x(Fce=>{"use strict";d();p();Object.defineProperty(Fce,"__esModule",{value:!0});var sXr=Eoe(),r2t=M2();function oXr(r,e){return function(t){return[r2t.filter(r,e)(t),r2t.filter(sXr.not(r,e))(t)]}}Fce.partition=oXr});var a2t=x(qce=>{"use strict";d();p();Object.defineProperty(qce,"__esModule",{value:!0});var cXr=md();function uXr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Wce,"__esModule",{value:!0});var i2t=Au(),s2t=H2();function dXr(r){return r?s2t.multicast(function(){return new i2t.Subject},r):s2t.multicast(new i2t.Subject)}Wce.publish=dXr});var c2t=x(Uce=>{"use strict";d();p();Object.defineProperty(Uce,"__esModule",{value:!0});var pXr=vse(),hXr=H2();function fXr(r){return function(e){return hXr.multicast(new pXr.BehaviorSubject(r))(e)}}Uce.publishBehavior=fXr});var u2t=x(Hce=>{"use strict";d();p();Object.defineProperty(Hce,"__esModule",{value:!0});var mXr=Ck(),yXr=H2();function gXr(){return function(r){return yXr.multicast(new mXr.AsyncSubject)(r)}}Hce.publishLast=gXr});var l2t=x(jce=>{"use strict";d();p();Object.defineProperty(jce,"__esModule",{value:!0});var bXr=hW(),vXr=H2();function wXr(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new bXr.ReplaySubject(r,e,n);return function(s){return vXr.multicast(function(){return i},a)(s)}}jce.publishReplay=wXr});var d2t=x(zce=>{"use strict";d();p();Object.defineProperty(zce,"__esModule",{value:!0});var _Xr=Qu(),xXr=Ioe();function TXr(){for(var r=[],e=0;e{"use strict";d();p();var EXr=_A&&_A.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_A,"__esModule",{value:!0});var CXr=tr(),IXr=Qh();function kXr(r){return r===void 0&&(r=-1),function(e){return r===0?IXr.empty():r<0?e.lift(new p2t(-1,e)):e.lift(new p2t(r-1,e))}}_A.repeat=kXr;var p2t=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new AXr(e,this.count,this.source))},r}(),AXr=function(r){EXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(CXr.Subscriber)});var f2t=x(xA=>{"use strict";d();p();var SXr=xA&&xA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xA,"__esModule",{value:!0});var PXr=Au(),Kce=ts();function RXr(r){return function(e){return e.lift(new MXr(r))}}xA.repeatWhen=RXr;var MXr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new NXr(e,this.notifier,t))},r}(),NXr=function(r){SXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new PXr.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Kce.innerSubscribe(t,new Kce.SimpleInnerSubscriber(this))},e}(Kce.SimpleOuterSubscriber)});var m2t=x(TA=>{"use strict";d();p();var BXr=TA&&TA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(TA,"__esModule",{value:!0});var DXr=tr();function OXr(r){return r===void 0&&(r=-1),function(e){return e.lift(new LXr(r,e))}}TA.retry=OXr;var LXr=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new FXr(e,this.count,this.source))},r}(),FXr=function(r){BXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(DXr.Subscriber)});var y2t=x(EA=>{"use strict";d();p();var qXr=EA&&EA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(EA,"__esModule",{value:!0});var WXr=Au(),Gce=ts();function UXr(r){return function(e){return e.lift(new HXr(r,e))}}EA.retryWhen=UXr;var HXr=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new jXr(e,this.notifier,this.source))},r}(),jXr=function(r){qXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new WXr.Subject;try{var s=this.notifier;a=s(n)}catch(o){return r.prototype.error.call(this,o)}i=Gce.innerSubscribe(a,new Gce.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(Gce.SimpleOuterSubscriber)});var g2t=x(CA=>{"use strict";d();p();var zXr=CA&&CA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(CA,"__esModule",{value:!0});var Vce=ts();function KXr(r){return function(e){return e.lift(new GXr(r))}}CA.sample=KXr;var GXr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new VXr(e),a=t.subscribe(n);return a.add(Vce.innerSubscribe(this.notifier,new Vce.SimpleInnerSubscriber(n))),a},r}(),VXr=function(r){zXr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(Vce.SimpleOuterSubscriber)});var b2t=x(IA=>{"use strict";d();p();var $Xr=IA&&IA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(IA,"__esModule",{value:!0});var YXr=tr(),JXr=Zu();function QXr(r,e){return e===void 0&&(e=JXr.async),function(t){return t.lift(new ZXr(r,e))}}IA.sampleTime=QXr;var ZXr=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new XXr(e,this.period,this.scheduler))},r}(),XXr=function(r){$Xr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(een,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(YXr.Subscriber);function een(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var T2t=x(j2=>{"use strict";d();p();var v2t=j2&&j2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(j2,"__esModule",{value:!0});var w2t=tr();function ten(r,e){return function(t){return t.lift(new _2t(r,e))}}j2.sequenceEqual=ten;var _2t=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new x2t(e,this.compareTo,this.comparator))},r}();j2.SequenceEqualOperator=_2t;var x2t=function(r){v2t(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new ren(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),o=a.shift(),c=!1;try{c=i?i(s,o):s===o}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(w2t.Subscriber);j2.SequenceEqualSubscriber=x2t;var ren=function(r){v2t(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(w2t.Subscriber)});var E2t=x($ce=>{"use strict";d();p();Object.defineProperty($ce,"__esModule",{value:!0});var nen=H2(),aen=uW(),ien=Au();function sen(){return new ien.Subject}function oen(){return function(r){return aen.refCount()(nen.multicast(sen)(r))}}$ce.share=oen});var C2t=x(Yce=>{"use strict";d();p();Object.defineProperty(Yce,"__esModule",{value:!0});var cen=hW();function uen(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(len(n))}}Yce.shareReplay=uen;function len(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,o,c=0,u,l=!1,h=!1;return function(m){c++;var y;!o||l?(l=!1,o=new cen.ReplaySubject(t,a,s),y=o.subscribe(this),u=m.subscribe({next:function(E){o.next(E)},error:function(E){l=!0,o.error(E)},complete:function(){h=!0,u=void 0,o.complete()}}),h&&(u=void 0)):y=o.subscribe(this),this.add(function(){c--,y.unsubscribe(),y=void 0,u&&!h&&i&&c===0&&(u.unsubscribe(),u=void 0,o=void 0)})}}});var I2t=x(kA=>{"use strict";d();p();var den=kA&&kA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kA,"__esModule",{value:!0});var pen=tr(),hen=PT();function fen(r){return function(e){return e.lift(new men(r,e))}}kA.single=fen;var men=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new yen(e,this.predicate,this.source))},r}(),yen=function(r){den(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new hen.EmptyError)},e}(pen.Subscriber)});var k2t=x(AA=>{"use strict";d();p();var gen=AA&&AA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(AA,"__esModule",{value:!0});var ben=tr();function ven(r){return function(e){return e.lift(new wen(r))}}AA.skip=ven;var wen=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new _en(e,this.total))},r}(),_en=function(r){gen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(ben.Subscriber)});var S2t=x(SA=>{"use strict";d();p();var xen=SA&&SA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(SA,"__esModule",{value:!0});var A2t=tr(),Ten=ST();function Een(r){return function(e){return e.lift(new Cen(r))}}SA.skipLast=Een;var Cen=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new Ten.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new A2t.Subscriber(e)):t.subscribe(new Ien(e,this._skipCount))},r}(),Ien=function(r){xen(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";d();p();var ken=PA&&PA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(PA,"__esModule",{value:!0});var Jce=ts();function Aen(r){return function(e){return e.lift(new Sen(r))}}PA.skipUntil=Aen;var Sen=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new Pen(e,this.notifier))},r}(),Pen=function(r){ken(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new Jce.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=Jce.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(Jce.SimpleOuterSubscriber)});var R2t=x(RA=>{"use strict";d();p();var Ren=RA&&RA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(RA,"__esModule",{value:!0});var Men=tr();function Nen(r){return function(e){return e.lift(new Ben(r))}}RA.skipWhile=Nen;var Ben=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new Den(e,this.predicate))},r}(),Den=function(r){Ren(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}(Men.Subscriber)});var N2t=x(Qce=>{"use strict";d();p();Object.defineProperty(Qce,"__esModule",{value:!0});var M2t=Lk(),Oen=Zh();function Len(){for(var r=[],e=0;e{"use strict";d();p();var Fen=MA&&MA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(MA,"__esModule",{value:!0});var qen=sn(),Zce=Mse(),Wen=Fk(),Uen=function(r){Fen(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=Zce.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!Wen.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=Zce.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=Zce.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}(qen.Observable);MA.SubscribeOnObservable=Uen});var D2t=x(Xce=>{"use strict";d();p();Object.defineProperty(Xce,"__esModule",{value:!0});var Hen=B2t();function jen(r,e){return e===void 0&&(e=0),function(n){return n.lift(new zen(r,e))}}Xce.subscribeOn=jen;var zen=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new Hen.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var QW=x(NA=>{"use strict";d();p();var Ken=NA&&NA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(NA,"__esModule",{value:!0});var Gen=md(),Ven=Xh(),eue=ts();function O2t(r,e){return typeof e=="function"?function(t){return t.pipe(O2t(function(n,a){return Ven.from(r(n,a)).pipe(Gen.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new $en(r))}}NA.switchMap=O2t;var $en=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new Yen(e,this.project))},r}(),Yen=function(r){Ken(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new eue.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=eue.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(eue.SimpleOuterSubscriber)});var L2t=x(tue=>{"use strict";d();p();Object.defineProperty(tue,"__esModule",{value:!0});var Jen=QW(),Qen=Z1();function Zen(){return Jen.switchMap(Qen.identity)}tue.switchAll=Zen});var q2t=x(rue=>{"use strict";d();p();Object.defineProperty(rue,"__esModule",{value:!0});var F2t=QW();function Xen(r,e){return e?F2t.switchMap(function(){return r},e):F2t.switchMap(function(){return r})}rue.switchMapTo=Xen});var W2t=x(BA=>{"use strict";d();p();var etn=BA&&BA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(BA,"__esModule",{value:!0});var nue=ts();function ttn(r){return function(e){return e.lift(new rtn(r))}}BA.takeUntil=ttn;var rtn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new ntn(e),a=nue.innerSubscribe(this.notifier,new nue.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),ntn=function(r){etn(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(nue.SimpleOuterSubscriber)});var U2t=x(DA=>{"use strict";d();p();var atn=DA&&DA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(DA,"__esModule",{value:!0});var itn=tr();function stn(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new otn(r,e))}}DA.takeWhile=stn;var otn=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new ctn(e,this.predicate,this.inclusive))},r}(),ctn=function(r){atn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}(itn.Subscriber)});var H2t=x(OA=>{"use strict";d();p();var utn=OA&&OA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(OA,"__esModule",{value:!0});var ltn=tr(),og=yW(),dtn=wT();function ptn(r,e,t){return function(a){return a.lift(new htn(r,e,t))}}OA.tap=ptn;var htn=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new ftn(e,this.nextOrObserver,this.error,this.complete))},r}(),ftn=function(r){utn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=og.noop,s._tapError=og.noop,s._tapComplete=og.noop,s._tapError=a||og.noop,s._tapComplete=i||og.noop,dtn.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||og.noop,s._tapError=n.error||og.noop,s._tapComplete=n.complete||og.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(ltn.Subscriber)});var iue=x(z2=>{"use strict";d();p();var mtn=z2&&z2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(z2,"__esModule",{value:!0});var aue=ts();z2.defaultThrottleConfig={leading:!0,trailing:!1};function ytn(r,e){return e===void 0&&(e=z2.defaultThrottleConfig),function(t){return t.lift(new gtn(r,!!e.leading,!!e.trailing))}}z2.throttle=ytn;var gtn=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new btn(e,this.durationSelector,this.leading,this.trailing))},r}(),btn=function(r){mtn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=aue.innerSubscribe(n,new aue.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(aue.SimpleOuterSubscriber)});var j2t=x(LA=>{"use strict";d();p();var vtn=LA&&LA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(LA,"__esModule",{value:!0});var wtn=tr(),_tn=Zu(),xtn=iue();function Ttn(r,e,t){return e===void 0&&(e=_tn.async),t===void 0&&(t=xtn.defaultThrottleConfig),function(n){return n.lift(new Etn(r,e,t.leading,t.trailing))}}LA.throttleTime=Ttn;var Etn=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new Ctn(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),Ctn=function(r){vtn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.duration=n,o.scheduler=a,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Itn,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(wtn.Subscriber);function Itn(r){var e=r.subscriber;e.clearThrottle()}});var K2t=x(ZW=>{"use strict";d();p();Object.defineProperty(ZW,"__esModule",{value:!0});var ktn=Zu(),Atn=YW(),Stn=_W(),Ptn=md();function Rtn(r){return r===void 0&&(r=ktn.async),function(e){return Stn.defer(function(){return e.pipe(Atn.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),Ptn.map(function(t){var n=t.current,a=t.last,i=t.value;return new z2t(i,n-a)}))})}}ZW.timeInterval=Rtn;var z2t=function(){function r(e,t){this.value=e,this.interval=t}return r}();ZW.TimeInterval=z2t});var oue=x(FA=>{"use strict";d();p();var Mtn=FA&&FA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(FA,"__esModule",{value:!0});var Ntn=Zu(),Btn=yce(),sue=ts();function Dtn(r,e,t){return t===void 0&&(t=Ntn.async),function(n){var a=Btn.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new Otn(i,a,e,t))}}FA.timeoutWith=Dtn;var Otn=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Ltn(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),Ltn=function(r){Mtn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=a,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(sue.innerSubscribe(n,new sue.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(sue.SimpleOuterSubscriber)});var G2t=x(cue=>{"use strict";d();p();Object.defineProperty(cue,"__esModule",{value:!0});var Ftn=Zu(),qtn=Fse(),Wtn=oue(),Utn=pW();function Htn(r,e){return e===void 0&&(e=Ftn.async),Wtn.timeoutWith(r,Utn.throwError(new qtn.TimeoutError),e)}cue.timeout=Htn});var $2t=x(XW=>{"use strict";d();p();Object.defineProperty(XW,"__esModule",{value:!0});var jtn=Zu(),ztn=md();function Ktn(r){return r===void 0&&(r=jtn.async),ztn.map(function(e){return new V2t(e,r.now())})}XW.timestamp=Ktn;var V2t=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();XW.Timestamp=V2t});var Y2t=x(uue=>{"use strict";d();p();Object.defineProperty(uue,"__esModule",{value:!0});var Gtn=vA();function Vtn(r,e,t){return t===0?[e]:(r.push(e),r)}function $tn(){return Gtn.reduce(Vtn,[])}uue.toArray=$tn});var Q2t=x(qA=>{"use strict";d();p();var Ytn=qA&&qA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qA,"__esModule",{value:!0});var J2t=Au(),lue=ts();function Jtn(r){return function(t){return t.lift(new Qtn(r))}}qA.window=Jtn;var Qtn=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new Ztn(e),a=t.subscribe(n);return a.closed||n.add(lue.innerSubscribe(this.windowBoundaries,new lue.SimpleInnerSubscriber(n))),a},r}(),Ztn=function(r){Ytn(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new J2t.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new J2t.Subject;n.next(a)},e}(lue.SimpleOuterSubscriber)});var X2t=x(WA=>{"use strict";d();p();var Xtn=WA&&WA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(WA,"__esModule",{value:!0});var ern=tr(),Z2t=Au();function trn(r,e){return e===void 0&&(e=0),function(n){return n.lift(new rrn(r,e))}}WA.windowCount=trn;var rrn=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new nrn(e,this.windowSize,this.startWindowEvery))},r}(),nrn=function(r){Xtn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new Z2t.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,o=s.length,c=0;c=0&&u%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var l=new Z2t.Subject;s.push(l),a.next(l)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(ern.Subscriber)});var nwt=x(UA=>{"use strict";d();p();var twt=UA&&UA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(UA,"__esModule",{value:!0});var arn=Au(),irn=Zu(),srn=tr(),ewt=Fk(),due=Zh();function orn(r){var e=irn.async,t=null,n=Number.POSITIVE_INFINITY;return due.isScheduler(arguments[3])&&(e=arguments[3]),due.isScheduler(arguments[2])?e=arguments[2]:ewt.isNumeric(arguments[2])&&(n=Number(arguments[2])),due.isScheduler(arguments[1])?e=arguments[1]:ewt.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new crn(r,t,n,e))}}UA.windowTime=orn;var crn=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new lrn(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),urn=function(r){twt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(arn.Subject),lrn=function(r){twt(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=a,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();if(a!==null&&a>=0){var u={subscriber:o,window:c,context:null},l={windowTimeSpan:n,windowCreationInterval:a,subscriber:o,scheduler:s};o.add(s.schedule(rwt,n,u)),o.add(s.schedule(prn,a,l))}else{var h={subscriber:o,window:c,windowTimeSpan:n};o.add(s.schedule(drn,n,h))}return o}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new urn;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(srn.Subscriber);function drn(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function prn(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,o={action:s,subscription:null},c={subscriber:t,window:i,context:o};o.subscription=n.schedule(rwt,e,c),s.add(o.subscription),s.schedule(r,a)}function rwt(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var iwt=x(HA=>{"use strict";d();p();var hrn=HA&&HA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(HA,"__esModule",{value:!0});var frn=Au(),mrn=Eo(),yrn=eg(),awt=tg();function grn(r,e){return function(t){return t.lift(new brn(r,e))}}HA.windowToggle=grn;var brn=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new vrn(e,this.openings,this.closingSelector))},r}(),vrn=function(r){hrn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=awt.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";d();p();var wrn=jA&&jA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(jA,"__esModule",{value:!0});var _rn=Au(),xrn=eg(),Trn=tg();function Ern(r){return function(t){return t.lift(new Crn(r))}}jA.windowWhen=Ern;var Crn=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Irn(e,this.closingSelector))},r}(),Irn=function(r){wrn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new _rn.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(o){this.destination.error(o),this.window.error(o);return}this.add(this.closingNotification=Trn.subscribeToResult(this,i))},e}(xrn.OuterSubscriber)});var owt=x(zA=>{"use strict";d();p();var krn=zA&&zA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zA,"__esModule",{value:!0});var Arn=eg(),Srn=tg();function Prn(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(Arn.OuterSubscriber)});var cwt=x(pue=>{"use strict";d();p();Object.defineProperty(pue,"__esModule",{value:!0});var Nrn=IW();function Brn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(hue,"__esModule",{value:!0});var Drn=IW();function Orn(r){return function(e){return e.lift(new Drn.ZipOperator(r))}}hue.zipAll=Orn});var eU=x(Se=>{"use strict";d();p();Object.defineProperty(Se,"__esModule",{value:!0});var Lrn=nce();Se.audit=Lrn.audit;var Frn=Vbt();Se.auditTime=Frn.auditTime;var qrn=$bt();Se.buffer=qrn.buffer;var Wrn=Qbt();Se.bufferCount=Wrn.bufferCount;var Urn=evt();Se.bufferTime=Urn.bufferTime;var Hrn=rvt();Se.bufferToggle=Hrn.bufferToggle;var jrn=nvt();Se.bufferWhen=jrn.bufferWhen;var zrn=avt();Se.catchError=zrn.catchError;var Krn=ivt();Se.combineAll=Krn.combineAll;var Grn=svt();Se.combineLatest=Grn.combineLatest;var Vrn=ovt();Se.concat=Vrn.concat;var $rn=coe();Se.concatAll=$rn.concatAll;var Yrn=pce();Se.concatMap=Yrn.concatMap;var Jrn=cvt();Se.concatMapTo=Jrn.concatMapTo;var Qrn=uvt();Se.count=Qrn.count;var Zrn=lvt();Se.debounce=Zrn.debounce;var Xrn=dvt();Se.debounceTime=Xrn.debounceTime;var enn=GT();Se.defaultIfEmpty=enn.defaultIfEmpty;var tnn=hvt();Se.delay=tnn.delay;var rnn=mvt();Se.delayWhen=rnn.delayWhen;var nnn=yvt();Se.dematerialize=nnn.dematerialize;var ann=bvt();Se.distinct=ann.distinct;var inn=vce();Se.distinctUntilChanged=inn.distinctUntilChanged;var snn=vvt();Se.distinctUntilKeyChanged=snn.distinctUntilKeyChanged;var onn=_vt();Se.elementAt=onn.elementAt;var cnn=xvt();Se.endWith=cnn.endWith;var unn=Tvt();Se.every=unn.every;var lnn=Evt();Se.exhaust=lnn.exhaust;var dnn=Ivt();Se.exhaustMap=dnn.exhaustMap;var pnn=Svt();Se.expand=pnn.expand;var hnn=M2();Se.filter=hnn.filter;var fnn=Pvt();Se.finalize=fnn.finalize;var mnn=Ice();Se.find=mnn.find;var ynn=Nvt();Se.findIndex=ynn.findIndex;var gnn=Bvt();Se.first=gnn.first;var bnn=bse();Se.groupBy=bnn.groupBy;var vnn=Dvt();Se.ignoreElements=vnn.ignoreElements;var wnn=Ovt();Se.isEmpty=wnn.isEmpty;var _nn=Lvt();Se.last=_nn.last;var xnn=md();Se.map=xnn.map;var Tnn=Fvt();Se.mapTo=Tnn.mapTo;var Enn=qvt();Se.materialize=Enn.materialize;var Cnn=jvt();Se.max=Cnn.max;var Inn=zvt();Se.merge=Inn.merge;var knn=wW();Se.mergeAll=knn.mergeAll;var lwt=Ok();Se.mergeMap=lwt.mergeMap;Se.flatMap=lwt.flatMap;var Ann=Gvt();Se.mergeMapTo=Ann.mergeMapTo;var Snn=Yvt();Se.mergeScan=Snn.mergeScan;var Pnn=Jvt();Se.min=Pnn.min;var Rnn=H2();Se.multicast=Rnn.multicast;var Mnn=Rse();Se.observeOn=Mnn.observeOn;var Nnn=e2t();Se.onErrorResumeNext=Nnn.onErrorResumeNext;var Bnn=t2t();Se.pairwise=Bnn.pairwise;var Dnn=n2t();Se.partition=Dnn.partition;var Onn=a2t();Se.pluck=Onn.pluck;var Lnn=o2t();Se.publish=Lnn.publish;var Fnn=c2t();Se.publishBehavior=Fnn.publishBehavior;var qnn=u2t();Se.publishLast=qnn.publishLast;var Wnn=l2t();Se.publishReplay=Wnn.publishReplay;var Unn=d2t();Se.race=Unn.race;var Hnn=vA();Se.reduce=Hnn.reduce;var jnn=h2t();Se.repeat=jnn.repeat;var znn=f2t();Se.repeatWhen=znn.repeatWhen;var Knn=m2t();Se.retry=Knn.retry;var Gnn=y2t();Se.retryWhen=Gnn.retryWhen;var Vnn=uW();Se.refCount=Vnn.refCount;var $nn=g2t();Se.sample=$nn.sample;var Ynn=b2t();Se.sampleTime=Ynn.sampleTime;var Jnn=YW();Se.scan=Jnn.scan;var Qnn=T2t();Se.sequenceEqual=Qnn.sequenceEqual;var Znn=E2t();Se.share=Znn.share;var Xnn=C2t();Se.shareReplay=Xnn.shareReplay;var ean=I2t();Se.single=ean.single;var tan=k2t();Se.skip=tan.skip;var ran=S2t();Se.skipLast=ran.skipLast;var nan=P2t();Se.skipUntil=nan.skipUntil;var aan=R2t();Se.skipWhile=aan.skipWhile;var ian=N2t();Se.startWith=ian.startWith;var san=D2t();Se.subscribeOn=san.subscribeOn;var oan=L2t();Se.switchAll=oan.switchAll;var can=QW();Se.switchMap=can.switchMap;var uan=q2t();Se.switchMapTo=uan.switchMapTo;var lan=VW();Se.take=lan.take;var dan=$W();Se.takeLast=dan.takeLast;var pan=W2t();Se.takeUntil=pan.takeUntil;var han=U2t();Se.takeWhile=han.takeWhile;var fan=H2t();Se.tap=fan.tap;var man=iue();Se.throttle=man.throttle;var yan=j2t();Se.throttleTime=yan.throttleTime;var gan=oA();Se.throwIfEmpty=gan.throwIfEmpty;var ban=K2t();Se.timeInterval=ban.timeInterval;var van=G2t();Se.timeout=van.timeout;var wan=oue();Se.timeoutWith=wan.timeoutWith;var _an=$2t();Se.timestamp=_an.timestamp;var xan=Y2t();Se.toArray=xan.toArray;var Tan=Q2t();Se.window=Tan.window;var Ean=X2t();Se.windowCount=Ean.windowCount;var Can=nwt();Se.windowTime=Can.windowTime;var Ian=iwt();Se.windowToggle=Ian.windowToggle;var kan=swt();Se.windowWhen=kan.windowWhen;var Aan=owt();Se.withLatestFrom=Aan.withLatestFrom;var San=cwt();Se.zip=San.zip;var Pan=uwt();Se.zipAll=Pan.zipAll});var dwt=x(qp=>{"use strict";d();p();Object.defineProperty(qp,"__esModule",{value:!0});qp.ClientMessagePublishEvent=qp.ClientMessageSetSessionConfig=qp.ClientMessageGetSessionConfig=qp.ClientMessageIsLinked=qp.ClientMessageHostSession=void 0;function Ran(r){return Object.assign({type:"HostSession"},r)}qp.ClientMessageHostSession=Ran;function Man(r){return Object.assign({type:"IsLinked"},r)}qp.ClientMessageIsLinked=Man;function Nan(r){return Object.assign({type:"GetSessionConfig"},r)}qp.ClientMessageGetSessionConfig=Nan;function Ban(r){return Object.assign({type:"SetSessionConfig"},r)}qp.ClientMessageSetSessionConfig=Ban;function Dan(r){return Object.assign({type:"PublishEvent"},r)}qp.ClientMessagePublishEvent=Dan});var hwt=x(K2=>{"use strict";d();p();Object.defineProperty(K2,"__esModule",{value:!0});K2.RxWebSocket=K2.ConnectionState=void 0;var YT=Uk(),pwt=eU(),JT;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(JT=K2.ConnectionState||(K2.ConnectionState={}));var fue=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new YT.BehaviorSubject(JT.DISCONNECTED),this.incomingDataSubject=new YT.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,YT.throwError)(new Error("webSocket object is not null")):new YT.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(JT.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(JT.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(JT.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,pwt.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(JT.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,pwt.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,YT.empty)()}return(0,YT.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};K2.RxWebSocket=fue});var fwt=x(tU=>{"use strict";d();p();Object.defineProperty(tU,"__esModule",{value:!0});tU.isServerMessageFail=void 0;function Oan(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}tU.isServerMessageFail=Oan});var ywt=x(nU=>{"use strict";d();p();Object.defineProperty(nU,"__esModule",{value:!0});nU.WalletSDKConnection=void 0;var ef=Uk(),Yr=eU(),KA=xq(),QT=VI(),GA=dwt(),VA=pq(),rU=hwt(),mue=fwt(),mwt=1e4,Lan=6e4,yue=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new ef.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,QT.IntNumber)(1),this.connectedSubject=new ef.BehaviorSubject(!1),this.linkedSubject=new ef.BehaviorSubject(!1),this.sessionConfigSubject=new ef.ReplaySubject(1);let s=new rU.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,Yr.tap)(o=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(VA.EVENTS.CONNECTED_STATE_CHANGE,{state:o,sessionIdHash:KA.Session.hash(e)})}),(0,Yr.skip)(1),(0,Yr.filter)(o=>o===rU.ConnectionState.DISCONNECTED&&!this.destroyed),(0,Yr.delay)(5e3),(0,Yr.filter)(o=>!this.destroyed),(0,Yr.flatMap)(o=>s.connect()),(0,Yr.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,Yr.skip)(2),(0,Yr.switchMap)(o=>(0,ef.iif)(()=>o===rU.ConnectionState.CONNECTED,this.authenticate().pipe((0,Yr.tap)(c=>this.sendIsLinked()),(0,Yr.tap)(c=>this.sendGetSessionConfig()),(0,Yr.map)(c=>!0)),(0,ef.of)(!1))),(0,Yr.distinctUntilChanged)(),(0,Yr.catchError)(o=>(0,ef.of)(!1))).subscribe(o=>this.connectedSubject.next(o))),this.subscriptions.add(s.connectionState$.pipe((0,Yr.skip)(1),(0,Yr.switchMap)(o=>(0,ef.iif)(()=>o===rU.ConnectionState.CONNECTED,(0,ef.timer)(0,mwt)))).subscribe(o=>o===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,Yr.filter)(o=>o==="h")).subscribe(o=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,Yr.filter)(o=>["IsLinkedOK","Linked"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(VA.EVENTS.LINKED,{sessionIdHash:KA.Session.hash(e),linked:u.linked,type:o.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,Yr.filter)(o=>["GetSessionConfigOK","SessionConfigUpdated"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(VA.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:KA.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(VA.EVENTS.STARTED_CONNECTING,{sessionIdHash:KA.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(VA.EVENTS.DISCONNECTED,{sessionIdHash:KA.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,Yr.filter)(e=>e),(0,Yr.take)(1),(0,Yr.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,Yr.filter)(e=>e),(0,Yr.take)(1),(0,Yr.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,Yr.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,Yr.map)(e=>e))}setSessionMetadata(e,t){let n=(0,GA.ClientMessageSetSessionConfig)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,Yr.flatMap)(a=>this.makeRequest(n)),(0,Yr.map)(a=>{if((0,mue.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,GA.ClientMessagePublishEvent)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,Yr.flatMap)(i=>this.makeRequest(a)),(0,Yr.map)(i=>{if((0,mue.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>mwt*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=Lan){let n=e.id;try{this.sendData(e)}catch(a){return(0,ef.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,Yr.timeoutWith)(t,(0,ef.throwError)(new Error(`request ${n} timed out`))),(0,Yr.filter)(a=>a.id===n),(0,Yr.take)(1))}authenticate(){let e=(0,GA.ClientMessageHostSession)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,Yr.map)(t=>{if((0,mue.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,GA.ClientMessageIsLinked)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,GA.ClientMessageGetSessionConfig)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};nU.WalletSDKConnection=yue});var gwt=x(aU=>{"use strict";d();p();Object.defineProperty(aU,"__esModule",{value:!0});aU.WalletUIError=void 0;var G2=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};aU.WalletUIError=G2;G2.UserRejectedRequest=new G2("User rejected request");G2.SwitchEthereumChainUnsupportedChainId=new G2("Unsupported chainId",4902)});var bwt=x(ZT=>{"use strict";d();p();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.decrypt=ZT.encrypt=void 0;var iU=Q0();async function Fan(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,iU.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,o=i.slice(i.byteLength-s),c=i.slice(0,i.byteLength-s),u=new Uint8Array(o),l=new Uint8Array(c),h=new Uint8Array([...t,...u,...l]);return(0,iU.uint8ArrayToHex)(h)}ZT.encrypt=Fan;function qan(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((t,n)=>{(async function(){let a=await crypto.subtle.importKey("raw",(0,iU.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=(0,iU.hexStringToUint8Array)(r),s=i.slice(0,12),o=i.slice(12,28),c=i.slice(28),u=new Uint8Array([...c,...o]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let h=await window.crypto.subtle.decrypt(l,a,u),f=new TextDecoder;t(f.decode(h))}catch(h){n(h)}})()})}ZT.decrypt=qan});var gue=x($A=>{"use strict";d();p();Object.defineProperty($A,"__esModule",{value:!0});$A.Web3Method=void 0;var Wan;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(Wan=$A.Web3Method||($A.Web3Method={}))});var sU=x(YA=>{"use strict";d();p();Object.defineProperty(YA,"__esModule",{value:!0});YA.RelayMessageType=void 0;var Uan;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(Uan=YA.RelayMessageType||(YA.RelayMessageType={}))});var vwt=x(oU=>{"use strict";d();p();Object.defineProperty(oU,"__esModule",{value:!0});oU.Web3RequestCanceledMessage=void 0;var Han=sU();function jan(r){return{type:Han.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}oU.Web3RequestCanceledMessage=jan});var wwt=x(cU=>{"use strict";d();p();Object.defineProperty(cU,"__esModule",{value:!0});cU.Web3RequestMessage=void 0;var zan=sU();function Kan(r){return Object.assign({type:zan.RelayMessageType.WEB3_REQUEST},r)}cU.Web3RequestMessage=Kan});var _wt=x(Fi=>{"use strict";d();p();Object.defineProperty(Fi,"__esModule",{value:!0});Fi.EthereumAddressFromSignedMessageResponse=Fi.SubmitEthereumTransactionResponse=Fi.SignEthereumTransactionResponse=Fi.SignEthereumMessageResponse=Fi.isRequestEthereumAccountsResponse=Fi.SelectProviderResponse=Fi.WatchAssetReponse=Fi.RequestEthereumAccountsResponse=Fi.SwitchEthereumChainResponse=Fi.AddEthereumChainResponse=Fi.ErrorResponse=void 0;var km=gue();function Gan(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Fi.ErrorResponse=Gan;function Van(r){return{method:km.Web3Method.addEthereumChain,result:r}}Fi.AddEthereumChainResponse=Van;function $an(r){return{method:km.Web3Method.switchEthereumChain,result:r}}Fi.SwitchEthereumChainResponse=$an;function Yan(r){return{method:km.Web3Method.requestEthereumAccounts,result:r}}Fi.RequestEthereumAccountsResponse=Yan;function Jan(r){return{method:km.Web3Method.watchAsset,result:r}}Fi.WatchAssetReponse=Jan;function Qan(r){return{method:km.Web3Method.selectProvider,result:r}}Fi.SelectProviderResponse=Qan;function Zan(r){return r&&r.method===km.Web3Method.requestEthereumAccounts}Fi.isRequestEthereumAccountsResponse=Zan;function Xan(r){return{method:km.Web3Method.signEthereumMessage,result:r}}Fi.SignEthereumMessageResponse=Xan;function ein(r){return{method:km.Web3Method.signEthereumTransaction,result:r}}Fi.SignEthereumTransactionResponse=ein;function tin(r){return{method:km.Web3Method.submitEthereumTransaction,result:r}}Fi.SubmitEthereumTransactionResponse=tin;function rin(r){return{method:km.Web3Method.ethereumAddressFromSignedMessage,result:r}}Fi.EthereumAddressFromSignedMessageResponse=rin});var Twt=x(XT=>{"use strict";d();p();Object.defineProperty(XT,"__esModule",{value:!0});XT.isWeb3ResponseMessage=XT.Web3ResponseMessage=void 0;var xwt=sU();function nin(r){return Object.assign({type:xwt.RelayMessageType.WEB3_RESPONSE},r)}XT.Web3ResponseMessage=nin;function ain(r){return r&&r.type===xwt.RelayMessageType.WEB3_RESPONSE}XT.isWeb3ResponseMessage=ain});var kwt=x(Ll=>{"use strict";d();p();var iin=Ll&&Ll.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),sin=Ll&&Ll.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Cwt=Ll&&Ll.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(s=r[o])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},oin=Ll&&Ll.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&iin(e,r,t);return sin(e,r),e},cin=Ll&&Ll.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.WalletSDKRelay=void 0;var Iwt=cin(Gbt()),Ewt=lq(),e6=Uk(),Co=eU(),Su=pq(),uin=ywt(),bue=gwt(),lin=VI(),qi=Q0(),cg=oin(bwt()),ug=xq(),uU=aie(),nc=gue(),din=vwt(),pin=wwt(),gd=_wt(),Xu=Twt(),bd=class extends uU.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new e6.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new e6.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=ug.Session.load(this.storage)||new ug.Session(this.storage).save(),t=new uin.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,Co.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,Co.skip)(1),(0,Co.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(uU.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let o=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(o[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;let u=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(Su.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,Co.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,Co.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,Co.mergeMap)(a=>cg.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(uU.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Co.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,Co.mergeMap)(a=>cg.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(uU.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Co.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,Co.mergeMap)(a=>(0,e6.zip)(cg.decrypt(a.metadata.ChainId,e.secret),cg.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,Co.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Co.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,Co.mergeMap)(a=>cg.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),bd.accountRequestCallbackIds.size>0&&(Array.from(bd.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,Xu.Web3ResponseMessage)({id:i,response:(0,gd.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),bd.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Co.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,Co.mergeMap)(a=>cg.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,Co.timeout)(1e3),(0,Co.catchError)(e=>(0,e6.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(Su.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=ug.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(Su.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:ug.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Su.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:nc.Web3Method.signEthereumMessage,params:{message:(0,qi.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:nc.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,qi.hexStringFromBuffer)(e,!0),signature:(0,qi.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:nc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,qi.bigIntStringFromBN)(e.weiValue),data:(0,qi.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,qi.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,qi.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,qi.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,qi.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:nc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,qi.bigIntStringFromBN)(e.weiValue),data:(0,qi.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,qi.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,qi.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,qi.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,qi.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:nc.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,qi.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:nc.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,qi.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:nc.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,qi.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(t?.(),c.errorMessage)return o(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,pin.Web3RequestMessage)({id:e,request:t}),i=ug.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(Su.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?ug.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var o;(o=this.diagnostic)===null||o===void 0||o.log(Su.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?ug.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,din.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new e6.Observable(i=>{cg.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,Co.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,e6.from)(cg.decrypt(e.data,this.session.secret)).pipe((0,Co.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,Xu.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Su.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(Su.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,gd.isRequestEthereumAccountsResponse)(n)){bd.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),bd.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:e,response:(0,gd.ErrorResponse)(t,(n??bue.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:nc.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,qi.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{var c;this.relayEventManager.callbacks.set(n,l=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),l.errorMessage)return o(new Error(l.errorMessage));s(l)});let u=((c=window?.navigator)===null||c===void 0?void 0:c.userAgent)||null;if(u&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u)){let l;try{(0,qi.isInIFrame)()&&window.top?l=window.top.location:l=window.location}catch{l=window.location}l.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(l.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=h=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:n,response:(0,gd.RequestEthereumAccountsResponse)(h)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:l})}else{let l=Ewt.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(l)})}bd.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:nc.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,qi.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,o)=>{this.relayEventManager.callbacks.set(n,l=>{if(l.errorMessage)return o(new Error(l.errorMessage));s(l)});let c=l=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:n,response:(0,gd.SelectProviderResponse)(lin.ProviderType.Unselected)}))},u=l=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:n,response:(0,gd.SelectProviderResponse)(l)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let o={method:nc.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},c=null,u=(0,qi.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}));let h=new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,I=>{if(c?.(),I.errorMessage)return m(new Error(I.errorMessage));f(I)});let y=I=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.WatchAssetReponse)(!1)}))},E=()=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:E,onCancel:y,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)});return{cancel:l,promise:h}}addEthereumChain(e,t,n,a,i,s){let o={method:nc.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},c=null,u=(0,qi.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,I=>{if(c?.(),I.errorMessage)return m(new Error(I.errorMessage));f(I)});let y=I=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},E=I=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.AddEthereumChainResponse)({isApproved:!0,rpcUrl:I})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:y,onApprove:E,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)}),cancel:l}}switchEthereumChain(e,t){let n={method:nc.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,qi.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,o)};return{promise:new Promise((o,c)=>{this.relayEventManager.callbacks.set(a,h=>{if(h.errorMessage&&h.errorCode)return c(Ewt.ethErrors.provider.custom({code:h.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(h.errorMessage)return c(new Error(h.errorMessage));o(h)});let u=h=>{if(typeof h=="number"){let f=h;this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a,response:(0,gd.ErrorResponse)(nc.Web3Method.switchEthereumChain,bue.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,f)}))}else h instanceof bue.WalletUIError?this.handleErrorResponse(a,nc.Web3Method.switchEthereumChain,h,h.errorCode):this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a,response:(0,gd.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},l=h=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a,response:(0,gd.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:h})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:l,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return ug.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case nc.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};bd.accountRequestCallbackIds=new Set;Cwt([Iwt.default],bd.prototype,"resetAndReload",null);Cwt([Iwt.default],bd.prototype,"handleIncomingEvent",null);Ll.WalletSDKRelay=bd});var Awt=x(lU=>{"use strict";d();p();Object.defineProperty(lU,"__esModule",{value:!0});lU.WalletSDKRelayEventManager=void 0;var hin=Q0(),vue=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,hin.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};lU.WalletSDKRelayEventManager=vue});var Swt=x((Dda,fin)=>{fin.exports={name:"@coinbase/wallet-sdk",version:"3.6.4",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var wue=x(dU=>{"use strict";d();p();Object.defineProperty(dU,"__esModule",{value:!0});dU.CoinbaseWalletSDK=void 0;var min=eft(),yin=tft(),gin=Yq(),bin=zbt(),vin=kwt(),win=Awt(),_in=Q0(),xin=g.env.LINK_API_URL||"https://www.walletlink.org",Pwt=g.env.SDK_VERSION||Swt().version||"unknown",t6=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||xin,s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new bin.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let o=new URL(i),c=`${o.protocol}//${o.host}`;this._storage=new yin.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",t6.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new win.WalletSDKRelayEventManager,this._relay=new vin.WalletSDKRelay({linkAPIUrl:i,version:Pwt,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new gin.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,_in.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,min.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};dU.CoinbaseWalletSDK=t6;t6.VERSION=Pwt});var xue=x(V2=>{"use strict";d();p();Object.defineProperty(V2,"__esModule",{value:!0});V2.CoinbaseWalletProvider=V2.CoinbaseWalletSDK=void 0;var _ue=wue(),Rwt=Yq(),Tin=wue();Object.defineProperty(V2,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return Tin.CoinbaseWalletSDK}});var Ein=Yq();Object.defineProperty(V2,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return Ein.CoinbaseWalletProvider}});V2.default=_ue.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=_ue.CoinbaseWalletSDK,window.CoinbaseWalletProvider=Rwt.CoinbaseWalletProvider,window.WalletLink=_ue.CoinbaseWalletSDK,window.WalletLinkProvider=Rwt.CoinbaseWalletProvider)});var Dwt=x(Iue=>{"use strict";d();p();Object.defineProperty(Iue,"__esModule",{value:!0});var Tue=bm(),tf=vm(),r6=ec(),Mwt=je(),pU=Xr(),$2=eT(),Nwt=tT();Yu();vt();Qe();function Cin(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var n6=new WeakMap,JA=new WeakMap,Eue=new WeakSet,Cue=class extends $2.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),Tue._classPrivateMethodInitSpec(this,Eue),r6._defineProperty(this,"id","coinbaseWallet"),r6._defineProperty(this,"name","Coinbase Wallet"),r6._defineProperty(this,"ready",!0),tf._classPrivateFieldInitSpec(this,n6,{writable:!0,value:void 0}),tf._classPrivateFieldInitSpec(this,JA,{writable:!0,value:void 0}),r6._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:pU.getAddress(a[0])})}),r6._defineProperty(this,"onChainChanged",a=>{let i=Nwt.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),r6._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=pU.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new Mwt.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new $2.UserRejectedRequestError(t):t}}async disconnect(){if(!tf._classPrivateFieldGet(this,JA))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return pU.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return Nwt.normalizeChainId(e.chainId)}async getProvider(){if(!tf._classPrivateFieldGet(this,JA)){let e=(await Promise.resolve().then(function(){return Cin(xue())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),tf._classPrivateFieldSet(this,n6,new e(this.options));let t=tf._classPrivateFieldGet(this,n6).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];tf._classPrivateFieldSet(this,JA,tf._classPrivateFieldGet(this,n6).makeWeb3Provider(i,a))}return tf._classPrivateFieldGet(this,JA)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Mwt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=pU.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new $2.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw Tue._classPrivateMethodGet(this,Eue,Bwt).call(this,s)?new $2.UserRejectedRequestError(s):new $2.AddChainError}throw Tue._classPrivateMethodGet(this,Eue,Bwt).call(this,a)?new $2.UserRejectedRequestError(a):new $2.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrCode(){if(await this.getProvider(),!tf._classPrivateFieldGet(this,n6))throw new Error("Coinbase Wallet SDK not initialized");return tf._classPrivateFieldGet(this,n6).getQrUrl()}};function Bwt(r){return/(user rejected)/i.test(r.message)}Iue.CoinbaseWalletConnector=Cue});var Owt=x(kue=>{"use strict";d();p();Object.defineProperty(kue,"__esModule",{value:!0});var hU=ec(),Iin=Qx(),kin=Xx(),Ain=lc();Qe();bm();Yu();vt();G1();je();typeof window<"u"&&(window.Buffer=Ain.Buffer);var Y2=class extends kin.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Y2.id,e),hU._defineProperty(this,"connector",void 0),hU._defineProperty(this,"coinbaseConnector",void 0)}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return Dwt()}),t=new e({chains:this.chains,options:{appName:this.options.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.options.theme==="dark",headlessMode:!0}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new Iin.WagmiAdapter(t)}return this.connector}async getQrCode(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrCode()}};hU._defineProperty(Y2,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});hU._defineProperty(Y2,"id","coinbaseWallet");kue.CoinbaseWallet=Y2});var ac=x(Lwt=>{"use strict";d();p();function Sin(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Pin(r){var e=Sin(r,"string");return typeof e=="symbol"?e:String(e)}function Rin(r,e,t){return e=Pin(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}Lwt._defineProperty=Rin});var a6=x(Sue=>{"use strict";d();p();var Min=ac(),Nin=Qe();function Bin(r){return r&&r.__esModule?r:{default:r}}var Din=Bin(Nin),fU=class extends Din.default{},Aue=class extends fU{constructor(e){super(),Min._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};Sue.TWConnector=fU;Sue.WagmiAdapter=Aue});var el=x(Fwt=>{"use strict";d();p();function Oin(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}Fwt._checkPrivateRedeclaration=Oin});var Am=x(Pue=>{"use strict";d();p();var Lin=el();function Fin(r,e){Lin._checkPrivateRedeclaration(r,e),e.add(r)}function qin(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}Pue._classPrivateMethodGet=qin;Pue._classPrivateMethodInitSpec=Fin});var lg=x(mU=>{"use strict";d();p();Object.defineProperty(mU,"__esModule",{value:!0});var qwt=ac(),i6=je(),Win=Qe();function Uin(r){return r&&r.__esModule?r:{default:r}}var Hin=Uin(Win);function jin(r){return`https://${r}.rpc.thirdweb.com`}var zin=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],Kin="0x1626ba7e";async function Wwt(r,e,t,n){let a=new i6.providers.JsonRpcProvider(jin(n)),i=new i6.Contract(t,zin,a),s=i6.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===Kin}catch{return!1}}var Rue=class extends Hin.default{constructor(){super(...arguments),qwt._defineProperty(this,"type","evm"),qwt._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=i6.utils.hashMessage(e),s=i6.utils.arrayify(i);if(i6.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await Wwt(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};mU.AbstractWallet=Rue;mU.checkContractWalletSignature=Wwt});var s6=x(QA=>{"use strict";d();p();var Uwt=Am(),J2=ac(),Fl=vt(),Gin=lg(),Mue="__TW__",yU=class{constructor(e){J2._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${Mue}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${Mue}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${Mue}/${this.name}/${e}`),t()})}};function Nue(r){return new yU(r)}var Ga=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({});Ga.Mainnet,Ga.Goerli,Ga.Polygon,Ga.Mumbai,Ga.Fantom,Ga.FantomTestnet,Ga.Avalanche,Ga.AvalancheFujiTestnet,Ga.Optimism,Ga.OptimismGoerli,Ga.Arbitrum,Ga.ArbitrumGoerli,Ga.BinanceSmartChainMainnet,Ga.BinanceSmartChainTestnet;var Vin={[Ga.Mainnet]:Fl.Ethereum,[Ga.Goerli]:Fl.Goerli,[Ga.Polygon]:Fl.Polygon,[Ga.Mumbai]:Fl.Mumbai,[Ga.Avalanche]:Fl.Avalanche,[Ga.AvalancheFujiTestnet]:Fl.AvalancheFuji,[Ga.Fantom]:Fl.Fantom,[Ga.FantomTestnet]:Fl.FantomTestnet,[Ga.Arbitrum]:Fl.Arbitrum,[Ga.ArbitrumGoerli]:Fl.ArbitrumGoerli,[Ga.Optimism]:Fl.Optimism,[Ga.OptimismGoerli]:Fl.OptimismGoerli,[Ga.BinanceSmartChainMainnet]:Fl.Binance,[Ga.BinanceSmartChainTestnet]:Fl.BinanceTestnet},jwt=Object.values(Vin),Hwt=new WeakSet,gU=class extends Gin.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),Uwt._classPrivateMethodInitSpec(this,Hwt),J2._defineProperty(this,"walletId",void 0),J2._defineProperty(this,"coordinatorStorage",void 0),J2._defineProperty(this,"walletStorage",void 0),J2._defineProperty(this,"chains",void 0),J2._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t.chains||jwt,this.coordinatorStorage=t.coordinatorStorage||Nue("coordinator"),this.walletStorage=t.walletStorage||Nue(this.walletId)}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")!==this.walletId)return;let t=await this.walletStorage.getItem("lastConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}return await this.connect(n)}async connect(e){let t=await this.getConnector();Uwt._classPrivateMethodGet(this,Hwt,$in).call(this,t);let n=async()=>{if(e?.saveParams!==!1)try{await this.walletStorage.setItem("lastConnectedParams",JSON.stringify(e)),await this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId)}catch(i){console.error(i)}};if(await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),await n(),e?.chainId&&await t.switchChain(e?.chainId),i}else{let i=await t.connect(e);return await n(),i}}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async onDisconnect(){await this.coordinatorStorage.getItem("lastConnectedWallet")===this.walletId&&await this.coordinatorStorage.removeItem("lastConnectedWallet")}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),e.removeAllListeners(),await this.onDisconnect())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function $in(r){r.on("connect",e=>{this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId),this.emit("connect",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{await this.onDisconnect(),this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}J2._defineProperty(gU,"meta",void 0);QA.AbstractBrowserWallet=gU;QA.AsyncLocalStorage=yU;QA.createAsyncLocalStorage=Nue;QA.thirdwebChains=jwt});var Sm=x(bU=>{"use strict";d();p();var Yin=el();function Jin(r,e,t){Yin._checkPrivateRedeclaration(r,e),e.set(r,t)}function Qin(r,e){return e.get?e.get.call(r):e.value}function zwt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function Zin(r,e){var t=zwt(r,e,"get");return Qin(r,t)}function Xin(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function esn(r,e,t){var n=zwt(r,e,"set");return Xin(r,n,t),t}bU._classPrivateFieldGet=Zin;bU._classPrivateFieldInitSpec=Jin;bU._classPrivateFieldSet=esn});var o6=x(ey=>{"use strict";d();p();var Pu=ac(),tsn=vt(),rsn=Qe();function nsn(r){return r&&r.__esModule?r:{default:r}}var asn=nsn(rsn),Bue=class extends asn.default{constructor(e){let{chains:t=tsn.defaultChains,options:n}=e;super(),Pu._defineProperty(this,"id",void 0),Pu._defineProperty(this,"name",void 0),Pu._defineProperty(this,"chains",void 0),Pu._defineProperty(this,"options",void 0),Pu._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},vU=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),Pu._defineProperty(this,"cause",void 0),Pu._defineProperty(this,"code",void 0),Pu._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},ZA=class extends vU{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},Due=class extends Error{constructor(){super(...arguments),Pu._defineProperty(this,"name","AddChainError"),Pu._defineProperty(this,"message","Error adding chain")}},Oue=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),Pu._defineProperty(this,"name","ChainNotConfigured")}},Lue=class extends Error{constructor(){super(...arguments),Pu._defineProperty(this,"name","ConnectorNotFoundError"),Pu._defineProperty(this,"message","Connector not found")}},Fue=class extends vU{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),Pu._defineProperty(this,"name","ResourceUnavailable")}},que=class extends ZA{constructor(e){super("Error switching chain",{cause:e,code:4902}),Pu._defineProperty(this,"name","SwitchChainError")}},Wue=class extends ZA{constructor(e){super("User rejected request",{cause:e,code:4001}),Pu._defineProperty(this,"name","UserRejectedRequestError")}};ey.AddChainError=Due;ey.ChainNotConfiguredError=Oue;ey.Connector=Bue;ey.ConnectorNotFoundError=Lue;ey.ProviderRpcError=ZA;ey.ResourceUnavailableError=Fue;ey.SwitchChainError=que;ey.UserRejectedRequestError=Wue});var c6=x(Kwt=>{"use strict";d();p();function isn(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}Kwt.normalizeChainId=isn});var Ywt=x(zue=>{"use strict";d();p();Object.defineProperty(zue,"__esModule",{value:!0});var Uue=Am(),rf=Sm(),u6=ac(),Gwt=je(),wU=Xr(),Q2=o6(),Vwt=c6();el();vt();Qe();function ssn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var l6=new WeakMap,XA=new WeakMap,Hue=new WeakSet,jue=class extends Q2.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),Uue._classPrivateMethodInitSpec(this,Hue),u6._defineProperty(this,"id","coinbaseWallet"),u6._defineProperty(this,"name","Coinbase Wallet"),u6._defineProperty(this,"ready",!0),rf._classPrivateFieldInitSpec(this,l6,{writable:!0,value:void 0}),rf._classPrivateFieldInitSpec(this,XA,{writable:!0,value:void 0}),u6._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:wU.getAddress(a[0])})}),u6._defineProperty(this,"onChainChanged",a=>{let i=Vwt.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),u6._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=wU.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new Gwt.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new Q2.UserRejectedRequestError(t):t}}async disconnect(){if(!rf._classPrivateFieldGet(this,XA))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return wU.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return Vwt.normalizeChainId(e.chainId)}async getProvider(){if(!rf._classPrivateFieldGet(this,XA)){let e=(await Promise.resolve().then(function(){return ssn(xue())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),rf._classPrivateFieldSet(this,l6,new e(this.options));let t=rf._classPrivateFieldGet(this,l6).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];rf._classPrivateFieldSet(this,XA,rf._classPrivateFieldGet(this,l6).makeWeb3Provider(i,a))}return rf._classPrivateFieldGet(this,XA)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Gwt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=wU.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Q2.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw Uue._classPrivateMethodGet(this,Hue,$wt).call(this,s)?new Q2.UserRejectedRequestError(s):new Q2.AddChainError}throw Uue._classPrivateMethodGet(this,Hue,$wt).call(this,a)?new Q2.UserRejectedRequestError(a):new Q2.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrCode(){if(await this.getProvider(),!rf._classPrivateFieldGet(this,l6))throw new Error("Coinbase Wallet SDK not initialized");return rf._classPrivateFieldGet(this,l6).getQrUrl()}};function $wt(r){return/(user rejected)/i.test(r.message)}zue.CoinbaseWalletConnector=jue});var Jwt=x(Kue=>{"use strict";d();p();Object.defineProperty(Kue,"__esModule",{value:!0});var _U=ac(),osn=a6(),csn=s6(),usn=lc();Qe();Am();el();vt();lg();je();typeof window<"u"&&(window.Buffer=usn.Buffer);var Z2=class extends csn.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Z2.id,e),_U._defineProperty(this,"connector",void 0),_U._defineProperty(this,"coinbaseConnector",void 0)}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return Ywt()}),t=new e({chains:this.chains,options:{appName:this.options.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.options.theme==="dark",headlessMode:!0}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new osn.WagmiAdapter(t)}return this.connector}async getQrCode(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrCode()}};_U._defineProperty(Z2,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});_U._defineProperty(Z2,"id","coinbaseWallet");Kue.CoinbaseWallet=Z2});var Qwt=x((kpa,Gue)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Gue.exports=Owt():Gue.exports=Jwt()});var Zwt=x(Jue=>{"use strict";d();p();Object.defineProperty(Jue,"__esModule",{value:!0});var Vue=vm(),lsn=G1();Yu();ec();je();Qe();var $ue=new WeakMap,Yue=class extends lsn.AbstractWallet{constructor(e){super(),Vue._classPrivateFieldInitSpec(this,$ue,{writable:!0,value:void 0}),Vue._classPrivateFieldSet(this,$ue,e)}async getSigner(){return Vue._classPrivateFieldGet(this,$ue)}};Jue.EthersWallet=Yue});var Xwt=x(ele=>{"use strict";d();p();Object.defineProperty(ele,"__esModule",{value:!0});var Que=Sm(),dsn=lg();el();ac();je();Qe();var Zue=new WeakMap,Xue=class extends dsn.AbstractWallet{constructor(e){super(),Que._classPrivateFieldInitSpec(this,Zue,{writable:!0,value:void 0}),Que._classPrivateFieldSet(this,Zue,e)}async getSigner(){return Que._classPrivateFieldGet(this,Zue)}};ele.EthersWallet=Xue});var e5t=x((Opa,tle)=>{"use strict";d();p();g.env.NODE_ENV==="production"?tle.exports=Zwt():tle.exports=Xwt()});var rle=x(t5t=>{"use strict";d();p();function psn(r){return typeof r<"u"&&"ethereum"in r}t5t.assertWindowEthereum=psn});var sle=x(ile=>{"use strict";d();p();Object.defineProperty(ile,"__esModule",{value:!0});var X2=vm(),dg=ec(),eS=je(),hsn=rle(),vd=eT(),r5t=tT();Yu();vt();Qe();function fsn(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var nle=new WeakMap,xU=new WeakMap,ale=class extends vd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(hsn.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),dg._defineProperty(this,"id",void 0),dg._defineProperty(this,"name",void 0),dg._defineProperty(this,"ready",void 0),X2._classPrivateFieldInitSpec(this,nle,{writable:!0,value:void 0}),X2._classPrivateFieldInitSpec(this,xU,{writable:!0,value:void 0}),dg._defineProperty(this,"connectorStorage",void 0),dg._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),dg._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:eS.utils.getAddress(i[0])})}),dg._defineProperty(this,"onChainChanged",i=>{let s=r5t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),dg._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&X2._classPrivateFieldGet(this,xU)){X2._classPrivateFieldSet(this,xU,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=fsn(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new vd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=eS.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new vd.UserRejectedRequestError(t):t.code===-32002?new vd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new vd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return eS.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new vd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(r5t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&X2._classPrivateFieldSet(this,nle,e),X2._classPrivateFieldGet(this,nle)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new eS.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new vd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&X2._classPrivateFieldSet(this,xU,!0);let t=await this.getProvider();if(!t)throw new vd.ConnectorNotFoundError;let n=eS.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new vd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new vd.UserRejectedRequestError(a):new vd.AddChainError}throw this.isUserRejectedRequestError(a)?new vd.UserRejectedRequestError(a):new vd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};ile.InjectedConnector=ale});var a5t=x(cle=>{"use strict";d();p();Object.defineProperty(cle,"__esModule",{value:!0});var ole=ec(),n5t=Xx(),msn=Qx();bm();Yu();vt();G1();je();Qe();var d6=class extends n5t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(d6.id,e),ole._defineProperty(this,"connector",void 0),ole._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||n5t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return sle()});this.connector=new msn.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};ole._defineProperty(d6,"id","injected");cle.InjectedWallet=d6});var ule=x(i5t=>{"use strict";d();p();function ysn(r){return typeof r<"u"&&"ethereum"in r}i5t.assertWindowEthereum=ysn});var hle=x(ple=>{"use strict";d();p();Object.defineProperty(ple,"__esModule",{value:!0});var ew=Sm(),pg=ac(),tS=je(),gsn=ule(),wd=o6(),s5t=c6();el();vt();Qe();function bsn(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var lle=new WeakMap,TU=new WeakMap,dle=class extends wd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(gsn.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),pg._defineProperty(this,"id",void 0),pg._defineProperty(this,"name",void 0),pg._defineProperty(this,"ready",void 0),ew._classPrivateFieldInitSpec(this,lle,{writable:!0,value:void 0}),ew._classPrivateFieldInitSpec(this,TU,{writable:!0,value:void 0}),pg._defineProperty(this,"connectorStorage",void 0),pg._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),pg._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:tS.utils.getAddress(i[0])})}),pg._defineProperty(this,"onChainChanged",i=>{let s=s5t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),pg._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&ew._classPrivateFieldGet(this,TU)){ew._classPrivateFieldSet(this,TU,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=bsn(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new wd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=tS.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new wd.UserRejectedRequestError(t):t.code===-32002?new wd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new wd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return tS.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new wd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(s5t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&ew._classPrivateFieldSet(this,lle,e),ew._classPrivateFieldGet(this,lle)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new tS.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new wd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&ew._classPrivateFieldSet(this,TU,!0);let t=await this.getProvider();if(!t)throw new wd.ConnectorNotFoundError;let n=tS.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new wd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new wd.UserRejectedRequestError(a):new wd.AddChainError}throw this.isUserRejectedRequestError(a)?new wd.UserRejectedRequestError(a):new wd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};ple.InjectedConnector=dle});var c5t=x(mle=>{"use strict";d();p();Object.defineProperty(mle,"__esModule",{value:!0});var fle=ac(),o5t=s6(),vsn=a6();Am();el();vt();lg();je();Qe();var p6=class extends o5t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(p6.id,e),fle._defineProperty(this,"connector",void 0),fle._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||o5t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return hle()});this.connector=new vsn.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};fle._defineProperty(p6,"id","injected");mle.InjectedWallet=p6});var u5t=x((nha,yle)=>{"use strict";d();p();g.env.NODE_ENV==="production"?yle.exports=a5t():yle.exports=c5t()});var l5t=x(wle=>{"use strict";d();p();Object.defineProperty(wle,"__esModule",{value:!0});var gle=vm(),wsn=ec(),EU=eT(),_sn=sle(),xsn=je(),Tsn=rle();Yu();vt();Qe();tT();var ble=new WeakMap,vle=class extends _sn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&Tsn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),wsn._defineProperty(this,"id","metaMask"),gle._classPrivateFieldInitSpec(this,ble,{writable:!0,value:void 0}),gle._classPrivateFieldSet(this,ble,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new EU.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(gle._classPrivateFieldGet(this,ble)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new EU.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=xsn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new EU.UserRejectedRequestError(t):t.code===-32002?new EU.ResourceUnavailableError(t):t}}};wle.MetaMaskConnector=vle});var d5t=ce(()=>{d();p()});var tw,_le=ce(()=>{d();p();tw=class{}});var CU,rS,h6,p5t=ce(()=>{d();p();_le();CU=class extends tw{constructor(e){super()}},rS=class extends tw{constructor(){super()}},h6=class extends rS{constructor(e){super()}}});var h5t=ce(()=>{d();p()});var xle={};cr(xle,{IBaseJsonRpcProvider:()=>rS,IEvents:()=>tw,IJsonRpcConnection:()=>CU,IJsonRpcProvider:()=>h6});var IU=ce(()=>{d();p();d5t();_le();p5t();h5t()});var f5t,m5t,y5t,g5t,kU,nS,Tle,AU,hg,aS,SU=ce(()=>{d();p();f5t="PARSE_ERROR",m5t="INVALID_REQUEST",y5t="METHOD_NOT_FOUND",g5t="INVALID_PARAMS",kU="INTERNAL_ERROR",nS="SERVER_ERROR",Tle=[-32700,-32600,-32601,-32602,-32603],AU=[-32e3,-32099],hg={[f5t]:{code:-32700,message:"Parse error"},[m5t]:{code:-32600,message:"Invalid Request"},[y5t]:{code:-32601,message:"Method not found"},[g5t]:{code:-32602,message:"Invalid params"},[kU]:{code:-32603,message:"Internal error"},[nS]:{code:-32e3,message:"Server error"}},aS=nS});function Esn(r){return r<=AU[0]&&r>=AU[1]}function PU(r){return Tle.includes(r)}function b5t(r){return typeof r=="number"}function RU(r){return Object.keys(hg).includes(r)?hg[r]:hg[aS]}function MU(r){let e=Object.values(hg).find(t=>t.code===r);return e||hg[aS]}function Csn(r){if(typeof r.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof r.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!b5t(r.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${r.error.code}`};if(PU(r.error.code)){let e=MU(r.error.code);if(e.message!==hg[aS].message&&r.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${r.error.code}`}}return{valid:!0}}function iS(r,e,t){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${e}`):r}var Ele=ce(()=>{d();p();SU()});var _d=x((Nha,BU)=>{d();p();var v5t,w5t,_5t,x5t,T5t,E5t,C5t,I5t,k5t,NU,Cle,A5t,S5t,f6,P5t,R5t,M5t,N5t,B5t,D5t,O5t,L5t,F5t;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof BU=="object"&&typeof BU.exports=="object"?r(t(e,t(BU.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])};v5t=function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)},w5t=Object.assign||function(t){for(var n,a=1,i=arguments.length;a=0;u--)(c=t[u])&&(o=(s<3?c(o):s>3?c(n,a,o):c(n,a))||o);return s>3&&o&&Object.defineProperty(n,a,o),o},T5t=function(t,n){return function(a,i){n(a,i,t)}},E5t=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)},C5t=function(t,n,a,i){function s(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function u(f){try{h(i.next(f))}catch(m){c(m)}}function l(f){try{h(i.throw(f))}catch(m){c(m)}}function h(f){f.done?o(f.value):s(f.value).then(u,l)}h((i=i.apply(t,n||[])).next())})},I5t=function(t,n){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(f){return l([h,f])}}function l(h){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,s=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Cle=function(t,n){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}return o},A5t=function(){for(var t=[],n=0;n1||u(y,E)})})}function u(y,E){try{l(i[y](E))}catch(I){m(o[0][3],I)}}function l(y){y.value instanceof f6?Promise.resolve(y.value.v).then(h,f):m(o[0][2],y)}function h(y){u("next",y)}function f(y){u("throw",y)}function m(y,E){y(E),o.shift(),o.length&&u(o[0][0],o[0][1])}},R5t=function(t){var n,a;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,o){n[s]=t[s]?function(c){return(a=!a)?{value:f6(t[s](c)),done:s==="return"}:o?o(c):c}:o}},M5t=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],a;return n?n.call(t):(t=typeof NU=="function"?NU(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(o){a[o]=t[o]&&function(c){return new Promise(function(u,l){c=t[o](c),s(u,l,c.done,c.value)})}}function s(o,c,u,l){Promise.resolve(l).then(function(h){o({value:h,done:u})},c)}},N5t=function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},B5t=function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a in t)Object.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n.default=t,n},D5t=function(t){return t&&t.__esModule?t:{default:t}},O5t=function(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)},L5t=function(t,n,a){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,a),a},r("__extends",v5t),r("__assign",w5t),r("__rest",_5t),r("__decorate",x5t),r("__param",T5t),r("__metadata",E5t),r("__awaiter",C5t),r("__generator",I5t),r("__exportStar",k5t),r("__createBinding",F5t),r("__values",NU),r("__read",Cle),r("__spread",A5t),r("__spreadArrays",S5t),r("__await",f6),r("__asyncGenerator",P5t),r("__asyncDelegator",R5t),r("__asyncValues",M5t),r("__makeTemplateObject",N5t),r("__importStar",B5t),r("__importDefault",D5t),r("__classPrivateFieldGet",O5t),r("__classPrivateFieldSet",L5t)})});var W5t=x(fg=>{"use strict";d();p();Object.defineProperty(fg,"__esModule",{value:!0});fg.isBrowserCryptoAvailable=fg.getSubtleCrypto=fg.getBrowerCrypto=void 0;function Ile(){return(global===null||global===void 0?void 0:global.crypto)||(global===null||global===void 0?void 0:global.msCrypto)||{}}fg.getBrowerCrypto=Ile;function q5t(){let r=Ile();return r.subtle||r.webkitSubtle}fg.getSubtleCrypto=q5t;function Isn(){return!!Ile()&&!!q5t()}fg.isBrowserCryptoAvailable=Isn});var j5t=x(mg=>{"use strict";d();p();Object.defineProperty(mg,"__esModule",{value:!0});mg.isBrowser=mg.isNode=mg.isReactNative=void 0;function U5t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}mg.isReactNative=U5t;function H5t(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}mg.isNode=H5t;function ksn(){return!U5t()&&!H5t()}mg.isBrowser=ksn});var m6=x(DU=>{"use strict";d();p();Object.defineProperty(DU,"__esModule",{value:!0});var z5t=_d();z5t.__exportStar(W5t(),DU);z5t.__exportStar(j5t(),DU)});var ao={};cr(ao,{isNodeJs:()=>G5t});var K5t,G5t,V5t=ce(()=>{d();p();K5t=un(m6());gr(ao,un(m6()));G5t=K5t.isNode});function OU(){let r=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return r+e}function kle(r,e,t){return{id:t||OU(),jsonrpc:"2.0",method:r,params:e}}function Asn(r,e){return{id:r,jsonrpc:"2.0",result:e}}function sS(r,e,t){return{id:r,jsonrpc:"2.0",error:$5t(e,t)}}function $5t(r,e){return typeof r>"u"?RU(kU):(typeof r=="string"&&(r=Object.assign(Object.assign({},RU(nS)),{message:r})),typeof e<"u"&&(r.data=e),PU(r.code)&&(r=MU(r.code)),r)}var Y5t=ce(()=>{d();p();Ele();SU()});function Ssn(r){return r.includes("*")?FU(r):!/\W/g.test(r)}function LU(r){return r==="*"}function FU(r){return LU(r)?!0:!(!r.includes("*")||r.split("*").length!==2||r.split("*").filter(e=>e.trim()==="").length!==1)}function Psn(r){return!LU(r)&&FU(r)&&!r.split("*")[0].trim()}function Rsn(r){return!LU(r)&&FU(r)&&!r.split("*")[1].trim()}var J5t=ce(()=>{d();p()});var Q5t=ce(()=>{d();p();IU()});function Bsn(r){let e=r.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function Z5t(r,e){let t=Bsn(r);return typeof t>"u"?!1:new RegExp(e).test(t)}function qU(r){return Z5t(r,Msn)}function WU(r){return Z5t(r,Nsn)}function Ale(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}var Msn,Nsn,X5t=ce(()=>{d();p();Msn="^https?:",Nsn="^wss?:"});function Sle(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Dsn(r){return Sle(r)&&"method"in r}function Ple(r){return Sle(r)&&(e3t(r)||UU(r))}function e3t(r){return"result"in r}function UU(r){return"error"in r}function Osn(r){return"error"in r&&r.valid===!1}var t3t=ce(()=>{d();p()});var io={};cr(io,{DEFAULT_ERROR:()=>aS,IBaseJsonRpcProvider:()=>rS,IEvents:()=>tw,IJsonRpcConnection:()=>CU,IJsonRpcProvider:()=>h6,INTERNAL_ERROR:()=>kU,INVALID_PARAMS:()=>g5t,INVALID_REQUEST:()=>m5t,METHOD_NOT_FOUND:()=>y5t,PARSE_ERROR:()=>f5t,RESERVED_ERROR_CODES:()=>Tle,SERVER_ERROR:()=>nS,SERVER_ERROR_CODE_RANGE:()=>AU,STANDARD_ERROR_MAP:()=>hg,formatErrorMessage:()=>$5t,formatJsonRpcError:()=>sS,formatJsonRpcRequest:()=>kle,formatJsonRpcResult:()=>Asn,getError:()=>RU,getErrorByCode:()=>MU,isHttpUrl:()=>qU,isJsonRpcError:()=>UU,isJsonRpcPayload:()=>Sle,isJsonRpcRequest:()=>Dsn,isJsonRpcResponse:()=>Ple,isJsonRpcResult:()=>e3t,isJsonRpcValidationInvalid:()=>Osn,isLocalhostUrl:()=>Ale,isNodeJs:()=>G5t,isReservedErrorCode:()=>PU,isServerErrorCode:()=>Esn,isValidDefaultRoute:()=>LU,isValidErrorCode:()=>b5t,isValidLeadingWildcardRoute:()=>Psn,isValidRoute:()=>Ssn,isValidTrailingWildcardRoute:()=>Rsn,isValidWildcardRoute:()=>FU,isWsUrl:()=>WU,parseConnectionError:()=>iS,payloadId:()=>OU,validateJsonRpcError:()=>Csn});var ty=ce(()=>{d();p();SU();Ele();V5t();gr(io,ao);Y5t();J5t();Q5t();X5t();t3t()});var r3t=ce(()=>{d();p()});var oS,ry,Rle,Mle,Nle,Ble,Dle,Ole,Lle,HU,Fle,qle,jU,n3t=ce(()=>{d();p();oS="Session currently connected",ry="Session currently disconnected",Rle="Session Rejected",Mle="Missing JSON RPC response",Nle='JSON-RPC success response must include "result" field',Ble='JSON-RPC error response must include "error" field',Dle='JSON RPC request must have valid "method" value',Ole='JSON RPC request must have valid "id" value',Lle="Missing one of the required parameters: bridge / uri / session",HU="JSON RPC response format is invalid",Fle="URI format is invalid",qle="QRCode Modal not provided",jU="User close QRCode Modal"});var zU,Lsn,a3t=ce(()=>{d();p();zU=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Lsn=zU});var i3t,y6,s3t,Fsn,qsn,o3t=ce(()=>{d();p();i3t=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],y6=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...i3t],s3t=["eth_accounts","eth_chainId","net_version"],Fsn=y6,qsn=s3t});var rw,Wsn,c3t=ce(()=>{d();p();rw="WALLETCONNECT_DEEPLINK_CHOICE",Wsn=rw});var KU,Usn,u3t=ce(()=>{d();p();KU={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},Usn=KU});var l3t=ce(()=>{d();p();n3t();a3t();o3t();c3t();u3t()});var d3t=ce(()=>{d();p()});var Wle,p3t=ce(()=>{d();p();Wle=class{}});var h3t=ce(()=>{d();p()});var f3t=ce(()=>{d();p()});var m3t=ce(()=>{d();p()});var y3t=ce(()=>{d();p()});var g3t=ce(()=>{d();p()});var b3t=ce(()=>{d();p()});var v3t=ce(()=>{d();p()});var Ule={};cr(Ule,{ERROR_INVALID_RESPONSE:()=>HU,ERROR_INVALID_URI:()=>Fle,ERROR_MISSING_ERROR:()=>Ble,ERROR_MISSING_ID:()=>Ole,ERROR_MISSING_JSON_RPC:()=>Mle,ERROR_MISSING_METHOD:()=>Dle,ERROR_MISSING_REQUIRED:()=>Lle,ERROR_MISSING_RESULT:()=>Nle,ERROR_QRCODE_MODAL_NOT_PROVIDED:()=>qle,ERROR_QRCODE_MODAL_USER_CLOSED:()=>jU,ERROR_SESSION_CONNECTED:()=>oS,ERROR_SESSION_DISCONNECTED:()=>ry,ERROR_SESSION_REJECTED:()=>Rle,IEvents:()=>Wle,INFURA_NETWORKS:()=>KU,MOBILE_LINK_CHOICE_KEY:()=>rw,RESERVED_EVENTS:()=>zU,SIGNING_METHODS:()=>y6,STATE_METHODS:()=>s3t,WALLET_METHODS:()=>i3t,infuraNetworks:()=>Usn,mobileLinkChoiceKey:()=>Wsn,reservedEvents:()=>Lsn,signingMethods:()=>Fsn,stateMethods:()=>qsn});var nw=ce(()=>{d();p();r3t();l3t();d3t();p3t();h3t();f3t();m3t();y3t();g3t();b3t();v3t()});var jle=x((Cma,x3t)=>{d();p();x3t.exports=Hle;Hle.strict=w3t;Hle.loose=_3t;var Hsn=Object.prototype.toString,jsn={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function Hle(r){return w3t(r)||_3t(r)}function w3t(r){return r instanceof Int8Array||r instanceof Int16Array||r instanceof Int32Array||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Uint16Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array}function _3t(r){return jsn[Hsn.call(r)]}});var E3t=x((Ama,T3t)=>{d();p();var zsn=jle().strict;T3t.exports=function(e){if(zsn(e)){var t=b.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}else return b.Buffer.from(e)}});function yg(r){return new Uint8Array(r)}function VU(r,e=!1){let t=r.toString(zle);return e?g6(t):t}function $U(r){return r.toString(Kle)}function Gle(r){return r.readUIntBE(0,r.length)}function gg(r){return(0,I3t.default)(r)}function Pm(r,e=!1){return VU(gg(r),e)}function YU(r){return $U(gg(r))}function Vle(r){return Gle(gg(r))}function JU(r){return b.Buffer.from(bg(r),zle)}function Rm(r){return yg(JU(r))}function k3t(r){return $U(JU(r))}function A3t(r){return Vle(Rm(r))}function QU(r){return b.Buffer.from(r,Kle)}function ZU(r){return yg(QU(r))}function S3t(r,e=!1){return VU(QU(r),e)}function P3t(r){let e=parseInt(r,10);return aon(non(e),"Number can only safely store up to 53 bits"),e}function R3t(r){return Jsn($le(r))}function M3t(r){return Yle($le(r))}function N3t(r,e){return Qsn($le(r),e)}function B3t(r){return`${r}`}function $le(r){let e=(r>>>0).toString(2);return Xle(e)}function Jsn(r){return gg(Yle(r))}function Yle(r){return new Uint8Array(eon(r).map(e=>parseInt(e,2)))}function Qsn(r,e){return Pm(Yle(r),e)}function Zsn(r){return!(typeof r!="string"||!new RegExp(/^[01]+$/).test(r)||r.length%8!==0)}function Jle(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function cS(r){return b.Buffer.isBuffer(r)}function XU(r){return C3t.default.strict(r)&&!cS(r)}function Qle(r){return!XU(r)&&!cS(r)&&typeof r.byteLength<"u"}function D3t(r){return cS(r)?Gsn:XU(r)?$sn:Qle(r)?Ysn:Array.isArray(r)?Vsn:typeof r}function O3t(r){return Zsn(r)?Ksn:Jle(r)?zle:Kle}function L3t(...r){return b.Buffer.concat(r)}function Zle(...r){let e=[];return r.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function Xsn(r,e=8){let t=r%e;return t?(r-t)/e*e+e:r}function eon(r,e=8){let t=Xle(r).match(new RegExp(`.{${e}}`,"gi"));return Array.from(t||[])}function Xle(r,e=8,t=GU){return ton(r,Xsn(r.length,e),t)}function ton(r,e,t=GU){return ion(r,e,!0,t)}function bg(r){return r.replace(/^0x/,"")}function g6(r){return r.startsWith("0x")?r:`0x${r}`}function F3t(r){return r=bg(r),r=Xle(r,2),r&&(r=g6(r)),r}function q3t(r){let e=r.startsWith("0x");return r=bg(r),r=r.startsWith(GU)?r.substring(1):r,e?g6(r):r}function ron(r){return typeof r>"u"}function non(r){return!ron(r)}function aon(r,e){if(!r)throw new Error(e)}function ion(r,e,t,n=GU){let a=e-r.length,i=r;if(a>0){let s=n.repeat(a);i=t?s+r:r+s}return i}var C3t,I3t,zle,Kle,Ksn,Gsn,Vsn,$sn,Ysn,GU,uS=ce(()=>{d();p();C3t=un(jle()),I3t=un(E3t()),zle="hex",Kle="utf8",Ksn="binary",Gsn="buffer",Vsn="array",$sn="typed-array",Ysn="array-buffer",GU="0"});function lS(r){return gg(new Uint8Array(r))}function son(r){return YU(new Uint8Array(r))}function ede(r,e){return Pm(new Uint8Array(r),!e)}function oon(r){return Vle(new Uint8Array(r))}function con(...r){return Rm(r.map(e=>Pm(new Uint8Array(e))).join("")).buffer}function tde(r){return yg(r).buffer}function uon(r){return $U(r)}function lon(r,e){return VU(r,!e)}function don(r){return Gle(r)}function pon(...r){return L3t(...r)}function hon(r){return ZU(r).buffer}function fon(r){return QU(r)}function mon(r,e){return S3t(r,!e)}function yon(r){return P3t(r)}function gon(r){return JU(r)}function rde(r){return Rm(r).buffer}function bon(r){return k3t(r)}function von(r){return A3t(r)}function won(r){return R3t(r)}function _on(r){return M3t(r).buffer}function xon(r){return B3t(r)}function nde(r,e){return N3t(Number(r),!e)}var W3t=ce(()=>{d();p();uS()});var ide=x(Wi=>{"use strict";d();p();var U3t=Wi&&Wi.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new $3t:typeof navigator<"u"?ade(navigator.userAgent):Q3t()}Wi.detect=Ion;function Y3t(r){return r!==""&&Con.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function kon(r){var e=Y3t(r);return e?e[0]:null}Wi.browserName=kon;function ade(r){var e=Y3t(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new V3t;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length{"use strict";d();p();Object.defineProperty(ci,"__esModule",{value:!0});ci.getLocalStorage=ci.getLocalStorageOrThrow=ci.getCrypto=ci.getCryptoOrThrow=ci.getLocation=ci.getLocationOrThrow=ci.getNavigator=ci.getNavigatorOrThrow=ci.getDocument=ci.getDocumentOrThrow=ci.getFromWindowOrThrow=ci.getFromWindow=void 0;function aw(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}ci.getFromWindow=aw;function b6(r){let e=aw(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}ci.getFromWindowOrThrow=b6;function Son(){return b6("document")}ci.getDocumentOrThrow=Son;function Pon(){return aw("document")}ci.getDocument=Pon;function Ron(){return b6("navigator")}ci.getNavigatorOrThrow=Ron;function Mon(){return aw("navigator")}ci.getNavigator=Mon;function Non(){return b6("location")}ci.getLocationOrThrow=Non;function Bon(){return aw("location")}ci.getLocation=Bon;function Don(){return b6("crypto")}ci.getCryptoOrThrow=Don;function Oon(){return aw("crypto")}ci.getCrypto=Oon;function Lon(){return b6("localStorage")}ci.getLocalStorageOrThrow=Lon;function Fon(){return aw("localStorage")}ci.getLocalStorage=Fon});var Ui,qon,Won,Uon,Hon,jon,sde,zon,ode,Kon,Gon,Von,dS,rH=ce(()=>{d();p();Ui=un(tH()),qon=Ui.getFromWindow,Won=Ui.getFromWindowOrThrow,Uon=Ui.getDocumentOrThrow,Hon=Ui.getDocument,jon=Ui.getNavigatorOrThrow,sde=Ui.getNavigator,zon=Ui.getLocationOrThrow,ode=Ui.getLocation,Kon=Ui.getCryptoOrThrow,Gon=Ui.getCrypto,Von=Ui.getLocalStorageOrThrow,dS=Ui.getLocalStorage});function pS(r){return(0,Z3t.detect)(r)}function nH(){let r=pS();return r&&r.os?r.os:void 0}function X3t(){let r=nH();return r?r.toLowerCase().includes("android"):!1}function e_t(){let r=nH();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function cde(){return nH()?X3t()||e_t():!1}function t_t(){let r=pS();return r&&r.name?r.name.toLowerCase()==="node":!1}function ude(){return!t_t()&&!!sde()}var Z3t,r_t=ce(()=>{d();p();Z3t=un(ide());rH()});var lde={};cr(lde,{safeJsonParse:()=>ny,safeJsonStringify:()=>Mm});function ny(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function Mm(r){return typeof r=="string"?r:JSON.stringify(r)}var v6=ce(()=>{d();p()});var dde,pde,hde=ce(()=>{d();p();v6();dde=ny,pde=Mm});function hS(r,e){let t=pde(e),n=dS();n&&n.setItem(r,t)}function fS(r){let e=null,t=null,n=dS();return n&&(t=n.getItem(r)),e=t&&dde(t),e}function mS(r){let e=dS();e&&e.removeItem(r)}var fde=ce(()=>{d();p();hde();rH()});var mde=x(aH=>{"use strict";d();p();Object.defineProperty(aH,"__esModule",{value:!0});aH.getWindowMetadata=void 0;var n_t=tH();function $on(){let r,e;try{r=n_t.getDocumentOrThrow(),e=n_t.getLocationOrThrow()}catch{return null}function t(){let h=r.getElementsByTagName("link"),f=[];for(let m=0;m-1){let I=y.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let S=e.protocol+"//"+e.host;if(I.indexOf("/")===0)S+=I;else{let L=e.pathname.split("/");L.pop();let q=L.join("/");S+=q+"/"+I}f.push(S)}else if(I.indexOf("//")===0){let S=e.protocol+I;f.push(S)}else f.push(I)}}return f}function n(...h){let f=r.getElementsByTagName("meta");for(let m=0;my.getAttribute(I)).filter(I=>I?h.includes(I):!1);if(E.length&&E){let I=y.getAttribute("content");if(I)return I}}return""}function a(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function i(){return n("description","og:description","twitter:description","keywords")}let s=a(),o=i(),c=e.origin,u=t();return{description:o,url:c,icons:u,name:s}}aH.getWindowMetadata=$on});function iH(){return a_t.getWindowMetadata()}var a_t,i_t=ce(()=>{d();p();a_t=un(mde())});function Yon(r){return F3t(r)}function Jon(r){return g6(r)}function Qon(r){return bg(r)}function Zon(r){return q3t(g6(r))}function yS(){return((e,t)=>{for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t})()}function Xon(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function s_t(r,e){let t,n=KU[r];return n&&(t=`https://${n}.infura.io/v3/${e}`),t}function ecn(r,e){let t,n=s_t(r,e.infuraId);return e.custom&&e.custom[r]?t=e.custom[r]:n&&(t=n),t}var yde,o_t=ce(()=>{d();p();uS();ty();nw();yde=OU});function tcn(r,e){let t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function rcn(r){let e=r.href.split("?")[0];hS(rw,Object.assign(Object.assign({},r),{href:e}))}function c_t(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function ncn(r,e){let t=r;return e&&(t=e.map(n=>c_t(r,n)).filter(Boolean)),t}var u_t=ce(()=>{d();p();nw();fde()});function acn(r,e){return async(...n)=>new Promise((a,i)=>{let s=(o,c)=>{(o===null||typeof o>"u")&&i(o),a(c)};r.apply(e,[...n,s])})}function gde(r){let e=r.message||"Failed or Rejected Request",t=-32e3;if(r&&!r.code)switch(e){case"Parse error":t=-32700;break;case"Invalid request":t=-32600;break;case"Method not found":t=-32601;break;case"Invalid params":t=-32602;break;case"Internal error":t=-32603;break;default:t=-32e3;break}let n={code:t,message:e};return r.data&&(n.data=r.data),n}var l_t=ce(()=>{d();p()});function icn(){return d_t+"/api/v2/wallets"}function scn(){return d_t+"/api/v2/dapps"}function p_t(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function ocn(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>p_t(t,e))}var d_t,h_t=ce(()=>{d();p();d_t="https://registry.walletconnect.com"});var bde=x((I0a,f_t)=>{"use strict";d();p();f_t.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var wde=x((S0a,b_t)=>{"use strict";d();p();var g_t="%[a-f0-9]{2}",m_t=new RegExp("("+g_t+")|([^%]+?)","gi"),y_t=new RegExp("("+g_t+")+","gi");function vde(r,e){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],vde(t),vde(n))}function ccn(r){try{return decodeURIComponent(r)}catch{for(var e=r.match(m_t)||[],t=1;t{"use strict";d();p();v_t.exports=(r,e)=>{if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[r];let t=r.indexOf(e);return t===-1?[r]:[r.slice(0,t),r.slice(t+e.length)]}});var xde=x((D0a,w_t)=>{"use strict";d();p();w_t.exports=function(r,e){for(var t={},n=Object.keys(r),a=Array.isArray(e),i=0;i{"use strict";d();p();var lcn=bde(),dcn=wde(),x_t=_de(),pcn=xde(),hcn=r=>r==null;function fcn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Pc(e,r),"[",a,"]"].join("")]:[...t,[Pc(e,r),"[",Pc(a,r),"]=",Pc(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Pc(e,r),"[]"].join("")]:[...t,[Pc(e,r),"[]=",Pc(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>n==null||n.length===0?t:t.length===0?[[Pc(e,r),"=",Pc(n,r)].join("")]:[[t,Pc(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Pc(e,r)]:[...t,[Pc(e,r),"=",Pc(n,r)].join("")]}}function mcn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&iw(n,r).includes(r.arrayFormatSeparator);n=s?iw(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>iw(c,r)):n===null?n:iw(n,r);a[t]=o};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function T_t(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Pc(r,e){return e.encode?e.strict?lcn(r):encodeURIComponent(r):r}function iw(r,e){return e.decode?dcn(r):r}function E_t(r){return Array.isArray(r)?r.sort():typeof r=="object"?E_t(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function C_t(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function ycn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function I_t(r){r=C_t(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function __t(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function k_t(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),T_t(e.arrayFormatSeparator);let t=mcn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=x_t(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator"].includes(e.arrayFormat)?s:iw(s,e),t(iw(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=__t(i[s],e);else n[a]=__t(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=E_t(s):a[i]=s,a},Object.create(null))}ql.extract=I_t;ql.parse=k_t;ql.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),T_t(e.arrayFormatSeparator);let t=s=>e.skipNull&&hcn(r[s])||e.skipEmptyString&&r[s]==="",n=fcn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Pc(s,e):Array.isArray(o)?o.reduce(n(s),[]).join("&"):Pc(s,e)+"="+Pc(o,e)}).filter(s=>s.length>0).join("&")};ql.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=x_t(r,"#");return Object.assign({url:t.split("?")[0]||"",query:k_t(I_t(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:iw(n,e)}:{})};ql.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);let t=C_t(r.url).split("?")[0]||"",n=ql.extract(r.url),a=ql.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=ql.stringify(i,e);s&&(s=`?${s}`);let o=ycn(r.url);return r.fragmentIdentifier&&(o=`#${Pc(r.fragmentIdentifier,e)}`),`${t}${s}${o}`};ql.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:n,query:a,fragmentIdentifier:i}=ql.parseUrl(r,t);return ql.stringifyUrl({url:n,query:pcn(a,e),fragmentIdentifier:i},t)};ql.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return ql.pick(r,n,t)}});function Tde(r){let e=r.indexOf("?")!==-1?r.indexOf("?"):void 0;return typeof e<"u"?r.substr(e):""}function Ede(r,e){let t=oH(r);return t=Object.assign(Object.assign({},t),e),r=S_t(t),r}function oH(r){return sH.parse(r)}function S_t(r){return sH.stringify(r)}var sH,Cde=ce(()=>{d();p();sH=un(A_t())});function Ide(r){return typeof r.bridge<"u"}function kde(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t);function i(h){let f="@",m=h.split(f);return{handshakeTopic:m[0],version:parseInt(m[1],10)}}let s=i(a),o=typeof t<"u"?r.substr(t):"";function c(h){let f=oH(h);return{key:f.key||"",bridge:f.bridge||""}}let u=c(o);return Object.assign(Object.assign({protocol:n},s),u)}var P_t=ce(()=>{d();p();Cde()});function gcn(r){return r===""||typeof r=="string"&&r.trim()===""}function bcn(r){return!(r&&r.length)}function vcn(r){return cS(r)}function wcn(r){return XU(r)}function _cn(r){return Qle(r)}function xcn(r){return D3t(r)}function Tcn(r){return O3t(r)}function Ecn(r,e){return Jle(r,e)}function Ccn(r){return typeof r.params=="object"}function Ade(r){return typeof r.method<"u"}function vg(r){return typeof r.result<"u"}function sw(r){return typeof r.error<"u"}function cH(r){return typeof r.event<"u"}function Sde(r){return zU.includes(r)||r.startsWith("wc_")}function Pde(r){return r.method.startsWith("wc_")?!0:!y6.includes(r.method)}var R_t=ce(()=>{d();p();uS();nw()});var uH={};cr(uH,{addHexPrefix:()=>Jon,appendToQueryString:()=>Ede,concatArrayBuffers:()=>con,concatBuffers:()=>pon,convertArrayBufferToBuffer:()=>lS,convertArrayBufferToHex:()=>ede,convertArrayBufferToNumber:()=>oon,convertArrayBufferToUtf8:()=>son,convertBufferToArrayBuffer:()=>tde,convertBufferToHex:()=>lon,convertBufferToNumber:()=>don,convertBufferToUtf8:()=>uon,convertHexToArrayBuffer:()=>rde,convertHexToBuffer:()=>gon,convertHexToNumber:()=>von,convertHexToUtf8:()=>bon,convertNumberToArrayBuffer:()=>_on,convertNumberToBuffer:()=>won,convertNumberToHex:()=>nde,convertNumberToUtf8:()=>xon,convertUtf8ToArrayBuffer:()=>hon,convertUtf8ToBuffer:()=>fon,convertUtf8ToHex:()=>mon,convertUtf8ToNumber:()=>yon,detectEnv:()=>pS,detectOS:()=>nH,formatIOSMobile:()=>tcn,formatMobileRegistry:()=>ocn,formatMobileRegistryEntry:()=>p_t,formatQueryString:()=>S_t,formatRpcError:()=>gde,getClientMeta:()=>iH,getCrypto:()=>Gon,getCryptoOrThrow:()=>Kon,getDappRegistryUrl:()=>scn,getDocument:()=>Hon,getDocumentOrThrow:()=>Uon,getEncoding:()=>Tcn,getFromWindow:()=>qon,getFromWindowOrThrow:()=>Won,getInfuraRpcUrl:()=>s_t,getLocal:()=>fS,getLocalStorage:()=>dS,getLocalStorageOrThrow:()=>Von,getLocation:()=>ode,getLocationOrThrow:()=>zon,getMobileLinkRegistry:()=>ncn,getMobileRegistryEntry:()=>c_t,getNavigator:()=>sde,getNavigatorOrThrow:()=>jon,getQueryString:()=>Tde,getRpcUrl:()=>ecn,getType:()=>xcn,getWalletRegistryUrl:()=>icn,isAndroid:()=>X3t,isArrayBuffer:()=>_cn,isBrowser:()=>ude,isBuffer:()=>vcn,isEmptyArray:()=>bcn,isEmptyString:()=>gcn,isHexString:()=>Ecn,isIOS:()=>e_t,isInternalEvent:()=>cH,isJsonRpcRequest:()=>Ade,isJsonRpcResponseError:()=>sw,isJsonRpcResponseSuccess:()=>vg,isJsonRpcSubscription:()=>Ccn,isMobile:()=>cde,isNode:()=>t_t,isReservedEvent:()=>Sde,isSilentPayload:()=>Pde,isTypedArray:()=>wcn,isWalletConnectSession:()=>Ide,logDeprecationWarning:()=>Xon,parseQueryString:()=>oH,parseWalletConnectUri:()=>kde,payloadId:()=>yde,promisify:()=>acn,removeHexLeadingZeros:()=>Zon,removeHexPrefix:()=>Qon,removeLocal:()=>mS,safeJsonParse:()=>dde,safeJsonStringify:()=>pde,sanitizeHex:()=>Yon,saveMobileLinkInfo:()=>rcn,setLocal:()=>hS,uuid:()=>yS});var ay=ce(()=>{d();p();W3t();r_t();hde();fde();i_t();o_t();u_t();l_t();h_t();P_t();Cde();R_t();rH()});var Rde,M_t,N_t=ce(()=>{d();p();Rde=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(n=>n.event===e)),t.forEach(n=>{n.callback()})}},M_t=Rde});var D_t=x((yya,B_t)=>{"use strict";d();p();B_t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function kcn(r,e,t){var n,a;let s=(r.startsWith("https")?r.replace("https","wss"):r.startsWith("http")?r.replace("http","ws"):r).split("?"),o=ude()?{protocol:e,version:t,env:"browser",host:((n=ode())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:t,env:((a=pS())===null||a===void 0?void 0:a.name)||""},c=Ede(Tde(s[1]||""),o);return s[0]+"?"+c}var Icn,Mde,O_t,L_t=ce(()=>{d();p();ay();N_t();Icn=typeof global.WebSocket<"u"?global.WebSocket:D_t(),Mde=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new M_t,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||typeof t!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=kcn(this._url,this._protocol,this._version);if(this._nextSocket=new Icn(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let t=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(a=>a.event==="message");n&&n.length&&n.forEach(a=>a.callback(t))}}_socketError(e){let t=this._events.filter(n=>n.event==="error");t&&t.length&&t.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(t=>this._socketSend(t)),this._queue=[]}};O_t=Mde});var Nde,F_t,q_t=ce(()=>{d();p();ay();Nde=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t=[],n;Ade(e)?n=e.method:vg(e)||sw(e)?n=`response:${e.id}`:cH(e)?n=e.event:n="",n&&(t=this._eventEmitters.filter(a=>a.event===n)),(!t||!t.length)&&!Sde(n)&&!cH(n)&&(t=this._eventEmitters.filter(a=>a.event==="call_request")),t.forEach(a=>{if(sw(e)){let i=new Error(e.error.message);a.callback(i,null)}else a.callback(null,e)})}},F_t=Nde});var Bde,W_t,U_t=ce(()=>{d();p();ay();Bde=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=fS(this.storageId);return t&&Ide(t)&&(e=t),e}setSession(e){return hS(this.storageId,e),e}removeSession(){mS(this.storageId)}},W_t=Bde});function Pcn(r){let e=r.indexOf("//")>-1?r.split("/")[2]:r.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function Rcn(r){return Pcn(r).split(".").slice(-2).join(".")}function Mcn(){return Math.floor(Math.random()*H_t.length)}function Ncn(){return H_t[Mcn()]}function Bcn(r){return Rcn(r)===Acn}function j_t(r){return Bcn(r)?Ncn():r}var Acn,Scn,H_t,z_t=ce(()=>{d();p();Acn="walletconnect.org",Scn="abcdefghijklmnopqrstuvwxyz0123456789",H_t=Scn.split("").map(r=>`https://${r}.bridge.walletconnect.org`)});var Dde,K_t,G_t=ce(()=>{d();p();nw();ay();L_t();q_t();U_t();z_t();Dde=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new F_t,this._clientMeta=iH()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new W_t(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...y6,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Lle);e.connectorOpts.bridge&&(this.bridge=j_t(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new O_t({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){!e||(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let t=rde(e);this._key=t}get key(){return this._key?ede(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=yS()),this._clientId}set peerId(e){!e||(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=iH()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){!e||(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){!e||(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:t,bridge:n,key:a}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=a}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){!e||(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){let n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=yS(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(jU)});let n=()=>{this.killSession()};try{let a=await this._sendCallRequest(t);return a&&n(),a}catch(a){throw n(),a}}async connect(e){if(!this._qrcodeModal)throw new Error(qle);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(t,n)=>{this.on("modal_closed",()=>n(new Error(jU))),this.on("connect",(a,i)=>{if(a)return n(a);t(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(oS);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=yS(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(oS);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(oS);let t=e&&e.message?e.message:Rle,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(ry);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(a),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(ry);let t=e,n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(ry);let t=e,n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(ry);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(ry);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(ry);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(i,s)=>{if(i){a(i);return}if(!s)throw new Error(Mle);n(s)})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(ry);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return nde(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(vg(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(Nle)}rejectRequest(e){if(sw(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(Ble)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),a=await this._encrypt(n),i=typeof t?.topic<"u"?t.topic:this.peerId,s=JSON.stringify(a),o=typeof t?.forcePushNotification<"u"?!t.forcePushNotification:Pde(n);this._transport.send(s,i,o)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,a=JSON.stringify(t),i=!0;this._transport.send(a,n,i)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(Dle);return{id:typeof e.id>"u"?yde():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(Ole);let t={id:e.id,jsonrpc:"2.0"};if(sw(e)){let n=gde(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}else if(vg(e))return Object.assign(Object.assign({},t),e);throw new Error(HU)}_handleSessionDisconnect(e){let t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),mS(rw)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t?t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let n;try{n=JSON.parse(e.payload)}catch{return}let a=await this._decrypt(n);a&&this._eventManager.trigger(a)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(n,a)=>{if(n){this._handleSessionResponse(n.message);return}vg(a)?this._handleSessionResponse(t,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(a,i)=>{if(a){n(a);return}vg(i)?t(i.result):i.error&&i.error.message?n(i.error):n(new Error(HU))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,t)=>{let{request:n}=t.params[0];if(cde()&&this._signingMethods.includes(n.method)){let a=fS(rw);a&&(window.location.href=a.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,t=this.handshakeTopic,n=this.version,a=encodeURIComponent(this.bridge),i=this.key;return`${e}:${t}@${n}?bridge=${a}&key=${i}`}_parseUri(e){let t=kde(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");let i=t.key;return{handshakeTopic:n,bridge:a,key:i}}else throw new Error(Fle)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,a)=>{if(n)throw n;if(e.peerMeta){let i=a.params[0].peerMeta.name;t.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},K_t=Dde});function Ode(r){return V_t.getBrowerCrypto().getRandomValues(new Uint8Array(r))}var V_t,$_t=ce(()=>{d();p();V_t=un(m6())});var Dcn,Lde,Fde,lH,Ocn,Lcn,dH,qde,Fcn,Wde=ce(()=>{d();p();Dcn=0,Lde=1,Fde=16,lH=32,Ocn=64,Lcn=128,dH=256,qde=512,Fcn=1024});var gS,pH,Nm,Ude,ow,Hde,jde,qcn,Wcn,Ucn,Hcn,jcn,zcn,Kcn,Gcn,Vcn,Y_t=ce(()=>{d();p();Wde();gS=256,pH=256,Nm="AES-CBC",Ude=`SHA-${gS}`,ow="HMAC",Hde="SHA-256",jde="SHA-512",qcn=`aes-${gS}-cbc`,Wcn=`sha${pH}`,Ucn="sha256",Hcn="sha512",jcn="ripemd160",zcn=1,Kcn=32,Gcn=16,Vcn=32});var $cn,Ycn,J_t=ce(()=>{d();p();$cn="hex",Ycn="utf8"});var Jcn,Q_t=ce(()=>{d();p();Jcn="Bad MAC"});var zde,Kde,Gde,Vde,Z_t=ce(()=>{d();p();zde="encrypt",Kde="decrypt",Gde="sign",Vde="verify"});var $de=ce(()=>{d();p();Y_t();J_t();Q_t();Wde();Z_t()});function Qcn(r){return r===Nm?{length:gS,name:Nm}:{hash:{name:Ude},name:ow}}function Zcn(r){return r===Nm?[zde,Kde]:[Gde,Vde]}async function hH(r,e=Nm){return wg.getSubtleCrypto().importKey("raw",r,Qcn(e),!0,Zcn(e))}async function X_t(r,e,t){let n=wg.getSubtleCrypto(),a=await hH(e,Nm),i=await n.encrypt({iv:r,name:Nm},a,t);return new Uint8Array(i)}async function ext(r,e,t){let n=wg.getSubtleCrypto(),a=await hH(e,Nm),i=await n.decrypt({iv:r,name:Nm},a,t);return new Uint8Array(i)}async function Yde(r,e){let t=wg.getSubtleCrypto(),n=await hH(r,ow),a=await t.sign({length:pH,name:ow},n,e);return new Uint8Array(a)}async function Jde(r,e){let t=wg.getSubtleCrypto(),n=await hH(r,ow),a=await t.sign({length:512,name:ow},n,e);return new Uint8Array(a)}async function txt(r){let t=await wg.getSubtleCrypto().digest({name:Hde},r);return new Uint8Array(t)}async function rxt(r){let t=await wg.getSubtleCrypto().digest({name:jde},r);return new Uint8Array(t)}var wg,fH=ce(()=>{d();p();wg=un(m6());$de()});function Qde(r,e,t){return X_t(r,e,t)}function Zde(r,e,t){return ext(r,e,t)}var nxt=ce(()=>{d();p();fH()});var Wl={};var axt=ce(()=>{d();p();gr(Wl,un(m6()))});var Xcn,ixt,sxt=ce(()=>{d();p();Xcn=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],ixt={pad(r){let e=Xcn[r.byteLength%16||0],t=new Uint8Array(r.byteLength+e.length);return t.set(r),t.set(e,r.byteLength),t},unpad(r){return r.subarray(0,r.byteLength-r[r.byteLength-1])}}});var oxt=ce(()=>{d();p()});function cxt(r,e){if(!r)throw new Error(e||"Assertion failed")}function bS(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n{d();p()});var Io={};cr(Io,{assert:()=>cxt,isConstantTime:()=>bS,pkcs7:()=>ixt});var Xde=ce(()=>{d();p();axt();gr(Io,Wl);sxt();oxt();uxt()});async function mH(r,e){return await Yde(r,e)}async function eun(r,e,t){let n=await Yde(r,e);return bS(n,t)}async function tun(r,e){return await Jde(r,e)}async function run(r,e,t){let n=await Jde(r,e);return bS(n,t)}var lxt=ce(()=>{d();p();fH();Xde()});async function nun(r){return await txt(r)}async function aun(r){return await rxt(r)}async function iun(r){throw new Error("Not supported for Browser async methods, use sync instead!")}var dxt=ce(()=>{d();p();fH()});var Wp={};cr(Wp,{AES_BROWSER_ALGO:()=>Nm,AES_LENGTH:()=>gS,AES_NODE_ALGO:()=>qcn,DECRYPT_OP:()=>Kde,ENCRYPT_OP:()=>zde,ERROR_BAD_MAC:()=>Jcn,HEX_ENC:()=>$cn,HMAC_BROWSER:()=>ow,HMAC_BROWSER_ALGO:()=>Ude,HMAC_LENGTH:()=>pH,HMAC_NODE_ALGO:()=>Wcn,IV_LENGTH:()=>Gcn,KEY_LENGTH:()=>Kcn,LENGTH_0:()=>Dcn,LENGTH_1:()=>Lde,LENGTH_1024:()=>Fcn,LENGTH_128:()=>Lcn,LENGTH_16:()=>Fde,LENGTH_256:()=>dH,LENGTH_32:()=>lH,LENGTH_512:()=>qde,LENGTH_64:()=>Ocn,MAC_LENGTH:()=>Vcn,PREFIX_LENGTH:()=>zcn,RIPEMD160_NODE_ALGO:()=>jcn,SHA256_BROWSER_ALGO:()=>Hde,SHA256_NODE_ALGO:()=>Ucn,SHA512_BROWSER_ALGO:()=>jde,SHA512_NODE_ALGO:()=>Hcn,SIGN_OP:()=>Gde,UTF8_ENC:()=>Ycn,VERIFY_OP:()=>Vde,aesCbcDecrypt:()=>Zde,aesCbcEncrypt:()=>Qde,assert:()=>cxt,hmacSha256Sign:()=>mH,hmacSha256Verify:()=>eun,hmacSha512Sign:()=>tun,hmacSha512Verify:()=>run,isConstantTime:()=>bS,pkcs7:()=>ixt,randomBytes:()=>Ode,ripemd160:()=>iun,sha256:()=>nun,sha512:()=>aun});var pxt=ce(()=>{d();p();$_t();nxt();lxt();dxt();Xde();gr(Wp,Io);$de()});var epe={};cr(epe,{decrypt:()=>oun,encrypt:()=>sun,generateKey:()=>hxt,verifyHmac:()=>fxt});async function hxt(r){let e=(r||256)/8,t=Ode(e);return tde(gg(t))}async function fxt(r,e){let t=Rm(r.data),n=Rm(r.iv),a=Rm(r.hmac),i=Pm(a,!1),s=Zle(t,n),o=await mH(e,s),c=Pm(o,!1);return bg(i)===bg(c)}async function sun(r,e,t){let n=yg(lS(e)),a=t||await hxt(128),i=yg(lS(a)),s=Pm(i,!1),o=JSON.stringify(r),c=ZU(o),u=await Qde(i,n,c),l=Pm(u,!1),h=Zle(u,i),f=await mH(n,h),m=Pm(f,!1);return{data:l,hmac:m,iv:s}}async function oun(r,e){let t=yg(lS(e));if(!t)throw new Error("Missing key: required for decryption");if(!await fxt(r,t))return null;let a=Rm(r.data),i=Rm(r.iv),s=await Zde(i,t,a),o=YU(s),c;try{c=JSON.parse(o)}catch{return null}return c}var mxt=ce(()=>{d();p();pxt();uS();ay()});var rpe={};cr(rpe,{default:()=>cun});var tpe,cun,npe=ce(()=>{d();p();G_t();mxt();tpe=class extends K_t{constructor(e,t){super({cryptoLib:epe,connectorOpts:e,pushServerOpts:t})}},cun=tpe});var gxt=x((dga,yxt)=>{d();p();yxt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var _g=x(cw=>{d();p();var ape,uun=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];cw.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};cw.getSymbolTotalCodewords=function(e){return uun[e]};cw.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};cw.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ape=e};cw.isKanjiModeEnabled=function(){return typeof ape<"u"};cw.toSJIS=function(e){return ape(e)}});var yH=x(Up=>{d();p();Up.L={bit:1};Up.M={bit:0};Up.Q={bit:3};Up.H={bit:2};function lun(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return Up.L;case"m":case"medium":return Up.M;case"q":case"quartile":return Up.Q;case"h":case"high":return Up.H;default:throw new Error("Unknown EC Level: "+r)}}Up.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Up.from=function(e,t){if(Up.isValid(e))return e;try{return lun(e)}catch{return t}}});var wxt=x((wga,vxt)=>{d();p();function bxt(){this.buffer=[],this.length=0}bxt.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};vxt.exports=bxt});var xxt=x((Tga,_xt)=>{d();p();function vS(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}vS.prototype.set=function(r,e,t,n){let a=r*this.size+e;this.data[a]=t,n&&(this.reservedBit[a]=!0)};vS.prototype.get=function(r,e){return this.data[r*this.size+e]};vS.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};vS.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};_xt.exports=vS});var Txt=x(gH=>{d();p();var dun=_g().getSymbolSize;gH.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=dun(e),a=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s{d();p();var pun=_g().getSymbolSize,Ext=7;Cxt.getPositions=function(e){let t=pun(e);return[[0,0],[t-Ext,0],[0,t-Ext]]}});var kxt=x(ui=>{d();p();ui.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var uw={N1:3,N2:3,N3:40,N4:10};ui.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};ui.from=function(e){return ui.isValid(e)?parseInt(e,10):void 0};ui.getPenaltyN1=function(e){let t=e.size,n=0,a=0,i=0,s=null,o=null;for(let c=0;c=5&&(n+=uw.N1+(a-5)),s=l,a=1),l=e.get(u,c),l===o?i++:(i>=5&&(n+=uw.N1+(i-5)),o=l,i=1)}a>=5&&(n+=uw.N1+(a-5)),i>=5&&(n+=uw.N1+(i-5))}return n};ui.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a=10&&(a===1488||a===93)&&n++,i=i<<1&2047|e.get(o,s),o>=10&&(i===1488||i===93)&&n++}return n*uw.N3};ui.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let i=0;i{d();p();var xg=yH(),bH=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],vH=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ipe.getBlocksCount=function(e,t){switch(t){case xg.L:return bH[(e-1)*4+0];case xg.M:return bH[(e-1)*4+1];case xg.Q:return bH[(e-1)*4+2];case xg.H:return bH[(e-1)*4+3];default:return}};ipe.getTotalCodewordsCount=function(e,t){switch(t){case xg.L:return vH[(e-1)*4+0];case xg.M:return vH[(e-1)*4+1];case xg.Q:return vH[(e-1)*4+2];case xg.H:return vH[(e-1)*4+3];default:return}}});var Axt=x(_H=>{d();p();var wS=new Uint8Array(512),wH=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)wS[t]=e,wH[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)wS[t]=wS[t-255]})();_H.log=function(e){if(e<1)throw new Error("log("+e+")");return wH[e]};_H.exp=function(e){return wS[e]};_H.mul=function(e,t){return e===0||t===0?0:wS[wH[e]+wH[t]]}});var Sxt=x(_S=>{d();p();var ope=Axt();_S.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){let a=n[0];for(let s=0;s{d();p();var Pxt=Sxt();function cpe(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}cpe.prototype.initialize=function(e){this.degree=e,this.genPoly=Pxt.generateECPolynomial(this.degree)};cpe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=Pxt.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let i=new Uint8Array(this.degree);return i.set(n,a),i}return n};Rxt.exports=cpe});var upe=x(Nxt=>{d();p();Nxt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var lpe=x(iy=>{d();p();var Bxt="[0-9]+",fun="[A-Z $%*+\\-./:]+",xS="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";xS=xS.replace(/u/g,"\\u");var mun="(?:(?![A-Z0-9 $%*+\\-./:]|"+xS+`)(?:.|[\r -]))+`;iy.KANJI=new RegExp(xS,"g");iy.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");iy.BYTE=new RegExp(mun,"g");iy.NUMERIC=new RegExp(Bxt,"g");iy.ALPHANUMERIC=new RegExp(fun,"g");var yun=new RegExp("^"+xS+"$"),gun=new RegExp("^"+Bxt+"$"),bun=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");iy.testKanji=function(e){return yun.test(e)};iy.testNumeric=function(e){return gun.test(e)};iy.testAlphanumeric=function(e){return bun.test(e)}});var Tg=x(so=>{d();p();var vun=upe(),dpe=lpe();so.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};so.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};so.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};so.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};so.MIXED={bit:-1};so.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!vun.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};so.getBestModeForData=function(e){return dpe.testNumeric(e)?so.NUMERIC:dpe.testAlphanumeric(e)?so.ALPHANUMERIC:dpe.testKanji(e)?so.KANJI:so.BYTE};so.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};so.isValid=function(e){return e&&e.bit&&e.ccBits};function wun(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return so.NUMERIC;case"alphanumeric":return so.ALPHANUMERIC;case"kanji":return so.KANJI;case"byte":return so.BYTE;default:throw new Error("Unknown mode: "+r)}}so.from=function(e,t){if(so.isValid(e))return e;try{return wun(e)}catch{return t}}});var qxt=x(lw=>{d();p();var xH=_g(),_un=spe(),Dxt=yH(),Eg=Tg(),ppe=upe(),Lxt=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,Oxt=xH.getBCHDigit(Lxt);function xun(r,e,t){for(let n=1;n<=40;n++)if(e<=lw.getCapacity(n,t,r))return n}function Fxt(r,e){return Eg.getCharCountIndicator(r,e)+4}function Tun(r,e){let t=0;return r.forEach(function(n){let a=Fxt(n.mode,e);t+=a+n.getBitsLength()}),t}function Eun(r,e){for(let t=1;t<=40;t++)if(Tun(r,t)<=lw.getCapacity(t,e,Eg.MIXED))return t}lw.from=function(e,t){return ppe.isValid(e)?parseInt(e,10):t};lw.getCapacity=function(e,t,n){if(!ppe.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Eg.BYTE);let a=xH.getSymbolTotalCodewords(e),i=_un.getTotalCodewordsCount(e,t),s=(a-i)*8;if(n===Eg.MIXED)return s;let o=s-Fxt(n,e);switch(n){case Eg.NUMERIC:return Math.floor(o/10*3);case Eg.ALPHANUMERIC:return Math.floor(o/11*2);case Eg.KANJI:return Math.floor(o/13);case Eg.BYTE:default:return Math.floor(o/8)}};lw.getBestVersionForData=function(e,t){let n,a=Dxt.from(t,Dxt.M);if(Array.isArray(e)){if(e.length>1)return Eun(e,a);if(e.length===0)return 1;n=e[0]}else n=e;return xun(n.mode,n.getLength(),a)};lw.getEncodedBits=function(e){if(!ppe.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;xH.getBCHDigit(t)-Oxt>=0;)t^=Lxt<{d();p();var hpe=_g(),Uxt=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Cun=1<<14|1<<12|1<<10|1<<4|1<<1,Wxt=hpe.getBCHDigit(Uxt);Hxt.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;hpe.getBCHDigit(a)-Wxt>=0;)a^=Uxt<{d();p();var Iun=Tg();function w6(r){this.mode=Iun.NUMERIC,this.data=r.toString()}w6.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};w6.prototype.getLength=function(){return this.data.length};w6.prototype.getBitsLength=function(){return w6.getBitsLength(this.data.length)};w6.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,i*3+1))};zxt.exports=w6});var Vxt=x((dba,Gxt)=>{d();p();var kun=Tg(),fpe=["0","1","2","3","4","5","6","7","8","9","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"," ","$","%","*","+","-",".","/",":"];function _6(r){this.mode=kun.ALPHANUMERIC,this.data=r}_6.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};_6.prototype.getLength=function(){return this.data.length};_6.prototype.getBitsLength=function(){return _6.getBitsLength(this.data.length)};_6.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=fpe.indexOf(this.data[t])*45;n+=fpe.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(fpe.indexOf(this.data[t]),6)};Gxt.exports=_6});var Yxt=x((fba,$xt)=>{"use strict";d();p();$xt.exports=function(e){for(var t=[],n=e.length,a=0;a=55296&&i<=56319&&n>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}});var Qxt=x((gba,Jxt)=>{d();p();var Aun=Yxt(),Sun=Tg();function x6(r){this.mode=Sun.BYTE,typeof r=="string"&&(r=Aun(r)),this.data=new Uint8Array(r)}x6.getBitsLength=function(e){return e*8};x6.prototype.getLength=function(){return this.data.length};x6.prototype.getBitsLength=function(){return x6.getBitsLength(this.data.length)};x6.prototype.write=function(r){for(let e=0,t=this.data.length;e{d();p();var Pun=Tg(),Run=_g();function T6(r){this.mode=Pun.KANJI,this.data=r}T6.getBitsLength=function(e){return e*13};T6.prototype.getLength=function(){return this.data.length};T6.prototype.getBitsLength=function(){return T6.getBitsLength(this.data.length)};T6.prototype.write=function(r){let e;for(e=0;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};Zxt.exports=T6});var eTt=x((Tba,mpe)=>{"use strict";d();p();var TS={single_source_shortest_paths:function(r,e,t){var n={},a={};a[e]=0;var i=TS.PriorityQueue.make();i.push(e,0);for(var s,o,c,u,l,h,f,m,y;!i.empty();){s=i.pop(),o=s.value,u=s.cost,l=r[o]||{};for(c in l)l.hasOwnProperty(c)&&(h=l[c],f=u+h,m=a[c],y=typeof a[c]>"u",(y||m>f)&&(a[c]=f,i.push(c,f),n[c]=o))}if(typeof t<"u"&&typeof a[t]>"u"){var E=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(E)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,a;n;)t.push(n),a=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=TS.single_source_shortest_paths(r,e,t);return TS.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=TS.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof mpe<"u"&&(mpe.exports=TS)});var cTt=x(E6=>{d();p();var Ba=Tg(),nTt=Kxt(),aTt=Vxt(),iTt=Qxt(),sTt=Xxt(),ES=lpe(),TH=_g(),Mun=eTt();function tTt(r){return unescape(encodeURIComponent(r)).length}function CS(r,e,t){let n=[],a;for(;(a=r.exec(t))!==null;)n.push({data:a[0],index:a.index,mode:e,length:a[0].length});return n}function oTt(r){let e=CS(ES.NUMERIC,Ba.NUMERIC,r),t=CS(ES.ALPHANUMERIC,Ba.ALPHANUMERIC,r),n,a;return TH.isKanjiModeEnabled()?(n=CS(ES.BYTE,Ba.BYTE,r),a=CS(ES.KANJI,Ba.KANJI,r)):(n=CS(ES.BYTE_KANJI,Ba.BYTE,r),a=[]),e.concat(t,n,a).sort(function(s,o){return s.index-o.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function ype(r,e){switch(e){case Ba.NUMERIC:return nTt.getBitsLength(r);case Ba.ALPHANUMERIC:return aTt.getBitsLength(r);case Ba.KANJI:return sTt.getBitsLength(r);case Ba.BYTE:return iTt.getBitsLength(r)}}function Nun(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function Bun(r){let e=[];for(let t=0;t{d();p();var CH=_g(),gpe=yH(),Oun=wxt(),Lun=xxt(),Fun=Txt(),qun=Ixt(),wpe=kxt(),_pe=spe(),Wun=Mxt(),EH=qxt(),Uun=jxt(),Hun=Tg(),bpe=cTt();function jun(r,e){let t=r.size,n=qun.getPositions(e);for(let a=0;a=0&&o<=6&&(c===0||c===6)||c>=0&&c<=6&&(o===0||o===6)||o>=2&&o<=4&&c>=2&&c<=4?r.set(i+o,s+c,!0,!0):r.set(i+o,s+c,!1,!0))}}function zun(r){let e=r.size;for(let t=8;t>o&1)===1,r.set(a,i,s,!0),r.set(i,a,s,!0)}function vpe(r,e,t){let n=r.size,a=Uun.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?r.set(i,8,s,!0):i<8?r.set(i+1,8,s,!0):r.set(n-15+i,8,s,!0),i<8?r.set(8,n-i-1,s,!0):i<9?r.set(8,15-i-1+1,s,!0):r.set(8,15-i-1,s,!0);r.set(n-8,8,1,!0)}function Vun(r,e){let t=r.size,n=-1,a=t-1,i=7,s=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let c=0;c<2;c++)if(!r.isReserved(a,o-c)){let u=!1;s>>i&1)===1),r.set(a,o-c,u),i--,i===-1&&(s++,i=7)}if(a+=n,a<0||t<=a){a-=n,n=-n;break}}}function $un(r,e,t){let n=new Oun;t.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),Hun.getCharCountIndicator(c.mode,r)),c.write(n)});let a=CH.getSymbolTotalCodewords(r),i=_pe.getTotalCodewordsCount(r,e),s=(a-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(s-n.getLengthInBits())/8;for(let c=0;c{"use strict";d();p();Object.defineProperty(bye,"__esModule",{value:!0});bye.StatusDotIcon=void 0;var qvt=(Pc(),nt(Dl));function bJr(r){return(0,qvt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,qvt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}bye.StatusDotIcon=bJr});var zvt=_((Poa,jvt)=>{d();p();function Wvt(r){this.mode=fd.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Wvt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=Im.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=Zi.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=Zi.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var o=0;o<2;o++)if(this.modules[n][s-o]==null){var c=!1;i>>a&1)==1);var u=Zi.getMask(e,n,s-o);u&&(c=!c),this.modules[n][s-o]=c,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};Im.PAD0=236;Im.PAD1=17;Im.createData=function(r,e,t){for(var n=Tm.getRSBlocks(r,e),a=new Uvt,i=0;io*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+o*8+")");for(a.getLengthInBits()+4<=o*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=o*8||(a.put(Im.PAD0,8),a.getLengthInBits()>=o*8));)a.put(Im.PAD1,8);return Im.createBytes(a,n)};Im.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),o=0;o=0?m.get(y):0}}for(var I=0,l=0;l=0;)e^=Zi.G15<=0;)e^=Zi.G18<>>=1;return e},getPatternPosition:function(r){return Zi.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case o1.PATTERN000:return(e+t)%2==0;case o1.PATTERN001:return e%2==0;case o1.PATTERN010:return t%3==0;case o1.PATTERN011:return(e+t)%3==0;case o1.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case o1.PATTERN101:return e*t%2+e*t%3==0;case o1.PATTERN110:return(e*t%2+e*t%3)%2==0;case o1.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new s$([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return rc.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Js=0;Js<8;Js++)rc.EXP_TABLE[Js]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var DPe=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Hvt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function n(u){switch(u){case"L":return c1.L;case"M":return c1.M;case"Q":return c1.Q;case"H":return c1.H;default:throw new Error("Unknwon error correction level: "+u)}}function a(u,l){for(var h=i(u),f=1,m=0,y=0,I=DPe.length;y<=I;y++){var C=DPe[y];if(!C)throw new Error("Content too long: expected "+m+" but got "+h);switch(l){case"L":m=C[0];break;case"M":m=C[1];break;case"Q":m=C[2];break;case"H":m=C[3];break;default:throw new Error("Unknwon error correction level: "+l)}if(h<=m)break;f++}if(f>DPe.length)throw new Error("Content too long");return f}function i(u){var l=encodeURI(u).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return l.length+(l.length!=u?3:0)}var s=this.options.content,o=a(s,this.options.ecl),c=n(this.options.ecl);this.qrcode=new Im(o,c),this.qrcode.addData(s),this.qrcode.make()}Hvt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r +`:"",s=e.width,o=e.height,c=t.length,u=s/(c+2*e.padding),l=o/(c+2*e.padding),h=typeof e.join<"u"?!!e.join:!1,f=typeof e.swap<"u"?!!e.swap:!1,m=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,y=typeof e.predefined<"u"?!!e.predefined:!1,I=y?a+''+i:"",C=a+''+i,R="",L="",F=0;F'+i:R+=a+''+i}}h&&(R=a+'');let T="";if(this.options.image!==void 0&&this.options.image.svg){let A=s*this.options.image.width/100,v=o*this.options.image.height/100,k=s/2-A/2,O=o/2-v/2;T+=``,T+=this.options.image.svg+i,T+=""}var M="";switch(r.container){case"svg":m&&(M+=''+i),M+=''+i,M+=I+C+R,M+=T,M+="";break;case"svg-viewbox":m&&(M+=''+i),M+=''+i,M+=I+C+R,M+=T,M+="";break;case"g":M+=''+i,M+=I+C+R,M+=T,M+="";break;default:M+=(I+C+R+T).replace(/^\s+/,"");break}return M};jvt.exports=Hvt});var Gvt=_(o$=>{"use strict";d();p();var vJr=o$&&o$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(o$,"__esModule",{value:!0});o$.QRCode=void 0;var wJr=(Pc(),nt(Dl)),Kvt=(s1(),nt(i$)),xJr=vJr(zvt()),_Jr=r=>{let[e,t]=(0,Kvt.useState)("");return(0,Kvt.useEffect)(()=>{var n,a;let i=new xJr.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=b.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,wJr.h)("img",{src:e,alt:"QR Code"}):null};o$.QRCode=_Jr});var Vvt=_(LPe=>{"use strict";d();p();Object.defineProperty(LPe,"__esModule",{value:!0});LPe.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"});var Yvt=_(c$=>{"use strict";d();p();var TJr=c$&&c$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(c$,"__esModule",{value:!0});c$.Spinner=void 0;var vye=(Pc(),nt(Dl)),IJr=TJr(Vvt()),EJr=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,vye.h)("div",{class:"-cbwsdk-spinner"},(0,vye.h)("style",null,IJr.default),(0,vye.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,vye.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};c$.Spinner=EJr});var $vt=_(OPe=>{"use strict";d();p();Object.defineProperty(OPe,"__esModule",{value:!0});OPe.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"});var r2t=_(Dp=>{"use strict";d();p();var u$=Dp&&Dp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dp,"__esModule",{value:!0});Dp.CoinbaseAppSteps=Dp.CoinbaseWalletSteps=Dp.ConnectItem=Dp.ConnectContent=void 0;var Bp=u$(dre()),rr=(Pc(),nt(Dl)),Qvt=(s1(),nt(i$)),CJr=$0(),kJr=Svt(),AJr=Mvt(),PJr=u$(Nvt()),SJr=u$(Bvt()),Zvt=Dvt(),RJr=u$(Lvt()),MJr=u$(Ovt()),NJr=Fvt(),BJr=Gvt(),DJr=Yvt(),LJr=u$($vt()),Jvt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:SJr.default,steps:e2t},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:PJr.default,steps:t2t}},OJr=r=>{switch(r){case"coinbase-app":return RJr.default;case"coinbase-wallet-app":default:return MJr.default}},qPe=r=>r==="light"?"#FFFFFF":"#0A0B0D";function qJr(r){let{theme:e}=r,[t,n]=(0,Qvt.useState)("coinbase-wallet-app"),a=(0,Qvt.useCallback)(u=>{n(u)},[]),i=(0,CJr.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=Jvt[t];if(!t)return null;let o=s.steps,c=t==="coinbase-app";return(0,rr.h)("div",{"data-testid":"connect-content",class:(0,Bp.default)("-cbwsdk-connect-content",e)},(0,rr.h)("style",null,LJr.default),(0,rr.h)("div",{class:"-cbwsdk-connect-content-header"},(0,rr.h)("h2",{class:(0,Bp.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,rr.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,rr.h)(AJr.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,rr.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,rr.h)("div",null,Object.entries(Jvt).map(([u,l])=>(0,rr.h)(Xvt,{key:u,title:l.title,description:l.description,icon:l.icon,selected:t===u,onClick:()=>a(u),theme:e}))),c&&(0,rr.h)("div",{class:(0,Bp.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,rr.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,rr.h)(BJr.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:OJr(t),width:25,height:25}}),(0,rr.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:kJr.LIB_VERSION}),(0,rr.h)("input",{type:"hidden",value:i})),(0,rr.h)(o,{theme:e}),!r.isConnected&&(0,rr.h)("div",{"data-testid":"connecting-spinner",class:(0,Bp.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,rr.h)(DJr.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,rr.h)("p",null,"Connecting...")))))}Dp.ConnectContent=qJr;function Xvt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,rr.h)("div",{onClick:i,class:(0,Bp.default)("-cbwsdk-connect-item",a,{selected:n})},(0,rr.h)("div",null,(0,rr.h)("img",{src:t,alt:r})),(0,rr.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,rr.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,rr.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Dp.ConnectItem=Xvt;function e2t({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"Scan")," "),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(Zvt.QRCodeIcon,{fill:qPe(r)})))))}Dp.CoinbaseWalletSteps=e2t;function t2t({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"More")),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(NJr.StatusDotIcon,{fill:qPe(r)})),(0,rr.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,rr.h)("strong",null,"Scan")),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(Zvt.QRCodeIcon,{fill:qPe(r)})))))}Dp.CoinbaseAppSteps=t2t});var a2t=_(wye=>{"use strict";d();p();Object.defineProperty(wye,"__esModule",{value:!0});wye.ArrowLeftIcon=void 0;var n2t=(Pc(),nt(Dl));function FJr(r){return(0,n2t.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,n2t.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}wye.ArrowLeftIcon=FJr});var i2t=_(xye=>{"use strict";d();p();Object.defineProperty(xye,"__esModule",{value:!0});xye.LaptopIcon=void 0;var FPe=(Pc(),nt(Dl));function WJr(r){return(0,FPe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,FPe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,FPe.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}xye.LaptopIcon=WJr});var o2t=_(_ye=>{"use strict";d();p();Object.defineProperty(_ye,"__esModule",{value:!0});_ye.SafeIcon=void 0;var s2t=(Pc(),nt(Dl));function UJr(r){return(0,s2t.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,s2t.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}_ye.SafeIcon=UJr});var c2t=_(WPe=>{"use strict";d();p();Object.defineProperty(WPe,"__esModule",{value:!0});WPe.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"});var l2t=_(l$=>{"use strict";d();p();var u2t=l$&&l$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(l$,"__esModule",{value:!0});l$.TryExtensionContent=void 0;var hw=u2t(dre()),Zs=(Pc(),nt(Dl)),UPe=(s1(),nt(i$)),HJr=a2t(),jJr=i2t(),zJr=o2t(),KJr=u2t(c2t());function GJr({theme:r}){let[e,t]=(0,UPe.useState)(!1),n=(0,UPe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,UPe.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,Zs.h)("div",{class:(0,hw.default)("-cbwsdk-try-extension",r)},(0,Zs.h)("style",null,KJr.default),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Zs.h)("h3",{class:(0,hw.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Zs.h)("button",{class:(0,hw.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,Zs.h)("div",null,!e&&(0,Zs.h)(HJr.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Zs.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Zs.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Zs.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Zs.h)("span",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Zs.h)(jJr.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Zs.h)("div",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,Zs.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Zs.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Zs.h)("span",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Zs.h)(zJr.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Zs.h)("div",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}l$.TryExtensionContent=GJr});var d2t=_(HPe=>{"use strict";d();p();Object.defineProperty(HPe,"__esModule",{value:!0});HPe.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"});var h2t=_(d$=>{"use strict";d();p();var p2t=d$&&d$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(d$,"__esModule",{value:!0});d$.ConnectDialog=void 0;var jPe=p2t(dre()),fw=(Pc(),nt(Dl)),zPe=(s1(),nt(i$)),VJr=r2t(),YJr=l2t(),$Jr=p2t(d2t()),QJr=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,zPe.useState)(!e),[i,s]=(0,zPe.useState)(!e);(0,zPe.useEffect)(()=>{let c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[r.isOpen]);let o=t?"dark":"light";return(0,fw.h)("div",{class:(0,jPe.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,fw.h)("style",null,$Jr.default),(0,fw.h)("div",{class:(0,jPe.default)("-cbwsdk-connect-dialog-backdrop",o,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,fw.h)("div",{class:"-cbwsdk-connect-dialog"},(0,fw.h)("div",{class:(0,jPe.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,fw.h)(VJr.ConnectContent,{theme:o,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,fw.h)(YJr.TryExtensionContent,{theme:o}))))};d$.ConnectDialog=QJr});var m2t=_(Tye=>{"use strict";d();p();Object.defineProperty(Tye,"__esModule",{value:!0});Tye.LinkFlow=void 0;var KPe=(Pc(),nt(Dl)),f2t=lre(),JJr=h2t(),GPe=class{constructor(e){this.extensionUI$=new f2t.BehaviorSubject({}),this.subscriptions=new f2t.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,KPe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,KPe.render)((0,KPe.h)(JJr.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};Tye.LinkFlow=GPe});var y2t=_(VPe=>{"use strict";d();p();Object.defineProperty(VPe,"__esModule",{value:!0});VPe.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"});var b2t=_(Lp=>{"use strict";d();p();var g2t=Lp&&Lp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.SnackbarInstance=Lp.SnackbarContainer=Lp.Snackbar=void 0;var Iye=g2t(dre()),Xs=(Pc(),nt(Dl)),YPe=(s1(),nt(i$)),ZJr=g2t(y2t()),XJr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function eZr(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var $Pe=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,Xs.render)((0,Xs.h)("div",null,(0,Xs.h)(Lp.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,Xs.h)(Lp.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};Lp.Snackbar=$Pe;var tZr=r=>(0,Xs.h)("div",{class:(0,Iye.default)("-cbwsdk-snackbar-container")},(0,Xs.h)("style",null,ZJr.default),(0,Xs.h)("div",{class:"-cbwsdk-snackbar"},r.children));Lp.SnackbarContainer=tZr;var rZr=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,YPe.useState)(!0),[s,o]=(0,YPe.useState)(r??!1);(0,YPe.useEffect)(()=>{let u=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{o(!s)};return(0,Xs.h)("div",{class:(0,Iye.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:c},(0,Xs.h)("img",{src:eZr(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,Xs.h)("div",{class:"-gear-container"},!s&&(0,Xs.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Xs.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,Xs.h)("img",{src:XJr,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((u,l)=>(0,Xs.h)("div",{class:(0,Iye.default)("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:l},(0,Xs.h)("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Xs.h)("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),(0,Xs.h)("span",{class:(0,Iye.default)("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};Lp.SnackbarInstance=rZr});var v2t=_(QPe=>{"use strict";d();p();Object.defineProperty(QPe,"__esModule",{value:!0});QPe.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});var w2t=_(p$=>{"use strict";d();p();var nZr=p$&&p$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(p$,"__esModule",{value:!0});p$.injectCssReset=void 0;var aZr=nZr(v2t());function iZr(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(aZr.default)),document.documentElement.appendChild(r)}p$.injectCssReset=iZr});var x2t=_(Eye=>{"use strict";d();p();Object.defineProperty(Eye,"__esModule",{value:!0});Eye.WalletSDKUI=void 0;var sZr=m2t(),oZr=b2t(),cZr=w2t(),JPe=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new oZr.Snackbar({darkMode:e.darkMode}),this.linkFlow=new sZr.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,cZr.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};Eye.WalletSDKUI=JPe});var T2t=_(Cye=>{"use strict";d();p();Object.defineProperty(Cye,"__esModule",{value:!0});var h$;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(h$||(h$={}));function _2t(r,e,t){if(!t||typeof t.value!==h$.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:h$.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:h$.boolTrue,writable:h$.boolTrue}),n}}}Cye.bind=_2t;Cye.default=_2t});var XPe=_(fre=>{"use strict";d();p();var uZr=fre&&fre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fre,"__esModule",{value:!0});var ZPe=Ji();function lZr(r){return function(t){return t.lift(new dZr(r))}}fre.audit=lZr;var dZr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new pZr(e,this.durationSelector))},r}(),pZr=function(r){uZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=ZPe.innerSubscribe(n,new ZPe.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(ZPe.SimpleOuterSubscriber)});var I2t=_(eSe=>{"use strict";d();p();Object.defineProperty(eSe,"__esModule",{value:!0});var hZr=Qu(),fZr=XPe(),mZr=IPe();function yZr(r,e){return e===void 0&&(e=hZr.async),fZr.audit(function(){return mZr.timer(r,e)})}eSe.auditTime=yZr});var E2t=_(mre=>{"use strict";d();p();var gZr=mre&&mre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mre,"__esModule",{value:!0});var tSe=Ji();function bZr(r){return function(t){return t.lift(new vZr(r))}}mre.buffer=bZr;var vZr=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new wZr(e,this.closingNotifier))},r}(),wZr=function(r){gZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(tSe.innerSubscribe(n,new tSe.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(tSe.SimpleOuterSubscriber)});var A2t=_(yre=>{"use strict";d();p();var C2t=yre&&yre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yre,"__esModule",{value:!0});var k2t=tr();function xZr(r,e){return e===void 0&&(e=null),function(n){return n.lift(new _Zr(r,e))}}yre.bufferCount=xZr;var _Zr=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=TZr:this.subscriberClass=IZr}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),TZr=function(r){C2t(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}(k2t.Subscriber),IZr=function(r){C2t(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,o=n.count;this.count++,o%i===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(t),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}(k2t.Subscriber)});var R2t=_(gre=>{"use strict";d();p();var EZr=gre&&gre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gre,"__esModule",{value:!0});var CZr=Qu(),kZr=tr(),AZr=Qh();function PZr(r){var e=arguments.length,t=CZr.async;AZr.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new SZr(r,n,a,t))}}gre.bufferTime=PZr;var SZr=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new MZr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),RZr=function(){function r(){this.buffer=[]}return r}(),MZr=function(r){EZr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=a,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();if(o.timespanOnly=a==null||a<0,o.timespanOnly){var u={subscriber:o,context:c,bufferTimeSpan:n};o.add(c.closeAction=s.schedule(P2t,n,u))}else{var l={subscriber:o,context:c},h={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:o,scheduler:s};o.add(c.closeAction=s.schedule(S2t,n,l)),o.add(s.schedule(NZr,a,h))}return o}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(P2t,a,i))}},e.prototype.openContext=function(){var t=new RZr;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(kZr.Subscriber);function P2t(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function NZr(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(S2t,t,{subscriber:n,context:i})),s.schedule(r,e))}function S2t(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var N2t=_(bre=>{"use strict";d();p();var BZr=bre&&bre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(bre,"__esModule",{value:!0});var DZr=_o(),M2t=n1(),LZr=r1();function OZr(r,e){return function(n){return n.lift(new qZr(r,e))}}bre.bufferToggle=OZr;var qZr=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new FZr(e,this.openings,this.closingSelector))},r}(),FZr=function(r){BZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(M2t.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new DZr.Subscription,s={buffer:a,subscription:i};n.push(s);var o=M2t.subscribeToResult(this,t,s);!o||o.closed?this.closeBuffer(s):(o.context=s,this.add(o),i.add(o))},e}(LZr.OuterSubscriber)});var B2t=_(vre=>{"use strict";d();p();var WZr=vre&&vre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vre,"__esModule",{value:!0});var UZr=_o(),rSe=Ji();function HZr(r){return function(e){return e.lift(new jZr(r))}}vre.bufferWhen=HZr;var jZr=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new zZr(e,this.closingSelector))},r}(),zZr=function(r){WZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new UZr.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(rSe.innerSubscribe(a,new rSe.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(rSe.SimpleOuterSubscriber)});var D2t=_(wre=>{"use strict";d();p();var KZr=wre&&wre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wre,"__esModule",{value:!0});var nSe=Ji();function GZr(r){return function(t){var n=new VZr(r),a=t.lift(n);return n.caught=a}}wre.catchError=GZr;var VZr=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new YZr(e,this.selector,this.caught))},r}(),YZr=function(r){KZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new nSe.SimpleInnerSubscriber(this);this.add(a);var i=nSe.innerSubscribe(n,a);i!==a&&this.add(i)}},e}(nSe.SimpleOuterSubscriber)});var L2t=_(aSe=>{"use strict";d();p();Object.defineProperty(aSe,"__esModule",{value:!0});var $Zr=J0e();function QZr(r){return function(e){return e.lift(new $Zr.CombineLatestOperator(r))}}aSe.combineAll=QZr});var O2t=_(iSe=>{"use strict";d();p();Object.defineProperty(iSe,"__esModule",{value:!0});var JZr=$u(),ZZr=J0e(),XZr=Jh();function eXr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(sSe,"__esModule",{value:!0});var tXr=sre();function rXr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(oSe,"__esModule",{value:!0});var nXr=ire();function aXr(r,e){return nXr.mergeMap(r,e,1)}oSe.concatMap=aXr});var F2t=_(uSe=>{"use strict";d();p();Object.defineProperty(uSe,"__esModule",{value:!0});var iXr=cSe();function sXr(r,e){return iXr.concatMap(function(){return r},e)}uSe.concatMapTo=sXr});var W2t=_(xre=>{"use strict";d();p();var oXr=xre&&xre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xre,"__esModule",{value:!0});var cXr=tr();function uXr(r){return function(e){return e.lift(new lXr(r,e))}}xre.count=uXr;var lXr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new dXr(e,this.predicate,this.source))},r}(),dXr=function(r){oXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(cXr.Subscriber)});var U2t=_(_re=>{"use strict";d();p();var pXr=_re&&_re.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_re,"__esModule",{value:!0});var lSe=Ji();function hXr(r){return function(e){return e.lift(new fXr(r))}}_re.debounce=hXr;var fXr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new mXr(e,this.durationSelector))},r}(),mXr=function(r){pXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=lSe.innerSubscribe(n,new lSe.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(lSe.SimpleOuterSubscriber)});var H2t=_(Tre=>{"use strict";d();p();var yXr=Tre&&Tre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tre,"__esModule",{value:!0});var gXr=tr(),bXr=Qu();function vXr(r,e){return e===void 0&&(e=bXr.async),function(t){return t.lift(new wXr(r,e))}}Tre.debounceTime=vXr;var wXr=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new xXr(e,this.dueTime,this.scheduler))},r}(),xXr=function(r){yXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_Xr,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(gXr.Subscriber);function _Xr(r){r.debouncedNext()}});var f$=_(Ire=>{"use strict";d();p();var TXr=Ire&&Ire.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ire,"__esModule",{value:!0});var IXr=tr();function EXr(r){return r===void 0&&(r=null),function(e){return e.lift(new CXr(r))}}Ire.defaultIfEmpty=EXr;var CXr=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new kXr(e,this.defaultValue))},r}(),kXr=function(r){TXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(IXr.Subscriber)});var pSe=_(dSe=>{"use strict";d();p();Object.defineProperty(dSe,"__esModule",{value:!0});function AXr(r){return r instanceof Date&&!isNaN(+r)}dSe.isDate=AXr});var z2t=_(Ere=>{"use strict";d();p();var PXr=Ere&&Ere.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ere,"__esModule",{value:!0});var SXr=Qu(),RXr=pSe(),MXr=tr(),j2t=Kte();function NXr(r,e){e===void 0&&(e=SXr.async);var t=RXr.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new BXr(n,e))}}Ere.delay=NXr;var BXr=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new DXr(e,this.delay,this.scheduler))},r}(),DXr=function(r){PXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var o=Math.max(0,a[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new LXr(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(j2t.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(j2t.Notification.createComplete()),this.unsubscribe()},e}(MXr.Subscriber),LXr=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var G2t=_(Cre=>{"use strict";d();p();var hSe=Cre&&Cre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Cre,"__esModule",{value:!0});var OXr=tr(),qXr=sn(),FXr=r1(),WXr=n1();function UXr(r,e){return e?function(t){return new jXr(t,e).lift(new K2t(r))}:function(t){return t.lift(new K2t(r))}}Cre.delayWhen=UXr;var K2t=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new HXr(e,this.delayDurationSelector))},r}(),HXr=function(r){hSe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=WXr.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(FXr.OuterSubscriber),jXr=function(r){hSe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new zXr(t,this.source))},e}(qXr.Observable),zXr=function(r){hSe(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(OXr.Subscriber)});var V2t=_(kre=>{"use strict";d();p();var KXr=kre&&kre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kre,"__esModule",{value:!0});var GXr=tr();function VXr(){return function(e){return e.lift(new YXr)}}kre.dematerialize=VXr;var YXr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new $Xr(e))},r}(),$Xr=function(r){KXr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(GXr.Subscriber)});var $2t=_(m$=>{"use strict";d();p();var QXr=m$&&m$.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(m$,"__esModule",{value:!0});var fSe=Ji();function JXr(r,e){return function(t){return t.lift(new ZXr(r,e))}}m$.distinct=JXr;var ZXr=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new Y2t(e,this.keySelector,this.flushes))},r}(),Y2t=function(r){QXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add(fSe.innerSubscribe(a,new fSe.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}(fSe.SimpleOuterSubscriber);m$.DistinctSubscriber=Y2t});var mSe=_(Are=>{"use strict";d();p();var XXr=Are&&Are.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Are,"__esModule",{value:!0});var een=tr();function ten(r,e){return function(t){return t.lift(new ren(r,e))}}Are.distinctUntilChanged=ten;var ren=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new nen(e,this.compare,this.keySelector))},r}(),nen=function(r){XXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(o){return this.destination.error(o)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(een.Subscriber)});var Q2t=_(ySe=>{"use strict";d();p();Object.defineProperty(ySe,"__esModule",{value:!0});var aen=mSe();function ien(r,e){return aen.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}ySe.distinctUntilKeyChanged=ien});var Sre=_(Pre=>{"use strict";d();p();var sen=Pre&&Pre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pre,"__esModule",{value:!0});var oen=ZY(),cen=tr();function uen(r){return r===void 0&&(r=pen),function(e){return e.lift(new len(r))}}Pre.throwIfEmpty=uen;var len=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new den(e,this.errorFactory))},r}(),den=function(r){sen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}(cen.Subscriber);function pen(){return new oen.EmptyError}});var kye=_(Rre=>{"use strict";d();p();var hen=Rre&&Rre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rre,"__esModule",{value:!0});var fen=tr(),men=JY(),yen=$h();function gen(r){return function(e){return r===0?yen.empty():e.lift(new ben(r))}}Rre.take=gen;var ben=function(){function r(e){if(this.total=e,this.total<0)throw new men.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new ven(e,this.total))},r}(),ven=function(r){hen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(fen.Subscriber)});var Z2t=_(gSe=>{"use strict";d();p();Object.defineProperty(gSe,"__esModule",{value:!0});var J2t=JY(),wen=cw(),xen=Sre(),_en=f$(),Ten=kye();function Ien(r,e){if(r<0)throw new J2t.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(wen.filter(function(a,i){return i===r}),Ten.take(1),t?_en.defaultIfEmpty(e):xen.throwIfEmpty(function(){return new J2t.ArgumentOutOfRangeError}))}}gSe.elementAt=Ien});var X2t=_(bSe=>{"use strict";d();p();Object.defineProperty(bSe,"__esModule",{value:!0});var Een=sre(),Cen=jte();function ken(){for(var r=[],e=0;e{"use strict";d();p();var Aen=Mre&&Mre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mre,"__esModule",{value:!0});var Pen=tr();function Sen(r,e){return function(t){return t.lift(new Ren(r,e,t))}}Mre.every=Sen;var Ren=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new Men(e,this.predicate,this.thisArg,this.source))},r}(),Men=function(r){Aen(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(Pen.Subscriber)});var twt=_(Nre=>{"use strict";d();p();var Nen=Nre&&Nre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nre,"__esModule",{value:!0});var vSe=Ji();function Ben(){return function(r){return r.lift(new Den)}}Nre.exhaust=Ben;var Den=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new Len(e))},r}(),Len=function(r){Nen(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(vSe.innerSubscribe(t,new vSe.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(vSe.SimpleOuterSubscriber)});var nwt=_(Bre=>{"use strict";d();p();var Oen=Bre&&Bre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bre,"__esModule",{value:!0});var qen=hd(),Fen=Jh(),wSe=Ji();function rwt(r,e){return e?function(t){return t.pipe(rwt(function(n,a){return Fen.from(r(n,a)).pipe(qen.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new Wen(r))}}Bre.exhaustMap=rwt;var Wen=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new Uen(e,this.project))},r}(),Uen=function(r){Oen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new wSe.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=wSe.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(wSe.SimpleOuterSubscriber)});var swt=_(mw=>{"use strict";d();p();var Hen=mw&&mw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mw,"__esModule",{value:!0});var xSe=Ji();function jen(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new awt(r,e,t))}}mw.expand=jen;var awt=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new iwt(e,this.project,this.concurrent,this.scheduler))},r}();mw.ExpandOperator=awt;var iwt=function(r){Hen(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(xSe.SimpleOuterSubscriber);mw.ExpandSubscriber=iwt});var owt=_(Dre=>{"use strict";d();p();var zen=Dre&&Dre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Dre,"__esModule",{value:!0});var Ken=tr(),Gen=_o();function Ven(r){return function(e){return e.lift(new Yen(r))}}Dre.finalize=Ven;var Yen=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new $en(e,this.callback))},r}(),$en=function(r){zen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new Gen.Subscription(n)),a}return e}(Ken.Subscriber)});var _Se=_(yw=>{"use strict";d();p();var Qen=yw&&yw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yw,"__esModule",{value:!0});var Jen=tr();function Zen(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new cwt(r,t,!1,e))}}yw.find=Zen;var cwt=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new uwt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();yw.FindValueOperator=cwt;var uwt=function(r){Qen(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.predicate=n,o.source=a,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var o=a.call(i||this,t,s,this.source);o&&this.notifyComplete(this.yieldIndex?s:t)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(Jen.Subscriber);yw.FindValueSubscriber=uwt});var lwt=_(TSe=>{"use strict";d();p();Object.defineProperty(TSe,"__esModule",{value:!0});var Xen=_Se();function etn(r,e){return function(t){return t.lift(new Xen.FindValueOperator(r,t,!0,e))}}TSe.findIndex=etn});var dwt=_(ISe=>{"use strict";d();p();Object.defineProperty(ISe,"__esModule",{value:!0});var ttn=ZY(),rtn=cw(),ntn=kye(),atn=f$(),itn=Sre(),stn=e1();function otn(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?rtn.filter(function(a,i){return r(a,i,n)}):stn.identity,ntn.take(1),t?atn.defaultIfEmpty(e):itn.throwIfEmpty(function(){return new ttn.EmptyError}))}}ISe.first=otn});var pwt=_(Lre=>{"use strict";d();p();var ctn=Lre&&Lre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lre,"__esModule",{value:!0});var utn=tr();function ltn(){return function(e){return e.lift(new dtn)}}Lre.ignoreElements=ltn;var dtn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new ptn(e))},r}(),ptn=function(r){ctn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(utn.Subscriber)});var hwt=_(Ore=>{"use strict";d();p();var htn=Ore&&Ore.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ore,"__esModule",{value:!0});var ftn=tr();function mtn(){return function(r){return r.lift(new ytn)}}Ore.isEmpty=mtn;var ytn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new gtn(e))},r}(),gtn=function(r){htn(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(ftn.Subscriber)});var Aye=_(qre=>{"use strict";d();p();var btn=qre&&qre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qre,"__esModule",{value:!0});var vtn=tr(),wtn=JY(),xtn=$h();function _tn(r){return function(t){return r===0?xtn.empty():t.lift(new Ttn(r))}}qre.takeLast=_tn;var Ttn=function(){function r(e){if(this.total=e,this.total<0)throw new wtn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new Itn(e,this.total))},r}(),Itn=function(r){btn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";d();p();Object.defineProperty(ESe,"__esModule",{value:!0});var Etn=ZY(),Ctn=cw(),ktn=Aye(),Atn=Sre(),Ptn=f$(),Stn=e1();function Rtn(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?Ctn.filter(function(a,i){return r(a,i,n)}):Stn.identity,ktn.takeLast(1),t?Ptn.defaultIfEmpty(e):Atn.throwIfEmpty(function(){return new Etn.EmptyError}))}}ESe.last=Rtn});var mwt=_(Fre=>{"use strict";d();p();var Mtn=Fre&&Fre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fre,"__esModule",{value:!0});var Ntn=tr();function Btn(r){return function(e){return e.lift(new Dtn(r))}}Fre.mapTo=Btn;var Dtn=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new Ltn(e,this.value))},r}(),Ltn=function(r){Mtn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}(Ntn.Subscriber)});var ywt=_(Wre=>{"use strict";d();p();var Otn=Wre&&Wre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wre,"__esModule",{value:!0});var qtn=tr(),CSe=Kte();function Ftn(){return function(e){return e.lift(new Wtn)}}Wre.materialize=Ftn;var Wtn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new Utn(e))},r}(),Utn=function(r){Otn(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(CSe.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(CSe.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(CSe.Notification.createComplete()),t.complete()},e}(qtn.Subscriber)});var Pye=_(Ure=>{"use strict";d();p();var Htn=Ure&&Ure.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ure,"__esModule",{value:!0});var jtn=tr();function ztn(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new Ktn(r,e,t))}}Ure.scan=ztn;var Ktn=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new Gtn(e,this.accumulator,this.seed,this.hasSeed))},r}(),Gtn=function(r){Htn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(jtn.Subscriber)});var Hre=_(kSe=>{"use strict";d();p();Object.defineProperty(kSe,"__esModule",{value:!0});var gwt=Pye(),bwt=Aye(),Vtn=f$(),vwt=U0e();function Ytn(r,e){return arguments.length>=2?function(n){return vwt.pipe(gwt.scan(r,e),bwt.takeLast(1),Vtn.defaultIfEmpty(e))(n)}:function(n){return vwt.pipe(gwt.scan(function(a,i,s){return r(a,i,s+1)}),bwt.takeLast(1))(n)}}kSe.reduce=Ytn});var wwt=_(ASe=>{"use strict";d();p();Object.defineProperty(ASe,"__esModule",{value:!0});var $tn=Hre();function Qtn(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return $tn.reduce(e)}ASe.max=Qtn});var xwt=_(PSe=>{"use strict";d();p();Object.defineProperty(PSe,"__esModule",{value:!0});var Jtn=mPe();function Ztn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(SSe,"__esModule",{value:!0});var _wt=ire();function Xtn(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?_wt.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),_wt.mergeMap(function(){return r},t))}SSe.mergeMapTo=Xtn});var Cwt=_(gw=>{"use strict";d();p();var ern=gw&&gw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gw,"__esModule",{value:!0});var RSe=Ji();function trn(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new Iwt(r,e,t))}}gw.mergeScan=trn;var Iwt=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new Ewt(e,this.accumulator,this.seed,this.concurrent))},r}();gw.MergeScanOperator=Iwt;var Ewt=function(r){ern(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(RSe.SimpleOuterSubscriber);gw.MergeScanSubscriber=Ewt});var kwt=_(MSe=>{"use strict";d();p();Object.defineProperty(MSe,"__esModule",{value:!0});var rrn=Hre();function nrn(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";d();p();Object.defineProperty(Sye,"__esModule",{value:!0});var arn=pAe();function irn(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new Awt(a,e));var i=Object.create(n,arn.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}Sye.multicast=irn;var Awt=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();Sye.MulticastOperator=Awt});var Rwt=_(y$=>{"use strict";d();p();var srn=y$&&y$.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(y$,"__esModule",{value:!0});var orn=Jh(),Pwt=$u(),NSe=Ji();function crn(){for(var r=[],e=0;e{"use strict";d();p();var drn=jre&&jre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(jre,"__esModule",{value:!0});var prn=tr();function hrn(){return function(r){return r.lift(new frn)}}jre.pairwise=hrn;var frn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new mrn(e))},r}(),mrn=function(r){drn(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(prn.Subscriber)});var Bwt=_(BSe=>{"use strict";d();p();Object.defineProperty(BSe,"__esModule",{value:!0});var yrn=wPe(),Nwt=cw();function grn(r,e){return function(t){return[Nwt.filter(r,e)(t),Nwt.filter(yrn.not(r,e))(t)]}}BSe.partition=grn});var Dwt=_(DSe=>{"use strict";d();p();Object.defineProperty(DSe,"__esModule",{value:!0});var brn=hd();function vrn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(LSe,"__esModule",{value:!0});var Lwt=Au(),Owt=bw();function xrn(r){return r?Owt.multicast(function(){return new Lwt.Subject},r):Owt.multicast(new Lwt.Subject)}LSe.publish=xrn});var Fwt=_(OSe=>{"use strict";d();p();Object.defineProperty(OSe,"__esModule",{value:!0});var _rn=mAe(),Trn=bw();function Irn(r){return function(e){return Trn.multicast(new _rn.BehaviorSubject(r))(e)}}OSe.publishBehavior=Irn});var Wwt=_(qSe=>{"use strict";d();p();Object.defineProperty(qSe,"__esModule",{value:!0});var Ern=Yte(),Crn=bw();function krn(){return function(r){return Crn.multicast(new Ern.AsyncSubject)(r)}}qSe.publishLast=krn});var Uwt=_(FSe=>{"use strict";d();p();Object.defineProperty(FSe,"__esModule",{value:!0});var Arn=V0e(),Prn=bw();function Srn(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new Arn.ReplaySubject(r,e,n);return function(s){return Prn.multicast(function(){return i},a)(s)}}FSe.publishReplay=Srn});var Hwt=_(WSe=>{"use strict";d();p();Object.defineProperty(WSe,"__esModule",{value:!0});var Rrn=$u(),Mrn=_Pe();function Nrn(){for(var r=[],e=0;e{"use strict";d();p();var Brn=zre&&zre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zre,"__esModule",{value:!0});var Drn=tr(),Lrn=$h();function Orn(r){return r===void 0&&(r=-1),function(e){return r===0?Lrn.empty():r<0?e.lift(new jwt(-1,e)):e.lift(new jwt(r-1,e))}}zre.repeat=Orn;var jwt=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new qrn(e,this.count,this.source))},r}(),qrn=function(r){Brn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(Drn.Subscriber)});var Kwt=_(Kre=>{"use strict";d();p();var Frn=Kre&&Kre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kre,"__esModule",{value:!0});var Wrn=Au(),USe=Ji();function Urn(r){return function(e){return e.lift(new Hrn(r))}}Kre.repeatWhen=Urn;var Hrn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new jrn(e,this.notifier,t))},r}(),jrn=function(r){Frn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new Wrn.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=USe.innerSubscribe(t,new USe.SimpleInnerSubscriber(this))},e}(USe.SimpleOuterSubscriber)});var Gwt=_(Gre=>{"use strict";d();p();var zrn=Gre&&Gre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gre,"__esModule",{value:!0});var Krn=tr();function Grn(r){return r===void 0&&(r=-1),function(e){return e.lift(new Vrn(r,e))}}Gre.retry=Grn;var Vrn=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Yrn(e,this.count,this.source))},r}(),Yrn=function(r){zrn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(Krn.Subscriber)});var Vwt=_(Vre=>{"use strict";d();p();var $rn=Vre&&Vre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vre,"__esModule",{value:!0});var Qrn=Au(),HSe=Ji();function Jrn(r){return function(e){return e.lift(new Zrn(r,e))}}Vre.retryWhen=Jrn;var Zrn=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Xrn(e,this.notifier,this.source))},r}(),Xrn=function(r){$rn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new Qrn.Subject;try{var s=this.notifier;a=s(n)}catch(o){return r.prototype.error.call(this,o)}i=HSe.innerSubscribe(a,new HSe.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(HSe.SimpleOuterSubscriber)});var Ywt=_(Yre=>{"use strict";d();p();var enn=Yre&&Yre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Yre,"__esModule",{value:!0});var jSe=Ji();function tnn(r){return function(e){return e.lift(new rnn(r))}}Yre.sample=tnn;var rnn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new nnn(e),a=t.subscribe(n);return a.add(jSe.innerSubscribe(this.notifier,new jSe.SimpleInnerSubscriber(n))),a},r}(),nnn=function(r){enn(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(jSe.SimpleOuterSubscriber)});var $wt=_($re=>{"use strict";d();p();var ann=$re&&$re.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($re,"__esModule",{value:!0});var inn=tr(),snn=Qu();function onn(r,e){return e===void 0&&(e=snn.async),function(t){return t.lift(new cnn(r,e))}}$re.sampleTime=onn;var cnn=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new unn(e,this.period,this.scheduler))},r}(),unn=function(r){ann(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(lnn,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(inn.Subscriber);function lnn(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var e5t=_(vw=>{"use strict";d();p();var Qwt=vw&&vw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vw,"__esModule",{value:!0});var Jwt=tr();function dnn(r,e){return function(t){return t.lift(new Zwt(r,e))}}vw.sequenceEqual=dnn;var Zwt=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new Xwt(e,this.compareTo,this.comparator))},r}();vw.SequenceEqualOperator=Zwt;var Xwt=function(r){Qwt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new pnn(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),o=a.shift(),c=!1;try{c=i?i(s,o):s===o}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(Jwt.Subscriber);vw.SequenceEqualSubscriber=Xwt;var pnn=function(r){Qwt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(Jwt.Subscriber)});var t5t=_(zSe=>{"use strict";d();p();Object.defineProperty(zSe,"__esModule",{value:!0});var hnn=bw(),fnn=j0e(),mnn=Au();function ynn(){return new mnn.Subject}function gnn(){return function(r){return fnn.refCount()(hnn.multicast(ynn)(r))}}zSe.share=gnn});var r5t=_(KSe=>{"use strict";d();p();Object.defineProperty(KSe,"__esModule",{value:!0});var bnn=V0e();function vnn(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(wnn(n))}}KSe.shareReplay=vnn;function wnn(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,o,c=0,u,l=!1,h=!1;return function(m){c++;var y;!o||l?(l=!1,o=new bnn.ReplaySubject(t,a,s),y=o.subscribe(this),u=m.subscribe({next:function(I){o.next(I)},error:function(I){l=!0,o.error(I)},complete:function(){h=!0,u=void 0,o.complete()}}),h&&(u=void 0)):y=o.subscribe(this),this.add(function(){c--,y.unsubscribe(),y=void 0,u&&!h&&i&&c===0&&(u.unsubscribe(),u=void 0,o=void 0)})}}});var n5t=_(Qre=>{"use strict";d();p();var xnn=Qre&&Qre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qre,"__esModule",{value:!0});var _nn=tr(),Tnn=ZY();function Inn(r){return function(e){return e.lift(new Enn(r,e))}}Qre.single=Inn;var Enn=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Cnn(e,this.predicate,this.source))},r}(),Cnn=function(r){xnn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Tnn.EmptyError)},e}(_nn.Subscriber)});var a5t=_(Jre=>{"use strict";d();p();var knn=Jre&&Jre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jre,"__esModule",{value:!0});var Ann=tr();function Pnn(r){return function(e){return e.lift(new Snn(r))}}Jre.skip=Pnn;var Snn=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new Rnn(e,this.total))},r}(),Rnn=function(r){knn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(Ann.Subscriber)});var s5t=_(Zre=>{"use strict";d();p();var Mnn=Zre&&Zre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zre,"__esModule",{value:!0});var i5t=tr(),Nnn=JY();function Bnn(r){return function(e){return e.lift(new Dnn(r))}}Zre.skipLast=Bnn;var Dnn=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new Nnn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new i5t.Subscriber(e)):t.subscribe(new Lnn(e,this._skipCount))},r}(),Lnn=function(r){Mnn(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";d();p();var Onn=Xre&&Xre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xre,"__esModule",{value:!0});var GSe=Ji();function qnn(r){return function(e){return e.lift(new Fnn(r))}}Xre.skipUntil=qnn;var Fnn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new Wnn(e,this.notifier))},r}(),Wnn=function(r){Onn(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new GSe.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=GSe.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(GSe.SimpleOuterSubscriber)});var c5t=_(ene=>{"use strict";d();p();var Unn=ene&&ene.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ene,"__esModule",{value:!0});var Hnn=tr();function jnn(r){return function(e){return e.lift(new znn(r))}}ene.skipWhile=jnn;var znn=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new Knn(e,this.predicate))},r}(),Knn=function(r){Unn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}(Hnn.Subscriber)});var l5t=_(VSe=>{"use strict";d();p();Object.defineProperty(VSe,"__esModule",{value:!0});var u5t=sre(),Gnn=Qh();function Vnn(){for(var r=[],e=0;e{"use strict";d();p();var Ynn=tne&&tne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tne,"__esModule",{value:!0});var $nn=sn(),YSe=AAe(),Qnn=ore(),Jnn=function(r){Ynn(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=YSe.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!Qnn.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=YSe.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=YSe.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}($nn.Observable);tne.SubscribeOnObservable=Jnn});var p5t=_($Se=>{"use strict";d();p();Object.defineProperty($Se,"__esModule",{value:!0});var Znn=d5t();function Xnn(r,e){return e===void 0&&(e=0),function(n){return n.lift(new ean(r,e))}}$Se.subscribeOn=Xnn;var ean=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new Znn.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var Rye=_(rne=>{"use strict";d();p();var tan=rne&&rne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rne,"__esModule",{value:!0});var ran=hd(),nan=Jh(),QSe=Ji();function h5t(r,e){return typeof e=="function"?function(t){return t.pipe(h5t(function(n,a){return nan.from(r(n,a)).pipe(ran.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new aan(r))}}rne.switchMap=h5t;var aan=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new ian(e,this.project))},r}(),ian=function(r){tan(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new QSe.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=QSe.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(QSe.SimpleOuterSubscriber)});var f5t=_(JSe=>{"use strict";d();p();Object.defineProperty(JSe,"__esModule",{value:!0});var san=Rye(),oan=e1();function can(){return san.switchMap(oan.identity)}JSe.switchAll=can});var y5t=_(ZSe=>{"use strict";d();p();Object.defineProperty(ZSe,"__esModule",{value:!0});var m5t=Rye();function uan(r,e){return e?m5t.switchMap(function(){return r},e):m5t.switchMap(function(){return r})}ZSe.switchMapTo=uan});var g5t=_(nne=>{"use strict";d();p();var lan=nne&&nne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nne,"__esModule",{value:!0});var XSe=Ji();function dan(r){return function(e){return e.lift(new pan(r))}}nne.takeUntil=dan;var pan=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new han(e),a=XSe.innerSubscribe(this.notifier,new XSe.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),han=function(r){lan(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(XSe.SimpleOuterSubscriber)});var b5t=_(ane=>{"use strict";d();p();var fan=ane&&ane.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ane,"__esModule",{value:!0});var man=tr();function yan(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new gan(r,e))}}ane.takeWhile=yan;var gan=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new ban(e,this.predicate,this.inclusive))},r}(),ban=function(r){fan(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}(man.Subscriber)});var v5t=_(ine=>{"use strict";d();p();var van=ine&&ine.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ine,"__esModule",{value:!0});var wan=tr(),u1=Q0e(),xan=HY();function _an(r,e,t){return function(a){return a.lift(new Tan(r,e,t))}}ine.tap=_an;var Tan=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new Ian(e,this.nextOrObserver,this.error,this.complete))},r}(),Ian=function(r){van(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=u1.noop,s._tapError=u1.noop,s._tapComplete=u1.noop,s._tapError=a||u1.noop,s._tapComplete=i||u1.noop,xan.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||u1.noop,s._tapError=n.error||u1.noop,s._tapComplete=n.complete||u1.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(wan.Subscriber)});var t7e=_(ww=>{"use strict";d();p();var Ean=ww&&ww.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ww,"__esModule",{value:!0});var e7e=Ji();ww.defaultThrottleConfig={leading:!0,trailing:!1};function Can(r,e){return e===void 0&&(e=ww.defaultThrottleConfig),function(t){return t.lift(new kan(r,!!e.leading,!!e.trailing))}}ww.throttle=Can;var kan=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new Aan(e,this.durationSelector,this.leading,this.trailing))},r}(),Aan=function(r){Ean(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=e7e.innerSubscribe(n,new e7e.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(e7e.SimpleOuterSubscriber)});var w5t=_(sne=>{"use strict";d();p();var Pan=sne&&sne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sne,"__esModule",{value:!0});var San=tr(),Ran=Qu(),Man=t7e();function Nan(r,e,t){return e===void 0&&(e=Ran.async),t===void 0&&(t=Man.defaultThrottleConfig),function(n){return n.lift(new Ban(r,e,t.leading,t.trailing))}}sne.throttleTime=Nan;var Ban=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new Dan(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),Dan=function(r){Pan(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.duration=n,o.scheduler=a,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Lan,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(San.Subscriber);function Lan(r){var e=r.subscriber;e.clearThrottle()}});var _5t=_(Mye=>{"use strict";d();p();Object.defineProperty(Mye,"__esModule",{value:!0});var Oan=Qu(),qan=Pye(),Fan=tye(),Wan=hd();function Uan(r){return r===void 0&&(r=Oan.async),function(e){return Fan.defer(function(){return e.pipe(qan.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),Wan.map(function(t){var n=t.current,a=t.last,i=t.value;return new x5t(i,n-a)}))})}}Mye.timeInterval=Uan;var x5t=function(){function r(e,t){this.value=e,this.interval=t}return r}();Mye.TimeInterval=x5t});var n7e=_(one=>{"use strict";d();p();var Han=one&&one.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(one,"__esModule",{value:!0});var jan=Qu(),zan=pSe(),r7e=Ji();function Kan(r,e,t){return t===void 0&&(t=jan.async),function(n){var a=zan.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new Gan(i,a,e,t))}}one.timeoutWith=Kan;var Gan=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Van(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),Van=function(r){Han(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=a,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(r7e.innerSubscribe(n,new r7e.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(r7e.SimpleOuterSubscriber)});var T5t=_(a7e=>{"use strict";d();p();Object.defineProperty(a7e,"__esModule",{value:!0});var Yan=Qu(),$an=BAe(),Qan=n7e(),Jan=G0e();function Zan(r,e){return e===void 0&&(e=Yan.async),Qan.timeoutWith(r,Jan.throwError(new $an.TimeoutError),e)}a7e.timeout=Zan});var E5t=_(Nye=>{"use strict";d();p();Object.defineProperty(Nye,"__esModule",{value:!0});var Xan=Qu(),ein=hd();function tin(r){return r===void 0&&(r=Xan.async),ein.map(function(e){return new I5t(e,r.now())})}Nye.timestamp=tin;var I5t=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();Nye.Timestamp=I5t});var C5t=_(i7e=>{"use strict";d();p();Object.defineProperty(i7e,"__esModule",{value:!0});var rin=Hre();function nin(r,e,t){return t===0?[e]:(r.push(e),r)}function ain(){return rin.reduce(nin,[])}i7e.toArray=ain});var A5t=_(cne=>{"use strict";d();p();var iin=cne&&cne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cne,"__esModule",{value:!0});var k5t=Au(),s7e=Ji();function sin(r){return function(t){return t.lift(new oin(r))}}cne.window=sin;var oin=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new cin(e),a=t.subscribe(n);return a.closed||n.add(s7e.innerSubscribe(this.windowBoundaries,new s7e.SimpleInnerSubscriber(n))),a},r}(),cin=function(r){iin(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new k5t.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new k5t.Subject;n.next(a)},e}(s7e.SimpleOuterSubscriber)});var S5t=_(une=>{"use strict";d();p();var uin=une&&une.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(une,"__esModule",{value:!0});var lin=tr(),P5t=Au();function din(r,e){return e===void 0&&(e=0),function(n){return n.lift(new pin(r,e))}}une.windowCount=din;var pin=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new hin(e,this.windowSize,this.startWindowEvery))},r}(),hin=function(r){uin(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new P5t.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,o=s.length,c=0;c=0&&u%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var l=new P5t.Subject;s.push(l),a.next(l)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(lin.Subscriber)});var B5t=_(lne=>{"use strict";d();p();var M5t=lne&&lne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lne,"__esModule",{value:!0});var fin=Au(),min=Qu(),yin=tr(),R5t=ore(),o7e=Qh();function gin(r){var e=min.async,t=null,n=Number.POSITIVE_INFINITY;return o7e.isScheduler(arguments[3])&&(e=arguments[3]),o7e.isScheduler(arguments[2])?e=arguments[2]:R5t.isNumeric(arguments[2])&&(n=Number(arguments[2])),o7e.isScheduler(arguments[1])?e=arguments[1]:R5t.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new bin(r,t,n,e))}}lne.windowTime=gin;var bin=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new win(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),vin=function(r){M5t(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(fin.Subject),win=function(r){M5t(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=a,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();if(a!==null&&a>=0){var u={subscriber:o,window:c,context:null},l={windowTimeSpan:n,windowCreationInterval:a,subscriber:o,scheduler:s};o.add(s.schedule(N5t,n,u)),o.add(s.schedule(_in,a,l))}else{var h={subscriber:o,window:c,windowTimeSpan:n};o.add(s.schedule(xin,n,h))}return o}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new vin;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(yin.Subscriber);function xin(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function _in(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,o={action:s,subscription:null},c={subscriber:t,window:i,context:o};o.subscription=n.schedule(N5t,e,c),s.add(o.subscription),s.schedule(r,a)}function N5t(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var L5t=_(dne=>{"use strict";d();p();var Tin=dne&&dne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dne,"__esModule",{value:!0});var Iin=Au(),Ein=_o(),Cin=r1(),D5t=n1();function kin(r,e){return function(t){return t.lift(new Ain(r,e))}}dne.windowToggle=kin;var Ain=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new Pin(e,this.openings,this.closingSelector))},r}(),Pin=function(r){Tin(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=D5t.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";d();p();var Sin=pne&&pne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pne,"__esModule",{value:!0});var Rin=Au(),Min=r1(),Nin=n1();function Bin(r){return function(t){return t.lift(new Din(r))}}pne.windowWhen=Bin;var Din=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Lin(e,this.closingSelector))},r}(),Lin=function(r){Sin(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new Rin.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(o){this.destination.error(o),this.window.error(o);return}this.add(this.closingNotification=Nin.subscribeToResult(this,i))},e}(Min.OuterSubscriber)});var q5t=_(hne=>{"use strict";d();p();var Oin=hne&&hne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hne,"__esModule",{value:!0});var qin=r1(),Fin=n1();function Win(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(qin.OuterSubscriber)});var F5t=_(c7e=>{"use strict";d();p();Object.defineProperty(c7e,"__esModule",{value:!0});var jin=sye();function zin(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(u7e,"__esModule",{value:!0});var Kin=sye();function Gin(r){return function(e){return e.lift(new Kin.ZipOperator(r))}}u7e.zipAll=Gin});var Bye=_(Pe=>{"use strict";d();p();Object.defineProperty(Pe,"__esModule",{value:!0});var Vin=XPe();Pe.audit=Vin.audit;var Yin=I2t();Pe.auditTime=Yin.auditTime;var $in=E2t();Pe.buffer=$in.buffer;var Qin=A2t();Pe.bufferCount=Qin.bufferCount;var Jin=R2t();Pe.bufferTime=Jin.bufferTime;var Zin=N2t();Pe.bufferToggle=Zin.bufferToggle;var Xin=B2t();Pe.bufferWhen=Xin.bufferWhen;var esn=D2t();Pe.catchError=esn.catchError;var tsn=L2t();Pe.combineAll=tsn.combineAll;var rsn=O2t();Pe.combineLatest=rsn.combineLatest;var nsn=q2t();Pe.concat=nsn.concat;var asn=aPe();Pe.concatAll=asn.concatAll;var isn=cSe();Pe.concatMap=isn.concatMap;var ssn=F2t();Pe.concatMapTo=ssn.concatMapTo;var osn=W2t();Pe.count=osn.count;var csn=U2t();Pe.debounce=csn.debounce;var usn=H2t();Pe.debounceTime=usn.debounceTime;var lsn=f$();Pe.defaultIfEmpty=lsn.defaultIfEmpty;var dsn=z2t();Pe.delay=dsn.delay;var psn=G2t();Pe.delayWhen=psn.delayWhen;var hsn=V2t();Pe.dematerialize=hsn.dematerialize;var fsn=$2t();Pe.distinct=fsn.distinct;var msn=mSe();Pe.distinctUntilChanged=msn.distinctUntilChanged;var ysn=Q2t();Pe.distinctUntilKeyChanged=ysn.distinctUntilKeyChanged;var gsn=Z2t();Pe.elementAt=gsn.elementAt;var bsn=X2t();Pe.endWith=bsn.endWith;var vsn=ewt();Pe.every=vsn.every;var wsn=twt();Pe.exhaust=wsn.exhaust;var xsn=nwt();Pe.exhaustMap=xsn.exhaustMap;var _sn=swt();Pe.expand=_sn.expand;var Tsn=cw();Pe.filter=Tsn.filter;var Isn=owt();Pe.finalize=Isn.finalize;var Esn=_Se();Pe.find=Esn.find;var Csn=lwt();Pe.findIndex=Csn.findIndex;var ksn=dwt();Pe.first=ksn.first;var Asn=fAe();Pe.groupBy=Asn.groupBy;var Psn=pwt();Pe.ignoreElements=Psn.ignoreElements;var Ssn=hwt();Pe.isEmpty=Ssn.isEmpty;var Rsn=fwt();Pe.last=Rsn.last;var Msn=hd();Pe.map=Msn.map;var Nsn=mwt();Pe.mapTo=Nsn.mapTo;var Bsn=ywt();Pe.materialize=Bsn.materialize;var Dsn=wwt();Pe.max=Dsn.max;var Lsn=xwt();Pe.merge=Lsn.merge;var Osn=eye();Pe.mergeAll=Osn.mergeAll;var U5t=ire();Pe.mergeMap=U5t.mergeMap;Pe.flatMap=U5t.flatMap;var qsn=Twt();Pe.mergeMapTo=qsn.mergeMapTo;var Fsn=Cwt();Pe.mergeScan=Fsn.mergeScan;var Wsn=kwt();Pe.min=Wsn.min;var Usn=bw();Pe.multicast=Usn.multicast;var Hsn=kAe();Pe.observeOn=Hsn.observeOn;var jsn=Rwt();Pe.onErrorResumeNext=jsn.onErrorResumeNext;var zsn=Mwt();Pe.pairwise=zsn.pairwise;var Ksn=Bwt();Pe.partition=Ksn.partition;var Gsn=Dwt();Pe.pluck=Gsn.pluck;var Vsn=qwt();Pe.publish=Vsn.publish;var Ysn=Fwt();Pe.publishBehavior=Ysn.publishBehavior;var $sn=Wwt();Pe.publishLast=$sn.publishLast;var Qsn=Uwt();Pe.publishReplay=Qsn.publishReplay;var Jsn=Hwt();Pe.race=Jsn.race;var Zsn=Hre();Pe.reduce=Zsn.reduce;var Xsn=zwt();Pe.repeat=Xsn.repeat;var eon=Kwt();Pe.repeatWhen=eon.repeatWhen;var ton=Gwt();Pe.retry=ton.retry;var ron=Vwt();Pe.retryWhen=ron.retryWhen;var non=j0e();Pe.refCount=non.refCount;var aon=Ywt();Pe.sample=aon.sample;var ion=$wt();Pe.sampleTime=ion.sampleTime;var son=Pye();Pe.scan=son.scan;var oon=e5t();Pe.sequenceEqual=oon.sequenceEqual;var con=t5t();Pe.share=con.share;var uon=r5t();Pe.shareReplay=uon.shareReplay;var lon=n5t();Pe.single=lon.single;var don=a5t();Pe.skip=don.skip;var pon=s5t();Pe.skipLast=pon.skipLast;var hon=o5t();Pe.skipUntil=hon.skipUntil;var fon=c5t();Pe.skipWhile=fon.skipWhile;var mon=l5t();Pe.startWith=mon.startWith;var yon=p5t();Pe.subscribeOn=yon.subscribeOn;var gon=f5t();Pe.switchAll=gon.switchAll;var bon=Rye();Pe.switchMap=bon.switchMap;var von=y5t();Pe.switchMapTo=von.switchMapTo;var won=kye();Pe.take=won.take;var xon=Aye();Pe.takeLast=xon.takeLast;var _on=g5t();Pe.takeUntil=_on.takeUntil;var Ton=b5t();Pe.takeWhile=Ton.takeWhile;var Ion=v5t();Pe.tap=Ion.tap;var Eon=t7e();Pe.throttle=Eon.throttle;var Con=w5t();Pe.throttleTime=Con.throttleTime;var kon=Sre();Pe.throwIfEmpty=kon.throwIfEmpty;var Aon=_5t();Pe.timeInterval=Aon.timeInterval;var Pon=T5t();Pe.timeout=Pon.timeout;var Son=n7e();Pe.timeoutWith=Son.timeoutWith;var Ron=E5t();Pe.timestamp=Ron.timestamp;var Mon=C5t();Pe.toArray=Mon.toArray;var Non=A5t();Pe.window=Non.window;var Bon=S5t();Pe.windowCount=Bon.windowCount;var Don=B5t();Pe.windowTime=Don.windowTime;var Lon=L5t();Pe.windowToggle=Lon.windowToggle;var Oon=O5t();Pe.windowWhen=Oon.windowWhen;var qon=q5t();Pe.withLatestFrom=qon.withLatestFrom;var Fon=F5t();Pe.zip=Fon.zip;var Won=W5t();Pe.zipAll=Won.zipAll});var H5t=_(Op=>{"use strict";d();p();Object.defineProperty(Op,"__esModule",{value:!0});Op.ClientMessagePublishEvent=Op.ClientMessageSetSessionConfig=Op.ClientMessageGetSessionConfig=Op.ClientMessageIsLinked=Op.ClientMessageHostSession=void 0;function Uon(r){return Object.assign({type:"HostSession"},r)}Op.ClientMessageHostSession=Uon;function Hon(r){return Object.assign({type:"IsLinked"},r)}Op.ClientMessageIsLinked=Hon;function jon(r){return Object.assign({type:"GetSessionConfig"},r)}Op.ClientMessageGetSessionConfig=jon;function zon(r){return Object.assign({type:"SetSessionConfig"},r)}Op.ClientMessageSetSessionConfig=zon;function Kon(r){return Object.assign({type:"PublishEvent"},r)}Op.ClientMessagePublishEvent=Kon});var z5t=_(xw=>{"use strict";d();p();Object.defineProperty(xw,"__esModule",{value:!0});xw.RxWebSocket=xw.ConnectionState=void 0;var g$=lre(),j5t=Bye(),b$;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(b$=xw.ConnectionState||(xw.ConnectionState={}));var l7e=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new g$.BehaviorSubject(b$.DISCONNECTED),this.incomingDataSubject=new g$.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,g$.throwError)(new Error("webSocket object is not null")):new g$.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(b$.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(b$.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(b$.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,j5t.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(b$.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,j5t.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,g$.empty)()}return(0,g$.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};xw.RxWebSocket=l7e});var K5t=_(Dye=>{"use strict";d();p();Object.defineProperty(Dye,"__esModule",{value:!0});Dye.isServerMessageFail=void 0;function Gon(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}Dye.isServerMessageFail=Gon});var V5t=_(Oye=>{"use strict";d();p();Object.defineProperty(Oye,"__esModule",{value:!0});Oye.WalletSDKConnection=void 0;var Zh=lre(),$r=Bye(),fne=r0e(),v$=yte(),mne=H5t(),yne=Gme(),Lye=z5t(),d7e=K5t(),G5t=1e4,Von=6e4,p7e=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new Zh.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,v$.IntNumber)(1),this.connectedSubject=new Zh.BehaviorSubject(!1),this.linkedSubject=new Zh.BehaviorSubject(!1),this.sessionConfigSubject=new Zh.ReplaySubject(1);let s=new Lye.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,$r.tap)(o=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(yne.EVENTS.CONNECTED_STATE_CHANGE,{state:o,sessionIdHash:fne.Session.hash(e)})}),(0,$r.skip)(1),(0,$r.filter)(o=>o===Lye.ConnectionState.DISCONNECTED&&!this.destroyed),(0,$r.delay)(5e3),(0,$r.filter)(o=>!this.destroyed),(0,$r.flatMap)(o=>s.connect()),(0,$r.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,$r.skip)(2),(0,$r.switchMap)(o=>(0,Zh.iif)(()=>o===Lye.ConnectionState.CONNECTED,this.authenticate().pipe((0,$r.tap)(c=>this.sendIsLinked()),(0,$r.tap)(c=>this.sendGetSessionConfig()),(0,$r.map)(c=>!0)),(0,Zh.of)(!1))),(0,$r.distinctUntilChanged)(),(0,$r.catchError)(o=>(0,Zh.of)(!1))).subscribe(o=>this.connectedSubject.next(o))),this.subscriptions.add(s.connectionState$.pipe((0,$r.skip)(1),(0,$r.switchMap)(o=>(0,Zh.iif)(()=>o===Lye.ConnectionState.CONNECTED,(0,Zh.timer)(0,G5t)))).subscribe(o=>o===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,$r.filter)(o=>o==="h")).subscribe(o=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,$r.filter)(o=>["IsLinkedOK","Linked"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(yne.EVENTS.LINKED,{sessionIdHash:fne.Session.hash(e),linked:u.linked,type:o.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,$r.filter)(o=>["GetSessionConfigOK","SessionConfigUpdated"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(yne.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:fne.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(yne.EVENTS.STARTED_CONNECTING,{sessionIdHash:fne.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(yne.EVENTS.DISCONNECTED,{sessionIdHash:fne.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,$r.filter)(e=>e),(0,$r.take)(1),(0,$r.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,$r.filter)(e=>e),(0,$r.take)(1),(0,$r.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,$r.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,$r.map)(e=>e))}setSessionMetadata(e,t){let n=(0,mne.ClientMessageSetSessionConfig)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,$r.flatMap)(a=>this.makeRequest(n)),(0,$r.map)(a=>{if((0,d7e.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,mne.ClientMessagePublishEvent)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,$r.flatMap)(i=>this.makeRequest(a)),(0,$r.map)(i=>{if((0,d7e.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>G5t*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=Von){let n=e.id;try{this.sendData(e)}catch(a){return(0,Zh.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,$r.timeoutWith)(t,(0,Zh.throwError)(new Error(`request ${n} timed out`))),(0,$r.filter)(a=>a.id===n),(0,$r.take)(1))}authenticate(){let e=(0,mne.ClientMessageHostSession)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,$r.map)(t=>{if((0,d7e.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,mne.ClientMessageIsLinked)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,mne.ClientMessageGetSessionConfig)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};Oye.WalletSDKConnection=p7e});var Y5t=_(qye=>{"use strict";d();p();Object.defineProperty(qye,"__esModule",{value:!0});qye.WalletUIError=void 0;var _w=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};qye.WalletUIError=_w;_w.UserRejectedRequest=new _w("User rejected request");_w.SwitchEthereumChainUnsupportedChainId=new _w("Unsupported chainId",4902)});var $5t=_(w$=>{"use strict";d();p();Object.defineProperty(w$,"__esModule",{value:!0});w$.decrypt=w$.encrypt=void 0;var Fye=$0();async function Yon(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,Fye.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,o=i.slice(i.byteLength-s),c=i.slice(0,i.byteLength-s),u=new Uint8Array(o),l=new Uint8Array(c),h=new Uint8Array([...t,...u,...l]);return(0,Fye.uint8ArrayToHex)(h)}w$.encrypt=Yon;function $on(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((t,n)=>{(async function(){let a=await crypto.subtle.importKey("raw",(0,Fye.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=(0,Fye.hexStringToUint8Array)(r),s=i.slice(0,12),o=i.slice(12,28),c=i.slice(28),u=new Uint8Array([...c,...o]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let h=await window.crypto.subtle.decrypt(l,a,u),f=new TextDecoder;t(f.decode(h))}catch(h){n(h)}})()})}w$.decrypt=$on});var h7e=_(gne=>{"use strict";d();p();Object.defineProperty(gne,"__esModule",{value:!0});gne.Web3Method=void 0;var Qon;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(Qon=gne.Web3Method||(gne.Web3Method={}))});var Wye=_(bne=>{"use strict";d();p();Object.defineProperty(bne,"__esModule",{value:!0});bne.RelayMessageType=void 0;var Jon;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(Jon=bne.RelayMessageType||(bne.RelayMessageType={}))});var Q5t=_(Uye=>{"use strict";d();p();Object.defineProperty(Uye,"__esModule",{value:!0});Uye.Web3RequestCanceledMessage=void 0;var Zon=Wye();function Xon(r){return{type:Zon.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}Uye.Web3RequestCanceledMessage=Xon});var J5t=_(Hye=>{"use strict";d();p();Object.defineProperty(Hye,"__esModule",{value:!0});Hye.Web3RequestMessage=void 0;var ecn=Wye();function tcn(r){return Object.assign({type:ecn.RelayMessageType.WEB3_REQUEST},r)}Hye.Web3RequestMessage=tcn});var Z5t=_(Mi=>{"use strict";d();p();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.EthereumAddressFromSignedMessageResponse=Mi.SubmitEthereumTransactionResponse=Mi.SignEthereumTransactionResponse=Mi.SignEthereumMessageResponse=Mi.isRequestEthereumAccountsResponse=Mi.SelectProviderResponse=Mi.WatchAssetReponse=Mi.RequestEthereumAccountsResponse=Mi.SwitchEthereumChainResponse=Mi.AddEthereumChainResponse=Mi.ErrorResponse=void 0;var Em=h7e();function rcn(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Mi.ErrorResponse=rcn;function ncn(r){return{method:Em.Web3Method.addEthereumChain,result:r}}Mi.AddEthereumChainResponse=ncn;function acn(r){return{method:Em.Web3Method.switchEthereumChain,result:r}}Mi.SwitchEthereumChainResponse=acn;function icn(r){return{method:Em.Web3Method.requestEthereumAccounts,result:r}}Mi.RequestEthereumAccountsResponse=icn;function scn(r){return{method:Em.Web3Method.watchAsset,result:r}}Mi.WatchAssetReponse=scn;function ocn(r){return{method:Em.Web3Method.selectProvider,result:r}}Mi.SelectProviderResponse=ocn;function ccn(r){return r&&r.method===Em.Web3Method.requestEthereumAccounts}Mi.isRequestEthereumAccountsResponse=ccn;function ucn(r){return{method:Em.Web3Method.signEthereumMessage,result:r}}Mi.SignEthereumMessageResponse=ucn;function lcn(r){return{method:Em.Web3Method.signEthereumTransaction,result:r}}Mi.SignEthereumTransactionResponse=lcn;function dcn(r){return{method:Em.Web3Method.submitEthereumTransaction,result:r}}Mi.SubmitEthereumTransactionResponse=dcn;function pcn(r){return{method:Em.Web3Method.ethereumAddressFromSignedMessage,result:r}}Mi.EthereumAddressFromSignedMessageResponse=pcn});var e3t=_(x$=>{"use strict";d();p();Object.defineProperty(x$,"__esModule",{value:!0});x$.isWeb3ResponseMessage=x$.Web3ResponseMessage=void 0;var X5t=Wye();function hcn(r){return Object.assign({type:X5t.RelayMessageType.WEB3_RESPONSE},r)}x$.Web3ResponseMessage=hcn;function fcn(r){return r&&r.type===X5t.RelayMessageType.WEB3_RESPONSE}x$.isWeb3ResponseMessage=fcn});var a3t=_(Ll=>{"use strict";d();p();var mcn=Ll&&Ll.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ycn=Ll&&Ll.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),r3t=Ll&&Ll.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(s=r[o])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},gcn=Ll&&Ll.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&mcn(e,r,t);return ycn(e,r),e},bcn=Ll&&Ll.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.WalletSDKRelay=void 0;var n3t=bcn(T2t()),t3t=zme(),_$=lre(),To=Bye(),Pu=Gme(),vcn=V5t(),f7e=Y5t(),wcn=yte(),Ni=$0(),l1=gcn($5t()),d1=r0e(),jye=eke(),nc=h7e(),xcn=Q5t(),_cn=J5t(),md=Z5t(),Ju=e3t(),yd=class extends jye.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new _$.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new _$.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=d1.Session.load(this.storage)||new d1.Session(this.storage).save(),t=new vcn.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,To.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,To.skip)(1),(0,To.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(jye.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let o=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(o[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;let u=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(Pu.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(jye.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(jye.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,To.mergeMap)(a=>(0,_$.zip)(l1.decrypt(a.metadata.ChainId,e.secret),l1.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,To.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),yd.accountRequestCallbackIds.size>0&&(Array.from(yd.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,Ju.Web3ResponseMessage)({id:i,response:(0,md.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),yd.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,To.timeout)(1e3),(0,To.catchError)(e=>(0,_$.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(Pu.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=d1.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:d1.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:nc.Web3Method.signEthereumMessage,params:{message:(0,Ni.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:nc.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Ni.hexStringFromBuffer)(e,!0),signature:(0,Ni.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:nc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Ni.bigIntStringFromBN)(e.weiValue),data:(0,Ni.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,Ni.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:nc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Ni.bigIntStringFromBN)(e.weiValue),data:(0,Ni.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Ni.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Ni.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Ni.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:nc.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Ni.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:nc.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Ni.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:nc.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Ni.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(t?.(),c.errorMessage)return o(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,_cn.Web3RequestMessage)({id:e,request:t}),i=d1.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(Pu.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?d1.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var o;(o=this.diagnostic)===null||o===void 0||o.log(Pu.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?d1.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,xcn.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new _$.Observable(i=>{l1.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,To.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,_$.from)(l1.decrypt(e.data,this.session.secret)).pipe((0,To.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,Ju.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,md.isRequestEthereumAccountsResponse)(n)){yd.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),yd.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:e,response:(0,md.ErrorResponse)(t,(n??f7e.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:nc.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,Ni.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{var c;this.relayEventManager.callbacks.set(n,l=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),l.errorMessage)return o(new Error(l.errorMessage));s(l)});let u=((c=window?.navigator)===null||c===void 0?void 0:c.userAgent)||null;if(u&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u)){let l;try{(0,Ni.isInIFrame)()&&window.top?l=window.top.location:l=window.location}catch{l=window.location}l.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(l.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=h=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,md.RequestEthereumAccountsResponse)(h)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:l})}else{let l=t3t.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(l)})}yd.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:nc.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Ni.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,o)=>{this.relayEventManager.callbacks.set(n,l=>{if(l.errorMessage)return o(new Error(l.errorMessage));s(l)});let c=l=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,md.SelectProviderResponse)(wcn.ProviderType.Unselected)}))},u=l=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,md.SelectProviderResponse)(l)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let o={method:nc.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},c=null,u=(0,Ni.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}));let h=new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,C=>{if(c?.(),C.errorMessage)return m(new Error(C.errorMessage));f(C)});let y=C=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.WatchAssetReponse)(!1)}))},I=()=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:I,onCancel:y,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)});return{cancel:l,promise:h}}addEthereumChain(e,t,n,a,i,s){let o={method:nc.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},c=null,u=(0,Ni.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,C=>{if(c?.(),C.errorMessage)return m(new Error(C.errorMessage));f(C)});let y=C=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},I=C=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.AddEthereumChainResponse)({isApproved:!0,rpcUrl:C})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:y,onApprove:I,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)}),cancel:l}}switchEthereumChain(e,t){let n={method:nc.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,Ni.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,o)};return{promise:new Promise((o,c)=>{this.relayEventManager.callbacks.set(a,h=>{if(h.errorMessage&&h.errorCode)return c(t3t.ethErrors.provider.custom({code:h.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(h.errorMessage)return c(new Error(h.errorMessage));o(h)});let u=h=>{if(typeof h=="number"){let f=h;this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,md.ErrorResponse)(nc.Web3Method.switchEthereumChain,f7e.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,f)}))}else h instanceof f7e.WalletUIError?this.handleErrorResponse(a,nc.Web3Method.switchEthereumChain,h,h.errorCode):this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,md.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},l=h=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,md.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:h})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:l,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return d1.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case nc.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};yd.accountRequestCallbackIds=new Set;r3t([n3t.default],yd.prototype,"resetAndReload",null);r3t([n3t.default],yd.prototype,"handleIncomingEvent",null);Ll.WalletSDKRelay=yd});var i3t=_(zye=>{"use strict";d();p();Object.defineProperty(zye,"__esModule",{value:!0});zye.WalletSDKRelayEventManager=void 0;var Tcn=$0(),m7e=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,Tcn.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};zye.WalletSDKRelayEventManager=m7e});var s3t=_((Vfa,Icn)=>{Icn.exports={name:"@coinbase/wallet-sdk",version:"3.6.4",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var y7e=_(Kye=>{"use strict";d();p();Object.defineProperty(Kye,"__esModule",{value:!0});Kye.CoinbaseWalletSDK=void 0;var Ecn=Rmt(),Ccn=Mmt(),kcn=P0e(),Acn=x2t(),Pcn=a3t(),Scn=i3t(),Rcn=$0(),Mcn=g.env.LINK_API_URL||"https://www.walletlink.org",o3t=g.env.SDK_VERSION||s3t().version||"unknown",T$=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||Mcn,s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new Acn.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let o=new URL(i),c=`${o.protocol}//${o.host}`;this._storage=new Ccn.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",T$.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new Scn.WalletSDKRelayEventManager,this._relay=new Pcn.WalletSDKRelay({linkAPIUrl:i,version:o3t,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new kcn.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,Rcn.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,Ecn.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};Kye.CoinbaseWalletSDK=T$;T$.VERSION=o3t});var b7e=_(Tw=>{"use strict";d();p();Object.defineProperty(Tw,"__esModule",{value:!0});Tw.CoinbaseWalletProvider=Tw.CoinbaseWalletSDK=void 0;var g7e=y7e(),c3t=P0e(),Ncn=y7e();Object.defineProperty(Tw,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return Ncn.CoinbaseWalletSDK}});var Bcn=P0e();Object.defineProperty(Tw,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return Bcn.CoinbaseWalletProvider}});Tw.default=g7e.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=g7e.CoinbaseWalletSDK,window.CoinbaseWalletProvider=c3t.CoinbaseWalletProvider,window.WalletLink=g7e.CoinbaseWalletSDK,window.WalletLinkProvider=c3t.CoinbaseWalletProvider)});var p3t=_(_7e=>{"use strict";d();p();Object.defineProperty(_7e,"__esModule",{value:!0});var v7e=ym(),Xh=gm(),I$=ec(),u3t=je(),Gye=Xr(),Iw=_Y(),l3t=TY();Vu();vt();Je();function Dcn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var E$=new WeakMap,vne=new WeakMap,w7e=new WeakSet,x7e=class extends Iw.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),v7e._classPrivateMethodInitSpec(this,w7e),I$._defineProperty(this,"id","coinbaseWallet"),I$._defineProperty(this,"name","Coinbase Wallet"),I$._defineProperty(this,"ready",!0),Xh._classPrivateFieldInitSpec(this,E$,{writable:!0,value:void 0}),Xh._classPrivateFieldInitSpec(this,vne,{writable:!0,value:void 0}),I$._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:Gye.getAddress(a[0])})}),I$._defineProperty(this,"onChainChanged",a=>{let i=l3t.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),I$._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=Gye.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new u3t.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new Iw.UserRejectedRequestError(t):t}}async disconnect(){if(!Xh._classPrivateFieldGet(this,vne))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return Gye.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return l3t.normalizeChainId(e.chainId)}async getProvider(){if(!Xh._classPrivateFieldGet(this,vne)){let e=(await Promise.resolve().then(function(){return Dcn(b7e())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Xh._classPrivateFieldSet(this,E$,new e(this.options));let t=Xh._classPrivateFieldGet(this,E$).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];Xh._classPrivateFieldSet(this,vne,Xh._classPrivateFieldGet(this,E$).makeWeb3Provider(i,a))}return Xh._classPrivateFieldGet(this,vne)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new u3t.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Gye.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Iw.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw v7e._classPrivateMethodGet(this,w7e,d3t).call(this,s)?new Iw.UserRejectedRequestError(s):new Iw.AddChainError}throw v7e._classPrivateMethodGet(this,w7e,d3t).call(this,a)?new Iw.UserRejectedRequestError(a):new Iw.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrUrl(){if(await this.getProvider(),!Xh._classPrivateFieldGet(this,E$))throw new Error("Coinbase Wallet SDK not initialized");return Xh._classPrivateFieldGet(this,E$).getQrUrl()}};function d3t(r){return/(user rejected)/i.test(r.message)}_7e.CoinbaseWalletConnector=x7e});var h3t=_(T7e=>{"use strict";d();p();Object.defineProperty(T7e,"__esModule",{value:!0});var wne=ec(),Lcn=vY(),Ocn=xY(),qcn=lc();Je();ym();Vu();Yg();je();vt();typeof window<"u"&&(window.Buffer=qcn.Buffer);var Ew=class extends Ocn.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Ew.id,e),wne._defineProperty(this,"connector",void 0),wne._defineProperty(this,"coinbaseConnector",void 0),wne._defineProperty(this,"headlessMode",void 0),this.headlessMode=e?.headlessMode||!1}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return p3t()}),t=new e({chains:this.chains,options:{appName:this.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.dappMetadata.isDarkMode,headlessMode:this.headlessMode}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new Lcn.WagmiAdapter(t)}return this.connector}async getQrUrl(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrUrl()}};wne._defineProperty(Ew,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});wne._defineProperty(Ew,"id","coinbaseWallet");T7e.CoinbaseWallet=Ew});var ac=_(f3t=>{"use strict";d();p();function Fcn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Wcn(r){var e=Fcn(r,"string");return typeof e=="symbol"?e:String(e)}function Ucn(r,e,t){return e=Wcn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}f3t._defineProperty=Ucn});var C$=_(E7e=>{"use strict";d();p();var Hcn=ac(),jcn=Je();function zcn(r){return r&&r.__esModule?r:{default:r}}var Kcn=zcn(jcn),Vye=class extends Kcn.default{},I7e=class extends Vye{constructor(e){super(),Hcn._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};E7e.TWConnector=Vye;E7e.WagmiAdapter=I7e});var Zu=_(m3t=>{"use strict";d();p();function Gcn(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}m3t._checkPrivateRedeclaration=Gcn});var Cm=_(C7e=>{"use strict";d();p();var Vcn=Zu();function Ycn(r,e){Vcn._checkPrivateRedeclaration(r,e),e.add(r)}function $cn(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}C7e._classPrivateMethodGet=$cn;C7e._classPrivateMethodInitSpec=Ycn});var p1=_(Yye=>{"use strict";d();p();Object.defineProperty(Yye,"__esModule",{value:!0});var y3t=ac(),k$=je(),Qcn=Je();function Jcn(r){return r&&r.__esModule?r:{default:r}}var Zcn=Jcn(Qcn);function Xcn(r){return`https://${r}.rpc.thirdweb.com`}var eun=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],tun="0x1626ba7e";async function g3t(r,e,t,n){let a=new k$.providers.JsonRpcProvider(Xcn(n)),i=new k$.Contract(t,eun,a),s=k$.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===tun}catch{return!1}}var k7e=class extends Zcn.default{constructor(){super(...arguments),y3t._defineProperty(this,"type","evm"),y3t._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=k$.utils.hashMessage(e),s=k$.utils.arrayify(i);if(k$.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await g3t(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};Yye.AbstractWallet=k7e;Yye.checkContractWalletSignature=g3t});var A$=_(_ne=>{"use strict";d();p();var xne=Cm(),Cw=ac(),run=p1(),nun=vt(),A7e="__TW__",$ye=class{constructor(e){Cw._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${A7e}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${A7e}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${A7e}/${this.name}/${e}`),t()})}};function v3t(r){return new $ye(r)}var w3t={name:"thirdweb powered dApp",url:"https://thirdweb.com",description:"thirdweb powered dApp",logoUrl:"https://thirdweb.com/favicon.ico",isDarkMode:!0},P7e=new WeakSet,x3t=new WeakSet,Qye=class extends run.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),xne._classPrivateMethodInitSpec(this,x3t),xne._classPrivateMethodInitSpec(this,P7e),Cw._defineProperty(this,"walletId",void 0),Cw._defineProperty(this,"walletStorage",void 0),Cw._defineProperty(this,"chains",void 0),Cw._defineProperty(this,"dappMetadata",void 0),Cw._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t?.chains||nun.defaultChains,this.dappMetadata=t?.dappMetadata||w3t,this.walletStorage=t?.walletStorage||v3t(this.walletId)}async autoConnect(e){let t=e?{...e,chainId:void 0}:void 0;return xne._classPrivateMethodGet(this,P7e,b3t).call(this,!0,t)}async connect(e){let t=await xne._classPrivateMethodGet(this,P7e,b3t).call(this,!1,e);if(!t)throw new Error("Failed to connect to the wallet.");return t}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),this.emit("disconnect"),e.removeAllListeners())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function b3t(r,e){let t=await this.getConnector();if(xne._classPrivateMethodGet(this,x3t,aun).call(this,t),await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),e?.chainId&&await t.switchChain(e?.chainId),this.emit("connect",{address:i,chainId:await this.getChainId()}),i}if(r)throw new Error("Failed to auto connect to the wallet.");return await t.connect(e)}async function aun(r){r.on("connect",e=>{this.emit("connect",{address:e.account,chainId:e.chain?.id})}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id})}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}Cw._defineProperty(Qye,"meta",void 0);_ne.AbstractBrowserWallet=Qye;_ne.AsyncLocalStorage=$ye;_ne.DEFAULT_DAPP_META=w3t;_ne.createAsyncLocalStorage=v3t});var km=_(Jye=>{"use strict";d();p();var iun=Zu();function sun(r,e,t){iun._checkPrivateRedeclaration(r,e),e.set(r,t)}function oun(r,e){return e.get?e.get.call(r):e.value}function _3t(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function cun(r,e){var t=_3t(r,e,"get");return oun(r,t)}function uun(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function lun(r,e,t){var n=_3t(r,e,"set");return uun(r,n,t),t}Jye._classPrivateFieldGet=cun;Jye._classPrivateFieldInitSpec=sun;Jye._classPrivateFieldSet=lun});var P$=_(Z0=>{"use strict";d();p();var Su=ac(),dun=vt(),pun=Je();function hun(r){return r&&r.__esModule?r:{default:r}}var fun=hun(pun),S7e=class extends fun.default{constructor(e){let{chains:t=dun.defaultChains,options:n}=e;super(),Su._defineProperty(this,"id",void 0),Su._defineProperty(this,"name",void 0),Su._defineProperty(this,"chains",void 0),Su._defineProperty(this,"options",void 0),Su._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},Zye=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),Su._defineProperty(this,"cause",void 0),Su._defineProperty(this,"code",void 0),Su._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},Tne=class extends Zye{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},R7e=class extends Error{constructor(){super(...arguments),Su._defineProperty(this,"name","AddChainError"),Su._defineProperty(this,"message","Error adding chain")}},M7e=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),Su._defineProperty(this,"name","ChainNotConfigured")}},N7e=class extends Error{constructor(){super(...arguments),Su._defineProperty(this,"name","ConnectorNotFoundError"),Su._defineProperty(this,"message","Connector not found")}},B7e=class extends Zye{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),Su._defineProperty(this,"name","ResourceUnavailable")}},D7e=class extends Tne{constructor(e){super("Error switching chain",{cause:e,code:4902}),Su._defineProperty(this,"name","SwitchChainError")}},L7e=class extends Tne{constructor(e){super("User rejected request",{cause:e,code:4001}),Su._defineProperty(this,"name","UserRejectedRequestError")}};Z0.AddChainError=R7e;Z0.ChainNotConfiguredError=M7e;Z0.Connector=S7e;Z0.ConnectorNotFoundError=N7e;Z0.ProviderRpcError=Tne;Z0.ResourceUnavailableError=B7e;Z0.SwitchChainError=D7e;Z0.UserRejectedRequestError=L7e});var S$=_(T3t=>{"use strict";d();p();function mun(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}T3t.normalizeChainId=mun});var k3t=_(W7e=>{"use strict";d();p();Object.defineProperty(W7e,"__esModule",{value:!0});var O7e=Cm(),ef=km(),R$=ac(),I3t=je(),Xye=Xr(),kw=P$(),E3t=S$();Zu();vt();Je();function yun(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var M$=new WeakMap,Ine=new WeakMap,q7e=new WeakSet,F7e=class extends kw.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),O7e._classPrivateMethodInitSpec(this,q7e),R$._defineProperty(this,"id","coinbaseWallet"),R$._defineProperty(this,"name","Coinbase Wallet"),R$._defineProperty(this,"ready",!0),ef._classPrivateFieldInitSpec(this,M$,{writable:!0,value:void 0}),ef._classPrivateFieldInitSpec(this,Ine,{writable:!0,value:void 0}),R$._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:Xye.getAddress(a[0])})}),R$._defineProperty(this,"onChainChanged",a=>{let i=E3t.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),R$._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=Xye.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new I3t.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new kw.UserRejectedRequestError(t):t}}async disconnect(){if(!ef._classPrivateFieldGet(this,Ine))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return Xye.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return E3t.normalizeChainId(e.chainId)}async getProvider(){if(!ef._classPrivateFieldGet(this,Ine)){let e=(await Promise.resolve().then(function(){return yun(b7e())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),ef._classPrivateFieldSet(this,M$,new e(this.options));let t=ef._classPrivateFieldGet(this,M$).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];ef._classPrivateFieldSet(this,Ine,ef._classPrivateFieldGet(this,M$).makeWeb3Provider(i,a))}return ef._classPrivateFieldGet(this,Ine)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new I3t.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Xye.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new kw.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw O7e._classPrivateMethodGet(this,q7e,C3t).call(this,s)?new kw.UserRejectedRequestError(s):new kw.AddChainError}throw O7e._classPrivateMethodGet(this,q7e,C3t).call(this,a)?new kw.UserRejectedRequestError(a):new kw.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrUrl(){if(await this.getProvider(),!ef._classPrivateFieldGet(this,M$))throw new Error("Coinbase Wallet SDK not initialized");return ef._classPrivateFieldGet(this,M$).getQrUrl()}};function C3t(r){return/(user rejected)/i.test(r.message)}W7e.CoinbaseWalletConnector=F7e});var A3t=_(U7e=>{"use strict";d();p();Object.defineProperty(U7e,"__esModule",{value:!0});var Ene=ac(),gun=C$(),bun=A$(),vun=lc();Je();Cm();Zu();p1();je();vt();typeof window<"u"&&(window.Buffer=vun.Buffer);var Aw=class extends bun.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Aw.id,e),Ene._defineProperty(this,"connector",void 0),Ene._defineProperty(this,"coinbaseConnector",void 0),Ene._defineProperty(this,"headlessMode",void 0),this.headlessMode=e?.headlessMode||!1}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return k3t()}),t=new e({chains:this.chains,options:{appName:this.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.dappMetadata.isDarkMode,headlessMode:this.headlessMode}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new gun.WagmiAdapter(t)}return this.connector}async getQrUrl(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrUrl()}};Ene._defineProperty(Aw,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});Ene._defineProperty(Aw,"id","coinbaseWallet");U7e.CoinbaseWallet=Aw});var P3t=_((Fma,H7e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?H7e.exports=h3t():H7e.exports=A3t()});var R3t=_(z7e=>{"use strict";d();p();Object.defineProperty(z7e,"__esModule",{value:!0});var hs=gm(),Cne=ec(),wun=vY(),S3t=je(),xun=TY();Vu();Je();var X0=new WeakMap,Pw=new WeakMap,N$=new WeakMap,j7e=class extends wun.TWConnector{constructor(e){super(),Cne._defineProperty(this,"id","device_wallet"),Cne._defineProperty(this,"name","Device Wallet"),Cne._defineProperty(this,"options",void 0),hs._classPrivateFieldInitSpec(this,X0,{writable:!0,value:void 0}),hs._classPrivateFieldInitSpec(this,Pw,{writable:!0,value:void 0}),hs._classPrivateFieldInitSpec(this,N$,{writable:!0,value:void 0}),Cne._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),Cne._defineProperty(this,"onChainChanged",t=>{let n=xun.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,hs._classPrivateFieldSet(this,X0,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await hs._classPrivateFieldGet(this,X0).getSavedWalletAddress()?await hs._classPrivateFieldGet(this,X0).loadSavedWallet(e):(await hs._classPrivateFieldGet(this,X0).generateNewWallet(),await hs._classPrivateFieldGet(this,X0).save(e))}async disconnect(){hs._classPrivateFieldSet(this,Pw,void 0),hs._classPrivateFieldSet(this,N$,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return hs._classPrivateFieldGet(this,Pw)||hs._classPrivateFieldSet(this,Pw,new S3t.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),hs._classPrivateFieldGet(this,Pw)}async getSigner(){if(!hs._classPrivateFieldGet(this,X0))throw new Error("No wallet found");if(!hs._classPrivateFieldGet(this,N$)){let e=await this.getProvider();hs._classPrivateFieldSet(this,N$,await hs._classPrivateFieldGet(this,X0).getSigner(e))}return hs._classPrivateFieldGet(this,N$)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");hs._classPrivateFieldSet(this,Pw,new S3t.providers.JsonRpcBatchProvider(t.rpc[0])),hs._classPrivateFieldSet(this,N$,await hs._classPrivateFieldGet(this,X0).getSigner(hs._classPrivateFieldGet(this,Pw))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};z7e.DeviceWalletConnector=j7e});var B3t=_(tge=>{"use strict";d();p();Object.defineProperty(tge,"__esModule",{value:!0});var ey=gm(),Sw=ec(),_un=Yg(),K7e=xY(),M3t=vt(),N3t=je();Vu();Je();ym();var G7e="data",V7e="address",ege=new WeakMap,Rw=class extends K7e.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(Rw.id,{...e}),Sw._defineProperty(this,"connector",void 0),ey._classPrivateFieldInitSpec(this,ege,{writable:!0,value:void 0}),Sw._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return R3t()}),t;switch(this.options.storageType){case"asyncStore":t=await ty.fromAsyncStorage(this.options.storage||K7e.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await ty.fromCredentialStore();break;default:t=await ty.fromAsyncStorage(this.options.storage||K7e.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||M3t.Ethereum,wallet:t,chains:this.options.chains||M3t.defaultChains}),ey._classPrivateFieldSet(this,ege,t)}return this.connector}getWalletData(){if(!ey._classPrivateFieldGet(this,ege))throw new Error("Wallet not initialized");return ey._classPrivateFieldGet(this,ege).getWalletData()}static getAddressStorageKey(){return V7e}static getDataStorageKey(){return G7e}};Sw._defineProperty(Rw,"id","deviceWallet");Sw._defineProperty(Rw,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var kne=new WeakMap,ty=class extends _un.AbstractWallet{static async fromAsyncStorage(e){return new ty({storage:new Y7e(e)})}static async fromCredentialStore(){return new ty({storage:new $7e(navigator.credentials)})}constructor(e){super(),Sw._defineProperty(this,"options",void 0),ey._classPrivateFieldInitSpec(this,kne,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!ey._classPrivateFieldGet(this,kne))throw new Error("Wallet not initialized");let t=ey._classPrivateFieldGet(this,kne);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=N3t.ethers.Wallet.createRandom();return ey._classPrivateFieldSet(this,kne,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await N3t.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return ey._classPrivateFieldSet(this,kne,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},Y7e=class{constructor(e){Sw._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem(V7e),this.storage.getItem(G7e)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem(V7e,e.address),this.storage.setItem(G7e,e.encryptedData)])}},$7e=class{constructor(e){Sw._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};tge.DeviceBrowserWallet=Rw;tge.DeviceWalletImpl=ty});var L3t=_(J7e=>{"use strict";d();p();Object.defineProperty(J7e,"__esModule",{value:!0});var fs=km(),Ane=ac(),Tun=C$(),D3t=je(),Iun=S$();Zu();Je();var ry=new WeakMap,Mw=new WeakMap,B$=new WeakMap,Q7e=class extends Tun.TWConnector{constructor(e){super(),Ane._defineProperty(this,"id","device_wallet"),Ane._defineProperty(this,"name","Device Wallet"),Ane._defineProperty(this,"options",void 0),fs._classPrivateFieldInitSpec(this,ry,{writable:!0,value:void 0}),fs._classPrivateFieldInitSpec(this,Mw,{writable:!0,value:void 0}),fs._classPrivateFieldInitSpec(this,B$,{writable:!0,value:void 0}),Ane._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),Ane._defineProperty(this,"onChainChanged",t=>{let n=Iun.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,fs._classPrivateFieldSet(this,ry,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await fs._classPrivateFieldGet(this,ry).getSavedWalletAddress()?await fs._classPrivateFieldGet(this,ry).loadSavedWallet(e):(await fs._classPrivateFieldGet(this,ry).generateNewWallet(),await fs._classPrivateFieldGet(this,ry).save(e))}async disconnect(){fs._classPrivateFieldSet(this,Mw,void 0),fs._classPrivateFieldSet(this,B$,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return fs._classPrivateFieldGet(this,Mw)||fs._classPrivateFieldSet(this,Mw,new D3t.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),fs._classPrivateFieldGet(this,Mw)}async getSigner(){if(!fs._classPrivateFieldGet(this,ry))throw new Error("No wallet found");if(!fs._classPrivateFieldGet(this,B$)){let e=await this.getProvider();fs._classPrivateFieldSet(this,B$,await fs._classPrivateFieldGet(this,ry).getSigner(e))}return fs._classPrivateFieldGet(this,B$)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");fs._classPrivateFieldSet(this,Mw,new D3t.providers.JsonRpcBatchProvider(t.rpc[0])),fs._classPrivateFieldSet(this,B$,await fs._classPrivateFieldGet(this,ry).getSigner(fs._classPrivateFieldGet(this,Mw))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};J7e.DeviceWalletConnector=Q7e});var F3t=_(nge=>{"use strict";d();p();Object.defineProperty(nge,"__esModule",{value:!0});var ny=km(),Nw=ac(),Eun=p1(),Z7e=A$(),O3t=vt(),q3t=je();Zu();Je();Cm();var X7e="data",eRe="address",rge=new WeakMap,Bw=class extends Z7e.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(Bw.id,{...e}),Nw._defineProperty(this,"connector",void 0),ny._classPrivateFieldInitSpec(this,rge,{writable:!0,value:void 0}),Nw._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return L3t()}),t;switch(this.options.storageType){case"asyncStore":t=await ay.fromAsyncStorage(this.options.storage||Z7e.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await ay.fromCredentialStore();break;default:t=await ay.fromAsyncStorage(this.options.storage||Z7e.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||O3t.Ethereum,wallet:t,chains:this.options.chains||O3t.defaultChains}),ny._classPrivateFieldSet(this,rge,t)}return this.connector}getWalletData(){if(!ny._classPrivateFieldGet(this,rge))throw new Error("Wallet not initialized");return ny._classPrivateFieldGet(this,rge).getWalletData()}static getAddressStorageKey(){return eRe}static getDataStorageKey(){return X7e}};Nw._defineProperty(Bw,"id","deviceWallet");Nw._defineProperty(Bw,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var Pne=new WeakMap,ay=class extends Eun.AbstractWallet{static async fromAsyncStorage(e){return new ay({storage:new tRe(e)})}static async fromCredentialStore(){return new ay({storage:new rRe(navigator.credentials)})}constructor(e){super(),Nw._defineProperty(this,"options",void 0),ny._classPrivateFieldInitSpec(this,Pne,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!ny._classPrivateFieldGet(this,Pne))throw new Error("Wallet not initialized");let t=ny._classPrivateFieldGet(this,Pne);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=q3t.ethers.Wallet.createRandom();return ny._classPrivateFieldSet(this,Pne,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await q3t.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return ny._classPrivateFieldSet(this,Pne,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},tRe=class{constructor(e){Nw._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem(eRe),this.storage.getItem(X7e)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem(eRe,e.address),this.storage.setItem(X7e,e.encryptedData)])}},rRe=class{constructor(e){Nw._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};nge.DeviceBrowserWallet=Bw;nge.DeviceWalletImpl=ay});var W3t=_((e0a,nRe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?nRe.exports=B3t():nRe.exports=F3t()});var U3t=_(oRe=>{"use strict";d();p();Object.defineProperty(oRe,"__esModule",{value:!0});var aRe=gm(),Cun=Yg();Vu();ec();je();Je();var iRe=new WeakMap,sRe=class extends Cun.AbstractWallet{constructor(e){super(),aRe._classPrivateFieldInitSpec(this,iRe,{writable:!0,value:void 0}),aRe._classPrivateFieldSet(this,iRe,e)}async getSigner(){return aRe._classPrivateFieldGet(this,iRe)}};oRe.EthersWallet=sRe});var H3t=_(dRe=>{"use strict";d();p();Object.defineProperty(dRe,"__esModule",{value:!0});var cRe=km(),kun=p1();Zu();ac();je();Je();var uRe=new WeakMap,lRe=class extends kun.AbstractWallet{constructor(e){super(),cRe._classPrivateFieldInitSpec(this,uRe,{writable:!0,value:void 0}),cRe._classPrivateFieldSet(this,uRe,e)}async getSigner(){return cRe._classPrivateFieldGet(this,uRe)}};dRe.EthersWallet=lRe});var j3t=_((u0a,pRe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?pRe.exports=U3t():pRe.exports=H3t()});var age=_(z3t=>{"use strict";d();p();function Aun(r){return typeof r<"u"&&"ethereum"in r}z3t.assertWindowEthereum=Aun});var yRe=_(mRe=>{"use strict";d();p();Object.defineProperty(mRe,"__esModule",{value:!0});var Dw=gm(),h1=ec(),Pun=age(),Sne=je(),gd=_Y(),K3t=TY();Vu();vt();Je();function Sun(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var hRe=new WeakMap,ige=new WeakMap,fRe=class extends gd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(Pun.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),h1._defineProperty(this,"id",void 0),h1._defineProperty(this,"name",void 0),h1._defineProperty(this,"ready",void 0),Dw._classPrivateFieldInitSpec(this,hRe,{writable:!0,value:void 0}),Dw._classPrivateFieldInitSpec(this,ige,{writable:!0,value:void 0}),h1._defineProperty(this,"connectorStorage",void 0),h1._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),h1._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:Sne.utils.getAddress(i[0])})}),h1._defineProperty(this,"onChainChanged",i=>{let s=K3t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),h1._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&Dw._classPrivateFieldGet(this,ige)){Dw._classPrivateFieldSet(this,ige,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=Sun(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new gd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=Sne.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new gd.UserRejectedRequestError(t):t.code===-32002?new gd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new gd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return Sne.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new gd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(K3t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&Dw._classPrivateFieldSet(this,hRe,e),Dw._classPrivateFieldGet(this,hRe)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Sne.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new gd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&Dw._classPrivateFieldSet(this,ige,!0);let t=await this.getProvider();if(!t)throw new gd.ConnectorNotFoundError;let n=Sne.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new gd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new gd.UserRejectedRequestError(a):new gd.AddChainError}throw this.isUserRejectedRequestError(a)?new gd.UserRejectedRequestError(a):new gd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};mRe.InjectedConnector=fRe});var V3t=_(bRe=>{"use strict";d();p();Object.defineProperty(bRe,"__esModule",{value:!0});var gRe=ec(),G3t=xY(),Run=vY();ym();Vu();Yg();je();Je();vt();var D$=class extends G3t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(D$.id,e),gRe._defineProperty(this,"connector",void 0),gRe._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||G3t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return yRe()});this.connector=new Run.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};gRe._defineProperty(D$,"id","injected");bRe.InjectedWallet=D$});var sge=_(Y3t=>{"use strict";d();p();function Mun(r){return typeof r<"u"&&"ethereum"in r}Y3t.assertWindowEthereum=Mun});var _Re=_(xRe=>{"use strict";d();p();Object.defineProperty(xRe,"__esModule",{value:!0});var Lw=km(),f1=ac(),Nun=sge(),Rne=je(),bd=P$(),$3t=S$();Zu();vt();Je();function Bun(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var vRe=new WeakMap,oge=new WeakMap,wRe=class extends bd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(Nun.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),f1._defineProperty(this,"id",void 0),f1._defineProperty(this,"name",void 0),f1._defineProperty(this,"ready",void 0),Lw._classPrivateFieldInitSpec(this,vRe,{writable:!0,value:void 0}),Lw._classPrivateFieldInitSpec(this,oge,{writable:!0,value:void 0}),f1._defineProperty(this,"connectorStorage",void 0),f1._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),f1._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:Rne.utils.getAddress(i[0])})}),f1._defineProperty(this,"onChainChanged",i=>{let s=$3t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),f1._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&Lw._classPrivateFieldGet(this,oge)){Lw._classPrivateFieldSet(this,oge,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=Bun(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new bd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=Rne.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new bd.UserRejectedRequestError(t):t.code===-32002?new bd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new bd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return Rne.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new bd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then($3t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&Lw._classPrivateFieldSet(this,vRe,e),Lw._classPrivateFieldGet(this,vRe)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Rne.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new bd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&Lw._classPrivateFieldSet(this,oge,!0);let t=await this.getProvider();if(!t)throw new bd.ConnectorNotFoundError;let n=Rne.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new bd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new bd.UserRejectedRequestError(a):new bd.AddChainError}throw this.isUserRejectedRequestError(a)?new bd.UserRejectedRequestError(a):new bd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};xRe.InjectedConnector=wRe});var J3t=_(IRe=>{"use strict";d();p();Object.defineProperty(IRe,"__esModule",{value:!0});var TRe=ac(),Q3t=A$(),Dun=C$();Cm();Zu();p1();je();Je();vt();var L$=class extends Q3t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(L$.id,e),TRe._defineProperty(this,"connector",void 0),TRe._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||Q3t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return _Re()});this.connector=new Dun.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};TRe._defineProperty(L$,"id","injected");IRe.InjectedWallet=L$});var Z3t=_((S0a,ERe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?ERe.exports=V3t():ERe.exports=J3t()});var X3t=_(PRe=>{"use strict";d();p();Object.defineProperty(PRe,"__esModule",{value:!0});var CRe=gm(),Lun=ec(),cge=_Y(),Oun=age(),qun=yRe(),Fun=je();Vu();vt();Je();TY();var kRe=new WeakMap,ARe=class extends qun.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&Oun.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),Lun._defineProperty(this,"id","metaMask"),CRe._classPrivateFieldInitSpec(this,kRe,{writable:!0,value:void 0}),CRe._classPrivateFieldSet(this,kRe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new cge.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(CRe._classPrivateFieldGet(this,kRe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new cge.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=Fun.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new cge.UserRejectedRequestError(t):t.code===-32002?new cge.ResourceUnavailableError(t):t}}};PRe.MetaMaskConnector=ARe});var ext=ce(()=>{d();p()});var Ow,SRe=ce(()=>{d();p();Ow=class{}});var uge,Mne,O$,txt=ce(()=>{d();p();SRe();uge=class extends Ow{constructor(e){super()}},Mne=class extends Ow{constructor(){super()}},O$=class extends Mne{constructor(e){super()}}});var rxt=ce(()=>{d();p()});var RRe={};cr(RRe,{IBaseJsonRpcProvider:()=>Mne,IEvents:()=>Ow,IJsonRpcConnection:()=>uge,IJsonRpcProvider:()=>O$});var lge=ce(()=>{d();p();ext();SRe();txt();rxt()});var nxt,axt,ixt,sxt,dge,Nne,MRe,pge,m1,Bne,hge=ce(()=>{d();p();nxt="PARSE_ERROR",axt="INVALID_REQUEST",ixt="METHOD_NOT_FOUND",sxt="INVALID_PARAMS",dge="INTERNAL_ERROR",Nne="SERVER_ERROR",MRe=[-32700,-32600,-32601,-32602,-32603],pge=[-32e3,-32099],m1={[nxt]:{code:-32700,message:"Parse error"},[axt]:{code:-32600,message:"Invalid Request"},[ixt]:{code:-32601,message:"Method not found"},[sxt]:{code:-32602,message:"Invalid params"},[dge]:{code:-32603,message:"Internal error"},[Nne]:{code:-32e3,message:"Server error"}},Bne=Nne});function Wun(r){return r<=pge[0]&&r>=pge[1]}function fge(r){return MRe.includes(r)}function oxt(r){return typeof r=="number"}function mge(r){return Object.keys(m1).includes(r)?m1[r]:m1[Bne]}function yge(r){let e=Object.values(m1).find(t=>t.code===r);return e||m1[Bne]}function Uun(r){if(typeof r.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof r.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!oxt(r.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${r.error.code}`};if(fge(r.error.code)){let e=yge(r.error.code);if(e.message!==m1[Bne].message&&r.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${r.error.code}`}}return{valid:!0}}function Dne(r,e,t){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${e}`):r}var NRe=ce(()=>{d();p();hge()});var vd=_((sya,bge)=>{d();p();var cxt,uxt,lxt,dxt,pxt,hxt,fxt,mxt,yxt,gge,BRe,gxt,bxt,q$,vxt,wxt,xxt,_xt,Txt,Ixt,Ext,Cxt,kxt;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof bge=="object"&&typeof bge.exports=="object"?r(t(e,t(bge.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])};cxt=function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)},uxt=Object.assign||function(t){for(var n,a=1,i=arguments.length;a=0;u--)(c=t[u])&&(o=(s<3?c(o):s>3?c(n,a,o):c(n,a))||o);return s>3&&o&&Object.defineProperty(n,a,o),o},pxt=function(t,n){return function(a,i){n(a,i,t)}},hxt=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)},fxt=function(t,n,a,i){function s(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function u(f){try{h(i.next(f))}catch(m){c(m)}}function l(f){try{h(i.throw(f))}catch(m){c(m)}}function h(f){f.done?o(f.value):s(f.value).then(u,l)}h((i=i.apply(t,n||[])).next())})},mxt=function(t,n){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(f){return l([h,f])}}function l(h){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,s=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},BRe=function(t,n){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}return o},gxt=function(){for(var t=[],n=0;n1||u(y,I)})})}function u(y,I){try{l(i[y](I))}catch(C){m(o[0][3],C)}}function l(y){y.value instanceof q$?Promise.resolve(y.value.v).then(h,f):m(o[0][2],y)}function h(y){u("next",y)}function f(y){u("throw",y)}function m(y,I){y(I),o.shift(),o.length&&u(o[0][0],o[0][1])}},wxt=function(t){var n,a;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,o){n[s]=t[s]?function(c){return(a=!a)?{value:q$(t[s](c)),done:s==="return"}:o?o(c):c}:o}},xxt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],a;return n?n.call(t):(t=typeof gge=="function"?gge(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(o){a[o]=t[o]&&function(c){return new Promise(function(u,l){c=t[o](c),s(u,l,c.done,c.value)})}}function s(o,c,u,l){Promise.resolve(l).then(function(h){o({value:h,done:u})},c)}},_xt=function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},Txt=function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a in t)Object.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n.default=t,n},Ixt=function(t){return t&&t.__esModule?t:{default:t}},Ext=function(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)},Cxt=function(t,n,a){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,a),a},r("__extends",cxt),r("__assign",uxt),r("__rest",lxt),r("__decorate",dxt),r("__param",pxt),r("__metadata",hxt),r("__awaiter",fxt),r("__generator",mxt),r("__exportStar",yxt),r("__createBinding",kxt),r("__values",gge),r("__read",BRe),r("__spread",gxt),r("__spreadArrays",bxt),r("__await",q$),r("__asyncGenerator",vxt),r("__asyncDelegator",wxt),r("__asyncValues",xxt),r("__makeTemplateObject",_xt),r("__importStar",Txt),r("__importDefault",Ixt),r("__classPrivateFieldGet",Ext),r("__classPrivateFieldSet",Cxt)})});var Pxt=_(y1=>{"use strict";d();p();Object.defineProperty(y1,"__esModule",{value:!0});y1.isBrowserCryptoAvailable=y1.getSubtleCrypto=y1.getBrowerCrypto=void 0;function DRe(){return(global===null||global===void 0?void 0:global.crypto)||(global===null||global===void 0?void 0:global.msCrypto)||{}}y1.getBrowerCrypto=DRe;function Axt(){let r=DRe();return r.subtle||r.webkitSubtle}y1.getSubtleCrypto=Axt;function Hun(){return!!DRe()&&!!Axt()}y1.isBrowserCryptoAvailable=Hun});var Mxt=_(g1=>{"use strict";d();p();Object.defineProperty(g1,"__esModule",{value:!0});g1.isBrowser=g1.isNode=g1.isReactNative=void 0;function Sxt(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}g1.isReactNative=Sxt;function Rxt(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}g1.isNode=Rxt;function jun(){return!Sxt()&&!Rxt()}g1.isBrowser=jun});var F$=_(vge=>{"use strict";d();p();Object.defineProperty(vge,"__esModule",{value:!0});var Nxt=vd();Nxt.__exportStar(Pxt(),vge);Nxt.__exportStar(Mxt(),vge)});var eo={};cr(eo,{isNodeJs:()=>Dxt});var Bxt,Dxt,Lxt=ce(()=>{d();p();Bxt=un(F$());gr(eo,un(F$()));Dxt=Bxt.isNode});function wge(){let r=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return r+e}function LRe(r,e,t){return{id:t||wge(),jsonrpc:"2.0",method:r,params:e}}function zun(r,e){return{id:r,jsonrpc:"2.0",result:e}}function Lne(r,e,t){return{id:r,jsonrpc:"2.0",error:Oxt(e,t)}}function Oxt(r,e){return typeof r>"u"?mge(dge):(typeof r=="string"&&(r=Object.assign(Object.assign({},mge(Nne)),{message:r})),typeof e<"u"&&(r.data=e),fge(r.code)&&(r=yge(r.code)),r)}var qxt=ce(()=>{d();p();NRe();hge()});function Kun(r){return r.includes("*")?_ge(r):!/\W/g.test(r)}function xge(r){return r==="*"}function _ge(r){return xge(r)?!0:!(!r.includes("*")||r.split("*").length!==2||r.split("*").filter(e=>e.trim()==="").length!==1)}function Gun(r){return!xge(r)&&_ge(r)&&!r.split("*")[0].trim()}function Vun(r){return!xge(r)&&_ge(r)&&!r.split("*")[1].trim()}var Fxt=ce(()=>{d();p()});var Wxt=ce(()=>{d();p();lge()});function Qun(r){let e=r.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function Uxt(r,e){let t=Qun(r);return typeof t>"u"?!1:new RegExp(e).test(t)}function Tge(r){return Uxt(r,Yun)}function Ige(r){return Uxt(r,$un)}function ORe(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}var Yun,$un,Hxt=ce(()=>{d();p();Yun="^https?:",$un="^wss?:"});function qRe(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Jun(r){return qRe(r)&&"method"in r}function FRe(r){return qRe(r)&&(jxt(r)||Ege(r))}function jxt(r){return"result"in r}function Ege(r){return"error"in r}function Zun(r){return"error"in r&&r.valid===!1}var zxt=ce(()=>{d();p()});var to={};cr(to,{DEFAULT_ERROR:()=>Bne,IBaseJsonRpcProvider:()=>Mne,IEvents:()=>Ow,IJsonRpcConnection:()=>uge,IJsonRpcProvider:()=>O$,INTERNAL_ERROR:()=>dge,INVALID_PARAMS:()=>sxt,INVALID_REQUEST:()=>axt,METHOD_NOT_FOUND:()=>ixt,PARSE_ERROR:()=>nxt,RESERVED_ERROR_CODES:()=>MRe,SERVER_ERROR:()=>Nne,SERVER_ERROR_CODE_RANGE:()=>pge,STANDARD_ERROR_MAP:()=>m1,formatErrorMessage:()=>Oxt,formatJsonRpcError:()=>Lne,formatJsonRpcRequest:()=>LRe,formatJsonRpcResult:()=>zun,getError:()=>mge,getErrorByCode:()=>yge,isHttpUrl:()=>Tge,isJsonRpcError:()=>Ege,isJsonRpcPayload:()=>qRe,isJsonRpcRequest:()=>Jun,isJsonRpcResponse:()=>FRe,isJsonRpcResult:()=>jxt,isJsonRpcValidationInvalid:()=>Zun,isLocalhostUrl:()=>ORe,isNodeJs:()=>Dxt,isReservedErrorCode:()=>fge,isServerErrorCode:()=>Wun,isValidDefaultRoute:()=>xge,isValidErrorCode:()=>oxt,isValidLeadingWildcardRoute:()=>Gun,isValidRoute:()=>Kun,isValidTrailingWildcardRoute:()=>Vun,isValidWildcardRoute:()=>_ge,isWsUrl:()=>Ige,parseConnectionError:()=>Dne,payloadId:()=>wge,validateJsonRpcError:()=>Uun});var iy=ce(()=>{d();p();hge();NRe();Lxt();gr(to,eo);qxt();Fxt();Wxt();Hxt();zxt()});var Kxt=ce(()=>{d();p()});var One,sy,WRe,URe,HRe,jRe,zRe,KRe,GRe,Cge,VRe,YRe,kge,Gxt=ce(()=>{d();p();One="Session currently connected",sy="Session currently disconnected",WRe="Session Rejected",URe="Missing JSON RPC response",HRe='JSON-RPC success response must include "result" field',jRe='JSON-RPC error response must include "error" field',zRe='JSON RPC request must have valid "method" value',KRe='JSON RPC request must have valid "id" value',GRe="Missing one of the required parameters: bridge / uri / session",Cge="JSON RPC response format is invalid",VRe="URI format is invalid",YRe="QRCode Modal not provided",kge="User close QRCode Modal"});var Age,Xun,Vxt=ce(()=>{d();p();Age=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Xun=Age});var Yxt,W$,$xt,eln,tln,Qxt=ce(()=>{d();p();Yxt=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],W$=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...Yxt],$xt=["eth_accounts","eth_chainId","net_version"],eln=W$,tln=$xt});var qw,rln,Jxt=ce(()=>{d();p();qw="WALLETCONNECT_DEEPLINK_CHOICE",rln=qw});var Pge,nln,Zxt=ce(()=>{d();p();Pge={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},nln=Pge});var Xxt=ce(()=>{d();p();Gxt();Vxt();Qxt();Jxt();Zxt()});var e_t=ce(()=>{d();p()});var $Re,t_t=ce(()=>{d();p();$Re=class{}});var r_t=ce(()=>{d();p()});var n_t=ce(()=>{d();p()});var a_t=ce(()=>{d();p()});var i_t=ce(()=>{d();p()});var s_t=ce(()=>{d();p()});var o_t=ce(()=>{d();p()});var c_t=ce(()=>{d();p()});var QRe={};cr(QRe,{ERROR_INVALID_RESPONSE:()=>Cge,ERROR_INVALID_URI:()=>VRe,ERROR_MISSING_ERROR:()=>jRe,ERROR_MISSING_ID:()=>KRe,ERROR_MISSING_JSON_RPC:()=>URe,ERROR_MISSING_METHOD:()=>zRe,ERROR_MISSING_REQUIRED:()=>GRe,ERROR_MISSING_RESULT:()=>HRe,ERROR_QRCODE_MODAL_NOT_PROVIDED:()=>YRe,ERROR_QRCODE_MODAL_USER_CLOSED:()=>kge,ERROR_SESSION_CONNECTED:()=>One,ERROR_SESSION_DISCONNECTED:()=>sy,ERROR_SESSION_REJECTED:()=>WRe,IEvents:()=>$Re,INFURA_NETWORKS:()=>Pge,MOBILE_LINK_CHOICE_KEY:()=>qw,RESERVED_EVENTS:()=>Age,SIGNING_METHODS:()=>W$,STATE_METHODS:()=>$xt,WALLET_METHODS:()=>Yxt,infuraNetworks:()=>nln,mobileLinkChoiceKey:()=>rln,reservedEvents:()=>Xun,signingMethods:()=>eln,stateMethods:()=>tln});var Fw=ce(()=>{d();p();Kxt();Xxt();e_t();t_t();r_t();n_t();a_t();i_t();s_t();o_t();c_t()});var ZRe=_((Zga,d_t)=>{d();p();d_t.exports=JRe;JRe.strict=u_t;JRe.loose=l_t;var aln=Object.prototype.toString,iln={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function JRe(r){return u_t(r)||l_t(r)}function u_t(r){return r instanceof Int8Array||r instanceof Int16Array||r instanceof Int32Array||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Uint16Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array}function l_t(r){return iln[aln.call(r)]}});var h_t=_((t1a,p_t)=>{d();p();var sln=ZRe().strict;p_t.exports=function(e){if(sln(e)){var t=b.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}else return b.Buffer.from(e)}});function b1(r){return new Uint8Array(r)}function Rge(r,e=!1){let t=r.toString(XRe);return e?U$(t):t}function Mge(r){return r.toString(e9e)}function t9e(r){return r.readUIntBE(0,r.length)}function v1(r){return(0,m_t.default)(r)}function Am(r,e=!1){return Rge(v1(r),e)}function Nge(r){return Mge(v1(r))}function r9e(r){return t9e(v1(r))}function Bge(r){return b.Buffer.from(w1(r),XRe)}function Pm(r){return b1(Bge(r))}function y_t(r){return Mge(Bge(r))}function g_t(r){return r9e(Pm(r))}function Dge(r){return b.Buffer.from(r,e9e)}function Lge(r){return b1(Dge(r))}function b_t(r,e=!1){return Rge(Dge(r),e)}function v_t(r){let e=parseInt(r,10);return wln(vln(e),"Number can only safely store up to 53 bits"),e}function w_t(r){return pln(n9e(r))}function x_t(r){return a9e(n9e(r))}function __t(r,e){return hln(n9e(r),e)}function T_t(r){return`${r}`}function n9e(r){let e=(r>>>0).toString(2);return c9e(e)}function pln(r){return v1(a9e(r))}function a9e(r){return new Uint8Array(yln(r).map(e=>parseInt(e,2)))}function hln(r,e){return Am(a9e(r),e)}function fln(r){return!(typeof r!="string"||!new RegExp(/^[01]+$/).test(r)||r.length%8!==0)}function i9e(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function qne(r){return b.Buffer.isBuffer(r)}function Oge(r){return f_t.default.strict(r)&&!qne(r)}function s9e(r){return!Oge(r)&&!qne(r)&&typeof r.byteLength<"u"}function I_t(r){return qne(r)?cln:Oge(r)?lln:s9e(r)?dln:Array.isArray(r)?uln:typeof r}function E_t(r){return fln(r)?oln:i9e(r)?XRe:e9e}function C_t(...r){return b.Buffer.concat(r)}function o9e(...r){let e=[];return r.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function mln(r,e=8){let t=r%e;return t?(r-t)/e*e+e:r}function yln(r,e=8){let t=c9e(r).match(new RegExp(`.{${e}}`,"gi"));return Array.from(t||[])}function c9e(r,e=8,t=Sge){return gln(r,mln(r.length,e),t)}function gln(r,e,t=Sge){return xln(r,e,!0,t)}function w1(r){return r.replace(/^0x/,"")}function U$(r){return r.startsWith("0x")?r:`0x${r}`}function k_t(r){return r=w1(r),r=c9e(r,2),r&&(r=U$(r)),r}function A_t(r){let e=r.startsWith("0x");return r=w1(r),r=r.startsWith(Sge)?r.substring(1):r,e?U$(r):r}function bln(r){return typeof r>"u"}function vln(r){return!bln(r)}function wln(r,e){if(!r)throw new Error(e)}function xln(r,e,t,n=Sge){let a=e-r.length,i=r;if(a>0){let s=n.repeat(a);i=t?s+r:r+s}return i}var f_t,m_t,XRe,e9e,oln,cln,uln,lln,dln,Sge,Fne=ce(()=>{d();p();f_t=un(ZRe()),m_t=un(h_t()),XRe="hex",e9e="utf8",oln="binary",cln="buffer",uln="array",lln="typed-array",dln="array-buffer",Sge="0"});function Wne(r){return v1(new Uint8Array(r))}function _ln(r){return Nge(new Uint8Array(r))}function u9e(r,e){return Am(new Uint8Array(r),!e)}function Tln(r){return r9e(new Uint8Array(r))}function Iln(...r){return Pm(r.map(e=>Am(new Uint8Array(e))).join("")).buffer}function l9e(r){return b1(r).buffer}function Eln(r){return Mge(r)}function Cln(r,e){return Rge(r,!e)}function kln(r){return t9e(r)}function Aln(...r){return C_t(...r)}function Pln(r){return Lge(r).buffer}function Sln(r){return Dge(r)}function Rln(r,e){return b_t(r,!e)}function Mln(r){return v_t(r)}function Nln(r){return Bge(r)}function d9e(r){return Pm(r).buffer}function Bln(r){return y_t(r)}function Dln(r){return g_t(r)}function Lln(r){return w_t(r)}function Oln(r){return x_t(r).buffer}function qln(r){return T_t(r)}function p9e(r,e){return __t(Number(r),!e)}var P_t=ce(()=>{d();p();Fne()});var f9e=_(Bi=>{"use strict";d();p();var S_t=Bi&&Bi.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new O_t:typeof navigator<"u"?h9e(navigator.userAgent):W_t()}Bi.detect=Hln;function q_t(r){return r!==""&&Uln.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function jln(r){var e=q_t(r);return e?e[0]:null}Bi.browserName=jln;function h9e(r){var e=q_t(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new L_t;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length{"use strict";d();p();Object.defineProperty(ri,"__esModule",{value:!0});ri.getLocalStorage=ri.getLocalStorageOrThrow=ri.getCrypto=ri.getCryptoOrThrow=ri.getLocation=ri.getLocationOrThrow=ri.getNavigator=ri.getNavigatorOrThrow=ri.getDocument=ri.getDocumentOrThrow=ri.getFromWindowOrThrow=ri.getFromWindow=void 0;function Ww(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}ri.getFromWindow=Ww;function H$(r){let e=Ww(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}ri.getFromWindowOrThrow=H$;function Kln(){return H$("document")}ri.getDocumentOrThrow=Kln;function Gln(){return Ww("document")}ri.getDocument=Gln;function Vln(){return H$("navigator")}ri.getNavigatorOrThrow=Vln;function Yln(){return Ww("navigator")}ri.getNavigator=Yln;function $ln(){return H$("location")}ri.getLocationOrThrow=$ln;function Qln(){return Ww("location")}ri.getLocation=Qln;function Jln(){return H$("crypto")}ri.getCryptoOrThrow=Jln;function Zln(){return Ww("crypto")}ri.getCrypto=Zln;function Xln(){return H$("localStorage")}ri.getLocalStorageOrThrow=Xln;function edn(){return Ww("localStorage")}ri.getLocalStorage=edn});var Di,tdn,rdn,ndn,adn,idn,m9e,sdn,y9e,odn,cdn,udn,Une,Wge=ce(()=>{d();p();Di=un(Fge()),tdn=Di.getFromWindow,rdn=Di.getFromWindowOrThrow,ndn=Di.getDocumentOrThrow,adn=Di.getDocument,idn=Di.getNavigatorOrThrow,m9e=Di.getNavigator,sdn=Di.getLocationOrThrow,y9e=Di.getLocation,odn=Di.getCryptoOrThrow,cdn=Di.getCrypto,udn=Di.getLocalStorageOrThrow,Une=Di.getLocalStorage});function Hne(r){return(0,U_t.detect)(r)}function Uge(){let r=Hne();return r&&r.os?r.os:void 0}function H_t(){let r=Uge();return r?r.toLowerCase().includes("android"):!1}function j_t(){let r=Uge();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function g9e(){return Uge()?H_t()||j_t():!1}function z_t(){let r=Hne();return r&&r.name?r.name.toLowerCase()==="node":!1}function b9e(){return!z_t()&&!!m9e()}var U_t,K_t=ce(()=>{d();p();U_t=un(f9e());Wge()});var v9e={};cr(v9e,{safeJsonParse:()=>oy,safeJsonStringify:()=>Sm});function oy(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function Sm(r){return typeof r=="string"?r:JSON.stringify(r)}var j$=ce(()=>{d();p()});var w9e,x9e,_9e=ce(()=>{d();p();j$();w9e=oy,x9e=Sm});function jne(r,e){let t=x9e(e),n=Une();n&&n.setItem(r,t)}function zne(r){let e=null,t=null,n=Une();return n&&(t=n.getItem(r)),e=t&&w9e(t),e}function Kne(r){let e=Une();e&&e.removeItem(r)}var T9e=ce(()=>{d();p();_9e();Wge()});var I9e=_(Hge=>{"use strict";d();p();Object.defineProperty(Hge,"__esModule",{value:!0});Hge.getWindowMetadata=void 0;var G_t=Fge();function ldn(){let r,e;try{r=G_t.getDocumentOrThrow(),e=G_t.getLocationOrThrow()}catch{return null}function t(){let h=r.getElementsByTagName("link"),f=[];for(let m=0;m-1){let C=y.getAttribute("href");if(C)if(C.toLowerCase().indexOf("https:")===-1&&C.toLowerCase().indexOf("http:")===-1&&C.indexOf("//")!==0){let R=e.protocol+"//"+e.host;if(C.indexOf("/")===0)R+=C;else{let L=e.pathname.split("/");L.pop();let F=L.join("/");R+=F+"/"+C}f.push(R)}else if(C.indexOf("//")===0){let R=e.protocol+C;f.push(R)}else f.push(C)}}return f}function n(...h){let f=r.getElementsByTagName("meta");for(let m=0;my.getAttribute(C)).filter(C=>C?h.includes(C):!1);if(I.length&&I){let C=y.getAttribute("content");if(C)return C}}return""}function a(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function i(){return n("description","og:description","twitter:description","keywords")}let s=a(),o=i(),c=e.origin,u=t();return{description:o,url:c,icons:u,name:s}}Hge.getWindowMetadata=ldn});function jge(){return V_t.getWindowMetadata()}var V_t,Y_t=ce(()=>{d();p();V_t=un(I9e())});function ddn(r){return k_t(r)}function pdn(r){return U$(r)}function hdn(r){return w1(r)}function fdn(r){return A_t(U$(r))}function Gne(){return((e,t)=>{for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t})()}function mdn(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function $_t(r,e){let t,n=Pge[r];return n&&(t=`https://${n}.infura.io/v3/${e}`),t}function ydn(r,e){let t,n=$_t(r,e.infuraId);return e.custom&&e.custom[r]?t=e.custom[r]:n&&(t=n),t}var E9e,Q_t=ce(()=>{d();p();Fne();iy();Fw();E9e=wge});function gdn(r,e){let t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function bdn(r){let e=r.href.split("?")[0];jne(qw,Object.assign(Object.assign({},r),{href:e}))}function J_t(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function vdn(r,e){let t=r;return e&&(t=e.map(n=>J_t(r,n)).filter(Boolean)),t}var Z_t=ce(()=>{d();p();Fw();T9e()});function wdn(r,e){return async(...n)=>new Promise((a,i)=>{let s=(o,c)=>{(o===null||typeof o>"u")&&i(o),a(c)};r.apply(e,[...n,s])})}function C9e(r){let e=r.message||"Failed or Rejected Request",t=-32e3;if(r&&!r.code)switch(e){case"Parse error":t=-32700;break;case"Invalid request":t=-32600;break;case"Method not found":t=-32601;break;case"Invalid params":t=-32602;break;case"Internal error":t=-32603;break;default:t=-32e3;break}let n={code:t,message:e};return r.data&&(n.data=r.data),n}var X_t=ce(()=>{d();p()});function xdn(){return eTt+"/api/v2/wallets"}function _dn(){return eTt+"/api/v2/dapps"}function tTt(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function Tdn(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>tTt(t,e))}var eTt,rTt=ce(()=>{d();p();eTt="https://registry.walletconnect.com"});var k9e=_((X1a,nTt)=>{"use strict";d();p();nTt.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var P9e=_((rba,oTt)=>{"use strict";d();p();var sTt="%[a-f0-9]{2}",aTt=new RegExp("("+sTt+")|([^%]+?)","gi"),iTt=new RegExp("("+sTt+")+","gi");function A9e(r,e){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],A9e(t),A9e(n))}function Idn(r){try{return decodeURIComponent(r)}catch{for(var e=r.match(aTt)||[],t=1;t{"use strict";d();p();cTt.exports=(r,e)=>{if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[r];let t=r.indexOf(e);return t===-1?[r]:[r.slice(0,t),r.slice(t+e.length)]}});var R9e=_((cba,uTt)=>{"use strict";d();p();uTt.exports=function(r,e){for(var t={},n=Object.keys(r),a=Array.isArray(e),i=0;i{"use strict";d();p();var Cdn=k9e(),kdn=P9e(),dTt=S9e(),Adn=R9e(),Pdn=r=>r==null;function Sdn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Sc(e,r),"[",a,"]"].join("")]:[...t,[Sc(e,r),"[",Sc(a,r),"]=",Sc(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Sc(e,r),"[]"].join("")]:[...t,[Sc(e,r),"[]=",Sc(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>n==null||n.length===0?t:t.length===0?[[Sc(e,r),"=",Sc(n,r)].join("")]:[[t,Sc(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Sc(e,r)]:[...t,[Sc(e,r),"=",Sc(n,r)].join("")]}}function Rdn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&Uw(n,r).includes(r.arrayFormatSeparator);n=s?Uw(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>Uw(c,r)):n===null?n:Uw(n,r);a[t]=o};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function pTt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Sc(r,e){return e.encode?e.strict?Cdn(r):encodeURIComponent(r):r}function Uw(r,e){return e.decode?kdn(r):r}function hTt(r){return Array.isArray(r)?r.sort():typeof r=="object"?hTt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function fTt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function Mdn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function mTt(r){r=fTt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function lTt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function yTt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),pTt(e.arrayFormatSeparator);let t=Rdn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=dTt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator"].includes(e.arrayFormat)?s:Uw(s,e),t(Uw(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=lTt(i[s],e);else n[a]=lTt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=hTt(s):a[i]=s,a},Object.create(null))}Ol.extract=mTt;Ol.parse=yTt;Ol.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),pTt(e.arrayFormatSeparator);let t=s=>e.skipNull&&Pdn(r[s])||e.skipEmptyString&&r[s]==="",n=Sdn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Sc(s,e):Array.isArray(o)?o.reduce(n(s),[]).join("&"):Sc(s,e)+"="+Sc(o,e)}).filter(s=>s.length>0).join("&")};Ol.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=dTt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:yTt(mTt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:Uw(n,e)}:{})};Ol.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);let t=fTt(r.url).split("?")[0]||"",n=Ol.extract(r.url),a=Ol.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Ol.stringify(i,e);s&&(s=`?${s}`);let o=Mdn(r.url);return r.fragmentIdentifier&&(o=`#${Sc(r.fragmentIdentifier,e)}`),`${t}${s}${o}`};Ol.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:n,query:a,fragmentIdentifier:i}=Ol.parseUrl(r,t);return Ol.stringifyUrl({url:n,query:Adn(a,e),fragmentIdentifier:i},t)};Ol.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Ol.pick(r,n,t)}});function M9e(r){let e=r.indexOf("?")!==-1?r.indexOf("?"):void 0;return typeof e<"u"?r.substr(e):""}function N9e(r,e){let t=Kge(r);return t=Object.assign(Object.assign({},t),e),r=bTt(t),r}function Kge(r){return zge.parse(r)}function bTt(r){return zge.stringify(r)}var zge,B9e=ce(()=>{d();p();zge=un(gTt())});function D9e(r){return typeof r.bridge<"u"}function L9e(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t);function i(h){let f="@",m=h.split(f);return{handshakeTopic:m[0],version:parseInt(m[1],10)}}let s=i(a),o=typeof t<"u"?r.substr(t):"";function c(h){let f=Kge(h);return{key:f.key||"",bridge:f.bridge||""}}let u=c(o);return Object.assign(Object.assign({protocol:n},s),u)}var vTt=ce(()=>{d();p();B9e()});function Ndn(r){return r===""||typeof r=="string"&&r.trim()===""}function Bdn(r){return!(r&&r.length)}function Ddn(r){return qne(r)}function Ldn(r){return Oge(r)}function Odn(r){return s9e(r)}function qdn(r){return I_t(r)}function Fdn(r){return E_t(r)}function Wdn(r,e){return i9e(r,e)}function Udn(r){return typeof r.params=="object"}function O9e(r){return typeof r.method<"u"}function x1(r){return typeof r.result<"u"}function Hw(r){return typeof r.error<"u"}function Gge(r){return typeof r.event<"u"}function q9e(r){return Age.includes(r)||r.startsWith("wc_")}function F9e(r){return r.method.startsWith("wc_")?!0:!W$.includes(r.method)}var wTt=ce(()=>{d();p();Fne();Fw()});var Vge={};cr(Vge,{addHexPrefix:()=>pdn,appendToQueryString:()=>N9e,concatArrayBuffers:()=>Iln,concatBuffers:()=>Aln,convertArrayBufferToBuffer:()=>Wne,convertArrayBufferToHex:()=>u9e,convertArrayBufferToNumber:()=>Tln,convertArrayBufferToUtf8:()=>_ln,convertBufferToArrayBuffer:()=>l9e,convertBufferToHex:()=>Cln,convertBufferToNumber:()=>kln,convertBufferToUtf8:()=>Eln,convertHexToArrayBuffer:()=>d9e,convertHexToBuffer:()=>Nln,convertHexToNumber:()=>Dln,convertHexToUtf8:()=>Bln,convertNumberToArrayBuffer:()=>Oln,convertNumberToBuffer:()=>Lln,convertNumberToHex:()=>p9e,convertNumberToUtf8:()=>qln,convertUtf8ToArrayBuffer:()=>Pln,convertUtf8ToBuffer:()=>Sln,convertUtf8ToHex:()=>Rln,convertUtf8ToNumber:()=>Mln,detectEnv:()=>Hne,detectOS:()=>Uge,formatIOSMobile:()=>gdn,formatMobileRegistry:()=>Tdn,formatMobileRegistryEntry:()=>tTt,formatQueryString:()=>bTt,formatRpcError:()=>C9e,getClientMeta:()=>jge,getCrypto:()=>cdn,getCryptoOrThrow:()=>odn,getDappRegistryUrl:()=>_dn,getDocument:()=>adn,getDocumentOrThrow:()=>ndn,getEncoding:()=>Fdn,getFromWindow:()=>tdn,getFromWindowOrThrow:()=>rdn,getInfuraRpcUrl:()=>$_t,getLocal:()=>zne,getLocalStorage:()=>Une,getLocalStorageOrThrow:()=>udn,getLocation:()=>y9e,getLocationOrThrow:()=>sdn,getMobileLinkRegistry:()=>vdn,getMobileRegistryEntry:()=>J_t,getNavigator:()=>m9e,getNavigatorOrThrow:()=>idn,getQueryString:()=>M9e,getRpcUrl:()=>ydn,getType:()=>qdn,getWalletRegistryUrl:()=>xdn,isAndroid:()=>H_t,isArrayBuffer:()=>Odn,isBrowser:()=>b9e,isBuffer:()=>Ddn,isEmptyArray:()=>Bdn,isEmptyString:()=>Ndn,isHexString:()=>Wdn,isIOS:()=>j_t,isInternalEvent:()=>Gge,isJsonRpcRequest:()=>O9e,isJsonRpcResponseError:()=>Hw,isJsonRpcResponseSuccess:()=>x1,isJsonRpcSubscription:()=>Udn,isMobile:()=>g9e,isNode:()=>z_t,isReservedEvent:()=>q9e,isSilentPayload:()=>F9e,isTypedArray:()=>Ldn,isWalletConnectSession:()=>D9e,logDeprecationWarning:()=>mdn,parseQueryString:()=>Kge,parseWalletConnectUri:()=>L9e,payloadId:()=>E9e,promisify:()=>wdn,removeHexLeadingZeros:()=>fdn,removeHexPrefix:()=>hdn,removeLocal:()=>Kne,safeJsonParse:()=>w9e,safeJsonStringify:()=>x9e,sanitizeHex:()=>ddn,saveMobileLinkInfo:()=>bdn,setLocal:()=>jne,uuid:()=>Gne});var cy=ce(()=>{d();p();P_t();K_t();_9e();T9e();Y_t();Q_t();Z_t();X_t();rTt();vTt();B9e();wTt();Wge()});var W9e,xTt,_Tt=ce(()=>{d();p();W9e=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(n=>n.event===e)),t.forEach(n=>{n.callback()})}},xTt=W9e});var ITt=_((jba,TTt)=>{"use strict";d();p();TTt.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function jdn(r,e,t){var n,a;let s=(r.startsWith("https")?r.replace("https","wss"):r.startsWith("http")?r.replace("http","ws"):r).split("?"),o=b9e()?{protocol:e,version:t,env:"browser",host:((n=y9e())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:t,env:((a=Hne())===null||a===void 0?void 0:a.name)||""},c=N9e(M9e(s[1]||""),o);return s[0]+"?"+c}var Hdn,U9e,ETt,CTt=ce(()=>{d();p();cy();_Tt();Hdn=typeof global.WebSocket<"u"?global.WebSocket:ITt(),U9e=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new xTt,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||typeof t!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=jdn(this._url,this._protocol,this._version);if(this._nextSocket=new Hdn(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let t=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(a=>a.event==="message");n&&n.length&&n.forEach(a=>a.callback(t))}}_socketError(e){let t=this._events.filter(n=>n.event==="error");t&&t.length&&t.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(t=>this._socketSend(t)),this._queue=[]}};ETt=U9e});var H9e,kTt,ATt=ce(()=>{d();p();cy();H9e=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t=[],n;O9e(e)?n=e.method:x1(e)||Hw(e)?n=`response:${e.id}`:Gge(e)?n=e.event:n="",n&&(t=this._eventEmitters.filter(a=>a.event===n)),(!t||!t.length)&&!q9e(n)&&!Gge(n)&&(t=this._eventEmitters.filter(a=>a.event==="call_request")),t.forEach(a=>{if(Hw(e)){let i=new Error(e.error.message);a.callback(i,null)}else a.callback(null,e)})}},kTt=H9e});var j9e,PTt,STt=ce(()=>{d();p();cy();j9e=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=zne(this.storageId);return t&&D9e(t)&&(e=t),e}setSession(e){return jne(this.storageId,e),e}removeSession(){Kne(this.storageId)}},PTt=j9e});function Gdn(r){let e=r.indexOf("//")>-1?r.split("/")[2]:r.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function Vdn(r){return Gdn(r).split(".").slice(-2).join(".")}function Ydn(){return Math.floor(Math.random()*RTt.length)}function $dn(){return RTt[Ydn()]}function Qdn(r){return Vdn(r)===zdn}function MTt(r){return Qdn(r)?$dn():r}var zdn,Kdn,RTt,NTt=ce(()=>{d();p();zdn="walletconnect.org",Kdn="abcdefghijklmnopqrstuvwxyz0123456789",RTt=Kdn.split("").map(r=>`https://${r}.bridge.walletconnect.org`)});var z9e,BTt,DTt=ce(()=>{d();p();Fw();cy();CTt();ATt();STt();NTt();z9e=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new kTt,this._clientMeta=jge()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new PTt(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...W$,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(GRe);e.connectorOpts.bridge&&(this.bridge=MTt(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new ETt({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){!e||(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let t=d9e(e);this._key=t}get key(){return this._key?u9e(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Gne()),this._clientId}set peerId(e){!e||(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=jge()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){!e||(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){!e||(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:t,bridge:n,key:a}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=a}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){!e||(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){let n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=Gne(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(kge)});let n=()=>{this.killSession()};try{let a=await this._sendCallRequest(t);return a&&n(),a}catch(a){throw n(),a}}async connect(e){if(!this._qrcodeModal)throw new Error(YRe);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(t,n)=>{this.on("modal_closed",()=>n(new Error(kge))),this.on("connect",(a,i)=>{if(a)return n(a);t(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(One);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=Gne(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(One);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(One);let t=e&&e.message?e.message:WRe,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(sy);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(a),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(sy);let t=e,n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(sy);let t=e,n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(sy);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(sy);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(sy);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(i,s)=>{if(i){a(i);return}if(!s)throw new Error(URe);n(s)})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(sy);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return p9e(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(x1(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(HRe)}rejectRequest(e){if(Hw(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(jRe)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),a=await this._encrypt(n),i=typeof t?.topic<"u"?t.topic:this.peerId,s=JSON.stringify(a),o=typeof t?.forcePushNotification<"u"?!t.forcePushNotification:F9e(n);this._transport.send(s,i,o)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,a=JSON.stringify(t),i=!0;this._transport.send(a,n,i)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(zRe);return{id:typeof e.id>"u"?E9e():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(KRe);let t={id:e.id,jsonrpc:"2.0"};if(Hw(e)){let n=C9e(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}else if(x1(e))return Object.assign(Object.assign({},t),e);throw new Error(Cge)}_handleSessionDisconnect(e){let t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Kne(qw)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t?t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let n;try{n=JSON.parse(e.payload)}catch{return}let a=await this._decrypt(n);a&&this._eventManager.trigger(a)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(n,a)=>{if(n){this._handleSessionResponse(n.message);return}x1(a)?this._handleSessionResponse(t,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(a,i)=>{if(a){n(a);return}x1(i)?t(i.result):i.error&&i.error.message?n(i.error):n(new Error(Cge))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,t)=>{let{request:n}=t.params[0];if(g9e()&&this._signingMethods.includes(n.method)){let a=zne(qw);a&&(window.location.href=a.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,t=this.handshakeTopic,n=this.version,a=encodeURIComponent(this.bridge),i=this.key;return`${e}:${t}@${n}?bridge=${a}&key=${i}`}_parseUri(e){let t=L9e(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");let i=t.key;return{handshakeTopic:n,bridge:a,key:i}}else throw new Error(VRe)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,a)=>{if(n)throw n;if(e.peerMeta){let i=a.params[0].peerMeta.name;t.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},BTt=z9e});function K9e(r){return LTt.getBrowerCrypto().getRandomValues(new Uint8Array(r))}var LTt,OTt=ce(()=>{d();p();LTt=un(F$())});var Jdn,G9e,V9e,Yge,Zdn,Xdn,$ge,Y9e,epn,$9e=ce(()=>{d();p();Jdn=0,G9e=1,V9e=16,Yge=32,Zdn=64,Xdn=128,$ge=256,Y9e=512,epn=1024});var Vne,Qge,Rm,Q9e,jw,J9e,Z9e,tpn,rpn,npn,apn,ipn,spn,opn,cpn,upn,qTt=ce(()=>{d();p();$9e();Vne=256,Qge=256,Rm="AES-CBC",Q9e=`SHA-${Vne}`,jw="HMAC",J9e="SHA-256",Z9e="SHA-512",tpn=`aes-${Vne}-cbc`,rpn=`sha${Qge}`,npn="sha256",apn="sha512",ipn="ripemd160",spn=1,opn=32,cpn=16,upn=32});var lpn,dpn,FTt=ce(()=>{d();p();lpn="hex",dpn="utf8"});var ppn,WTt=ce(()=>{d();p();ppn="Bad MAC"});var X9e,eMe,tMe,rMe,UTt=ce(()=>{d();p();X9e="encrypt",eMe="decrypt",tMe="sign",rMe="verify"});var nMe=ce(()=>{d();p();qTt();FTt();WTt();$9e();UTt()});function hpn(r){return r===Rm?{length:Vne,name:Rm}:{hash:{name:Q9e},name:jw}}function fpn(r){return r===Rm?[X9e,eMe]:[tMe,rMe]}async function Jge(r,e=Rm){return _1.getSubtleCrypto().importKey("raw",r,hpn(e),!0,fpn(e))}async function HTt(r,e,t){let n=_1.getSubtleCrypto(),a=await Jge(e,Rm),i=await n.encrypt({iv:r,name:Rm},a,t);return new Uint8Array(i)}async function jTt(r,e,t){let n=_1.getSubtleCrypto(),a=await Jge(e,Rm),i=await n.decrypt({iv:r,name:Rm},a,t);return new Uint8Array(i)}async function aMe(r,e){let t=_1.getSubtleCrypto(),n=await Jge(r,jw),a=await t.sign({length:Qge,name:jw},n,e);return new Uint8Array(a)}async function iMe(r,e){let t=_1.getSubtleCrypto(),n=await Jge(r,jw),a=await t.sign({length:512,name:jw},n,e);return new Uint8Array(a)}async function zTt(r){let t=await _1.getSubtleCrypto().digest({name:J9e},r);return new Uint8Array(t)}async function KTt(r){let t=await _1.getSubtleCrypto().digest({name:Z9e},r);return new Uint8Array(t)}var _1,Zge=ce(()=>{d();p();_1=un(F$());nMe()});function sMe(r,e,t){return HTt(r,e,t)}function oMe(r,e,t){return jTt(r,e,t)}var GTt=ce(()=>{d();p();Zge()});var ql={};var VTt=ce(()=>{d();p();gr(ql,un(F$()))});var mpn,YTt,$Tt=ce(()=>{d();p();mpn=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],YTt={pad(r){let e=mpn[r.byteLength%16||0],t=new Uint8Array(r.byteLength+e.length);return t.set(r),t.set(e,r.byteLength),t},unpad(r){return r.subarray(0,r.byteLength-r[r.byteLength-1])}}});var QTt=ce(()=>{d();p()});function JTt(r,e){if(!r)throw new Error(e||"Assertion failed")}function Yne(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n{d();p()});var Io={};cr(Io,{assert:()=>JTt,isConstantTime:()=>Yne,pkcs7:()=>YTt});var cMe=ce(()=>{d();p();VTt();gr(Io,ql);$Tt();QTt();ZTt()});async function Xge(r,e){return await aMe(r,e)}async function ypn(r,e,t){let n=await aMe(r,e);return Yne(n,t)}async function gpn(r,e){return await iMe(r,e)}async function bpn(r,e,t){let n=await iMe(r,e);return Yne(n,t)}var XTt=ce(()=>{d();p();Zge();cMe()});async function vpn(r){return await zTt(r)}async function wpn(r){return await KTt(r)}async function xpn(r){throw new Error("Not supported for Browser async methods, use sync instead!")}var e6t=ce(()=>{d();p();Zge()});var qp={};cr(qp,{AES_BROWSER_ALGO:()=>Rm,AES_LENGTH:()=>Vne,AES_NODE_ALGO:()=>tpn,DECRYPT_OP:()=>eMe,ENCRYPT_OP:()=>X9e,ERROR_BAD_MAC:()=>ppn,HEX_ENC:()=>lpn,HMAC_BROWSER:()=>jw,HMAC_BROWSER_ALGO:()=>Q9e,HMAC_LENGTH:()=>Qge,HMAC_NODE_ALGO:()=>rpn,IV_LENGTH:()=>cpn,KEY_LENGTH:()=>opn,LENGTH_0:()=>Jdn,LENGTH_1:()=>G9e,LENGTH_1024:()=>epn,LENGTH_128:()=>Xdn,LENGTH_16:()=>V9e,LENGTH_256:()=>$ge,LENGTH_32:()=>Yge,LENGTH_512:()=>Y9e,LENGTH_64:()=>Zdn,MAC_LENGTH:()=>upn,PREFIX_LENGTH:()=>spn,RIPEMD160_NODE_ALGO:()=>ipn,SHA256_BROWSER_ALGO:()=>J9e,SHA256_NODE_ALGO:()=>npn,SHA512_BROWSER_ALGO:()=>Z9e,SHA512_NODE_ALGO:()=>apn,SIGN_OP:()=>tMe,UTF8_ENC:()=>dpn,VERIFY_OP:()=>rMe,aesCbcDecrypt:()=>oMe,aesCbcEncrypt:()=>sMe,assert:()=>JTt,hmacSha256Sign:()=>Xge,hmacSha256Verify:()=>ypn,hmacSha512Sign:()=>gpn,hmacSha512Verify:()=>bpn,isConstantTime:()=>Yne,pkcs7:()=>YTt,randomBytes:()=>K9e,ripemd160:()=>xpn,sha256:()=>vpn,sha512:()=>wpn});var t6t=ce(()=>{d();p();OTt();GTt();XTt();e6t();cMe();gr(qp,Io);nMe()});var uMe={};cr(uMe,{decrypt:()=>Tpn,encrypt:()=>_pn,generateKey:()=>r6t,verifyHmac:()=>n6t});async function r6t(r){let e=(r||256)/8,t=K9e(e);return l9e(v1(t))}async function n6t(r,e){let t=Pm(r.data),n=Pm(r.iv),a=Pm(r.hmac),i=Am(a,!1),s=o9e(t,n),o=await Xge(e,s),c=Am(o,!1);return w1(i)===w1(c)}async function _pn(r,e,t){let n=b1(Wne(e)),a=t||await r6t(128),i=b1(Wne(a)),s=Am(i,!1),o=JSON.stringify(r),c=Lge(o),u=await sMe(i,n,c),l=Am(u,!1),h=o9e(u,i),f=await Xge(n,h),m=Am(f,!1);return{data:l,hmac:m,iv:s}}async function Tpn(r,e){let t=b1(Wne(e));if(!t)throw new Error("Missing key: required for decryption");if(!await n6t(r,t))return null;let a=Pm(r.data),i=Pm(r.iv),s=await oMe(i,t,a),o=Nge(s),c;try{c=JSON.parse(o)}catch{return null}return c}var a6t=ce(()=>{d();p();t6t();Fne();cy()});var dMe={};cr(dMe,{default:()=>Ipn});var lMe,Ipn,pMe=ce(()=>{d();p();DTt();a6t();lMe=class extends BTt{constructor(e,t){super({cryptoLib:uMe,connectorOpts:e,pushServerOpts:t})}},Ipn=lMe});var s6t=_((q2a,i6t)=>{d();p();i6t.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var T1=_(zw=>{d();p();var hMe,Epn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];zw.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};zw.getSymbolTotalCodewords=function(e){return Epn[e]};zw.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};zw.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');hMe=e};zw.isKanjiModeEnabled=function(){return typeof hMe<"u"};zw.toSJIS=function(e){return hMe(e)}});var e1e=_(Fp=>{d();p();Fp.L={bit:1};Fp.M={bit:0};Fp.Q={bit:3};Fp.H={bit:2};function Cpn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return Fp.L;case"m":case"medium":return Fp.M;case"q":case"quartile":return Fp.Q;case"h":case"high":return Fp.H;default:throw new Error("Unknown EC Level: "+r)}}Fp.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Fp.from=function(e,t){if(Fp.isValid(e))return e;try{return Cpn(e)}catch{return t}}});var u6t=_((V2a,c6t)=>{d();p();function o6t(){this.buffer=[],this.length=0}o6t.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};c6t.exports=o6t});var d6t=_((Q2a,l6t)=>{d();p();function $ne(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}$ne.prototype.set=function(r,e,t,n){let a=r*this.size+e;this.data[a]=t,n&&(this.reservedBit[a]=!0)};$ne.prototype.get=function(r,e){return this.data[r*this.size+e]};$ne.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};$ne.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};l6t.exports=$ne});var p6t=_(t1e=>{d();p();var kpn=T1().getSymbolSize;t1e.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=kpn(e),a=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s{d();p();var Apn=T1().getSymbolSize,h6t=7;f6t.getPositions=function(e){let t=Apn(e);return[[0,0],[t-h6t,0],[0,t-h6t]]}});var y6t=_(ni=>{d();p();ni.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Kw={N1:3,N2:3,N3:40,N4:10};ni.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};ni.from=function(e){return ni.isValid(e)?parseInt(e,10):void 0};ni.getPenaltyN1=function(e){let t=e.size,n=0,a=0,i=0,s=null,o=null;for(let c=0;c=5&&(n+=Kw.N1+(a-5)),s=l,a=1),l=e.get(u,c),l===o?i++:(i>=5&&(n+=Kw.N1+(i-5)),o=l,i=1)}a>=5&&(n+=Kw.N1+(a-5)),i>=5&&(n+=Kw.N1+(i-5))}return n};ni.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a=10&&(a===1488||a===93)&&n++,i=i<<1&2047|e.get(o,s),o>=10&&(i===1488||i===93)&&n++}return n*Kw.N3};ni.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let i=0;i{d();p();var I1=e1e(),r1e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n1e=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];fMe.getBlocksCount=function(e,t){switch(t){case I1.L:return r1e[(e-1)*4+0];case I1.M:return r1e[(e-1)*4+1];case I1.Q:return r1e[(e-1)*4+2];case I1.H:return r1e[(e-1)*4+3];default:return}};fMe.getTotalCodewordsCount=function(e,t){switch(t){case I1.L:return n1e[(e-1)*4+0];case I1.M:return n1e[(e-1)*4+1];case I1.Q:return n1e[(e-1)*4+2];case I1.H:return n1e[(e-1)*4+3];default:return}}});var g6t=_(i1e=>{d();p();var Qne=new Uint8Array(512),a1e=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)Qne[t]=e,a1e[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)Qne[t]=Qne[t-255]})();i1e.log=function(e){if(e<1)throw new Error("log("+e+")");return a1e[e]};i1e.exp=function(e){return Qne[e]};i1e.mul=function(e,t){return e===0||t===0?0:Qne[a1e[e]+a1e[t]]}});var b6t=_(Jne=>{d();p();var yMe=g6t();Jne.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){let a=n[0];for(let s=0;s{d();p();var v6t=b6t();function gMe(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}gMe.prototype.initialize=function(e){this.degree=e,this.genPoly=v6t.generateECPolynomial(this.degree)};gMe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=v6t.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let i=new Uint8Array(this.degree);return i.set(n,a),i}return n};w6t.exports=gMe});var bMe=_(_6t=>{d();p();_6t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var vMe=_(uy=>{d();p();var T6t="[0-9]+",Spn="[A-Z $%*+\\-./:]+",Zne="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Zne=Zne.replace(/u/g,"\\u");var Rpn="(?:(?![A-Z0-9 $%*+\\-./:]|"+Zne+`)(?:.|[\r +]))+`;uy.KANJI=new RegExp(Zne,"g");uy.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");uy.BYTE=new RegExp(Rpn,"g");uy.NUMERIC=new RegExp(T6t,"g");uy.ALPHANUMERIC=new RegExp(Spn,"g");var Mpn=new RegExp("^"+Zne+"$"),Npn=new RegExp("^"+T6t+"$"),Bpn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");uy.testKanji=function(e){return Mpn.test(e)};uy.testNumeric=function(e){return Npn.test(e)};uy.testAlphanumeric=function(e){return Bpn.test(e)}});var E1=_(ro=>{d();p();var Dpn=bMe(),wMe=vMe();ro.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};ro.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};ro.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};ro.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};ro.MIXED={bit:-1};ro.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Dpn.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};ro.getBestModeForData=function(e){return wMe.testNumeric(e)?ro.NUMERIC:wMe.testAlphanumeric(e)?ro.ALPHANUMERIC:wMe.testKanji(e)?ro.KANJI:ro.BYTE};ro.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};ro.isValid=function(e){return e&&e.bit&&e.ccBits};function Lpn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return ro.NUMERIC;case"alphanumeric":return ro.ALPHANUMERIC;case"kanji":return ro.KANJI;case"byte":return ro.BYTE;default:throw new Error("Unknown mode: "+r)}}ro.from=function(e,t){if(ro.isValid(e))return e;try{return Lpn(e)}catch{return t}}});var A6t=_(Gw=>{d();p();var s1e=T1(),Opn=mMe(),I6t=e1e(),C1=E1(),xMe=bMe(),C6t=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,E6t=s1e.getBCHDigit(C6t);function qpn(r,e,t){for(let n=1;n<=40;n++)if(e<=Gw.getCapacity(n,t,r))return n}function k6t(r,e){return C1.getCharCountIndicator(r,e)+4}function Fpn(r,e){let t=0;return r.forEach(function(n){let a=k6t(n.mode,e);t+=a+n.getBitsLength()}),t}function Wpn(r,e){for(let t=1;t<=40;t++)if(Fpn(r,t)<=Gw.getCapacity(t,e,C1.MIXED))return t}Gw.from=function(e,t){return xMe.isValid(e)?parseInt(e,10):t};Gw.getCapacity=function(e,t,n){if(!xMe.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=C1.BYTE);let a=s1e.getSymbolTotalCodewords(e),i=Opn.getTotalCodewordsCount(e,t),s=(a-i)*8;if(n===C1.MIXED)return s;let o=s-k6t(n,e);switch(n){case C1.NUMERIC:return Math.floor(o/10*3);case C1.ALPHANUMERIC:return Math.floor(o/11*2);case C1.KANJI:return Math.floor(o/13);case C1.BYTE:default:return Math.floor(o/8)}};Gw.getBestVersionForData=function(e,t){let n,a=I6t.from(t,I6t.M);if(Array.isArray(e)){if(e.length>1)return Wpn(e,a);if(e.length===0)return 1;n=e[0]}else n=e;return qpn(n.mode,n.getLength(),a)};Gw.getEncodedBits=function(e){if(!xMe.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;s1e.getBCHDigit(t)-E6t>=0;)t^=C6t<{d();p();var _Me=T1(),S6t=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Upn=1<<14|1<<12|1<<10|1<<4|1<<1,P6t=_Me.getBCHDigit(S6t);R6t.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;_Me.getBCHDigit(a)-P6t>=0;)a^=S6t<<_Me.getBCHDigit(a)-P6t;return(n<<10|a)^Upn}});var B6t=_((Dwa,N6t)=>{d();p();var Hpn=E1();function z$(r){this.mode=Hpn.NUMERIC,this.data=r.toString()}z$.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};z$.prototype.getLength=function(){return this.data.length};z$.prototype.getBitsLength=function(){return z$.getBitsLength(this.data.length)};z$.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,i*3+1))};N6t.exports=z$});var L6t=_((qwa,D6t)=>{d();p();var jpn=E1(),TMe=["0","1","2","3","4","5","6","7","8","9","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"," ","$","%","*","+","-",".","/",":"];function K$(r){this.mode=jpn.ALPHANUMERIC,this.data=r}K$.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};K$.prototype.getLength=function(){return this.data.length};K$.prototype.getBitsLength=function(){return K$.getBitsLength(this.data.length)};K$.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=TMe.indexOf(this.data[t])*45;n+=TMe.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(TMe.indexOf(this.data[t]),6)};D6t.exports=K$});var q6t=_((Uwa,O6t)=>{"use strict";d();p();O6t.exports=function(e){for(var t=[],n=e.length,a=0;a=55296&&i<=56319&&n>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}});var W6t=_((zwa,F6t)=>{d();p();var zpn=q6t(),Kpn=E1();function G$(r){this.mode=Kpn.BYTE,typeof r=="string"&&(r=zpn(r)),this.data=new Uint8Array(r)}G$.getBitsLength=function(e){return e*8};G$.prototype.getLength=function(){return this.data.length};G$.prototype.getBitsLength=function(){return G$.getBitsLength(this.data.length)};G$.prototype.write=function(r){for(let e=0,t=this.data.length;e{d();p();var Gpn=E1(),Vpn=T1();function V$(r){this.mode=Gpn.KANJI,this.data=r}V$.getBitsLength=function(e){return e*13};V$.prototype.getLength=function(){return this.data.length};V$.prototype.getBitsLength=function(){return V$.getBitsLength(this.data.length)};V$.prototype.write=function(r){let e;for(e=0;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};U6t.exports=V$});var j6t=_((Qwa,IMe)=>{"use strict";d();p();var Xne={single_source_shortest_paths:function(r,e,t){var n={},a={};a[e]=0;var i=Xne.PriorityQueue.make();i.push(e,0);for(var s,o,c,u,l,h,f,m,y;!i.empty();){s=i.pop(),o=s.value,u=s.cost,l=r[o]||{};for(c in l)l.hasOwnProperty(c)&&(h=l[c],f=u+h,m=a[c],y=typeof a[c]>"u",(y||m>f)&&(a[c]=f,i.push(c,f),n[c]=o))}if(typeof t<"u"&&typeof a[t]>"u"){var I=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(I)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,a;n;)t.push(n),a=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=Xne.single_source_shortest_paths(r,e,t);return Xne.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=Xne.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof IMe<"u"&&(IMe.exports=Xne)});var J6t=_(Y$=>{d();p();var Ba=E1(),G6t=B6t(),V6t=L6t(),Y6t=W6t(),$6t=H6t(),eae=vMe(),o1e=T1(),Ypn=j6t();function z6t(r){return unescape(encodeURIComponent(r)).length}function tae(r,e,t){let n=[],a;for(;(a=r.exec(t))!==null;)n.push({data:a[0],index:a.index,mode:e,length:a[0].length});return n}function Q6t(r){let e=tae(eae.NUMERIC,Ba.NUMERIC,r),t=tae(eae.ALPHANUMERIC,Ba.ALPHANUMERIC,r),n,a;return o1e.isKanjiModeEnabled()?(n=tae(eae.BYTE,Ba.BYTE,r),a=tae(eae.KANJI,Ba.KANJI,r)):(n=tae(eae.BYTE_KANJI,Ba.BYTE,r),a=[]),e.concat(t,n,a).sort(function(s,o){return s.index-o.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function EMe(r,e){switch(e){case Ba.NUMERIC:return G6t.getBitsLength(r);case Ba.ALPHANUMERIC:return V6t.getBitsLength(r);case Ba.KANJI:return $6t.getBitsLength(r);case Ba.BYTE:return Y6t.getBitsLength(r)}}function $pn(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function Qpn(r){let e=[];for(let t=0;t{d();p();var u1e=T1(),CMe=e1e(),Zpn=u6t(),Xpn=d6t(),ehn=p6t(),thn=m6t(),PMe=y6t(),SMe=mMe(),rhn=x6t(),c1e=A6t(),nhn=M6t(),ahn=E1(),kMe=J6t();function ihn(r,e){let t=r.size,n=thn.getPositions(e);for(let a=0;a=0&&o<=6&&(c===0||c===6)||c>=0&&c<=6&&(o===0||o===6)||o>=2&&o<=4&&c>=2&&c<=4?r.set(i+o,s+c,!0,!0):r.set(i+o,s+c,!1,!0))}}function shn(r){let e=r.size;for(let t=8;t>o&1)===1,r.set(a,i,s,!0),r.set(i,a,s,!0)}function AMe(r,e,t){let n=r.size,a=nhn.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?r.set(i,8,s,!0):i<8?r.set(i+1,8,s,!0):r.set(n-15+i,8,s,!0),i<8?r.set(8,n-i-1,s,!0):i<9?r.set(8,15-i-1+1,s,!0):r.set(8,15-i-1,s,!0);r.set(n-8,8,1,!0)}function uhn(r,e){let t=r.size,n=-1,a=t-1,i=7,s=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let c=0;c<2;c++)if(!r.isReserved(a,o-c)){let u=!1;s>>i&1)===1),r.set(a,o-c,u),i--,i===-1&&(s++,i=7)}if(a+=n,a<0||t<=a){a-=n,n=-n;break}}}function lhn(r,e,t){let n=new Zpn;t.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),ahn.getCharCountIndicator(c.mode,r)),c.write(n)});let a=u1e.getSymbolTotalCodewords(r),i=SMe.getTotalCodewordsCount(r,e),s=(a-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(s-n.getLengthInBits())/8;for(let c=0;c=7&&Gun(c,e),Vun(c,s),isNaN(n)&&(n=wpe.getBestMask(c,vpe.bind(null,c,t))),wpe.applyMask(n,c),vpe(c,t,n),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:n,segments:a}}uTt.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=gpe.M,a,i;return typeof t<"u"&&(n=gpe.from(t.errorCorrectionLevel,gpe.M),a=EH.from(t.version),i=wpe.from(t.maskPattern),t.toSJISFunc&&CH.setToSJISFunction(t.toSJISFunc)),Jun(e,a,n,i)}});var xpe=x(dw=>{d();p();function dTt(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}dw.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:t,color:{dark:dTt(e.color.dark||"#000000ff"),light:dTt(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};dw.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};dw.getImageWidth=function(e,t){let n=dw.getScale(e,t);return Math.floor((e+t.margin*2)*n)};dw.qrToImageData=function(e,t,n){let a=t.modules.size,i=t.modules.data,s=dw.getScale(a,n),o=Math.floor((a+n.margin*2)*s),c=n.margin*s,u=[n.color.light,n.color.dark];for(let l=0;l=c&&h>=c&&l{d();p();var Tpe=xpe();function Qun(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function Zun(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}IH.render=function(e,t,n){let a=n,i=t;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),t||(i=Zun()),a=Tpe.getOptions(a);let s=Tpe.getImageWidth(e.modules.size,a),o=i.getContext("2d"),c=o.createImageData(s,s);return Tpe.qrToImageData(c.data,e,a),Qun(o,i,s),o.putImageData(c,0,0),i};IH.renderToDataURL=function(e,t,n){let a=n;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),a||(a={});let i=IH.render(e,t,a),s=a.type||"image/png",o=a.rendererOpts||{};return i.toDataURL(s,o.quality)}});var mTt=x(fTt=>{d();p();var Xun=xpe();function hTt(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function Epe(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function eln(r,e,t){let n="",a=0,i=!1,s=0;for(let o=0;o0&&c>0&&r[o-1]||(n+=i?Epe("M",c+t,.5+u+t):Epe("m",a,0),a=0,i=!1),c+1':"",u="',l='viewBox="0 0 '+o+" "+o+'"',f=''+c+u+` -`;return typeof n=="function"&&n(null,f),f}});var kpe=x(IS=>{d();p();var tln=gxt(),Cpe=lTt(),yTt=pTt(),rln=mTt();function Ipe(r,e,t,n,a){let i=[].slice.call(arguments,1),s=i.length,o=typeof i[s-1]=="function";if(!o&&!tln())throw new Error("Callback required as last argument");if(o){if(s<2)throw new Error("Too few arguments provided");s===2?(a=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=n,n=void 0):(a=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,u){try{let l=Cpe.create(t,n);c(r(l,e,n))}catch(l){u(l)}})}try{let c=Cpe.create(t,n);a(null,r(c,e,n))}catch(c){a(c)}}IS.create=Cpe.create;IS.toCanvas=Ipe.bind(null,yTt.render);IS.toDataURL=Ipe.bind(null,yTt.renderToDataURL);IS.toString=Ipe.bind(null,function(r,e,t){return rln.render(r,t)})});var bTt=x((zba,gTt)=>{d();p();gTt.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n{"use strict";d();p();var nln=bTt(),vTt={"text/plain":"Text","text/html":"Url",default:"Text"},aln="Copy to clipboard: #{key}, Enter";function iln(r){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function sln(r,e){var t,n,a,i,s,o,c=!1;e||(e={}),t=e.debug||!1;try{a=nln(),i=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=r,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(l){if(l.stopPropagation(),e.format)if(l.preventDefault(),typeof l.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=vTt[e.format]||vTt.default;window.clipboardData.setData(h,r)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,r);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(l){t&&console.error("unable to copy using execCommand: ",l),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),n=iln("message"in e?e.message:aln),window.prompt(n,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),o&&document.body.removeChild(o),a()}return c}wTt.exports=sln});var t6t={};cr(t6t,{Children:()=>BTt,Component:()=>Dl,Fragment:()=>Dp,PureComponent:()=>kH,StrictMode:()=>JTt,Suspense:()=>kS,SuspenseList:()=>C6,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>jTt,cloneElement:()=>KTt,createContext:()=>ik,createElement:()=>fd,createFactory:()=>zTt,createPortal:()=>qTt,createRef:()=>ak,default:()=>wln,findDOMNode:()=>VTt,flushSync:()=>YTt,forwardRef:()=>NTt,hydrate:()=>HTt,isValidElement:()=>Rpe,lazy:()=>FTt,memo:()=>MTt,render:()=>UTt,startTransition:()=>Mpe,unmountComponentAtNode:()=>GTt,unstable_batchedUpdates:()=>$Tt,useCallback:()=>RW,useContext:()=>MW,useDebugValue:()=>NW,useDeferredValue:()=>QTt,useEffect:()=>zk,useErrorBoundary:()=>Qgt,useId:()=>BW,useImperativeHandle:()=>PW,useInsertionEffect:()=>XTt,useLayoutEffect:()=>O2,useMemo:()=>OT,useReducer:()=>jk,useRef:()=>SW,useState:()=>DT,useSyncExternalStore:()=>e6t,useTransition:()=>ZTt,version:()=>vln});function RTt(r,e){for(var t in e)r[t]=e[t];return r}function Spe(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function Ape(r,e){return r===e&&(r!==0||1/r==1/e)||r!=r&&e!=e}function kH(r){this.props=r}function MTt(r,e){function t(a){var i=this.props.ref,s=i==a.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!s:Spe(this.props,a)}function n(a){return this.shouldComponentUpdate=t,fd(r,a)}return n.displayName="Memo("+(r.displayName||r.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function NTt(r){function e(t){var n=RTt({},t);return delete n.ref,r(n,t.ref||null)}return e.$$typeof=oln,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}function DTt(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=RTt({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return DTt(n,e,t)})),r}function OTt(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return OTt(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function kS(){this.__u=0,this.t=null,this.__b=null}function LTt(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function FTt(r){var e,t,n;function a(i){if(e||(e=r()).then(function(s){t=s.default||s},function(s){n=s}),n)throw n;if(!t)throw e;return fd(t,i)}return a.displayName="Lazy",a.__f=!0,a}function C6(){this.u=null,this.o=null}function uln(r){return this.getChildContext=function(){return r.context},r.children}function lln(r){var e=this,t=r.i;e.componentWillUnmount=function(){A2(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),A2(fd(uln,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function qTt(r,e){var t=fd(lln,{__v:r,i:e});return t.containerInfo=e,t}function UTt(r,e,t){return e.__k==null&&(e.textContent=""),A2(r,e),typeof t=="function"&&t(),r?r.__c:null}function HTt(r,e,t){return Xq(r,e),typeof t=="function"&&t(),r?r.__c:null}function yln(){}function gln(){return this.cancelBubble}function bln(){return this.defaultPrevented}function zTt(r){return fd.bind(null,r)}function Rpe(r){return!!r&&r.$$typeof===WTt}function KTt(r){return Rpe(r)?zie.apply(null,arguments):r}function GTt(r){return!!r.__k&&(A2(null,r),!0)}function VTt(r){return r&&(r.base||r.nodeType===1&&r)||null}function Mpe(r){r()}function QTt(r){return r}function ZTt(){return[!1,Mpe]}function e6t(r,e){var t=e(),n=DT({h:{__:t,v:e}}),a=n[0].h,i=n[1];return O2(function(){a.__=t,a.v=e,Ape(a.__,e())||i({h:a})},[r,t,e]),zk(function(){return Ape(a.__,a.v())||i({h:a}),r(function(){Ape(a.__,a.v())||i({h:a})})},[r]),t}var xTt,oln,TTt,BTt,cln,ETt,CTt,WTt,dln,pln,hln,fln,mln,ITt,Ppe,kTt,ATt,STt,PTt,jTt,vln,$Tt,YTt,JTt,XTt,wln,r6t=ce(()=>{d();p();Sc();Sc();ag();ag();(kH.prototype=new Dl).isPureReactComponent=!0,kH.prototype.shouldComponentUpdate=function(r,e){return Spe(this.props,r)||Spe(this.state,e)};xTt=at.__b;at.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),xTt&&xTt(r)};oln=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;TTt=function(r,e){return r==null?null:Jh(Jh(r).map(e))},BTt={map:TTt,forEach:TTt,count:function(r){return r?Jh(r).length:0},only:function(r){var e=Jh(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:Jh},cln=at.__e;at.__e=function(r,e,t,n){if(r.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),a.__c(r,e)}cln(r,e,t,n)};ETt=at.unmount;at.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),ETt&&ETt(r)},(kS.prototype=new Dl).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=LTt(n.__v),i=!1,s=function(){i||(i=!0,t.__R=null,a?a(o):o())};t.__R=s;var o=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=OTt(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}},c=e.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(s,s)},kS.prototype.componentWillUnmount=function(){this.t=[]},kS.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=DTt(this.__b,t,n.__O=n.__P)}this.__b=null}var a=e.__a&&fd(Dp,null,r.fallback);return a&&(a.__h=null),[fd(Dp,null,e.__a?null:r.children),a]};CTt=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]{d();p();function i6t(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var tl=(ay(),nt(uH)),s6t=i6t(kpe()),_ln=i6t(_Tt()),ze=(r6t(),nt(t6t));function xln(r){s6t.toString(r,{type:"terminal"}).then(console.log)}var Tln=`:root { +`);let s=lhn(e,t,a),o=u1e.getSymbolSize(e),c=new Xpn(o);return ihn(c,e),shn(c),ohn(c,e),AMe(c,t,0),e>=7&&chn(c,e),uhn(c,s),isNaN(n)&&(n=PMe.getBestMask(c,AMe.bind(null,c,t))),PMe.applyMask(n,c),AMe(c,t,n),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:n,segments:a}}Z6t.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=CMe.M,a,i;return typeof t<"u"&&(n=CMe.from(t.errorCorrectionLevel,CMe.M),a=c1e.from(t.version),i=PMe.from(t.maskPattern),t.toSJISFunc&&u1e.setToSJISFunction(t.toSJISFunc)),phn(e,a,n,i)}});var RMe=_(Vw=>{d();p();function eIt(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}Vw.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:t,color:{dark:eIt(e.color.dark||"#000000ff"),light:eIt(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Vw.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};Vw.getImageWidth=function(e,t){let n=Vw.getScale(e,t);return Math.floor((e+t.margin*2)*n)};Vw.qrToImageData=function(e,t,n){let a=t.modules.size,i=t.modules.data,s=Vw.getScale(a,n),o=Math.floor((a+n.margin*2)*s),c=n.margin*s,u=[n.color.light,n.color.dark];for(let l=0;l=c&&h>=c&&l{d();p();var MMe=RMe();function hhn(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function fhn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}l1e.render=function(e,t,n){let a=n,i=t;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),t||(i=fhn()),a=MMe.getOptions(a);let s=MMe.getImageWidth(e.modules.size,a),o=i.getContext("2d"),c=o.createImageData(s,s);return MMe.qrToImageData(c.data,e,a),hhn(o,i,s),o.putImageData(c,0,0),i};l1e.renderToDataURL=function(e,t,n){let a=n;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),a||(a={});let i=l1e.render(e,t,a),s=a.type||"image/png",o=a.rendererOpts||{};return i.toDataURL(s,o.quality)}});var aIt=_(nIt=>{d();p();var mhn=RMe();function rIt(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function NMe(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function yhn(r,e,t){let n="",a=0,i=!1,s=0;for(let o=0;o0&&c>0&&r[o-1]||(n+=i?NMe("M",c+t,.5+u+t):NMe("m",a,0),a=0,i=!1),c+1':"",u="',l='viewBox="0 0 '+o+" "+o+'"',f=''+c+u+` +`;return typeof n=="function"&&n(null,f),f}});var LMe=_(rae=>{d();p();var ghn=s6t(),BMe=X6t(),iIt=tIt(),bhn=aIt();function DMe(r,e,t,n,a){let i=[].slice.call(arguments,1),s=i.length,o=typeof i[s-1]=="function";if(!o&&!ghn())throw new Error("Callback required as last argument");if(o){if(s<2)throw new Error("Too few arguments provided");s===2?(a=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=n,n=void 0):(a=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,u){try{let l=BMe.create(t,n);c(r(l,e,n))}catch(l){u(l)}})}try{let c=BMe.create(t,n);a(null,r(c,e,n))}catch(c){a(c)}}rae.create=BMe.create;rae.toCanvas=DMe.bind(null,iIt.render);rae.toDataURL=DMe.bind(null,iIt.renderToDataURL);rae.toString=DMe.bind(null,function(r,e,t){return bhn.render(r,t)})});var oIt=_((g5a,sIt)=>{d();p();sIt.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n{"use strict";d();p();var vhn=oIt(),cIt={"text/plain":"Text","text/html":"Url",default:"Text"},whn="Copy to clipboard: #{key}, Enter";function xhn(r){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function _hn(r,e){var t,n,a,i,s,o,c=!1;e||(e={}),t=e.debug||!1;try{a=vhn(),i=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=r,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(l){if(l.stopPropagation(),e.format)if(l.preventDefault(),typeof l.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=cIt[e.format]||cIt.default;window.clipboardData.setData(h,r)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,r);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(l){t&&console.error("unable to copy using execCommand: ",l),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),n=xhn("message"in e?e.message:whn),window.prompt(n,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),o&&document.body.removeChild(o),a()}return c}uIt.exports=_hn});var zIt={};cr(zIt,{Children:()=>TIt,Component:()=>Bl,Fragment:()=>Np,PureComponent:()=>d1e,StrictMode:()=>FIt,Suspense:()=>nae,SuspenseList:()=>$$,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>MIt,cloneElement:()=>BIt,createContext:()=>Ate,createElement:()=>pd,createFactory:()=>NIt,createPortal:()=>AIt,createRef:()=>kte,default:()=>Lhn,findDOMNode:()=>LIt,flushSync:()=>qIt,forwardRef:()=>_It,hydrate:()=>RIt,isValidElement:()=>WMe,lazy:()=>kIt,memo:()=>xIt,render:()=>SIt,startTransition:()=>UMe,unmountComponentAtNode:()=>DIt,unstable_batchedUpdates:()=>OIt,useCallback:()=>dye,useContext:()=>pye,useDebugValue:()=>hye,useDeferredValue:()=>WIt,useEffect:()=>hre,useErrorBoundary:()=>Avt,useId:()=>fye,useImperativeHandle:()=>lye,useInsertionEffect:()=>HIt,useLayoutEffect:()=>pw,useMemo:()=>a$,useReducer:()=>pre,useRef:()=>uye,useState:()=>n$,useSyncExternalStore:()=>jIt,useTransition:()=>UIt,version:()=>Dhn});function wIt(r,e){for(var t in e)r[t]=e[t];return r}function qMe(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function OMe(r,e){return r===e&&(r!==0||1/r==1/e)||r!=r&&e!=e}function d1e(r){this.props=r}function xIt(r,e){function t(a){var i=this.props.ref,s=i==a.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!s:qMe(this.props,a)}function n(a){return this.shouldComponentUpdate=t,pd(r,a)}return n.displayName="Memo("+(r.displayName||r.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function _It(r){function e(t){var n=wIt({},t);return delete n.ref,r(n,t.ref||null)}return e.$$typeof=Thn,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}function IIt(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=wIt({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return IIt(n,e,t)})),r}function EIt(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return EIt(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function nae(){this.__u=0,this.t=null,this.__b=null}function CIt(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function kIt(r){var e,t,n;function a(i){if(e||(e=r()).then(function(s){t=s.default||s},function(s){n=s}),n)throw n;if(!t)throw e;return pd(t,i)}return a.displayName="Lazy",a.__f=!0,a}function $$(){this.u=null,this.o=null}function Ehn(r){return this.getChildContext=function(){return r.context},r.children}function Chn(r){var e=this,t=r.i;e.componentWillUnmount=function(){aw(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),aw(pd(Ehn,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function AIt(r,e){var t=pd(Chn,{__v:r,i:e});return t.containerInfo=e,t}function SIt(r,e,t){return e.__k==null&&(e.textContent=""),aw(r,e),typeof t=="function"&&t(),r?r.__c:null}function RIt(r,e,t){return N0e(r,e),typeof t=="function"&&t(),r?r.__c:null}function Mhn(){}function Nhn(){return this.cancelBubble}function Bhn(){return this.defaultPrevented}function NIt(r){return pd.bind(null,r)}function WMe(r){return!!r&&r.$$typeof===PIt}function BIt(r){return WMe(r)?Wke.apply(null,arguments):r}function DIt(r){return!!r.__k&&(aw(null,r),!0)}function LIt(r){return r&&(r.base||r.nodeType===1&&r)||null}function UMe(r){r()}function WIt(r){return r}function UIt(){return[!1,UMe]}function jIt(r,e){var t=e(),n=n$({h:{__:t,v:e}}),a=n[0].h,i=n[1];return pw(function(){a.__=t,a.v=e,OMe(a.__,e())||i({h:a})},[r,t,e]),hre(function(){return OMe(a.__,a.v())||i({h:a}),r(function(){OMe(a.__,a.v())||i({h:a})})},[r]),t}var dIt,Thn,pIt,TIt,Ihn,hIt,fIt,PIt,khn,Ahn,Phn,Shn,Rhn,mIt,FMe,yIt,gIt,bIt,vIt,MIt,Dhn,OIt,qIt,FIt,HIt,Lhn,KIt=ce(()=>{d();p();Pc();Pc();s1();s1();(d1e.prototype=new Bl).isPureReactComponent=!0,d1e.prototype.shouldComponentUpdate=function(r,e){return qMe(this.props,r)||qMe(this.state,e)};dIt=at.__b;at.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),dIt&&dIt(r)};Thn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;pIt=function(r,e){return r==null?null:Yh(Yh(r).map(e))},TIt={map:pIt,forEach:pIt,count:function(r){return r?Yh(r).length:0},only:function(r){var e=Yh(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:Yh},Ihn=at.__e;at.__e=function(r,e,t,n){if(r.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),a.__c(r,e)}Ihn(r,e,t,n)};hIt=at.unmount;at.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),hIt&&hIt(r)},(nae.prototype=new Bl).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=CIt(n.__v),i=!1,s=function(){i||(i=!0,t.__R=null,a?a(o):o())};t.__R=s;var o=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=EIt(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}},c=e.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(s,s)},nae.prototype.componentWillUnmount=function(){this.t=[]},nae.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=IIt(this.__b,t,n.__O=n.__P)}this.__b=null}var a=e.__a&&pd(Np,null,r.fallback);return a&&(a.__h=null),[pd(Np,null,e.__a?null:r.children),a]};fIt=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]{d();p();function YIt(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var Xu=(cy(),nt(Vge)),$It=YIt(LMe()),Ohn=YIt(lIt()),ze=(KIt(),nt(zIt));function qhn(r){$It.toString(r,{type:"terminal"}).then(console.log)}var Fhn=`:root { --animation-duration: 300ms; } @@ -785,20 +795,20 @@ Minimum version required to store current data is: `+i+`. margin: 0; margin-bottom: 8px; } -`,rva=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",nva=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function Eln(r,e){try{var t=r()}catch(n){return e(n)}return t&&t.then?t.then(void 0,e):t}var Cln="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",Iln="WalletConnect",kln=300,Aln="rgb(64, 153, 255)",o6t="walletconnect-wrapper",n6t="walletconnect-style-sheet",c6t="walletconnect-qrcode-modal",Sln="walletconnect-qrcode-close",u6t="walletconnect-qrcode-text",Pln="walletconnect-connect-button";function Rln(r){return ze.createElement("div",{className:"walletconnect-modal__header"},ze.createElement("img",{src:Cln,className:"walletconnect-modal__headerLogo"}),ze.createElement("p",null,Iln),ze.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:r.onClose},ze.createElement("div",{id:Sln,className:"walletconnect-modal__close__icon"},ze.createElement("div",{className:"walletconnect-modal__close__line1"}),ze.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Mln(r){return ze.createElement("a",{className:"walletconnect-connect__button",href:r.href,id:Pln+"-"+r.name,onClick:r.onClick,rel:"noopener noreferrer",style:{backgroundColor:r.color},target:"_blank"},r.name)}var Nln="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function Bln(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick;return ze.createElement("a",{className:"walletconnect-modal__base__row",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),ze.createElement("div",{className:"walletconnect-modal__base__row__right"},ze.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("img",{src:Nln,className:"walletconnect-modal__base__row__right__caret"})))}function Dln(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return ze.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}var Oln=5,Npe=12;function Lln(r){var e=tl.isAndroid(),t=ze.useState(""),n=t[0],a=t[1],i=ze.useState(""),s=i[0],o=i[1],c=ze.useState(1),u=c[0],l=c[1],h=s?r.links.filter(function(W){return W.name.toLowerCase().includes(s.toLowerCase())}):r.links,f=r.errorMessage,m=s||h.length>Oln,y=Math.ceil(h.length/Npe),E=[(u-1)*Npe+1,u*Npe],I=h.length?h.filter(function(W,V){return V+1>=E[0]&&V+1<=E[1]}):[],S=!e&&y>1,L=void 0;function q(W){a(W.target.value),clearTimeout(L),W.target.value?L=setTimeout(function(){o(W.target.value),l(1)},1e3):(a(""),o(""),l(1))}return ze.createElement("div",null,ze.createElement("p",{id:u6t,className:"walletconnect-qrcode__text"},e?r.text.connect_mobile_wallet:r.text.choose_preferred_wallet),!e&&ze.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:q}),ze.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":m&&h.length?"__wrap":"")},e?ze.createElement(Mln,{name:r.text.connect,color:Aln,href:r.uri,onClick:ze.useCallback(function(){tl.saveMobileLinkInfo({name:"Unknown",href:r.uri})},[])}):I.length?I.map(function(W){var V=W.color,K=W.name,H=W.shortName,G=W.logo,J=tl.formatIOSMobile(r.uri,W),F=ze.useCallback(function(){tl.saveMobileLinkInfo({name:K,href:J})},[I]);return m?ze.createElement(Dln,{color:V,href:J,name:H||K,logo:G,onClick:F}):ze.createElement(Bln,{color:V,href:J,name:K,logo:G,onClick:F})}):ze.createElement(ze.Fragment,null,ze.createElement("p",null,f.length?r.errorMessage:!!r.links.length&&!h.length?r.text.no_wallets_found:r.text.loading))),S&&ze.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map(function(W,V){var K=V+1,H=u===K;return ze.createElement("a",{style:{margin:"auto 10px",fontWeight:H?"bold":"normal"},onClick:function(){return l(K)}},K)})))}function Fln(r){var e=!!r.message.trim();return ze.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},r.message)}var qln=function(r){try{var e="";return Promise.resolve(s6t.toString(r,{margin:0,type:"svg"})).then(function(t){return typeof t=="string"&&(e=t.replace("0||ze.useEffect(function(){var P=function(){try{if(e)return Promise.resolve();s(!0);var A=Eln(function(){var v=r.qrcodeModalOptions&&r.qrcodeModalOptions.registryUrl?r.qrcodeModalOptions.registryUrl:tl.getWalletRegistryUrl();return Promise.resolve(fetch(v)).then(function(k){return Promise.resolve(k.json()).then(function(O){var D=O.listings,B=t?"mobile":"desktop",_=tl.getMobileLinkRegistry(tl.formatMobileRegistry(D,B),n);s(!1),u(!0),J(_.length?"":r.text.no_supported_wallets),K(_);var N=_.length===1;N&&(I(tl.formatIOSMobile(r.uri,_[0])),f(!0)),q(N)})})},function(v){s(!1),u(!0),J(r.text.something_went_wrong),console.error(v)});return Promise.resolve(A&&A.then?A.then(function(){}):void 0)}catch(v){return Promise.reject(v)}};P()})};F();var T=t?h:!h;return ze.createElement("div",{id:c6t,className:"walletconnect-qrcode__base animated fadeIn"},ze.createElement("div",{className:"walletconnect-modal__base"},ze.createElement(Rln,{onClose:r.onClose}),L&&h?ze.createElement("div",{className:"walletconnect-modal__single_wallet"},ze.createElement("a",{onClick:function(){return tl.saveMobileLinkInfo({name:V[0].name,href:E})},href:E,rel:"noopener noreferrer",target:"_blank"},r.text.connect_with+" "+(L?V[0].name:"")+" \u203A")):e||i||!i&&V.length?ze.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(T?" right__selected":"")},ze.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),t?ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!1),F()}},r.text.mobile),ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode)):ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode),ze.createElement("a",{onClick:function(){return f(!1),F()}},r.text.desktop))):null,ze.createElement("div",null,h||!e&&!i&&!V.length?ze.createElement(Wln,Object.assign({},m)):ze.createElement(Lln,Object.assign({},m,{links:V,errorMessage:G})))))}var Hln={choose_preferred_wallet:"W\xE4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},jln={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},zln={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},Kln={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},Gln={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},Vln={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},$ln={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},Yln={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},a6t={de:Hln,en:jln,es:zln,fr:Kln,ko:Gln,pt:Vln,zh:$ln,fa:Yln};function Jln(){var r=tl.getDocumentOrThrow(),e=r.getElementById(n6t);e&&r.head.removeChild(e);var t=r.createElement("style");t.setAttribute("id",n6t),t.innerText=Tln,r.head.appendChild(t)}function Qln(){var r=tl.getDocumentOrThrow(),e=r.createElement("div");return e.setAttribute("id",o6t),r.body.appendChild(e),e}function l6t(){var r=tl.getDocumentOrThrow(),e=r.getElementById(c6t);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=r.getElementById(o6t);t&&r.body.removeChild(t)},kln))}function Zln(r){return function(){l6t(),r&&r()}}function Xln(){var r=tl.getNavigatorOrThrow().language.split("-")[0]||"en";return a6t[r]||a6t.en}function edn(r,e,t){Jln();var n=Qln();ze.render(ze.createElement(Uln,{text:Xln(),uri:r,onClose:Zln(e),qrcodeModalOptions:t}),n)}function tdn(){l6t()}var d6t=function(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"};function rdn(r,e,t){console.log(r),d6t()?xln(r):edn(r,e,t)}function ndn(){d6t()||tdn()}var adn={open:rdn,close:ndn};p6t.exports=adn});var m6t,Dpe,idn,sdn,h6t,f6t,AH,y6t,Ope=ce(()=>{d();p();m6t=un(Ou()),Dpe=un(tn());v6();ty();idn={Accept:"application/json","Content-Type":"application/json"},sdn="POST",h6t={headers:idn,method:sdn},f6t=10,AH=class{constructor(e){if(this.url=e,this.events=new m6t.EventEmitter,this.isAvailable=!1,this.registering=!1,!qU(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e,t){this.isAvailable||await this.register();try{let n=Mm(e),i=await(await(0,Dpe.default)(this.url,Object.assign(Object.assign({},h6t),{body:n}))).json();this.onPayload({data:i})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!qU(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{let t=Mm({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,Dpe.default)(e,Object.assign(Object.assign({},h6t),{body:t})),this.onOpen()}catch(t){let n=this.parseError(t);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?ny(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=sS(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return iS(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>f6t&&this.events.setMaxListeners(f6t)}},y6t=AH});var SH={};cr(SH,{HttpConnection:()=>AH,default:()=>odn});var odn,PH=ce(()=>{d();p();Ope();Ope();odn=y6t});var g6t,RH,b6t,Lpe=ce(()=>{d();p();g6t=un(Ou());ty();RH=class extends h6{constructor(e){super(e),this.events=new g6t.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(kle(e.method,e.params||[]),t)}async requestStrict(e,t){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(i){a(i)}this.events.on(`${e.id}`,i=>{UU(i)?a(i.error):n(i.result)});try{await this.connection.send(e,t)}catch(i){a(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Ple(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.hasRegisteredEventListeners=!0)}},b6t=RH});var AS={};cr(AS,{JsonRpcProvider:()=>RH,default:()=>cdn});var cdn,SS=ce(()=>{d();p();Lpe();Lpe();cdn=b6t});var T6t=x(x6t=>{"use strict";d();p();var xd=ec(),udn=(IU(),nt(xle)),v6t=(ty(),nt(io)),ldn=(npe(),nt(rpe)),ddn=Bpe(),pdn=Qe(),hdn=(PH(),nt(SH)),w6t=(SS(),nt(AS)),fdn=(nw(),nt(Ule)),mdn=(ay(),nt(uH));function Wpe(r){return r&&r.__esModule?r:{default:r}}var ydn=Wpe(ldn),gdn=Wpe(ddn),_6t=Wpe(pdn),Fpe=class extends udn.IJsonRpcConnection{constructor(e){super(),xd._defineProperty(this,"events",new _6t.default),xd._defineProperty(this,"accounts",[]),xd._defineProperty(this,"chainId",1),xd._defineProperty(this,"pending",!1),xd._defineProperty(this,"wc",void 0),xd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),xd._defineProperty(this,"qrcode",!0),xd._defineProperty(this,"qrcodeModalOptions",void 0),xd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",v6t.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?gdn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new ydn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?v6t.formatJsonRpcError(e.id,e.error.message):e}},bdn=Fpe,qpe=class{constructor(e){xd._defineProperty(this,"events",new _6t.default),xd._defineProperty(this,"rpc",void 0),xd._defineProperty(this,"signer",void 0),xd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new w6t.JsonRpcProvider(new bdn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(fdn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{console.log("legacy.onDisplayUri",e,t),this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{console.log("legacy.call_request_sent",e,t),this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=mdn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new w6t.JsonRpcProvider(new hdn.HttpConnection(t))}};x6t.default=qpe});var k6t=x(zpe=>{"use strict";d();p();Object.defineProperty(zpe,"__esModule",{value:!0});var MH=bm(),Oa=vm(),nf=ec(),I6=je(),PS=eT(),E6t=tT();Yu();vt();Qe();var Upe="last-used-chain-id",Hpe="last-session",Os=new WeakMap,Cg=new WeakMap,C6t=new WeakSet,I6t=new WeakSet,jpe=class extends PS.Connector{constructor(e){super(e),MH._classPrivateMethodInitSpec(this,I6t),MH._classPrivateMethodInitSpec(this,C6t),nf._defineProperty(this,"id","walletConnectV1"),nf._defineProperty(this,"name","WalletConnectV1"),nf._defineProperty(this,"ready",!0),Oa._classPrivateFieldInitSpec(this,Os,{writable:!0,value:void 0}),Oa._classPrivateFieldInitSpec(this,Cg,{writable:!0,value:void 0}),nf._defineProperty(this,"walletName",void 0),nf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),nf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),nf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),nf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),nf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:I6.utils.getAddress(t[0])})}),nf._defineProperty(this,"onChainChanged",t=>{let n=E6t.normalizeChainId(t),a=this.isChainUnsupported(n);Oa._classPrivateFieldGet(this,Cg).setItem(Upe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),nf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,Oa._classPrivateFieldGet(this,Cg).removeItem(Upe),Oa._classPrivateFieldGet(this,Cg).removeItem(Hpe),MH._classPrivateMethodGet(this,I6t,wdn).call(this),this.emit("disconnect")}),Oa._classPrivateFieldSet(this,Cg,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await Oa._classPrivateFieldGet(this,Cg).getItem(Upe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=I6.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return MH._classPrivateMethodGet(this,C6t,vdn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new I6.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new PS.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return I6.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return E6t.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Oa._classPrivateFieldGet(this,Os)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return T6t()})).default,i=await Oa._classPrivateFieldGet(this,Cg).getItem(Hpe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,Oa._classPrivateFieldSet(this,Os,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return Oa._classPrivateFieldGet(this,Os)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new I6.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=I6.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new PS.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new PS.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new PS.SwitchChainError(a)}}async setupListeners(){!Oa._classPrivateFieldGet(this,Os)||(Oa._classPrivateFieldGet(this,Os).on("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Os).on("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Os).on("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Os).on("message",this.onMessage),Oa._classPrivateFieldGet(this,Os).on("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Os).on("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Os).on("call_request_sent",this.onRequestSent))}};async function vdn(){let r=Oa._classPrivateFieldGet(this,Os)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);Oa._classPrivateFieldGet(this,Cg).setItem(Hpe,e)}function wdn(){!Oa._classPrivateFieldGet(this,Os)||(Oa._classPrivateFieldGet(this,Os).removeListener("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Os).removeListener("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Os).removeListener("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Os).removeListener("message",this.onMessage),Oa._classPrivateFieldGet(this,Os).removeListener("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Os).removeListener("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Os).removeListener("call_request_sent",this.onRequestSent))}zpe.WalletConnectV1Connector=jpe});var P6t=x(Kpe=>{"use strict";d();p();Object.defineProperty(Kpe,"__esModule",{value:!0});var k6=ec(),A6t=Xx(),S6t=Qx();bm();Yu();vt();G1();je();Qe();var pw=class extends A6t.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(pw.id,e),k6._defineProperty(this,"connector",void 0),k6._defineProperty(this,"connectorStorage",void 0),k6._defineProperty(this,"isInjected",void 0),k6._defineProperty(this,"walletConnectConnector",void 0),this.connectorStorage=e.connectorStorage||A6t.createAsyncLocalStorage("connector"),this.isInjected=e.isInjected||!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return l5t()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new S6t.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return k6t()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[]},qrcode:!1}});this.walletConnectConnector=t,this.connector=new S6t.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};k6._defineProperty(pw,"meta",{name:"Metamask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});k6._defineProperty(pw,"id","metamask");Kpe.MetaMask=pw});var R6t=x(Ype=>{"use strict";d();p();Object.defineProperty(Ype,"__esModule",{value:!0});var Gpe=Sm(),_dn=ac(),NH=o6(),xdn=hle(),Tdn=je(),Edn=ule();el();vt();Qe();c6();var Vpe=new WeakMap,$pe=class extends xdn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&Edn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),_dn._defineProperty(this,"id","metaMask"),Gpe._classPrivateFieldInitSpec(this,Vpe,{writable:!0,value:void 0}),Gpe._classPrivateFieldSet(this,Vpe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new NH.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(Gpe._classPrivateFieldGet(this,Vpe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new NH.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=Tdn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new NH.UserRejectedRequestError(t):t.code===-32002?new NH.ResourceUnavailableError(t):t}}};Ype.MetaMaskConnector=$pe});var O6t=x(D6t=>{"use strict";d();p();var Td=ac(),Cdn=(IU(),nt(xle)),M6t=(ty(),nt(io)),Idn=(npe(),nt(rpe)),kdn=Bpe(),Adn=Qe(),Sdn=(PH(),nt(SH)),N6t=(SS(),nt(AS)),Pdn=(nw(),nt(Ule)),Rdn=(ay(),nt(uH));function Zpe(r){return r&&r.__esModule?r:{default:r}}var Mdn=Zpe(Idn),Ndn=Zpe(kdn),B6t=Zpe(Adn),Jpe=class extends Cdn.IJsonRpcConnection{constructor(e){super(),Td._defineProperty(this,"events",new B6t.default),Td._defineProperty(this,"accounts",[]),Td._defineProperty(this,"chainId",1),Td._defineProperty(this,"pending",!1),Td._defineProperty(this,"wc",void 0),Td._defineProperty(this,"bridge","https://bridge.walletconnect.org"),Td._defineProperty(this,"qrcode",!0),Td._defineProperty(this,"qrcodeModalOptions",void 0),Td._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",M6t.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?Ndn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new Mdn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?M6t.formatJsonRpcError(e.id,e.error.message):e}},Bdn=Jpe,Qpe=class{constructor(e){Td._defineProperty(this,"events",new B6t.default),Td._defineProperty(this,"rpc",void 0),Td._defineProperty(this,"signer",void 0),Td._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new N6t.JsonRpcProvider(new Bdn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(Pdn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{console.log("legacy.onDisplayUri",e,t),this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{console.log("legacy.call_request_sent",e,t),this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=Rdn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new N6t.JsonRpcProvider(new Sdn.HttpConnection(t))}};D6t.default=Qpe});var W6t=x(rhe=>{"use strict";d();p();Object.defineProperty(rhe,"__esModule",{value:!0});var BH=Am(),La=Sm(),af=ac(),A6=je(),RS=o6(),L6t=c6();el();vt();Qe();var Xpe="last-used-chain-id",ehe="last-session",Ls=new WeakMap,Ig=new WeakMap,F6t=new WeakSet,q6t=new WeakSet,the=class extends RS.Connector{constructor(e){super(e),BH._classPrivateMethodInitSpec(this,q6t),BH._classPrivateMethodInitSpec(this,F6t),af._defineProperty(this,"id","walletConnectV1"),af._defineProperty(this,"name","WalletConnectV1"),af._defineProperty(this,"ready",!0),La._classPrivateFieldInitSpec(this,Ls,{writable:!0,value:void 0}),La._classPrivateFieldInitSpec(this,Ig,{writable:!0,value:void 0}),af._defineProperty(this,"walletName",void 0),af._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),af._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),af._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),af._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),af._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:A6.utils.getAddress(t[0])})}),af._defineProperty(this,"onChainChanged",t=>{let n=L6t.normalizeChainId(t),a=this.isChainUnsupported(n);La._classPrivateFieldGet(this,Ig).setItem(Xpe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),af._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,La._classPrivateFieldGet(this,Ig).removeItem(Xpe),La._classPrivateFieldGet(this,Ig).removeItem(ehe),BH._classPrivateMethodGet(this,q6t,Odn).call(this),this.emit("disconnect")}),La._classPrivateFieldSet(this,Ig,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await La._classPrivateFieldGet(this,Ig).getItem(Xpe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=A6.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return BH._classPrivateMethodGet(this,F6t,Ddn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new A6.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new RS.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return A6.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return L6t.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!La._classPrivateFieldGet(this,Ls)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return O6t()})).default,i=await La._classPrivateFieldGet(this,Ig).getItem(ehe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,La._classPrivateFieldSet(this,Ls,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return La._classPrivateFieldGet(this,Ls)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new A6.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=A6.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new RS.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new RS.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new RS.SwitchChainError(a)}}async setupListeners(){!La._classPrivateFieldGet(this,Ls)||(La._classPrivateFieldGet(this,Ls).on("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ls).on("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ls).on("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ls).on("message",this.onMessage),La._classPrivateFieldGet(this,Ls).on("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ls).on("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ls).on("call_request_sent",this.onRequestSent))}};async function Ddn(){let r=La._classPrivateFieldGet(this,Ls)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);La._classPrivateFieldGet(this,Ig).setItem(ehe,e)}function Odn(){!La._classPrivateFieldGet(this,Ls)||(La._classPrivateFieldGet(this,Ls).removeListener("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ls).removeListener("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ls).removeListener("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ls).removeListener("message",this.onMessage),La._classPrivateFieldGet(this,Ls).removeListener("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ls).removeListener("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ls).removeListener("call_request_sent",this.onRequestSent))}rhe.WalletConnectV1Connector=the});var j6t=x(nhe=>{"use strict";d();p();Object.defineProperty(nhe,"__esModule",{value:!0});var S6=ac(),U6t=s6(),H6t=a6();Am();el();vt();lg();je();Qe();var hw=class extends U6t.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(hw.id,e),S6._defineProperty(this,"connector",void 0),S6._defineProperty(this,"connectorStorage",void 0),S6._defineProperty(this,"isInjected",void 0),S6._defineProperty(this,"walletConnectConnector",void 0),this.connectorStorage=e.connectorStorage||U6t.createAsyncLocalStorage("connector"),this.isInjected=e.isInjected||!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return R6t()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new H6t.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return W6t()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[]},qrcode:!1}});this.walletConnectConnector=t,this.connector=new H6t.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};S6._defineProperty(hw,"meta",{name:"Metamask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});S6._defineProperty(hw,"id","metamask");nhe.MetaMask=hw});var z6t=x((Kva,ahe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?ahe.exports=P6t():ahe.exports=j6t()});var K6t=x(Ed=>{"use strict";d();p();Object.defineProperty(Ed,"__esModule",{value:!0});function Ldn(r,e){var t=r>>>16&65535,n=r&65535,a=e>>>16&65535,i=e&65535;return n*i+(t*i+n*a<<16>>>0)|0}Ed.mul=Math.imul||Ldn;function Fdn(r,e){return r+e|0}Ed.add=Fdn;function qdn(r,e){return r-e|0}Ed.sub=qdn;function Wdn(r,e){return r<>>32-e}Ed.rotl=Wdn;function Udn(r,e){return r<<32-e|r>>>e}Ed.rotr=Udn;function Hdn(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r}Ed.isInteger=Number.isInteger||Hdn;Ed.MAX_SAFE_INTEGER=9007199254740991;Ed.isSafeInteger=function(r){return Ed.isInteger(r)&&r>=-Ed.MAX_SAFE_INTEGER&&r<=Ed.MAX_SAFE_INTEGER}});var P6=x(Nr=>{"use strict";d();p();Object.defineProperty(Nr,"__esModule",{value:!0});var G6t=K6t();function jdn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])<<16>>16}Nr.readInt16BE=jdn;function zdn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])>>>0}Nr.readUint16BE=zdn;function Kdn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])<<16>>16}Nr.readInt16LE=Kdn;function Gdn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])>>>0}Nr.readUint16LE=Gdn;function V6t(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>8,e[t+1]=r>>>0,e}Nr.writeUint16BE=V6t;Nr.writeInt16BE=V6t;function $6t(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e}Nr.writeUint16LE=$6t;Nr.writeInt16LE=$6t;function ihe(r,e){return e===void 0&&(e=0),r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]}Nr.readInt32BE=ihe;function she(r,e){return e===void 0&&(e=0),(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}Nr.readUint32BE=she;function ohe(r,e){return e===void 0&&(e=0),r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]}Nr.readInt32LE=ohe;function che(r,e){return e===void 0&&(e=0),(r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e])>>>0}Nr.readUint32LE=che;function DH(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>24,e[t+1]=r>>>16,e[t+2]=r>>>8,e[t+3]=r>>>0,e}Nr.writeUint32BE=DH;Nr.writeInt32BE=DH;function OH(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e[t+2]=r>>>16,e[t+3]=r>>>24,e}Nr.writeUint32LE=OH;Nr.writeInt32LE=OH;function Vdn(r,e){e===void 0&&(e=0);var t=ihe(r,e),n=ihe(r,e+4);return t*4294967296+n-(n>>31)*4294967296}Nr.readInt64BE=Vdn;function $dn(r,e){e===void 0&&(e=0);var t=she(r,e),n=she(r,e+4);return t*4294967296+n}Nr.readUint64BE=$dn;function Ydn(r,e){e===void 0&&(e=0);var t=ohe(r,e),n=ohe(r,e+4);return n*4294967296+t-(t>>31)*4294967296}Nr.readInt64LE=Ydn;function Jdn(r,e){e===void 0&&(e=0);var t=che(r,e),n=che(r,e+4);return n*4294967296+t}Nr.readUint64LE=Jdn;function Y6t(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),DH(r/4294967296>>>0,e,t),DH(r>>>0,e,t+4),e}Nr.writeUint64BE=Y6t;Nr.writeInt64BE=Y6t;function J6t(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),OH(r>>>0,e,t),OH(r/4294967296>>>0,e,t+4),e}Nr.writeUint64LE=J6t;Nr.writeInt64LE=J6t;function Qdn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,a=1,i=r/8+t-1;i>=t;i--)n+=e[i]*a,a*=256;return n}Nr.readUintBE=Qdn;function Zdn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,a=1,i=t;i=n;i--)t[i]=e/a&255,a*=256;return t}Nr.writeUintBE=Xdn;function epn(r,e,t,n){if(t===void 0&&(t=new Uint8Array(r/8)),n===void 0&&(n=0),r%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!G6t.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,i=n;i{"use strict";d();p();Object.defineProperty(uhe,"__esModule",{value:!0});function upn(r){for(var e=0;e{"use strict";d();p();Object.defineProperty(LH,"__esModule",{value:!0});var Ru=P6(),lhe=Hp(),lpn=20;function dpn(r,e,t){for(var n=1634760805,a=857760878,i=2036477234,s=1797285236,o=t[3]<<24|t[2]<<16|t[1]<<8|t[0],c=t[7]<<24|t[6]<<16|t[5]<<8|t[4],u=t[11]<<24|t[10]<<16|t[9]<<8|t[8],l=t[15]<<24|t[14]<<16|t[13]<<8|t[12],h=t[19]<<24|t[18]<<16|t[17]<<8|t[16],f=t[23]<<24|t[22]<<16|t[21]<<8|t[20],m=t[27]<<24|t[26]<<16|t[25]<<8|t[24],y=t[31]<<24|t[30]<<16|t[29]<<8|t[28],E=e[3]<<24|e[2]<<16|e[1]<<8|e[0],I=e[7]<<24|e[6]<<16|e[5]<<8|e[4],S=e[11]<<24|e[10]<<16|e[9]<<8|e[8],L=e[15]<<24|e[14]<<16|e[13]<<8|e[12],q=n,W=a,V=i,K=s,H=o,G=c,J=u,F=l,T=h,P=f,A=m,v=y,k=E,O=I,D=S,B=L,_=0;_>>32-16|k<<16,T=T+k|0,H^=T,H=H>>>32-12|H<<12,W=W+G|0,O^=W,O=O>>>32-16|O<<16,P=P+O|0,G^=P,G=G>>>32-12|G<<12,V=V+J|0,D^=V,D=D>>>32-16|D<<16,A=A+D|0,J^=A,J=J>>>32-12|J<<12,K=K+F|0,B^=K,B=B>>>32-16|B<<16,v=v+B|0,F^=v,F=F>>>32-12|F<<12,V=V+J|0,D^=V,D=D>>>32-8|D<<8,A=A+D|0,J^=A,J=J>>>32-7|J<<7,K=K+F|0,B^=K,B=B>>>32-8|B<<8,v=v+B|0,F^=v,F=F>>>32-7|F<<7,W=W+G|0,O^=W,O=O>>>32-8|O<<8,P=P+O|0,G^=P,G=G>>>32-7|G<<7,q=q+H|0,k^=q,k=k>>>32-8|k<<8,T=T+k|0,H^=T,H=H>>>32-7|H<<7,q=q+G|0,B^=q,B=B>>>32-16|B<<16,A=A+B|0,G^=A,G=G>>>32-12|G<<12,W=W+J|0,k^=W,k=k>>>32-16|k<<16,v=v+k|0,J^=v,J=J>>>32-12|J<<12,V=V+F|0,O^=V,O=O>>>32-16|O<<16,T=T+O|0,F^=T,F=F>>>32-12|F<<12,K=K+H|0,D^=K,D=D>>>32-16|D<<16,P=P+D|0,H^=P,H=H>>>32-12|H<<12,V=V+F|0,O^=V,O=O>>>32-8|O<<8,T=T+O|0,F^=T,F=F>>>32-7|F<<7,K=K+H|0,D^=K,D=D>>>32-8|D<<8,P=P+D|0,H^=P,H=H>>>32-7|H<<7,W=W+J|0,k^=W,k=k>>>32-8|k<<8,v=v+k|0,J^=v,J=J>>>32-7|J<<7,q=q+G|0,B^=q,B=B>>>32-8|B<<8,A=A+B|0,G^=A,G=G>>>32-7|G<<7;Ru.writeUint32LE(q+n|0,r,0),Ru.writeUint32LE(W+a|0,r,4),Ru.writeUint32LE(V+i|0,r,8),Ru.writeUint32LE(K+s|0,r,12),Ru.writeUint32LE(H+o|0,r,16),Ru.writeUint32LE(G+c|0,r,20),Ru.writeUint32LE(J+u|0,r,24),Ru.writeUint32LE(F+l|0,r,28),Ru.writeUint32LE(T+h|0,r,32),Ru.writeUint32LE(P+f|0,r,36),Ru.writeUint32LE(A+m|0,r,40),Ru.writeUint32LE(v+y|0,r,44),Ru.writeUint32LE(k+E|0,r,48),Ru.writeUint32LE(O+I|0,r,52),Ru.writeUint32LE(D+S|0,r,56),Ru.writeUint32LE(B+L|0,r,60)}function Q6t(r,e,t,n,a){if(a===void 0&&(a=0),r.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}});var FH=x(R6=>{"use strict";d();p();Object.defineProperty(R6,"__esModule",{value:!0});function fpn(r,e,t){return~(r-1)&e|r-1&t}R6.select=fpn;function mpn(r,e){return(r|0)-(e|0)-1>>>31&1}R6.lessOrEqual=mpn;function X6t(r,e){if(r.length!==e.length)return 0;for(var t=0,n=0;n>>8}R6.compare=X6t;function ypn(r,e){return r.length===0||e.length===0?!1:X6t(r,e)!==0}R6.equal=ypn});var tEt=x(sy=>{"use strict";d();p();Object.defineProperty(sy,"__esModule",{value:!0});var gpn=FH(),qH=Hp();sy.DIGEST_LENGTH=16;var eEt=function(){function r(e){this.digestLength=sy.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var t=e[0]|e[1]<<8;this._r[0]=t&8191;var n=e[2]|e[3]<<8;this._r[1]=(t>>>13|n<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(n>>>10|a<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(a>>>7|i<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(i>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(o>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return r.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],c=this._h[3],u=this._h[4],l=this._h[5],h=this._h[6],f=this._h[7],m=this._h[8],y=this._h[9],E=this._r[0],I=this._r[1],S=this._r[2],L=this._r[3],q=this._r[4],W=this._r[5],V=this._r[6],K=this._r[7],H=this._r[8],G=this._r[9];n>=16;){var J=e[t+0]|e[t+1]<<8;i+=J&8191;var F=e[t+2]|e[t+3]<<8;s+=(J>>>13|F<<3)&8191;var T=e[t+4]|e[t+5]<<8;o+=(F>>>10|T<<6)&8191;var P=e[t+6]|e[t+7]<<8;c+=(T>>>7|P<<9)&8191;var A=e[t+8]|e[t+9]<<8;u+=(P>>>4|A<<12)&8191,l+=A>>>1&8191;var v=e[t+10]|e[t+11]<<8;h+=(A>>>14|v<<2)&8191;var k=e[t+12]|e[t+13]<<8;f+=(v>>>11|k<<5)&8191;var O=e[t+14]|e[t+15]<<8;m+=(k>>>8|O<<8)&8191,y+=O>>>5|a;var D=0,B=D;B+=i*E,B+=s*(5*G),B+=o*(5*H),B+=c*(5*K),B+=u*(5*V),D=B>>>13,B&=8191,B+=l*(5*W),B+=h*(5*q),B+=f*(5*L),B+=m*(5*S),B+=y*(5*I),D+=B>>>13,B&=8191;var _=D;_+=i*I,_+=s*E,_+=o*(5*G),_+=c*(5*H),_+=u*(5*K),D=_>>>13,_&=8191,_+=l*(5*V),_+=h*(5*W),_+=f*(5*q),_+=m*(5*L),_+=y*(5*S),D+=_>>>13,_&=8191;var N=D;N+=i*S,N+=s*I,N+=o*E,N+=c*(5*G),N+=u*(5*H),D=N>>>13,N&=8191,N+=l*(5*K),N+=h*(5*V),N+=f*(5*W),N+=m*(5*q),N+=y*(5*L),D+=N>>>13,N&=8191;var U=D;U+=i*L,U+=s*S,U+=o*I,U+=c*E,U+=u*(5*G),D=U>>>13,U&=8191,U+=l*(5*H),U+=h*(5*K),U+=f*(5*V),U+=m*(5*W),U+=y*(5*q),D+=U>>>13,U&=8191;var C=D;C+=i*q,C+=s*L,C+=o*S,C+=c*I,C+=u*E,D=C>>>13,C&=8191,C+=l*(5*G),C+=h*(5*H),C+=f*(5*K),C+=m*(5*V),C+=y*(5*W),D+=C>>>13,C&=8191;var z=D;z+=i*W,z+=s*q,z+=o*L,z+=c*S,z+=u*I,D=z>>>13,z&=8191,z+=l*E,z+=h*(5*G),z+=f*(5*H),z+=m*(5*K),z+=y*(5*V),D+=z>>>13,z&=8191;var ee=D;ee+=i*V,ee+=s*W,ee+=o*q,ee+=c*L,ee+=u*S,D=ee>>>13,ee&=8191,ee+=l*I,ee+=h*E,ee+=f*(5*G),ee+=m*(5*H),ee+=y*(5*K),D+=ee>>>13,ee&=8191;var j=D;j+=i*K,j+=s*V,j+=o*W,j+=c*q,j+=u*L,D=j>>>13,j&=8191,j+=l*S,j+=h*I,j+=f*E,j+=m*(5*G),j+=y*(5*H),D+=j>>>13,j&=8191;var X=D;X+=i*H,X+=s*K,X+=o*V,X+=c*W,X+=u*q,D=X>>>13,X&=8191,X+=l*L,X+=h*S,X+=f*I,X+=m*E,X+=y*(5*G),D+=X>>>13,X&=8191;var ie=D;ie+=i*G,ie+=s*H,ie+=o*K,ie+=c*V,ie+=u*W,D=ie>>>13,ie&=8191,ie+=l*q,ie+=h*L,ie+=f*S,ie+=m*I,ie+=y*E,D+=ie>>>13,ie&=8191,D=(D<<2)+D|0,D=D+B|0,B=D&8191,D=D>>>13,_+=D,i=B,s=_,o=N,c=U,u=C,l=z,h=ee,f=j,m=X,y=ie,t+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=c,this._h[4]=u,this._h[5]=l,this._h[6]=h,this._h[7]=f,this._h[8]=m,this._h[9]=y},r.prototype.finish=function(e,t){t===void 0&&(t=0);var n=new Uint16Array(10),a,i,s,o;if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(a=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=a,a=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=a*5,a=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=a,a=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=a,n[0]=this._h[0]+5,a=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this._h[o]+a,a=n[o]>>>13,n[o]&=8191;for(n[9]-=1<<13,i=(a^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this._h[o]=this._h[o]&i|n[o];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,o=1;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=s&65535;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},r.prototype.update=function(e){var t=0,n=e.length,a;if(this._leftover){a=16-this._leftover,a>n&&(a=n);for(var i=0;i=16&&(a=n-n%16,this._blocks(e,t,a),t+=a,n-=a),n){for(var i=0;i{"use strict";d();p();Object.defineProperty(oy,"__esModule",{value:!0});var WH=Z6t(),wpn=tEt(),MS=Hp(),rEt=P6(),_pn=FH();oy.KEY_LENGTH=32;oy.NONCE_LENGTH=12;oy.TAG_LENGTH=16;var nEt=new Uint8Array(16),xpn=function(){function r(e){if(this.nonceLength=oy.NONCE_LENGTH,this.tagLength=oy.TAG_LENGTH,e.length!==oy.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return r.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(e,i.length-e.length);var s=new Uint8Array(32);WH.stream(this._key,i,s,4);var o=t.length+this.tagLength,c;if(a){if(a.length!==o)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(o);return WH.streamXOR(this._key,i,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),MS.wipe(i),c},r.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&i.update(nEt.subarray(a.length%16))),i.update(n),n.length%16>0&&i.update(nEt.subarray(n.length%16));var s=new Uint8Array(8);a&&rEt.writeUint64LE(a.length,s),i.update(s),rEt.writeUint64LE(n.length,s),i.update(s);for(var o=i.digest(),c=0;c{"use strict";d();p();Object.defineProperty(dhe,"__esModule",{value:!0});function Tpn(r){return typeof r.saveState<"u"&&typeof r.restoreState<"u"&&typeof r.cleanSavedState<"u"}dhe.isSerializableHash=Tpn});var oEt=x(NS=>{"use strict";d();p();Object.defineProperty(NS,"__esModule",{value:!0});var Bm=iEt(),Epn=FH(),Cpn=Hp(),sEt=function(){function r(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";d();p();Object.defineProperty(phe,"__esModule",{value:!0});var cEt=oEt(),uEt=Hp(),kpn=function(){function r(e,t,n,a){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=cEt.hmac(this._hash,n,t);this._hmac=new cEt.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return r.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},r.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();Object.defineProperty(UH,"__esModule",{value:!0});UH.BrowserRandomSource=void 0;var dEt=65536,hhe=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let n=0;n{"use strict";d();p();Object.defineProperty(HH,"__esModule",{value:!0});HH.NodeRandomSource=void 0;var Apn=Hp(),fhe=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof o1e<"u"){let e=M$();e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(e);for(let a=0;a{"use strict";d();p();Object.defineProperty(jH,"__esModule",{value:!0});jH.SystemRandomSource=void 0;var Spn=pEt(),Ppn=hEt(),mhe=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Spn.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new Ppn.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}};jH.SystemRandomSource=mhe});var BS=x(Mu=>{"use strict";d();p();Object.defineProperty(Mu,"__esModule",{value:!0});Mu.randomStringForEntropy=Mu.randomString=Mu.randomUint32=Mu.randomBytes=Mu.defaultRandomSource=void 0;var Rpn=fEt(),Mpn=P6(),mEt=Hp();Mu.defaultRandomSource=new Rpn.SystemRandomSource;function yhe(r,e=Mu.defaultRandomSource){return e.randomBytes(r)}Mu.randomBytes=yhe;function Npn(r=Mu.defaultRandomSource){let e=yhe(4,r),t=(0,Mpn.readUint32LE)(e);return(0,mEt.wipe)(e),t}Mu.randomUint32=Npn;var yEt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function gEt(r,e=yEt,t=Mu.defaultRandomSource){if(e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");let n="",a=e.length,i=256-256%a;for(;r>0;){let s=yhe(Math.ceil(r*256/i),t);for(let o=0;o0;o++){let c=s[o];c{"use strict";d();p();Object.defineProperty(kg,"__esModule",{value:!0});var KH=P6(),zH=Hp();kg.DIGEST_LENGTH=32;kg.BLOCK_SIZE=64;var bEt=function(){function r(){this.digestLength=kg.DIGEST_LENGTH,this.blockSize=kg.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){zH.wipe(this._buffer),zH.wipe(this._temp),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(ghe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=ghe(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){zH.wipe(e.state),e.buffer&&zH.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();kg.SHA256=bEt;var Dpn=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function ghe(r,e,t,n,a){for(;a>=64;){for(var i=e[0],s=e[1],o=e[2],c=e[3],u=e[4],l=e[5],h=e[6],f=e[7],m=0;m<16;m++){var y=n+m*4;r[m]=KH.readUint32BE(t,y)}for(var m=16;m<64;m++){var E=r[m-2],I=(E>>>17|E<<32-17)^(E>>>19|E<<32-19)^E>>>10;E=r[m-15];var S=(E>>>7|E<<32-7)^(E>>>18|E<<32-18)^E>>>3;r[m]=(I+r[m-7]|0)+(S+r[m-16]|0)}for(var m=0;m<64;m++){var I=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&h)|0)+(f+(Dpn[m]+r[m]|0)|0)|0,S=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&o^s&o)|0;f=h,h=l,l=u,u=c+I|0,c=o,o=s,s=i,i=I+S|0}e[0]+=i,e[1]+=s,e[2]+=o,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=h,e[7]+=f,n+=64,a-=64}return n}function Opn(r){var e=new bEt;e.update(r);var t=e.digest();return e.clean(),t}kg.hash=Opn});var TEt=x(vs=>{"use strict";d();p();Object.defineProperty(vs,"__esModule",{value:!0});vs.sharedKey=vs.generateKeyPair=vs.generateKeyPairFromSeed=vs.scalarMultBase=vs.scalarMult=vs.SHARED_KEY_LENGTH=vs.SECRET_KEY_LENGTH=vs.PUBLIC_KEY_LENGTH=void 0;var Lpn=BS(),Fpn=Hp();vs.PUBLIC_KEY_LENGTH=32;vs.SECRET_KEY_LENGTH=32;vs.SHARED_KEY_LENGTH=32;function Dm(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,DS(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function Upn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function GH(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function VH(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function cy(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,E=0,I=0,S=0,L=0,q=0,W=0,V=0,K=0,H=0,G=0,J=0,F=0,T=0,P=0,A=0,v=0,k=0,O=0,D=0,B=0,_=0,N=t[0],U=t[1],C=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*C,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,E+=n*ke,I+=n*ge,S+=n*me,L+=n*Ke,q+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*C,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,E+=n*he,I+=n*ke,S+=n*ge,L+=n*me,q+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*C,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,E+=n*ue,I+=n*he,S+=n*ke,L+=n*ge,q+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*C,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,E+=n*ie,I+=n*ue,S+=n*he,L+=n*ke,q+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*C,f+=n*z,m+=n*ee,y+=n*j,E+=n*X,I+=n*ie,S+=n*ue,L+=n*he,q+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*C,m+=n*z,y+=n*ee,E+=n*j,I+=n*X,S+=n*ie,L+=n*ue,q+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,J+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*C,y+=n*z,E+=n*ee,I+=n*j,S+=n*X,L+=n*ie,q+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,J+=n*ve,F+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*C,E+=n*z,I+=n*ee,S+=n*j,L+=n*X,q+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,J+=n*Ke,F+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,E+=n*C,I+=n*z,S+=n*ee,L+=n*j,q+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,J+=n*me,F+=n*Ke,T+=n*ve,P+=n*Ae,n=e[9],y+=n*N,E+=n*U,I+=n*C,S+=n*z,L+=n*ee,q+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,J+=n*ge,F+=n*me,T+=n*Ke,P+=n*ve,A+=n*Ae,n=e[10],E+=n*N,I+=n*U,S+=n*C,L+=n*z,q+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,J+=n*ke,F+=n*ge,T+=n*me,P+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],I+=n*N,S+=n*U,L+=n*C,q+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,J+=n*he,F+=n*ke,T+=n*ge,P+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],S+=n*N,L+=n*U,q+=n*C,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,J+=n*ue,F+=n*he,T+=n*ke,P+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,q+=n*U,W+=n*C,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,J+=n*ie,F+=n*ue,T+=n*he,P+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],q+=n*N,W+=n*U,V+=n*C,K+=n*z,H+=n*ee,G+=n*j,J+=n*X,F+=n*ie,T+=n*ue,P+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*C,H+=n*z,G+=n*ee,J+=n*j,F+=n*X,T+=n*ie,P+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,_+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*J,l+=38*F,h+=38*T,f+=38*P,m+=38*A,y+=38*v,E+=38*k,I+=38*O,S+=38*D,L+=38*B,q+=38*_,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=q+a+65535,a=Math.floor(n/65536),q=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=q+a+65535,a=Math.floor(n/65536),q=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=E,r[11]=I,r[12]=S,r[13]=L,r[14]=q,r[15]=W}function OS(r,e){cy(r,e,e)}function Hpn(r,e){let t=Dm();for(let n=0;n<16;n++)t[n]=e[n];for(let n=253;n>=0;n--)OS(t,t),n!==2&&n!==4&&cy(t,t,e);for(let n=0;n<16;n++)r[n]=t[n]}function vhe(r,e){let t=new Uint8Array(32),n=new Float64Array(80),a=Dm(),i=Dm(),s=Dm(),o=Dm(),c=Dm(),u=Dm();for(let m=0;m<31;m++)t[m]=r[m];t[31]=r[31]&127|64,t[0]&=248,Upn(n,e);for(let m=0;m<16;m++)i[m]=n[m];a[0]=o[0]=1;for(let m=254;m>=0;--m){let y=t[m>>>3]>>>(m&7)&1;DS(a,i,y),DS(s,o,y),GH(c,a,s),VH(a,a,s),GH(s,i,o),VH(i,i,o),OS(o,c),OS(u,a),cy(a,s,a),cy(s,i,c),GH(c,a,s),VH(a,a,s),OS(i,a),VH(s,o,u),cy(a,s,qpn),GH(a,a,o),cy(s,s,a),cy(a,o,u),cy(o,i,n),OS(i,c),DS(a,i,y),DS(s,o,y)}for(let m=0;m<16;m++)n[m+16]=a[m],n[m+32]=s[m],n[m+48]=i[m],n[m+64]=o[m];let l=n.subarray(32),h=n.subarray(16);Hpn(l,l),cy(h,h,l);let f=new Uint8Array(32);return Wpn(f,h),f}vs.scalarMult=vhe;function _Et(r){return vhe(r,wEt)}vs.scalarMultBase=_Et;function xEt(r){if(r.length!==vs.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${vs.SECRET_KEY_LENGTH} bytes`);let e=new Uint8Array(r);return{publicKey:_Et(e),secretKey:e}}vs.generateKeyPairFromSeed=xEt;function jpn(r){let e=(0,Lpn.randomBytes)(32,r),t=xEt(e);return(0,Fpn.wipe)(e),t}vs.generateKeyPair=jpn;function zpn(r,e,t=!1){if(r.length!==vs.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==vs.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=vhe(r,e);if(t){let a=0;for(let i=0;ie[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{d();p()});function IEt(r,e){if(r.length!==e.length)throw new Error("Inputs should have the same length");let t=g_(r.length);for(let n=0;n{d();p();YN();B4()});var AEt={};cr(AEt,{compare:()=>EEt,concat:()=>O4,equals:()=>vZ,fromString:()=>Eh,toString:()=>tm,xor:()=>IEt});var SEt=ce(()=>{d();p();CEt();wv();iB();vv();b_();kEt()});var PEt=x($H=>{"use strict";d();p();Object.defineProperty($H,"__esModule",{value:!0});$H.delay=void 0;function Kpn(r){return new Promise(e=>{setTimeout(()=>{e(!0)},r)})}$H.delay=Kpn});var REt=x(M6=>{"use strict";d();p();Object.defineProperty(M6,"__esModule",{value:!0});M6.ONE_THOUSAND=M6.ONE_HUNDRED=void 0;M6.ONE_HUNDRED=100;M6.ONE_THOUSAND=1e3});var MEt=x(He=>{"use strict";d();p();Object.defineProperty(He,"__esModule",{value:!0});He.ONE_YEAR=He.FOUR_WEEKS=He.THREE_WEEKS=He.TWO_WEEKS=He.ONE_WEEK=He.THIRTY_DAYS=He.SEVEN_DAYS=He.FIVE_DAYS=He.THREE_DAYS=He.ONE_DAY=He.TWENTY_FOUR_HOURS=He.TWELVE_HOURS=He.SIX_HOURS=He.THREE_HOURS=He.ONE_HOUR=He.SIXTY_MINUTES=He.THIRTY_MINUTES=He.TEN_MINUTES=He.FIVE_MINUTES=He.ONE_MINUTE=He.SIXTY_SECONDS=He.THIRTY_SECONDS=He.TEN_SECONDS=He.FIVE_SECONDS=He.ONE_SECOND=void 0;He.ONE_SECOND=1;He.FIVE_SECONDS=5;He.TEN_SECONDS=10;He.THIRTY_SECONDS=30;He.SIXTY_SECONDS=60;He.ONE_MINUTE=He.SIXTY_SECONDS;He.FIVE_MINUTES=He.ONE_MINUTE*5;He.TEN_MINUTES=He.ONE_MINUTE*10;He.THIRTY_MINUTES=He.ONE_MINUTE*30;He.SIXTY_MINUTES=He.ONE_MINUTE*60;He.ONE_HOUR=He.SIXTY_MINUTES;He.THREE_HOURS=He.ONE_HOUR*3;He.SIX_HOURS=He.ONE_HOUR*6;He.TWELVE_HOURS=He.ONE_HOUR*12;He.TWENTY_FOUR_HOURS=He.ONE_HOUR*24;He.ONE_DAY=He.TWENTY_FOUR_HOURS;He.THREE_DAYS=He.ONE_DAY*3;He.FIVE_DAYS=He.ONE_DAY*5;He.SEVEN_DAYS=He.ONE_DAY*7;He.THIRTY_DAYS=He.ONE_DAY*30;He.ONE_WEEK=He.SEVEN_DAYS;He.TWO_WEEKS=He.ONE_WEEK*2;He.THREE_WEEKS=He.ONE_WEEK*3;He.FOUR_WEEKS=He.ONE_WEEK*4;He.ONE_YEAR=He.ONE_DAY*365});var whe=x(YH=>{"use strict";d();p();Object.defineProperty(YH,"__esModule",{value:!0});var NEt=_d();NEt.__exportStar(REt(),YH);NEt.__exportStar(MEt(),YH)});var DEt=x(N6=>{"use strict";d();p();Object.defineProperty(N6,"__esModule",{value:!0});N6.fromMiliseconds=N6.toMiliseconds=void 0;var BEt=whe();function Gpn(r){return r*BEt.ONE_THOUSAND}N6.toMiliseconds=Gpn;function Vpn(r){return Math.floor(r/BEt.ONE_THOUSAND)}N6.fromMiliseconds=Vpn});var LEt=x(JH=>{"use strict";d();p();Object.defineProperty(JH,"__esModule",{value:!0});var OEt=_d();OEt.__exportStar(PEt(),JH);OEt.__exportStar(DEt(),JH)});var FEt=x(LS=>{"use strict";d();p();Object.defineProperty(LS,"__esModule",{value:!0});LS.Watch=void 0;var QH=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(typeof t.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){let t=this.timestamps.get(e);if(typeof t>"u")throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}};LS.Watch=QH;LS.default=QH});var qEt=x(ZH=>{"use strict";d();p();Object.defineProperty(ZH,"__esModule",{value:!0});ZH.IWatch=void 0;var _he=class{};ZH.IWatch=_he});var WEt=x(xhe=>{"use strict";d();p();Object.defineProperty(xhe,"__esModule",{value:!0});var $pn=_d();$pn.__exportStar(qEt(),xhe)});var fw=x(B6=>{"use strict";d();p();Object.defineProperty(B6,"__esModule",{value:!0});var XH=_d();XH.__exportStar(LEt(),B6);XH.__exportStar(FEt(),B6);XH.__exportStar(WEt(),B6);XH.__exportStar(whe(),B6)});var $Et=x(Ul=>{"use strict";d();p();var Ypn=bde(),Jpn=wde(),HEt=_de(),Qpn=xde(),Zpn=r=>r==null,The=Symbol("encodeFragmentIdentifier");function Xpn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Fs(e,r),"[",a,"]"].join("")]:[...t,[Fs(e,r),"[",Fs(a,r),"]=",Fs(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Fs(e,r),"[]"].join("")]:[...t,[Fs(e,r),"[]=",Fs(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Fs(e,r),":list="].join("")]:[...t,[Fs(e,r),":list=",Fs(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{let e=r.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(n,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[Fs(t,r),e,Fs(a,r)].join("")]:[[n,Fs(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Fs(e,r)]:[...t,[Fs(e,r),"=",Fs(n,r)].join("")]}}function ehn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"colon-list-separator":return(t,n,a)=>{if(e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&uy(n,r).includes(r.arrayFormatSeparator);n=s?uy(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>uy(c,r)):n===null?n:uy(n,r);a[t]=o};case"bracket-separator":return(t,n,a)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){a[t]=n&&uy(n,r);return}let s=n===null?[]:n.split(r.arrayFormatSeparator).map(o=>uy(o,r));if(a[t]===void 0){a[t]=s;return}a[t]=[].concat(a[t],s)};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function jEt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Fs(r,e){return e.encode?e.strict?Ypn(r):encodeURIComponent(r):r}function uy(r,e){return e.decode?Jpn(r):r}function zEt(r){return Array.isArray(r)?r.sort():typeof r=="object"?zEt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function KEt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function thn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function GEt(r){r=KEt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function UEt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function VEt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),jEt(e.arrayFormatSeparator);let t=ehn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=HEt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:uy(s,e),t(uy(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=UEt(i[s],e);else n[a]=UEt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=zEt(s):a[i]=s,a},Object.create(null))}Ul.extract=GEt;Ul.parse=VEt;Ul.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),jEt(e.arrayFormatSeparator);let t=s=>e.skipNull&&Zpn(r[s])||e.skipEmptyString&&r[s]==="",n=Xpn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Fs(s,e):Array.isArray(o)?o.length===0&&e.arrayFormat==="bracket-separator"?Fs(s,e)+"[]":o.reduce(n(s),[]).join("&"):Fs(s,e)+"="+Fs(o,e)}).filter(s=>s.length>0).join("&")};Ul.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=HEt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:VEt(GEt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:uy(n,e)}:{})};Ul.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[The]:!0},e);let t=KEt(r.url).split("?")[0]||"",n=Ul.extract(r.url),a=Ul.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Ul.stringify(i,e);s&&(s=`?${s}`);let o=thn(r.url);return r.fragmentIdentifier&&(o=`#${e[The]?Fs(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${t}${s}${o}`};Ul.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[The]:!1},t);let{url:n,query:a,fragmentIdentifier:i}=Ul.parseUrl(r,t);return Ul.stringifyUrl({url:n,query:Qpn(a,e),fragmentIdentifier:i},t)};Ul.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Ul.pick(r,n,t)}});var YEt=ce(()=>{d();p()});function Ag(r,e,t="string"){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function rhn(r,e){let t=!0;return e.forEach(n=>{n in r||(t=!1)}),t}function nhn(r,e){return Array.isArray(r)?r.length===e:Object.keys(r).length===e}function ahn(r,e){return Array.isArray(r)?r.length>=e:Object.keys(r).length>=e}function FS(r,e,t){return(!t.length?nhn(r,e.length):ahn(r,e.length))?rhn(r,e):!1}function qS(r,e,t="_"){let n=r.split(t);return n[n.length-1].trim().toLowerCase()===e.trim().toLowerCase()}var Ehe=ce(()=>{d();p()});function ihn(r){return ej(r.method)&&tj(r.params)}function ej(r){return qS(r,"subscribe")}function tj(r){return FS(r,["topic"],[])}function shn(r){return rj(r.method)&&nj(r.params)}function rj(r){return qS(r,"publish")}function nj(r){return FS(r,["message","topic","ttl"],["prompt","tag"])}function ohn(r){return aj(r.method)&&ij(r.params)}function aj(r){return qS(r,"unsubscribe")}function ij(r){return FS(r,["id","topic"],[])}function chn(r){return sj(r.method)&&oj(r.params)}function sj(r){return qS(r,"subscription")}function oj(r){return FS(r,["id","data"],[])}var Che=ce(()=>{d();p();Ehe()});function uhn(r){if(!ej(r.method))throw new Error("JSON-RPC Request has invalid subscribe method");if(!tj(r.params))throw new Error("JSON-RPC Request has invalid subscribe params");let e=r.params;return Ag(e,"topic"),e}function lhn(r){if(!rj(r.method))throw new Error("JSON-RPC Request has invalid publish method");if(!nj(r.params))throw new Error("JSON-RPC Request has invalid publish params");let e=r.params;return Ag(e,"topic"),Ag(e,"message"),Ag(e,"ttl","number"),e}function dhn(r){if(!aj(r.method))throw new Error("JSON-RPC Request has invalid unsubscribe method");if(!ij(r.params))throw new Error("JSON-RPC Request has invalid unsubscribe params");let e=r.params;return Ag(e,"id"),e}function phn(r){if(!sj(r.method))throw new Error("JSON-RPC Request has invalid subscription method");if(!oj(r.params))throw new Error("JSON-RPC Request has invalid subscription params");let e=r.params;return Ag(e,"id"),Ag(e,"data"),e}var JEt=ce(()=>{d();p();Ehe();Che()});var hhn,QEt=ce(()=>{d();p();hhn={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}});var ZEt={};cr(ZEt,{RELAY_JSONRPC:()=>hhn,isPublishMethod:()=>rj,isPublishParams:()=>nj,isPublishRequest:()=>shn,isSubscribeMethod:()=>ej,isSubscribeParams:()=>tj,isSubscribeRequest:()=>ihn,isSubscriptionMethod:()=>sj,isSubscriptionParams:()=>oj,isSubscriptionRequest:()=>chn,isUnsubscribeMethod:()=>aj,isUnsubscribeParams:()=>ij,isUnsubscribeRequest:()=>ohn,parsePublishRequest:()=>lhn,parseSubscribeRequest:()=>uhn,parseSubscriptionRequest:()=>phn,parseUnsubscribeRequest:()=>dhn});var XEt=ce(()=>{d();p();YEt();JEt();QEt();Che()});var jS=x(we=>{"use strict";d();p();Object.defineProperty(we,"__esModule",{value:!0});var oCt=aEt(),fhn=lEt(),cCt=BS(),Ahe=vEt(),mhn=TEt(),Hi=(SEt(),nt(AEt)),yhn=ide(),O6=fw(),WS=tH(),ghn=mde(),bhn=$Et(),vhn=(XEt(),nt(ZEt));function uCt(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var lCt=uCt(mhn),cj=uCt(bhn),dj=":";function dCt(r){let[e,t]=r.split(dj);return{namespace:e,reference:t}}function pCt(r){let{namespace:e,reference:t}=r;return[e,t].join(dj)}function She(r){let[e,t,n]=r.split(dj);return{namespace:e,reference:t,address:n}}function hCt(r){let{namespace:e,reference:t,address:n}=r;return[e,t,n].join(dj)}function Phe(r,e){let t=[];return r.forEach(n=>{let a=e(n);t.includes(a)||t.push(a)}),t}function fCt(r){let{address:e}=She(r);return e}function mCt(r){let{namespace:e,reference:t}=She(r);return pCt({namespace:e,reference:t})}function whn(r,e){let{namespace:t,reference:n}=dCt(e);return hCt({namespace:t,reference:n,address:r})}function _hn(r){return Phe(r,fCt)}function yCt(r){return Phe(r,mCt)}function xhn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...a.accounts)}),t}function Thn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...yCt(a.accounts))}),t}function Ehn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...pj(n,a))}),t}function pj(r,e){return r.includes(":")?[r]:e.chains||[]}var hj=r=>r?.split(":"),gCt=r=>{let e=r&&hj(r);if(e)return e[3]},Chn=r=>{let e=r&&hj(r);if(e)return e[2]+":"+e[3]},bCt=r=>{let e=r&&hj(r);if(e)return e.pop()},Ihn=(r,e)=>{let t=`${r.domain} wants you to sign in with your Ethereum account:`,n=bCt(e),a=r.statement,i=`URI: ${r.aud}`,s=`Version: ${r.version}`,o=`Chain ID: ${gCt(e)}`,c=`Nonce: ${r.nonce}`,u=`Issued At: ${r.iat}`,l=r.resources&&r.resources.length>0?`Resources: +`,P5a=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",S5a=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function Whn(r,e){try{var t=r()}catch(n){return e(n)}return t&&t.then?t.then(void 0,e):t}var Uhn="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",Hhn="WalletConnect",jhn=300,zhn="rgb(64, 153, 255)",QIt="walletconnect-wrapper",GIt="walletconnect-style-sheet",JIt="walletconnect-qrcode-modal",Khn="walletconnect-qrcode-close",ZIt="walletconnect-qrcode-text",Ghn="walletconnect-connect-button";function Vhn(r){return ze.createElement("div",{className:"walletconnect-modal__header"},ze.createElement("img",{src:Uhn,className:"walletconnect-modal__headerLogo"}),ze.createElement("p",null,Hhn),ze.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:r.onClose},ze.createElement("div",{id:Khn,className:"walletconnect-modal__close__icon"},ze.createElement("div",{className:"walletconnect-modal__close__line1"}),ze.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Yhn(r){return ze.createElement("a",{className:"walletconnect-connect__button",href:r.href,id:Ghn+"-"+r.name,onClick:r.onClick,rel:"noopener noreferrer",style:{backgroundColor:r.color},target:"_blank"},r.name)}var $hn="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function Qhn(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick;return ze.createElement("a",{className:"walletconnect-modal__base__row",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),ze.createElement("div",{className:"walletconnect-modal__base__row__right"},ze.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("img",{src:$hn,className:"walletconnect-modal__base__row__right__caret"})))}function Jhn(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return ze.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}var Zhn=5,HMe=12;function Xhn(r){var e=Xu.isAndroid(),t=ze.useState(""),n=t[0],a=t[1],i=ze.useState(""),s=i[0],o=i[1],c=ze.useState(1),u=c[0],l=c[1],h=s?r.links.filter(function(W){return W.name.toLowerCase().includes(s.toLowerCase())}):r.links,f=r.errorMessage,m=s||h.length>Zhn,y=Math.ceil(h.length/HMe),I=[(u-1)*HMe+1,u*HMe],C=h.length?h.filter(function(W,V){return V+1>=I[0]&&V+1<=I[1]}):[],R=!e&&y>1,L=void 0;function F(W){a(W.target.value),clearTimeout(L),W.target.value?L=setTimeout(function(){o(W.target.value),l(1)},1e3):(a(""),o(""),l(1))}return ze.createElement("div",null,ze.createElement("p",{id:ZIt,className:"walletconnect-qrcode__text"},e?r.text.connect_mobile_wallet:r.text.choose_preferred_wallet),!e&&ze.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:F}),ze.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":m&&h.length?"__wrap":"")},e?ze.createElement(Yhn,{name:r.text.connect,color:zhn,href:r.uri,onClick:ze.useCallback(function(){Xu.saveMobileLinkInfo({name:"Unknown",href:r.uri})},[])}):C.length?C.map(function(W){var V=W.color,K=W.name,H=W.shortName,G=W.logo,Q=Xu.formatIOSMobile(r.uri,W),q=ze.useCallback(function(){Xu.saveMobileLinkInfo({name:K,href:Q})},[C]);return m?ze.createElement(Jhn,{color:V,href:Q,name:H||K,logo:G,onClick:q}):ze.createElement(Qhn,{color:V,href:Q,name:K,logo:G,onClick:q})}):ze.createElement(ze.Fragment,null,ze.createElement("p",null,f.length?r.errorMessage:!!r.links.length&&!h.length?r.text.no_wallets_found:r.text.loading))),R&&ze.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map(function(W,V){var K=V+1,H=u===K;return ze.createElement("a",{style:{margin:"auto 10px",fontWeight:H?"bold":"normal"},onClick:function(){return l(K)}},K)})))}function efn(r){var e=!!r.message.trim();return ze.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},r.message)}var tfn=function(r){try{var e="";return Promise.resolve($It.toString(r,{margin:0,type:"svg"})).then(function(t){return typeof t=="string"&&(e=t.replace("0||ze.useEffect(function(){var M=function(){try{if(e)return Promise.resolve();s(!0);var A=Whn(function(){var v=r.qrcodeModalOptions&&r.qrcodeModalOptions.registryUrl?r.qrcodeModalOptions.registryUrl:Xu.getWalletRegistryUrl();return Promise.resolve(fetch(v)).then(function(k){return Promise.resolve(k.json()).then(function(O){var D=O.listings,B=t?"mobile":"desktop",x=Xu.getMobileLinkRegistry(Xu.formatMobileRegistry(D,B),n);s(!1),u(!0),Q(x.length?"":r.text.no_supported_wallets),K(x);var N=x.length===1;N&&(C(Xu.formatIOSMobile(r.uri,x[0])),f(!0)),F(N)})})},function(v){s(!1),u(!0),Q(r.text.something_went_wrong),console.error(v)});return Promise.resolve(A&&A.then?A.then(function(){}):void 0)}catch(v){return Promise.reject(v)}};M()})};q();var T=t?h:!h;return ze.createElement("div",{id:JIt,className:"walletconnect-qrcode__base animated fadeIn"},ze.createElement("div",{className:"walletconnect-modal__base"},ze.createElement(Vhn,{onClose:r.onClose}),L&&h?ze.createElement("div",{className:"walletconnect-modal__single_wallet"},ze.createElement("a",{onClick:function(){return Xu.saveMobileLinkInfo({name:V[0].name,href:I})},href:I,rel:"noopener noreferrer",target:"_blank"},r.text.connect_with+" "+(L?V[0].name:"")+" \u203A")):e||i||!i&&V.length?ze.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(T?" right__selected":"")},ze.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),t?ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!1),q()}},r.text.mobile),ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode)):ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode),ze.createElement("a",{onClick:function(){return f(!1),q()}},r.text.desktop))):null,ze.createElement("div",null,h||!e&&!i&&!V.length?ze.createElement(rfn,Object.assign({},m)):ze.createElement(Xhn,Object.assign({},m,{links:V,errorMessage:G})))))}var afn={choose_preferred_wallet:"W\xE4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},ifn={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},sfn={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},ofn={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},cfn={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},ufn={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},lfn={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},dfn={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},VIt={de:afn,en:ifn,es:sfn,fr:ofn,ko:cfn,pt:ufn,zh:lfn,fa:dfn};function pfn(){var r=Xu.getDocumentOrThrow(),e=r.getElementById(GIt);e&&r.head.removeChild(e);var t=r.createElement("style");t.setAttribute("id",GIt),t.innerText=Fhn,r.head.appendChild(t)}function hfn(){var r=Xu.getDocumentOrThrow(),e=r.createElement("div");return e.setAttribute("id",QIt),r.body.appendChild(e),e}function XIt(){var r=Xu.getDocumentOrThrow(),e=r.getElementById(JIt);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=r.getElementById(QIt);t&&r.body.removeChild(t)},jhn))}function ffn(r){return function(){XIt(),r&&r()}}function mfn(){var r=Xu.getNavigatorOrThrow().language.split("-")[0]||"en";return VIt[r]||VIt.en}function yfn(r,e,t){pfn();var n=hfn();ze.render(ze.createElement(nfn,{text:mfn(),uri:r,onClose:ffn(e),qrcodeModalOptions:t}),n)}function gfn(){XIt()}var eEt=function(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"};function bfn(r,e,t){console.log(r),eEt()?qhn(r):yfn(r,e,t)}function vfn(){eEt()||gfn()}var wfn={open:bfn,close:vfn};tEt.exports=wfn});var aEt,zMe,xfn,_fn,rEt,nEt,p1e,iEt,KMe=ce(()=>{d();p();aEt=un(Lu()),zMe=un(tn());j$();iy();xfn={Accept:"application/json","Content-Type":"application/json"},_fn="POST",rEt={headers:xfn,method:_fn},nEt=10,p1e=class{constructor(e){if(this.url=e,this.events=new aEt.EventEmitter,this.isAvailable=!1,this.registering=!1,!Tge(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e,t){this.isAvailable||await this.register();try{let n=Sm(e),i=await(await(0,zMe.default)(this.url,Object.assign(Object.assign({},rEt),{body:n}))).json();this.onPayload({data:i})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!Tge(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{let t=Sm({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,zMe.default)(e,Object.assign(Object.assign({},rEt),{body:t})),this.onOpen()}catch(t){let n=this.parseError(t);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?oy(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=Lne(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return Dne(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>nEt&&this.events.setMaxListeners(nEt)}},iEt=p1e});var h1e={};cr(h1e,{HttpConnection:()=>p1e,default:()=>Tfn});var Tfn,f1e=ce(()=>{d();p();KMe();KMe();Tfn=iEt});var sEt,m1e,oEt,GMe=ce(()=>{d();p();sEt=un(Lu());iy();m1e=class extends O${constructor(e){super(e),this.events=new sEt.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(LRe(e.method,e.params||[]),t)}async requestStrict(e,t){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(i){a(i)}this.events.on(`${e.id}`,i=>{Ege(i)?a(i.error):n(i.result)});try{await this.connection.send(e,t)}catch(i){a(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),FRe(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.hasRegisteredEventListeners=!0)}},oEt=m1e});var aae={};cr(aae,{JsonRpcProvider:()=>m1e,default:()=>Ifn});var Ifn,iae=ce(()=>{d();p();GMe();GMe();Ifn=oEt});var pEt=_(dEt=>{"use strict";d();p();var wd=ec(),Efn=(lge(),nt(RRe)),cEt=(iy(),nt(to)),Cfn=(pMe(),nt(dMe)),kfn=jMe(),Afn=Je(),Pfn=(f1e(),nt(h1e)),uEt=(iae(),nt(aae)),Sfn=(Fw(),nt(QRe)),Rfn=(cy(),nt(Vge));function $Me(r){return r&&r.__esModule?r:{default:r}}var Mfn=$Me(Cfn),Nfn=$Me(kfn),lEt=$Me(Afn),VMe=class extends Efn.IJsonRpcConnection{constructor(e){super(),wd._defineProperty(this,"events",new lEt.default),wd._defineProperty(this,"accounts",[]),wd._defineProperty(this,"chainId",1),wd._defineProperty(this,"pending",!1),wd._defineProperty(this,"wc",void 0),wd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),wd._defineProperty(this,"qrcode",!0),wd._defineProperty(this,"qrcodeModalOptions",void 0),wd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",cEt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?Nfn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new Mfn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?cEt.formatJsonRpcError(e.id,e.error.message):e}},Bfn=VMe,YMe=class{constructor(e){wd._defineProperty(this,"events",new lEt.default),wd._defineProperty(this,"rpc",void 0),wd._defineProperty(this,"signer",void 0),wd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new uEt.JsonRpcProvider(new Bfn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(Sfn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=Rfn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new uEt.JsonRpcProvider(new Pfn.HttpConnection(t))}};dEt.default=YMe});var yEt=_(XMe=>{"use strict";d();p();Object.defineProperty(XMe,"__esModule",{value:!0});var y1e=ym(),La=gm(),tf=ec(),Q$=je(),sae=_Y(),hEt=TY();Vu();vt();Je();var QMe="last-used-chain-id",JMe="last-session",Ms=new WeakMap,k1=new WeakMap,fEt=new WeakSet,mEt=new WeakSet,ZMe=class extends sae.Connector{constructor(e){super(e),y1e._classPrivateMethodInitSpec(this,mEt),y1e._classPrivateMethodInitSpec(this,fEt),tf._defineProperty(this,"id","walletConnectV1"),tf._defineProperty(this,"name","WalletConnectV1"),tf._defineProperty(this,"ready",!0),La._classPrivateFieldInitSpec(this,Ms,{writable:!0,value:void 0}),La._classPrivateFieldInitSpec(this,k1,{writable:!0,value:void 0}),tf._defineProperty(this,"walletName",void 0),tf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),tf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),tf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),tf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),tf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Q$.utils.getAddress(t[0])})}),tf._defineProperty(this,"onChainChanged",t=>{let n=hEt.normalizeChainId(t),a=this.isChainUnsupported(n);La._classPrivateFieldGet(this,k1).setItem(QMe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),tf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,La._classPrivateFieldGet(this,k1).removeItem(QMe),La._classPrivateFieldGet(this,k1).removeItem(JMe),y1e._classPrivateMethodGet(this,mEt,Lfn).call(this),this.emit("disconnect")}),La._classPrivateFieldSet(this,k1,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await La._classPrivateFieldGet(this,k1).getItem(QMe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=Q$.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return y1e._classPrivateMethodGet(this,fEt,Dfn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new Q$.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new sae.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return Q$.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return hEt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!La._classPrivateFieldGet(this,Ms)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return pEt()})).default,i=await La._classPrivateFieldGet(this,k1).getItem(JMe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,La._classPrivateFieldSet(this,Ms,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return La._classPrivateFieldGet(this,Ms)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Q$.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Q$.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new sae.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new sae.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new sae.SwitchChainError(a)}}async setupListeners(){!La._classPrivateFieldGet(this,Ms)||(La._classPrivateFieldGet(this,Ms).on("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ms).on("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ms).on("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ms).on("message",this.onMessage),La._classPrivateFieldGet(this,Ms).on("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ms).on("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ms).on("call_request_sent",this.onRequestSent))}};async function Dfn(){let r=La._classPrivateFieldGet(this,Ms)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);La._classPrivateFieldGet(this,k1).setItem(JMe,e)}function Lfn(){!La._classPrivateFieldGet(this,Ms)||(La._classPrivateFieldGet(this,Ms).removeListener("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ms).removeListener("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ms).removeListener("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ms).removeListener("message",this.onMessage),La._classPrivateFieldGet(this,Ms).removeListener("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ms).removeListener("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ms).removeListener("call_request_sent",this.onRequestSent))}XMe.WalletConnectV1Connector=ZMe});var vEt=_(eNe=>{"use strict";d();p();Object.defineProperty(eNe,"__esModule",{value:!0});var J$=ec(),gEt=xY(),bEt=vY(),Ofn=age();ym();Vu();Yg();je();Je();vt();var Yw=class extends gEt.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(Yw.id,e),J$._defineProperty(this,"connector",void 0),J$._defineProperty(this,"connectorStorage",void 0),J$._defineProperty(this,"walletConnectConnector",void 0),J$._defineProperty(this,"isInjected",void 0),this.connectorStorage=e.connectorStorage||gEt.createAsyncLocalStorage("connector"),Ofn.assertWindowEthereum(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isMetaMask:this.isInjected=!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return X3t()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new bEt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return yEt()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.dappMetadata.name,description:this.dappMetadata.description||"",url:this.dappMetadata.url,icons:[this.dappMetadata.logoUrl||""]},qrcode:this.options?.qrcode}});this.walletConnectConnector=t,this.connector=new bEt.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};J$._defineProperty(Yw,"meta",{name:"MetaMask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});J$._defineProperty(Yw,"id","metamask");eNe.MetaMaskWallet=Yw});var wEt=_(aNe=>{"use strict";d();p();Object.defineProperty(aNe,"__esModule",{value:!0});var tNe=km(),qfn=ac(),g1e=P$(),Ffn=sge(),Wfn=_Re(),Ufn=je();Zu();vt();Je();S$();var rNe=new WeakMap,nNe=class extends Wfn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&Ffn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),qfn._defineProperty(this,"id","metaMask"),tNe._classPrivateFieldInitSpec(this,rNe,{writable:!0,value:void 0}),tNe._classPrivateFieldSet(this,rNe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new g1e.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(tNe._classPrivateFieldGet(this,rNe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new g1e.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=Ufn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new g1e.UserRejectedRequestError(t):t.code===-32002?new g1e.ResourceUnavailableError(t):t}}};aNe.MetaMaskConnector=nNe});var EEt=_(IEt=>{"use strict";d();p();var xd=ac(),Hfn=(lge(),nt(RRe)),xEt=(iy(),nt(to)),jfn=(pMe(),nt(dMe)),zfn=jMe(),Kfn=Je(),Gfn=(f1e(),nt(h1e)),_Et=(iae(),nt(aae)),Vfn=(Fw(),nt(QRe)),Yfn=(cy(),nt(Vge));function oNe(r){return r&&r.__esModule?r:{default:r}}var $fn=oNe(jfn),Qfn=oNe(zfn),TEt=oNe(Kfn),iNe=class extends Hfn.IJsonRpcConnection{constructor(e){super(),xd._defineProperty(this,"events",new TEt.default),xd._defineProperty(this,"accounts",[]),xd._defineProperty(this,"chainId",1),xd._defineProperty(this,"pending",!1),xd._defineProperty(this,"wc",void 0),xd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),xd._defineProperty(this,"qrcode",!0),xd._defineProperty(this,"qrcodeModalOptions",void 0),xd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",xEt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?Qfn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new $fn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?xEt.formatJsonRpcError(e.id,e.error.message):e}},Jfn=iNe,sNe=class{constructor(e){xd._defineProperty(this,"events",new TEt.default),xd._defineProperty(this,"rpc",void 0),xd._defineProperty(this,"signer",void 0),xd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new _Et.JsonRpcProvider(new Jfn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(Vfn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=Yfn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new _Et.JsonRpcProvider(new Gfn.HttpConnection(t))}};IEt.default=sNe});var PEt=_(dNe=>{"use strict";d();p();Object.defineProperty(dNe,"__esModule",{value:!0});var b1e=Cm(),Oa=km(),rf=ac(),Z$=je(),oae=P$(),CEt=S$();Zu();vt();Je();var cNe="last-used-chain-id",uNe="last-session",Ns=new WeakMap,A1=new WeakMap,kEt=new WeakSet,AEt=new WeakSet,lNe=class extends oae.Connector{constructor(e){super(e),b1e._classPrivateMethodInitSpec(this,AEt),b1e._classPrivateMethodInitSpec(this,kEt),rf._defineProperty(this,"id","walletConnectV1"),rf._defineProperty(this,"name","WalletConnectV1"),rf._defineProperty(this,"ready",!0),Oa._classPrivateFieldInitSpec(this,Ns,{writable:!0,value:void 0}),Oa._classPrivateFieldInitSpec(this,A1,{writable:!0,value:void 0}),rf._defineProperty(this,"walletName",void 0),rf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),rf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),rf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),rf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),rf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Z$.utils.getAddress(t[0])})}),rf._defineProperty(this,"onChainChanged",t=>{let n=CEt.normalizeChainId(t),a=this.isChainUnsupported(n);Oa._classPrivateFieldGet(this,A1).setItem(cNe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),rf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,Oa._classPrivateFieldGet(this,A1).removeItem(cNe),Oa._classPrivateFieldGet(this,A1).removeItem(uNe),b1e._classPrivateMethodGet(this,AEt,Xfn).call(this),this.emit("disconnect")}),Oa._classPrivateFieldSet(this,A1,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await Oa._classPrivateFieldGet(this,A1).getItem(cNe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=Z$.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return b1e._classPrivateMethodGet(this,kEt,Zfn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new Z$.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new oae.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return Z$.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return CEt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Oa._classPrivateFieldGet(this,Ns)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return EEt()})).default,i=await Oa._classPrivateFieldGet(this,A1).getItem(uNe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,Oa._classPrivateFieldSet(this,Ns,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return Oa._classPrivateFieldGet(this,Ns)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Z$.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Z$.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new oae.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new oae.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new oae.SwitchChainError(a)}}async setupListeners(){!Oa._classPrivateFieldGet(this,Ns)||(Oa._classPrivateFieldGet(this,Ns).on("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Ns).on("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Ns).on("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Ns).on("message",this.onMessage),Oa._classPrivateFieldGet(this,Ns).on("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Ns).on("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Ns).on("call_request_sent",this.onRequestSent))}};async function Zfn(){let r=Oa._classPrivateFieldGet(this,Ns)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);Oa._classPrivateFieldGet(this,A1).setItem(uNe,e)}function Xfn(){!Oa._classPrivateFieldGet(this,Ns)||(Oa._classPrivateFieldGet(this,Ns).removeListener("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Ns).removeListener("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Ns).removeListener("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Ns).removeListener("message",this.onMessage),Oa._classPrivateFieldGet(this,Ns).removeListener("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Ns).removeListener("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Ns).removeListener("call_request_sent",this.onRequestSent))}dNe.WalletConnectV1Connector=lNe});var MEt=_(pNe=>{"use strict";d();p();Object.defineProperty(pNe,"__esModule",{value:!0});var X$=ac(),SEt=A$(),REt=C$(),emn=sge();Cm();Zu();p1();je();Je();vt();var $w=class extends SEt.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super($w.id,e),X$._defineProperty(this,"connector",void 0),X$._defineProperty(this,"connectorStorage",void 0),X$._defineProperty(this,"walletConnectConnector",void 0),X$._defineProperty(this,"isInjected",void 0),this.connectorStorage=e.connectorStorage||SEt.createAsyncLocalStorage("connector"),emn.assertWindowEthereum(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isMetaMask:this.isInjected=!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return wEt()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new REt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return PEt()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.dappMetadata.name,description:this.dappMetadata.description||"",url:this.dappMetadata.url,icons:[this.dappMetadata.logoUrl||""]},qrcode:this.options?.qrcode}});this.walletConnectConnector=t,this.connector=new REt.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};X$._defineProperty($w,"meta",{name:"MetaMask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});X$._defineProperty($w,"id","metamask");pNe.MetaMaskWallet=$w});var NEt=_((b3a,hNe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?hNe.exports=vEt():hNe.exports=MEt()});var BEt=_(_d=>{"use strict";d();p();Object.defineProperty(_d,"__esModule",{value:!0});function tmn(r,e){var t=r>>>16&65535,n=r&65535,a=e>>>16&65535,i=e&65535;return n*i+(t*i+n*a<<16>>>0)|0}_d.mul=Math.imul||tmn;function rmn(r,e){return r+e|0}_d.add=rmn;function nmn(r,e){return r-e|0}_d.sub=nmn;function amn(r,e){return r<>>32-e}_d.rotl=amn;function imn(r,e){return r<<32-e|r>>>e}_d.rotr=imn;function smn(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r}_d.isInteger=Number.isInteger||smn;_d.MAX_SAFE_INTEGER=9007199254740991;_d.isSafeInteger=function(r){return _d.isInteger(r)&&r>=-_d.MAX_SAFE_INTEGER&&r<=_d.MAX_SAFE_INTEGER}});var eQ=_(Nr=>{"use strict";d();p();Object.defineProperty(Nr,"__esModule",{value:!0});var DEt=BEt();function omn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])<<16>>16}Nr.readInt16BE=omn;function cmn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])>>>0}Nr.readUint16BE=cmn;function umn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])<<16>>16}Nr.readInt16LE=umn;function lmn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])>>>0}Nr.readUint16LE=lmn;function LEt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>8,e[t+1]=r>>>0,e}Nr.writeUint16BE=LEt;Nr.writeInt16BE=LEt;function OEt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e}Nr.writeUint16LE=OEt;Nr.writeInt16LE=OEt;function fNe(r,e){return e===void 0&&(e=0),r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]}Nr.readInt32BE=fNe;function mNe(r,e){return e===void 0&&(e=0),(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}Nr.readUint32BE=mNe;function yNe(r,e){return e===void 0&&(e=0),r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]}Nr.readInt32LE=yNe;function gNe(r,e){return e===void 0&&(e=0),(r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e])>>>0}Nr.readUint32LE=gNe;function v1e(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>24,e[t+1]=r>>>16,e[t+2]=r>>>8,e[t+3]=r>>>0,e}Nr.writeUint32BE=v1e;Nr.writeInt32BE=v1e;function w1e(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e[t+2]=r>>>16,e[t+3]=r>>>24,e}Nr.writeUint32LE=w1e;Nr.writeInt32LE=w1e;function dmn(r,e){e===void 0&&(e=0);var t=fNe(r,e),n=fNe(r,e+4);return t*4294967296+n-(n>>31)*4294967296}Nr.readInt64BE=dmn;function pmn(r,e){e===void 0&&(e=0);var t=mNe(r,e),n=mNe(r,e+4);return t*4294967296+n}Nr.readUint64BE=pmn;function hmn(r,e){e===void 0&&(e=0);var t=yNe(r,e),n=yNe(r,e+4);return n*4294967296+t-(t>>31)*4294967296}Nr.readInt64LE=hmn;function fmn(r,e){e===void 0&&(e=0);var t=gNe(r,e),n=gNe(r,e+4);return n*4294967296+t}Nr.readUint64LE=fmn;function qEt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),v1e(r/4294967296>>>0,e,t),v1e(r>>>0,e,t+4),e}Nr.writeUint64BE=qEt;Nr.writeInt64BE=qEt;function FEt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),w1e(r>>>0,e,t),w1e(r/4294967296>>>0,e,t+4),e}Nr.writeUint64LE=FEt;Nr.writeInt64LE=FEt;function mmn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,a=1,i=r/8+t-1;i>=t;i--)n+=e[i]*a,a*=256;return n}Nr.readUintBE=mmn;function ymn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,a=1,i=t;i=n;i--)t[i]=e/a&255,a*=256;return t}Nr.writeUintBE=gmn;function bmn(r,e,t,n){if(t===void 0&&(t=new Uint8Array(r/8)),n===void 0&&(n=0),r%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!DEt.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,i=n;i{"use strict";d();p();Object.defineProperty(bNe,"__esModule",{value:!0});function kmn(r){for(var e=0;e{"use strict";d();p();Object.defineProperty(x1e,"__esModule",{value:!0});var Ru=eQ(),vNe=Wp(),Amn=20;function Pmn(r,e,t){for(var n=1634760805,a=857760878,i=2036477234,s=1797285236,o=t[3]<<24|t[2]<<16|t[1]<<8|t[0],c=t[7]<<24|t[6]<<16|t[5]<<8|t[4],u=t[11]<<24|t[10]<<16|t[9]<<8|t[8],l=t[15]<<24|t[14]<<16|t[13]<<8|t[12],h=t[19]<<24|t[18]<<16|t[17]<<8|t[16],f=t[23]<<24|t[22]<<16|t[21]<<8|t[20],m=t[27]<<24|t[26]<<16|t[25]<<8|t[24],y=t[31]<<24|t[30]<<16|t[29]<<8|t[28],I=e[3]<<24|e[2]<<16|e[1]<<8|e[0],C=e[7]<<24|e[6]<<16|e[5]<<8|e[4],R=e[11]<<24|e[10]<<16|e[9]<<8|e[8],L=e[15]<<24|e[14]<<16|e[13]<<8|e[12],F=n,W=a,V=i,K=s,H=o,G=c,Q=u,q=l,T=h,M=f,A=m,v=y,k=I,O=C,D=R,B=L,x=0;x>>32-16|k<<16,T=T+k|0,H^=T,H=H>>>32-12|H<<12,W=W+G|0,O^=W,O=O>>>32-16|O<<16,M=M+O|0,G^=M,G=G>>>32-12|G<<12,V=V+Q|0,D^=V,D=D>>>32-16|D<<16,A=A+D|0,Q^=A,Q=Q>>>32-12|Q<<12,K=K+q|0,B^=K,B=B>>>32-16|B<<16,v=v+B|0,q^=v,q=q>>>32-12|q<<12,V=V+Q|0,D^=V,D=D>>>32-8|D<<8,A=A+D|0,Q^=A,Q=Q>>>32-7|Q<<7,K=K+q|0,B^=K,B=B>>>32-8|B<<8,v=v+B|0,q^=v,q=q>>>32-7|q<<7,W=W+G|0,O^=W,O=O>>>32-8|O<<8,M=M+O|0,G^=M,G=G>>>32-7|G<<7,F=F+H|0,k^=F,k=k>>>32-8|k<<8,T=T+k|0,H^=T,H=H>>>32-7|H<<7,F=F+G|0,B^=F,B=B>>>32-16|B<<16,A=A+B|0,G^=A,G=G>>>32-12|G<<12,W=W+Q|0,k^=W,k=k>>>32-16|k<<16,v=v+k|0,Q^=v,Q=Q>>>32-12|Q<<12,V=V+q|0,O^=V,O=O>>>32-16|O<<16,T=T+O|0,q^=T,q=q>>>32-12|q<<12,K=K+H|0,D^=K,D=D>>>32-16|D<<16,M=M+D|0,H^=M,H=H>>>32-12|H<<12,V=V+q|0,O^=V,O=O>>>32-8|O<<8,T=T+O|0,q^=T,q=q>>>32-7|q<<7,K=K+H|0,D^=K,D=D>>>32-8|D<<8,M=M+D|0,H^=M,H=H>>>32-7|H<<7,W=W+Q|0,k^=W,k=k>>>32-8|k<<8,v=v+k|0,Q^=v,Q=Q>>>32-7|Q<<7,F=F+G|0,B^=F,B=B>>>32-8|B<<8,A=A+B|0,G^=A,G=G>>>32-7|G<<7;Ru.writeUint32LE(F+n|0,r,0),Ru.writeUint32LE(W+a|0,r,4),Ru.writeUint32LE(V+i|0,r,8),Ru.writeUint32LE(K+s|0,r,12),Ru.writeUint32LE(H+o|0,r,16),Ru.writeUint32LE(G+c|0,r,20),Ru.writeUint32LE(Q+u|0,r,24),Ru.writeUint32LE(q+l|0,r,28),Ru.writeUint32LE(T+h|0,r,32),Ru.writeUint32LE(M+f|0,r,36),Ru.writeUint32LE(A+m|0,r,40),Ru.writeUint32LE(v+y|0,r,44),Ru.writeUint32LE(k+I|0,r,48),Ru.writeUint32LE(O+C|0,r,52),Ru.writeUint32LE(D+R|0,r,56),Ru.writeUint32LE(B+L|0,r,60)}function WEt(r,e,t,n,a){if(a===void 0&&(a=0),r.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}});var _1e=_(tQ=>{"use strict";d();p();Object.defineProperty(tQ,"__esModule",{value:!0});function Mmn(r,e,t){return~(r-1)&e|r-1&t}tQ.select=Mmn;function Nmn(r,e){return(r|0)-(e|0)-1>>>31&1}tQ.lessOrEqual=Nmn;function HEt(r,e){if(r.length!==e.length)return 0;for(var t=0,n=0;n>>8}tQ.compare=HEt;function Bmn(r,e){return r.length===0||e.length===0?!1:HEt(r,e)!==0}tQ.equal=Bmn});var zEt=_(ly=>{"use strict";d();p();Object.defineProperty(ly,"__esModule",{value:!0});var Dmn=_1e(),T1e=Wp();ly.DIGEST_LENGTH=16;var jEt=function(){function r(e){this.digestLength=ly.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var t=e[0]|e[1]<<8;this._r[0]=t&8191;var n=e[2]|e[3]<<8;this._r[1]=(t>>>13|n<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(n>>>10|a<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(a>>>7|i<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(i>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(o>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return r.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],c=this._h[3],u=this._h[4],l=this._h[5],h=this._h[6],f=this._h[7],m=this._h[8],y=this._h[9],I=this._r[0],C=this._r[1],R=this._r[2],L=this._r[3],F=this._r[4],W=this._r[5],V=this._r[6],K=this._r[7],H=this._r[8],G=this._r[9];n>=16;){var Q=e[t+0]|e[t+1]<<8;i+=Q&8191;var q=e[t+2]|e[t+3]<<8;s+=(Q>>>13|q<<3)&8191;var T=e[t+4]|e[t+5]<<8;o+=(q>>>10|T<<6)&8191;var M=e[t+6]|e[t+7]<<8;c+=(T>>>7|M<<9)&8191;var A=e[t+8]|e[t+9]<<8;u+=(M>>>4|A<<12)&8191,l+=A>>>1&8191;var v=e[t+10]|e[t+11]<<8;h+=(A>>>14|v<<2)&8191;var k=e[t+12]|e[t+13]<<8;f+=(v>>>11|k<<5)&8191;var O=e[t+14]|e[t+15]<<8;m+=(k>>>8|O<<8)&8191,y+=O>>>5|a;var D=0,B=D;B+=i*I,B+=s*(5*G),B+=o*(5*H),B+=c*(5*K),B+=u*(5*V),D=B>>>13,B&=8191,B+=l*(5*W),B+=h*(5*F),B+=f*(5*L),B+=m*(5*R),B+=y*(5*C),D+=B>>>13,B&=8191;var x=D;x+=i*C,x+=s*I,x+=o*(5*G),x+=c*(5*H),x+=u*(5*K),D=x>>>13,x&=8191,x+=l*(5*V),x+=h*(5*W),x+=f*(5*F),x+=m*(5*L),x+=y*(5*R),D+=x>>>13,x&=8191;var N=D;N+=i*R,N+=s*C,N+=o*I,N+=c*(5*G),N+=u*(5*H),D=N>>>13,N&=8191,N+=l*(5*K),N+=h*(5*V),N+=f*(5*W),N+=m*(5*F),N+=y*(5*L),D+=N>>>13,N&=8191;var U=D;U+=i*L,U+=s*R,U+=o*C,U+=c*I,U+=u*(5*G),D=U>>>13,U&=8191,U+=l*(5*H),U+=h*(5*K),U+=f*(5*V),U+=m*(5*W),U+=y*(5*F),D+=U>>>13,U&=8191;var E=D;E+=i*F,E+=s*L,E+=o*R,E+=c*C,E+=u*I,D=E>>>13,E&=8191,E+=l*(5*G),E+=h*(5*H),E+=f*(5*K),E+=m*(5*V),E+=y*(5*W),D+=E>>>13,E&=8191;var z=D;z+=i*W,z+=s*F,z+=o*L,z+=c*R,z+=u*C,D=z>>>13,z&=8191,z+=l*I,z+=h*(5*G),z+=f*(5*H),z+=m*(5*K),z+=y*(5*V),D+=z>>>13,z&=8191;var ee=D;ee+=i*V,ee+=s*W,ee+=o*F,ee+=c*L,ee+=u*R,D=ee>>>13,ee&=8191,ee+=l*C,ee+=h*I,ee+=f*(5*G),ee+=m*(5*H),ee+=y*(5*K),D+=ee>>>13,ee&=8191;var j=D;j+=i*K,j+=s*V,j+=o*W,j+=c*F,j+=u*L,D=j>>>13,j&=8191,j+=l*R,j+=h*C,j+=f*I,j+=m*(5*G),j+=y*(5*H),D+=j>>>13,j&=8191;var X=D;X+=i*H,X+=s*K,X+=o*V,X+=c*W,X+=u*F,D=X>>>13,X&=8191,X+=l*L,X+=h*R,X+=f*C,X+=m*I,X+=y*(5*G),D+=X>>>13,X&=8191;var ie=D;ie+=i*G,ie+=s*H,ie+=o*K,ie+=c*V,ie+=u*W,D=ie>>>13,ie&=8191,ie+=l*F,ie+=h*L,ie+=f*R,ie+=m*C,ie+=y*I,D+=ie>>>13,ie&=8191,D=(D<<2)+D|0,D=D+B|0,B=D&8191,D=D>>>13,x+=D,i=B,s=x,o=N,c=U,u=E,l=z,h=ee,f=j,m=X,y=ie,t+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=c,this._h[4]=u,this._h[5]=l,this._h[6]=h,this._h[7]=f,this._h[8]=m,this._h[9]=y},r.prototype.finish=function(e,t){t===void 0&&(t=0);var n=new Uint16Array(10),a,i,s,o;if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(a=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=a,a=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=a*5,a=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=a,a=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=a,n[0]=this._h[0]+5,a=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this._h[o]+a,a=n[o]>>>13,n[o]&=8191;for(n[9]-=1<<13,i=(a^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this._h[o]=this._h[o]&i|n[o];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,o=1;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=s&65535;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},r.prototype.update=function(e){var t=0,n=e.length,a;if(this._leftover){a=16-this._leftover,a>n&&(a=n);for(var i=0;i=16&&(a=n-n%16,this._blocks(e,t,a),t+=a,n-=a),n){for(var i=0;i{"use strict";d();p();Object.defineProperty(dy,"__esModule",{value:!0});var I1e=UEt(),qmn=zEt(),cae=Wp(),KEt=eQ(),Fmn=_1e();dy.KEY_LENGTH=32;dy.NONCE_LENGTH=12;dy.TAG_LENGTH=16;var GEt=new Uint8Array(16),Wmn=function(){function r(e){if(this.nonceLength=dy.NONCE_LENGTH,this.tagLength=dy.TAG_LENGTH,e.length!==dy.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return r.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(e,i.length-e.length);var s=new Uint8Array(32);I1e.stream(this._key,i,s,4);var o=t.length+this.tagLength,c;if(a){if(a.length!==o)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(o);return I1e.streamXOR(this._key,i,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),cae.wipe(i),c},r.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&i.update(GEt.subarray(a.length%16))),i.update(n),n.length%16>0&&i.update(GEt.subarray(n.length%16));var s=new Uint8Array(8);a&&KEt.writeUint64LE(a.length,s),i.update(s),KEt.writeUint64LE(n.length,s),i.update(s);for(var o=i.digest(),c=0;c{"use strict";d();p();Object.defineProperty(wNe,"__esModule",{value:!0});function Umn(r){return typeof r.saveState<"u"&&typeof r.restoreState<"u"&&typeof r.cleanSavedState<"u"}wNe.isSerializableHash=Umn});var QEt=_(uae=>{"use strict";d();p();Object.defineProperty(uae,"__esModule",{value:!0});var Mm=YEt(),Hmn=_1e(),jmn=Wp(),$Et=function(){function r(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";d();p();Object.defineProperty(xNe,"__esModule",{value:!0});var JEt=QEt(),ZEt=Wp(),Kmn=function(){function r(e,t,n,a){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=JEt.hmac(this._hash,n,t);this._hmac=new JEt.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return r.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},r.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();Object.defineProperty(E1e,"__esModule",{value:!0});E1e.BrowserRandomSource=void 0;var eCt=65536,_Ne=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let n=0;n{"use strict";d();p();Object.defineProperty(C1e,"__esModule",{value:!0});C1e.NodeRandomSource=void 0;var Gmn=Wp(),TNe=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof tqe<"u"){let e=l3e();e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(e);for(let a=0;a{"use strict";d();p();Object.defineProperty(k1e,"__esModule",{value:!0});k1e.SystemRandomSource=void 0;var Vmn=tCt(),Ymn=rCt(),INe=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Vmn.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new Ymn.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}};k1e.SystemRandomSource=INe});var lae=_(Mu=>{"use strict";d();p();Object.defineProperty(Mu,"__esModule",{value:!0});Mu.randomStringForEntropy=Mu.randomString=Mu.randomUint32=Mu.randomBytes=Mu.defaultRandomSource=void 0;var $mn=nCt(),Qmn=eQ(),aCt=Wp();Mu.defaultRandomSource=new $mn.SystemRandomSource;function ENe(r,e=Mu.defaultRandomSource){return e.randomBytes(r)}Mu.randomBytes=ENe;function Jmn(r=Mu.defaultRandomSource){let e=ENe(4,r),t=(0,Qmn.readUint32LE)(e);return(0,aCt.wipe)(e),t}Mu.randomUint32=Jmn;var iCt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function sCt(r,e=iCt,t=Mu.defaultRandomSource){if(e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");let n="",a=e.length,i=256-256%a;for(;r>0;){let s=ENe(Math.ceil(r*256/i),t);for(let o=0;o0;o++){let c=s[o];c{"use strict";d();p();Object.defineProperty(P1,"__esModule",{value:!0});var P1e=eQ(),A1e=Wp();P1.DIGEST_LENGTH=32;P1.BLOCK_SIZE=64;var oCt=function(){function r(){this.digestLength=P1.DIGEST_LENGTH,this.blockSize=P1.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){A1e.wipe(this._buffer),A1e.wipe(this._temp),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(CNe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=CNe(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){A1e.wipe(e.state),e.buffer&&A1e.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();P1.SHA256=oCt;var Xmn=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function CNe(r,e,t,n,a){for(;a>=64;){for(var i=e[0],s=e[1],o=e[2],c=e[3],u=e[4],l=e[5],h=e[6],f=e[7],m=0;m<16;m++){var y=n+m*4;r[m]=P1e.readUint32BE(t,y)}for(var m=16;m<64;m++){var I=r[m-2],C=(I>>>17|I<<32-17)^(I>>>19|I<<32-19)^I>>>10;I=r[m-15];var R=(I>>>7|I<<32-7)^(I>>>18|I<<32-18)^I>>>3;r[m]=(C+r[m-7]|0)+(R+r[m-16]|0)}for(var m=0;m<64;m++){var C=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&h)|0)+(f+(Xmn[m]+r[m]|0)|0)|0,R=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&o^s&o)|0;f=h,h=l,l=u,u=c+C|0,c=o,o=s,s=i,i=C+R|0}e[0]+=i,e[1]+=s,e[2]+=o,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=h,e[7]+=f,n+=64,a-=64}return n}function e0n(r){var e=new oCt;e.update(r);var t=e.digest();return e.clean(),t}P1.hash=e0n});var pCt=_(ms=>{"use strict";d();p();Object.defineProperty(ms,"__esModule",{value:!0});ms.sharedKey=ms.generateKeyPair=ms.generateKeyPairFromSeed=ms.scalarMultBase=ms.scalarMult=ms.SHARED_KEY_LENGTH=ms.SECRET_KEY_LENGTH=ms.PUBLIC_KEY_LENGTH=void 0;var t0n=lae(),r0n=Wp();ms.PUBLIC_KEY_LENGTH=32;ms.SECRET_KEY_LENGTH=32;ms.SHARED_KEY_LENGTH=32;function Nm(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,dae(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function i0n(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function S1e(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function R1e(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function py(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,I=0,C=0,R=0,L=0,F=0,W=0,V=0,K=0,H=0,G=0,Q=0,q=0,T=0,M=0,A=0,v=0,k=0,O=0,D=0,B=0,x=0,N=t[0],U=t[1],E=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*E,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,I+=n*ke,C+=n*ge,R+=n*me,L+=n*Ke,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*E,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,I+=n*he,C+=n*ke,R+=n*ge,L+=n*me,F+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*E,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,I+=n*ue,C+=n*he,R+=n*ke,L+=n*ge,F+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*E,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,I+=n*ie,C+=n*ue,R+=n*he,L+=n*ke,F+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*E,f+=n*z,m+=n*ee,y+=n*j,I+=n*X,C+=n*ie,R+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*E,m+=n*z,y+=n*ee,I+=n*j,C+=n*X,R+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,Q+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*E,y+=n*z,I+=n*ee,C+=n*j,R+=n*X,L+=n*ie,F+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,Q+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*E,I+=n*z,C+=n*ee,R+=n*j,L+=n*X,F+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,Q+=n*Ke,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,I+=n*E,C+=n*z,R+=n*ee,L+=n*j,F+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,Q+=n*me,q+=n*Ke,T+=n*ve,M+=n*Ae,n=e[9],y+=n*N,I+=n*U,C+=n*E,R+=n*z,L+=n*ee,F+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,Q+=n*ge,q+=n*me,T+=n*Ke,M+=n*ve,A+=n*Ae,n=e[10],I+=n*N,C+=n*U,R+=n*E,L+=n*z,F+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,Q+=n*ke,q+=n*ge,T+=n*me,M+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],C+=n*N,R+=n*U,L+=n*E,F+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,Q+=n*he,q+=n*ke,T+=n*ge,M+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],R+=n*N,L+=n*U,F+=n*E,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,Q+=n*ue,q+=n*he,T+=n*ke,M+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*E,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,Q+=n*ie,q+=n*ue,T+=n*he,M+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,V+=n*E,K+=n*z,H+=n*ee,G+=n*j,Q+=n*X,q+=n*ie,T+=n*ue,M+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*E,H+=n*z,G+=n*ee,Q+=n*j,q+=n*X,T+=n*ie,M+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,x+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*Q,l+=38*q,h+=38*T,f+=38*M,m+=38*A,y+=38*v,I+=38*k,C+=38*O,R+=38*D,L+=38*B,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=I,r[11]=C,r[12]=R,r[13]=L,r[14]=F,r[15]=W}function pae(r,e){py(r,e,e)}function s0n(r,e){let t=Nm();for(let n=0;n<16;n++)t[n]=e[n];for(let n=253;n>=0;n--)pae(t,t),n!==2&&n!==4&&py(t,t,e);for(let n=0;n<16;n++)r[n]=t[n]}function ANe(r,e){let t=new Uint8Array(32),n=new Float64Array(80),a=Nm(),i=Nm(),s=Nm(),o=Nm(),c=Nm(),u=Nm();for(let m=0;m<31;m++)t[m]=r[m];t[31]=r[31]&127|64,t[0]&=248,i0n(n,e);for(let m=0;m<16;m++)i[m]=n[m];a[0]=o[0]=1;for(let m=254;m>=0;--m){let y=t[m>>>3]>>>(m&7)&1;dae(a,i,y),dae(s,o,y),S1e(c,a,s),R1e(a,a,s),S1e(s,i,o),R1e(i,i,o),pae(o,c),pae(u,a),py(a,s,a),py(s,i,c),S1e(c,a,s),R1e(a,a,s),pae(i,a),R1e(s,o,u),py(a,s,n0n),S1e(a,a,o),py(s,s,a),py(a,o,u),py(o,i,n),pae(i,c),dae(a,i,y),dae(s,o,y)}for(let m=0;m<16;m++)n[m+16]=a[m],n[m+32]=s[m],n[m+48]=i[m],n[m+64]=o[m];let l=n.subarray(32),h=n.subarray(16);s0n(l,l),py(h,h,l);let f=new Uint8Array(32);return a0n(f,h),f}ms.scalarMult=ANe;function lCt(r){return ANe(r,uCt)}ms.scalarMultBase=lCt;function dCt(r){if(r.length!==ms.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ms.SECRET_KEY_LENGTH} bytes`);let e=new Uint8Array(r);return{publicKey:lCt(e),secretKey:e}}ms.generateKeyPairFromSeed=dCt;function o0n(r){let e=(0,t0n.randomBytes)(32,r),t=dCt(e);return(0,r0n.wipe)(e),t}ms.generateKeyPair=o0n;function c0n(r,e,t=!1){if(r.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=ANe(r,e);if(t){let a=0;for(let i=0;ie[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{d();p()});function mCt(r,e){if(r.length!==e.length)throw new Error("Inputs should have the same length");let t=FG(r.length);for(let n=0;n{d();p();Tle();rX()});var gCt={};cr(gCt,{compare:()=>hCt,concat:()=>aX,equals:()=>vTe,fromString:()=>_h,toString:()=>Xf,xor:()=>mCt});var bCt=ce(()=>{d();p();fCt();Zv();Nle();Jv();WG();yCt()});var vCt=_(M1e=>{"use strict";d();p();Object.defineProperty(M1e,"__esModule",{value:!0});M1e.delay=void 0;function u0n(r){return new Promise(e=>{setTimeout(()=>{e(!0)},r)})}M1e.delay=u0n});var wCt=_(rQ=>{"use strict";d();p();Object.defineProperty(rQ,"__esModule",{value:!0});rQ.ONE_THOUSAND=rQ.ONE_HUNDRED=void 0;rQ.ONE_HUNDRED=100;rQ.ONE_THOUSAND=1e3});var xCt=_(He=>{"use strict";d();p();Object.defineProperty(He,"__esModule",{value:!0});He.ONE_YEAR=He.FOUR_WEEKS=He.THREE_WEEKS=He.TWO_WEEKS=He.ONE_WEEK=He.THIRTY_DAYS=He.SEVEN_DAYS=He.FIVE_DAYS=He.THREE_DAYS=He.ONE_DAY=He.TWENTY_FOUR_HOURS=He.TWELVE_HOURS=He.SIX_HOURS=He.THREE_HOURS=He.ONE_HOUR=He.SIXTY_MINUTES=He.THIRTY_MINUTES=He.TEN_MINUTES=He.FIVE_MINUTES=He.ONE_MINUTE=He.SIXTY_SECONDS=He.THIRTY_SECONDS=He.TEN_SECONDS=He.FIVE_SECONDS=He.ONE_SECOND=void 0;He.ONE_SECOND=1;He.FIVE_SECONDS=5;He.TEN_SECONDS=10;He.THIRTY_SECONDS=30;He.SIXTY_SECONDS=60;He.ONE_MINUTE=He.SIXTY_SECONDS;He.FIVE_MINUTES=He.ONE_MINUTE*5;He.TEN_MINUTES=He.ONE_MINUTE*10;He.THIRTY_MINUTES=He.ONE_MINUTE*30;He.SIXTY_MINUTES=He.ONE_MINUTE*60;He.ONE_HOUR=He.SIXTY_MINUTES;He.THREE_HOURS=He.ONE_HOUR*3;He.SIX_HOURS=He.ONE_HOUR*6;He.TWELVE_HOURS=He.ONE_HOUR*12;He.TWENTY_FOUR_HOURS=He.ONE_HOUR*24;He.ONE_DAY=He.TWENTY_FOUR_HOURS;He.THREE_DAYS=He.ONE_DAY*3;He.FIVE_DAYS=He.ONE_DAY*5;He.SEVEN_DAYS=He.ONE_DAY*7;He.THIRTY_DAYS=He.ONE_DAY*30;He.ONE_WEEK=He.SEVEN_DAYS;He.TWO_WEEKS=He.ONE_WEEK*2;He.THREE_WEEKS=He.ONE_WEEK*3;He.FOUR_WEEKS=He.ONE_WEEK*4;He.ONE_YEAR=He.ONE_DAY*365});var PNe=_(N1e=>{"use strict";d();p();Object.defineProperty(N1e,"__esModule",{value:!0});var _Ct=vd();_Ct.__exportStar(wCt(),N1e);_Ct.__exportStar(xCt(),N1e)});var ICt=_(nQ=>{"use strict";d();p();Object.defineProperty(nQ,"__esModule",{value:!0});nQ.fromMiliseconds=nQ.toMiliseconds=void 0;var TCt=PNe();function l0n(r){return r*TCt.ONE_THOUSAND}nQ.toMiliseconds=l0n;function d0n(r){return Math.floor(r/TCt.ONE_THOUSAND)}nQ.fromMiliseconds=d0n});var CCt=_(B1e=>{"use strict";d();p();Object.defineProperty(B1e,"__esModule",{value:!0});var ECt=vd();ECt.__exportStar(vCt(),B1e);ECt.__exportStar(ICt(),B1e)});var kCt=_(hae=>{"use strict";d();p();Object.defineProperty(hae,"__esModule",{value:!0});hae.Watch=void 0;var D1e=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(typeof t.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){let t=this.timestamps.get(e);if(typeof t>"u")throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}};hae.Watch=D1e;hae.default=D1e});var ACt=_(L1e=>{"use strict";d();p();Object.defineProperty(L1e,"__esModule",{value:!0});L1e.IWatch=void 0;var SNe=class{};L1e.IWatch=SNe});var PCt=_(RNe=>{"use strict";d();p();Object.defineProperty(RNe,"__esModule",{value:!0});var p0n=vd();p0n.__exportStar(ACt(),RNe)});var Qw=_(aQ=>{"use strict";d();p();Object.defineProperty(aQ,"__esModule",{value:!0});var O1e=vd();O1e.__exportStar(CCt(),aQ);O1e.__exportStar(kCt(),aQ);O1e.__exportStar(PCt(),aQ);O1e.__exportStar(PNe(),aQ)});var OCt=_(Fl=>{"use strict";d();p();var h0n=k9e(),f0n=P9e(),RCt=S9e(),m0n=R9e(),y0n=r=>r==null,MNe=Symbol("encodeFragmentIdentifier");function g0n(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),"[",a,"]"].join("")]:[...t,[Bs(e,r),"[",Bs(a,r),"]=",Bs(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),"[]"].join("")]:[...t,[Bs(e,r),"[]=",Bs(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),":list="].join("")]:[...t,[Bs(e,r),":list=",Bs(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{let e=r.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(n,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[Bs(t,r),e,Bs(a,r)].join("")]:[[n,Bs(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Bs(e,r)]:[...t,[Bs(e,r),"=",Bs(n,r)].join("")]}}function b0n(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"colon-list-separator":return(t,n,a)=>{if(e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&hy(n,r).includes(r.arrayFormatSeparator);n=s?hy(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>hy(c,r)):n===null?n:hy(n,r);a[t]=o};case"bracket-separator":return(t,n,a)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){a[t]=n&&hy(n,r);return}let s=n===null?[]:n.split(r.arrayFormatSeparator).map(o=>hy(o,r));if(a[t]===void 0){a[t]=s;return}a[t]=[].concat(a[t],s)};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function MCt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Bs(r,e){return e.encode?e.strict?h0n(r):encodeURIComponent(r):r}function hy(r,e){return e.decode?f0n(r):r}function NCt(r){return Array.isArray(r)?r.sort():typeof r=="object"?NCt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function BCt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function v0n(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function DCt(r){r=BCt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function SCt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function LCt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),MCt(e.arrayFormatSeparator);let t=b0n(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=RCt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:hy(s,e),t(hy(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=SCt(i[s],e);else n[a]=SCt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=NCt(s):a[i]=s,a},Object.create(null))}Fl.extract=DCt;Fl.parse=LCt;Fl.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),MCt(e.arrayFormatSeparator);let t=s=>e.skipNull&&y0n(r[s])||e.skipEmptyString&&r[s]==="",n=g0n(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Bs(s,e):Array.isArray(o)?o.length===0&&e.arrayFormat==="bracket-separator"?Bs(s,e)+"[]":o.reduce(n(s),[]).join("&"):Bs(s,e)+"="+Bs(o,e)}).filter(s=>s.length>0).join("&")};Fl.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=RCt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:LCt(DCt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:hy(n,e)}:{})};Fl.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[MNe]:!0},e);let t=BCt(r.url).split("?")[0]||"",n=Fl.extract(r.url),a=Fl.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Fl.stringify(i,e);s&&(s=`?${s}`);let o=v0n(r.url);return r.fragmentIdentifier&&(o=`#${e[MNe]?Bs(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${t}${s}${o}`};Fl.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[MNe]:!1},t);let{url:n,query:a,fragmentIdentifier:i}=Fl.parseUrl(r,t);return Fl.stringifyUrl({url:n,query:m0n(a,e),fragmentIdentifier:i},t)};Fl.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Fl.pick(r,n,t)}});var qCt=ce(()=>{d();p()});function S1(r,e,t="string"){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function w0n(r,e){let t=!0;return e.forEach(n=>{n in r||(t=!1)}),t}function x0n(r,e){return Array.isArray(r)?r.length===e:Object.keys(r).length===e}function _0n(r,e){return Array.isArray(r)?r.length>=e:Object.keys(r).length>=e}function fae(r,e,t){return(!t.length?x0n(r,e.length):_0n(r,e.length))?w0n(r,e):!1}function mae(r,e,t="_"){let n=r.split(t);return n[n.length-1].trim().toLowerCase()===e.trim().toLowerCase()}var NNe=ce(()=>{d();p()});function T0n(r){return q1e(r.method)&&F1e(r.params)}function q1e(r){return mae(r,"subscribe")}function F1e(r){return fae(r,["topic"],[])}function I0n(r){return W1e(r.method)&&U1e(r.params)}function W1e(r){return mae(r,"publish")}function U1e(r){return fae(r,["message","topic","ttl"],["prompt","tag"])}function E0n(r){return H1e(r.method)&&j1e(r.params)}function H1e(r){return mae(r,"unsubscribe")}function j1e(r){return fae(r,["id","topic"],[])}function C0n(r){return z1e(r.method)&&K1e(r.params)}function z1e(r){return mae(r,"subscription")}function K1e(r){return fae(r,["id","data"],[])}var BNe=ce(()=>{d();p();NNe()});function k0n(r){if(!q1e(r.method))throw new Error("JSON-RPC Request has invalid subscribe method");if(!F1e(r.params))throw new Error("JSON-RPC Request has invalid subscribe params");let e=r.params;return S1(e,"topic"),e}function A0n(r){if(!W1e(r.method))throw new Error("JSON-RPC Request has invalid publish method");if(!U1e(r.params))throw new Error("JSON-RPC Request has invalid publish params");let e=r.params;return S1(e,"topic"),S1(e,"message"),S1(e,"ttl","number"),e}function P0n(r){if(!H1e(r.method))throw new Error("JSON-RPC Request has invalid unsubscribe method");if(!j1e(r.params))throw new Error("JSON-RPC Request has invalid unsubscribe params");let e=r.params;return S1(e,"id"),e}function S0n(r){if(!z1e(r.method))throw new Error("JSON-RPC Request has invalid subscription method");if(!K1e(r.params))throw new Error("JSON-RPC Request has invalid subscription params");let e=r.params;return S1(e,"id"),S1(e,"data"),e}var FCt=ce(()=>{d();p();NNe();BNe()});var R0n,WCt=ce(()=>{d();p();R0n={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}});var UCt={};cr(UCt,{RELAY_JSONRPC:()=>R0n,isPublishMethod:()=>W1e,isPublishParams:()=>U1e,isPublishRequest:()=>I0n,isSubscribeMethod:()=>q1e,isSubscribeParams:()=>F1e,isSubscribeRequest:()=>T0n,isSubscriptionMethod:()=>z1e,isSubscriptionParams:()=>K1e,isSubscriptionRequest:()=>C0n,isUnsubscribeMethod:()=>H1e,isUnsubscribeParams:()=>j1e,isUnsubscribeRequest:()=>E0n,parsePublishRequest:()=>A0n,parseSubscribeRequest:()=>k0n,parseSubscriptionRequest:()=>S0n,parseUnsubscribeRequest:()=>P0n});var HCt=ce(()=>{d();p();qCt();FCt();WCt();BNe()});var vae=_(we=>{"use strict";d();p();Object.defineProperty(we,"__esModule",{value:!0});var QCt=VEt(),M0n=XEt(),JCt=lae(),ONe=cCt(),N0n=pCt(),Li=(bCt(),nt(gCt)),B0n=f9e(),sQ=Qw(),yae=Fge(),D0n=I9e(),L0n=OCt(),O0n=(HCt(),nt(UCt));function ZCt(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var XCt=ZCt(N0n),G1e=ZCt(L0n),$1e=":";function e8t(r){let[e,t]=r.split($1e);return{namespace:e,reference:t}}function t8t(r){let{namespace:e,reference:t}=r;return[e,t].join($1e)}function qNe(r){let[e,t,n]=r.split($1e);return{namespace:e,reference:t,address:n}}function r8t(r){let{namespace:e,reference:t,address:n}=r;return[e,t,n].join($1e)}function FNe(r,e){let t=[];return r.forEach(n=>{let a=e(n);t.includes(a)||t.push(a)}),t}function n8t(r){let{address:e}=qNe(r);return e}function a8t(r){let{namespace:e,reference:t}=qNe(r);return t8t({namespace:e,reference:t})}function q0n(r,e){let{namespace:t,reference:n}=e8t(e);return r8t({namespace:t,reference:n,address:r})}function F0n(r){return FNe(r,n8t)}function i8t(r){return FNe(r,a8t)}function W0n(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...a.accounts)}),t}function U0n(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...i8t(a.accounts))}),t}function H0n(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...Q1e(n,a))}),t}function Q1e(r,e){return r.includes(":")?[r]:e.chains||[]}var J1e=r=>r?.split(":"),s8t=r=>{let e=r&&J1e(r);if(e)return e[3]},j0n=r=>{let e=r&&J1e(r);if(e)return e[2]+":"+e[3]},o8t=r=>{let e=r&&J1e(r);if(e)return e.pop()},z0n=(r,e)=>{let t=`${r.domain} wants you to sign in with your Ethereum account:`,n=o8t(e),a=r.statement,i=`URI: ${r.aud}`,s=`Version: ${r.version}`,o=`Chain ID: ${s8t(e)}`,c=`Nonce: ${r.nonce}`,u=`Issued At: ${r.iat}`,l=r.resources&&r.resources.length>0?`Resources: ${r.resources.map(h=>`- ${h}`).join(` `)}`:void 0;return[t,n,"",a,"",i,s,o,c,u,l].filter(h=>h!=null).join(` -`)},Rhe="base10",rl="base16",uj="base64pad",fj="utf8",Mhe=0,L6=1,khn=0,eCt=1,Ihe=12,Nhe=32;function Ahn(){let r=lCt.generateKeyPair();return{privateKey:Hi.toString(r.secretKey,rl),publicKey:Hi.toString(r.publicKey,rl)}}function Shn(){let r=cCt.randomBytes(Nhe);return Hi.toString(r,rl)}function Phn(r,e){let t=lCt.sharedKey(Hi.fromString(r,rl),Hi.fromString(e,rl)),n=new fhn.HKDF(Ahe.SHA256,t).expand(Nhe);return Hi.toString(n,rl)}function Rhn(r){let e=Ahe.hash(Hi.fromString(r,rl));return Hi.toString(e,rl)}function Mhn(r){let e=Ahe.hash(Hi.fromString(r,fj));return Hi.toString(e,rl)}function vCt(r){return Hi.fromString(`${r}`,Rhe)}function US(r){return Number(Hi.toString(r,Rhe))}function Nhn(r){let e=vCt(typeof r.type<"u"?r.type:Mhe);if(US(e)===L6&&typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let t=typeof r.senderPublicKey<"u"?Hi.fromString(r.senderPublicKey,rl):void 0,n=typeof r.iv<"u"?Hi.fromString(r.iv,rl):cCt.randomBytes(Ihe),a=new oCt.ChaCha20Poly1305(Hi.fromString(r.symKey,rl)).seal(n,Hi.fromString(r.message,fj));return wCt({type:e,sealed:a,iv:n,senderPublicKey:t})}function Bhn(r){let e=new oCt.ChaCha20Poly1305(Hi.fromString(r.symKey,rl)),{sealed:t,iv:n}=Bhe(r.encoded),a=e.open(n,t);if(a===null)throw new Error("Failed to decrypt");return Hi.toString(a,fj)}function wCt(r){if(US(r.type)===L6){if(typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Hi.toString(Hi.concat([r.type,r.senderPublicKey,r.iv,r.sealed]),uj)}return Hi.toString(Hi.concat([r.type,r.iv,r.sealed]),uj)}function Bhe(r){let e=Hi.fromString(r,uj),t=e.slice(khn,eCt),n=eCt;if(US(t)===L6){let o=n+Nhe,c=o+Ihe,u=e.slice(n,o),l=e.slice(o,c),h=e.slice(c);return{type:t,sealed:h,iv:l,senderPublicKey:u}}let a=n+Ihe,i=e.slice(n,a),s=e.slice(a);return{type:t,sealed:s,iv:i}}function Dhn(r,e){let t=Bhe(r);return _Ct({type:US(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?Hi.toString(t.senderPublicKey,rl):void 0,receiverPublicKey:e?.receiverPublicKey})}function _Ct(r){let e=r?.type||Mhe;if(e===L6){if(typeof r?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof r?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:r?.senderPublicKey,receiverPublicKey:r?.receiverPublicKey}}function Ohn(r){return r.type===L6&&typeof r.senderPublicKey=="string"&&typeof r.receiverPublicKey=="string"}var Lhn=Object.defineProperty,tCt=Object.getOwnPropertySymbols,Fhn=Object.prototype.hasOwnProperty,qhn=Object.prototype.propertyIsEnumerable,rCt=(r,e,t)=>e in r?Lhn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,nCt=(r,e)=>{for(var t in e||(e={}))Fhn.call(e,t)&&rCt(r,t,e[t]);if(tCt)for(var t of tCt(e))qhn.call(e,t)&&rCt(r,t,e[t]);return r},xCt="ReactNative",D6={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},lj=" ",Whn=":",TCt="/",Dhe=2,Uhn=1e3,ECt="js";function Ohe(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}function CCt(){return!WS.getDocument()&&!!WS.getNavigator()&&navigator.product===xCt}function ICt(){return!Ohe()&&!!WS.getNavigator()}function Lhe(){return CCt()?D6.reactNative:Ohe()?D6.node:ICt()?D6.browser:D6.unknown}function kCt(r,e){let t=cj.parse(r);return t=nCt(nCt({},t),e),r=cj.stringify(t),r}function Hhn(){return ghn.getWindowMetadata()||{name:"",description:"",url:"",icons:[""]}}function jhn(r,e){var t;let n=Lhe(),a={protocol:r,version:e,env:n};return n==="browser"&&(a.host=((t=WS.getLocation())==null?void 0:t.host)||"unknown"),a}function ACt(){let r=yhn.detect();if(r===null)return"unknown";let e=r.os?r.os.replace(" ","").toLowerCase():"unknown";return r.type==="browser"?[e,r.name,r.version].join("-"):[e,r.version].join("-")}function SCt(){var r;let e=Lhe();return e===D6.browser?[e,((r=WS.getLocation())==null?void 0:r.host)||"unknown"].join(":"):e}function PCt(r,e,t){let n=ACt(),a=SCt();return[[r,e].join("-"),[ECt,t].join("-"),n,a].join("/")}function zhn({protocol:r,version:e,relayUrl:t,sdkVersion:n,auth:a,projectId:i,useOnCloseEvent:s}){let o=t.split("?"),c=PCt(r,e,n),u={auth:a,ua:c,projectId:i,useOnCloseEvent:s||void 0},l=kCt(o[1]||"",u);return o[0]+"?"+l}function Khn(r){let e=(r.match(/^[^:]+(?=:\/\/)/gi)||[])[0],t=typeof e<"u"?r.split("://")[1]:r;return e=e==="wss"?"https":"http",[e,t].join("://")}function Ghn(r,e,t){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function RCt(r,e=Dhe){return MCt(r.split(TCt),e)}function Vhn(r){return RCt(r).join(lj)}function Sg(r,e){return r.filter(t=>e.includes(t)).length===r.length}function MCt(r,e=Dhe){return r.slice(Math.max(r.length-e,0))}function $hn(r){return Object.fromEntries(r.entries())}function Yhn(r){return new Map(Object.entries(r))}function Jhn(r,e){let t={};return Object.keys(r).forEach(n=>{t[n]=e(r[n])}),t}var Qhn=r=>r;function NCt(r){return r.trim().replace(/^\w/,e=>e.toUpperCase())}function Zhn(r){return r.split(lj).map(e=>NCt(e)).join(lj)}function Xhn(r=O6.FIVE_MINUTES,e){let t=O6.toMiliseconds(r||O6.FIVE_MINUTES),n,a,i;return{resolve:s=>{i&&n&&(clearTimeout(i),n(s))},reject:s=>{i&&a&&(clearTimeout(i),a(s))},done:()=>new Promise((s,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=s,a=o})}}function efn(r,e){return new Promise(async(t,n)=>{let a=setTimeout(()=>n(),e),i=await r;clearTimeout(a),t(i)})}function Fhe(r,e){if(typeof e=="string"&&e.startsWith(`${r}:`))return e;if(r.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(r.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${r}`)}function tfn(r){return Fhe("topic",r)}function rfn(r){return Fhe("id",r)}function nfn(r){let[e,t]=r.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function afn(r,e){return O6.fromMiliseconds((e||Date.now())+O6.toMiliseconds(r))}function ifn(r){return Date.now()>=O6.toMiliseconds(r)}function sfn(r,e){return`${r}${e?`:${e}`:""}`}var BCt="irn";function ofn(r){return r?.relay||{protocol:BCt}}function cfn(r){let e=vhn.RELAY_JSONRPC[r];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${r}`);return e}var ufn=Object.defineProperty,aCt=Object.getOwnPropertySymbols,lfn=Object.prototype.hasOwnProperty,dfn=Object.prototype.propertyIsEnumerable,iCt=(r,e,t)=>e in r?ufn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,pfn=(r,e)=>{for(var t in e||(e={}))lfn.call(e,t)&&iCt(r,t,e[t]);if(aCt)for(var t of aCt(e))dfn.call(e,t)&&iCt(r,t,e[t]);return r};function DCt(r,e="-"){let t={},n="relay"+e;return Object.keys(r).forEach(a=>{if(a.startsWith(n)){let i=a.replace(n,""),s=r[a];t[i]=s}}),t}function hfn(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t).split("@"),i=typeof t<"u"?r.substring(t):"",s=cj.parse(i);return{protocol:n,topic:a[0],version:parseInt(a[1],10),symKey:s.symKey,relay:DCt(s)}}function OCt(r,e="-"){let t="relay",n={};return Object.keys(r).forEach(a=>{let i=t+e+a;r[a]&&(n[i]=r[a])}),n}function ffn(r){return`${r.protocol}:${r.topic}@${r.version}?`+cj.stringify(pfn({symKey:r.symKey},OCt(r.relay)))}function yw(r){let e=[];return r.forEach(t=>{let[n,a]=t.split(":");e.push(`${n}:${a}`)}),e}function LCt(r){let e=[];return Object.values(r).forEach(t=>{e.push(...yw(t.accounts))}),e}function FCt(r,e){let t=[];return Object.values(r).forEach(n=>{yw(n.accounts).includes(e)&&t.push(...n.methods)}),t}function qCt(r,e){let t=[];return Object.values(r).forEach(n=>{yw(n.accounts).includes(e)&&t.push(...n.events)}),t}function mfn(r,e){let t=GCt(r,e);if(t)throw new Error(t.message);let n={};for(let[a,i]of Object.entries(r))n[a]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var yfn={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},gfn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ly(r,e){let{message:t,code:n}=gfn[r];return{message:e?`${t} ${e}`:t,code:n}}function mw(r,e){let{message:t,code:n}=yfn[r];return{message:e?`${t} ${e}`:t,code:n}}function HS(r,e){return Array.isArray(r)?typeof e<"u"&&r.length?r.every(e):!0:!1}function qhe(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.keys(r).length}function Pg(r){return typeof r>"u"}function Cd(r,e){return e&&Pg(r)?!0:typeof r=="string"&&Boolean(r.trim().length)}function mj(r,e){return e&&Pg(r)?!0:typeof r=="number"&&!isNaN(r)}function bfn(r,e){let{requiredNamespaces:t}=e,n=Object.keys(r.namespaces),a=Object.keys(t),i=!0;return Sg(a,n)?(n.forEach(s=>{let{accounts:o,methods:c,events:u}=r.namespaces[s],l=yw(o),h=t[s];(!Sg(pj(s,h),l)||!Sg(h.methods,c)||!Sg(h.events,u))&&(i=!1)}),i):!1}function yj(r){return Cd(r,!1)&&r.includes(":")?r.split(":").length===2:!1}function WCt(r){if(Cd(r,!1)&&r.includes(":")){let e=r.split(":");if(e.length===3){let t=e[0]+":"+e[1];return!!e[2]&&yj(t)}}return!1}function vfn(r){if(Cd(r,!1))try{return typeof new URL(r)<"u"}catch{return!1}return!1}function wfn(r){var e;return(e=r?.proposer)==null?void 0:e.publicKey}function _fn(r){return r?.topic}function xfn(r,e){let t=null;return Cd(r?.publicKey,!1)||(t=ly("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function khe(r){let e=!0;return HS(r)?r.length&&(e=r.every(t=>Cd(t,!1))):e=!1,e}function UCt(r,e,t){let n=null;return HS(e)?e.forEach(a=>{n||(!yj(a)||!a.includes(r))&&(n=mw("UNSUPPORTED_CHAINS",`${t}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):n=mw("UNSUPPORTED_CHAINS",`${t}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function HCt(r,e){let t=null;return Object.entries(r).forEach(([n,a])=>{if(t)return;let i=UCt(n,pj(n,a),`${e} requiredNamespace`);i&&(t=i)}),t}function jCt(r,e){let t=null;return HS(r)?r.forEach(n=>{t||WCt(n)||(t=mw("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=mw("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function zCt(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=jCt(n?.accounts,`${e} namespace`);a&&(t=a)}),t}function KCt(r,e){let t=null;return khe(r?.methods)?khe(r?.events)||(t=mw("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=mw("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function Whe(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=KCt(n,`${e}, namespace`);a&&(t=a)}),t}function Tfn(r,e,t){let n=null;if(r&&qhe(r)){let a=Whe(r,e);a&&(n=a);let i=HCt(r,e);i&&(n=i)}else n=ly("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function GCt(r,e){let t=null;if(r&&qhe(r)){let n=Whe(r,e);n&&(t=n);let a=zCt(r,e);a&&(t=a)}else t=ly("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function VCt(r){return Cd(r.protocol,!0)}function Efn(r,e){let t=!1;return e&&!r?t=!0:r&&HS(r)&&r.length&&r.forEach(n=>{t=VCt(n)}),t}function Cfn(r){return typeof r=="number"}function Ifn(r){return typeof r<"u"&&typeof r!==null}function kfn(r){return!(!r||typeof r!="object"||!r.code||!mj(r.code,!1)||!r.message||!Cd(r.message,!1))}function Afn(r){return!(Pg(r)||!Cd(r.method,!1))}function Sfn(r){return!(Pg(r)||Pg(r.result)&&Pg(r.error)||!mj(r.id,!1)||!Cd(r.jsonrpc,!1))}function Pfn(r){return!(Pg(r)||!Cd(r.name,!1))}function Rfn(r,e){return!(!yj(e)||!LCt(r).includes(e))}function Mfn(r,e,t){return Cd(t,!1)?FCt(r,e).includes(t):!1}function Nfn(r,e,t){return Cd(t,!1)?qCt(r,e).includes(t):!1}function Bfn(r,e,t){let n=null,a=Dfn(r),i=Ofn(e),s=Object.keys(a),o=Object.keys(i),c=sCt(Object.keys(r)),u=sCt(Object.keys(e)),l=c.filter(h=>!u.includes(h));return l.length&&(n=ly("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. +`)},WNe="base10",el="base16",V1e="base64pad",Z1e="utf8",UNe=0,oQ=1,K0n=0,jCt=1,DNe=12,HNe=32;function G0n(){let r=XCt.generateKeyPair();return{privateKey:Li.toString(r.secretKey,el),publicKey:Li.toString(r.publicKey,el)}}function V0n(){let r=JCt.randomBytes(HNe);return Li.toString(r,el)}function Y0n(r,e){let t=XCt.sharedKey(Li.fromString(r,el),Li.fromString(e,el)),n=new M0n.HKDF(ONe.SHA256,t).expand(HNe);return Li.toString(n,el)}function $0n(r){let e=ONe.hash(Li.fromString(r,el));return Li.toString(e,el)}function Q0n(r){let e=ONe.hash(Li.fromString(r,Z1e));return Li.toString(e,el)}function c8t(r){return Li.fromString(`${r}`,WNe)}function gae(r){return Number(Li.toString(r,WNe))}function J0n(r){let e=c8t(typeof r.type<"u"?r.type:UNe);if(gae(e)===oQ&&typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let t=typeof r.senderPublicKey<"u"?Li.fromString(r.senderPublicKey,el):void 0,n=typeof r.iv<"u"?Li.fromString(r.iv,el):JCt.randomBytes(DNe),a=new QCt.ChaCha20Poly1305(Li.fromString(r.symKey,el)).seal(n,Li.fromString(r.message,Z1e));return u8t({type:e,sealed:a,iv:n,senderPublicKey:t})}function Z0n(r){let e=new QCt.ChaCha20Poly1305(Li.fromString(r.symKey,el)),{sealed:t,iv:n}=jNe(r.encoded),a=e.open(n,t);if(a===null)throw new Error("Failed to decrypt");return Li.toString(a,Z1e)}function u8t(r){if(gae(r.type)===oQ){if(typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Li.toString(Li.concat([r.type,r.senderPublicKey,r.iv,r.sealed]),V1e)}return Li.toString(Li.concat([r.type,r.iv,r.sealed]),V1e)}function jNe(r){let e=Li.fromString(r,V1e),t=e.slice(K0n,jCt),n=jCt;if(gae(t)===oQ){let o=n+HNe,c=o+DNe,u=e.slice(n,o),l=e.slice(o,c),h=e.slice(c);return{type:t,sealed:h,iv:l,senderPublicKey:u}}let a=n+DNe,i=e.slice(n,a),s=e.slice(a);return{type:t,sealed:s,iv:i}}function X0n(r,e){let t=jNe(r);return l8t({type:gae(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?Li.toString(t.senderPublicKey,el):void 0,receiverPublicKey:e?.receiverPublicKey})}function l8t(r){let e=r?.type||UNe;if(e===oQ){if(typeof r?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof r?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:r?.senderPublicKey,receiverPublicKey:r?.receiverPublicKey}}function eyn(r){return r.type===oQ&&typeof r.senderPublicKey=="string"&&typeof r.receiverPublicKey=="string"}var tyn=Object.defineProperty,zCt=Object.getOwnPropertySymbols,ryn=Object.prototype.hasOwnProperty,nyn=Object.prototype.propertyIsEnumerable,KCt=(r,e,t)=>e in r?tyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,GCt=(r,e)=>{for(var t in e||(e={}))ryn.call(e,t)&&KCt(r,t,e[t]);if(zCt)for(var t of zCt(e))nyn.call(e,t)&&KCt(r,t,e[t]);return r},d8t="ReactNative",iQ={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},Y1e=" ",ayn=":",p8t="/",zNe=2,iyn=1e3,h8t="js";function KNe(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}function f8t(){return!yae.getDocument()&&!!yae.getNavigator()&&navigator.product===d8t}function m8t(){return!KNe()&&!!yae.getNavigator()}function GNe(){return f8t()?iQ.reactNative:KNe()?iQ.node:m8t()?iQ.browser:iQ.unknown}function y8t(r,e){let t=G1e.parse(r);return t=GCt(GCt({},t),e),r=G1e.stringify(t),r}function syn(){return D0n.getWindowMetadata()||{name:"",description:"",url:"",icons:[""]}}function oyn(r,e){var t;let n=GNe(),a={protocol:r,version:e,env:n};return n==="browser"&&(a.host=((t=yae.getLocation())==null?void 0:t.host)||"unknown"),a}function g8t(){let r=B0n.detect();if(r===null)return"unknown";let e=r.os?r.os.replace(" ","").toLowerCase():"unknown";return r.type==="browser"?[e,r.name,r.version].join("-"):[e,r.version].join("-")}function b8t(){var r;let e=GNe();return e===iQ.browser?[e,((r=yae.getLocation())==null?void 0:r.host)||"unknown"].join(":"):e}function v8t(r,e,t){let n=g8t(),a=b8t();return[[r,e].join("-"),[h8t,t].join("-"),n,a].join("/")}function cyn({protocol:r,version:e,relayUrl:t,sdkVersion:n,auth:a,projectId:i,useOnCloseEvent:s}){let o=t.split("?"),c=v8t(r,e,n),u={auth:a,ua:c,projectId:i,useOnCloseEvent:s||void 0},l=y8t(o[1]||"",u);return o[0]+"?"+l}function uyn(r){let e=(r.match(/^[^:]+(?=:\/\/)/gi)||[])[0],t=typeof e<"u"?r.split("://")[1]:r;return e=e==="wss"?"https":"http",[e,t].join("://")}function lyn(r,e,t){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function w8t(r,e=zNe){return x8t(r.split(p8t),e)}function dyn(r){return w8t(r).join(Y1e)}function R1(r,e){return r.filter(t=>e.includes(t)).length===r.length}function x8t(r,e=zNe){return r.slice(Math.max(r.length-e,0))}function pyn(r){return Object.fromEntries(r.entries())}function hyn(r){return new Map(Object.entries(r))}function fyn(r,e){let t={};return Object.keys(r).forEach(n=>{t[n]=e(r[n])}),t}var myn=r=>r;function _8t(r){return r.trim().replace(/^\w/,e=>e.toUpperCase())}function yyn(r){return r.split(Y1e).map(e=>_8t(e)).join(Y1e)}function gyn(r=sQ.FIVE_MINUTES,e){let t=sQ.toMiliseconds(r||sQ.FIVE_MINUTES),n,a,i;return{resolve:s=>{i&&n&&(clearTimeout(i),n(s))},reject:s=>{i&&a&&(clearTimeout(i),a(s))},done:()=>new Promise((s,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=s,a=o})}}function byn(r,e){return new Promise(async(t,n)=>{let a=setTimeout(()=>n(),e),i=await r;clearTimeout(a),t(i)})}function VNe(r,e){if(typeof e=="string"&&e.startsWith(`${r}:`))return e;if(r.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(r.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${r}`)}function vyn(r){return VNe("topic",r)}function wyn(r){return VNe("id",r)}function xyn(r){let[e,t]=r.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function _yn(r,e){return sQ.fromMiliseconds((e||Date.now())+sQ.toMiliseconds(r))}function Tyn(r){return Date.now()>=sQ.toMiliseconds(r)}function Iyn(r,e){return`${r}${e?`:${e}`:""}`}var T8t="irn";function Eyn(r){return r?.relay||{protocol:T8t}}function Cyn(r){let e=O0n.RELAY_JSONRPC[r];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${r}`);return e}var kyn=Object.defineProperty,VCt=Object.getOwnPropertySymbols,Ayn=Object.prototype.hasOwnProperty,Pyn=Object.prototype.propertyIsEnumerable,YCt=(r,e,t)=>e in r?kyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Syn=(r,e)=>{for(var t in e||(e={}))Ayn.call(e,t)&&YCt(r,t,e[t]);if(VCt)for(var t of VCt(e))Pyn.call(e,t)&&YCt(r,t,e[t]);return r};function I8t(r,e="-"){let t={},n="relay"+e;return Object.keys(r).forEach(a=>{if(a.startsWith(n)){let i=a.replace(n,""),s=r[a];t[i]=s}}),t}function Ryn(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t).split("@"),i=typeof t<"u"?r.substring(t):"",s=G1e.parse(i);return{protocol:n,topic:a[0],version:parseInt(a[1],10),symKey:s.symKey,relay:I8t(s)}}function E8t(r,e="-"){let t="relay",n={};return Object.keys(r).forEach(a=>{let i=t+e+a;r[a]&&(n[i]=r[a])}),n}function Myn(r){return`${r.protocol}:${r.topic}@${r.version}?`+G1e.stringify(Syn({symKey:r.symKey},E8t(r.relay)))}function Zw(r){let e=[];return r.forEach(t=>{let[n,a]=t.split(":");e.push(`${n}:${a}`)}),e}function C8t(r){let e=[];return Object.values(r).forEach(t=>{e.push(...Zw(t.accounts))}),e}function k8t(r,e){let t=[];return Object.values(r).forEach(n=>{Zw(n.accounts).includes(e)&&t.push(...n.methods)}),t}function A8t(r,e){let t=[];return Object.values(r).forEach(n=>{Zw(n.accounts).includes(e)&&t.push(...n.events)}),t}function Nyn(r,e){let t=D8t(r,e);if(t)throw new Error(t.message);let n={};for(let[a,i]of Object.entries(r))n[a]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var Byn={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Dyn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function fy(r,e){let{message:t,code:n}=Dyn[r];return{message:e?`${t} ${e}`:t,code:n}}function Jw(r,e){let{message:t,code:n}=Byn[r];return{message:e?`${t} ${e}`:t,code:n}}function bae(r,e){return Array.isArray(r)?typeof e<"u"&&r.length?r.every(e):!0:!1}function YNe(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.keys(r).length}function M1(r){return typeof r>"u"}function Td(r,e){return e&&M1(r)?!0:typeof r=="string"&&Boolean(r.trim().length)}function X1e(r,e){return e&&M1(r)?!0:typeof r=="number"&&!isNaN(r)}function Lyn(r,e){let{requiredNamespaces:t}=e,n=Object.keys(r.namespaces),a=Object.keys(t),i=!0;return R1(a,n)?(n.forEach(s=>{let{accounts:o,methods:c,events:u}=r.namespaces[s],l=Zw(o),h=t[s];(!R1(Q1e(s,h),l)||!R1(h.methods,c)||!R1(h.events,u))&&(i=!1)}),i):!1}function ebe(r){return Td(r,!1)&&r.includes(":")?r.split(":").length===2:!1}function P8t(r){if(Td(r,!1)&&r.includes(":")){let e=r.split(":");if(e.length===3){let t=e[0]+":"+e[1];return!!e[2]&&ebe(t)}}return!1}function Oyn(r){if(Td(r,!1))try{return typeof new URL(r)<"u"}catch{return!1}return!1}function qyn(r){var e;return(e=r?.proposer)==null?void 0:e.publicKey}function Fyn(r){return r?.topic}function Wyn(r,e){let t=null;return Td(r?.publicKey,!1)||(t=fy("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function LNe(r){let e=!0;return bae(r)?r.length&&(e=r.every(t=>Td(t,!1))):e=!1,e}function S8t(r,e,t){let n=null;return bae(e)?e.forEach(a=>{n||(!ebe(a)||!a.includes(r))&&(n=Jw("UNSUPPORTED_CHAINS",`${t}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):n=Jw("UNSUPPORTED_CHAINS",`${t}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function R8t(r,e){let t=null;return Object.entries(r).forEach(([n,a])=>{if(t)return;let i=S8t(n,Q1e(n,a),`${e} requiredNamespace`);i&&(t=i)}),t}function M8t(r,e){let t=null;return bae(r)?r.forEach(n=>{t||P8t(n)||(t=Jw("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=Jw("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function N8t(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=M8t(n?.accounts,`${e} namespace`);a&&(t=a)}),t}function B8t(r,e){let t=null;return LNe(r?.methods)?LNe(r?.events)||(t=Jw("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=Jw("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function $Ne(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=B8t(n,`${e}, namespace`);a&&(t=a)}),t}function Uyn(r,e,t){let n=null;if(r&&YNe(r)){let a=$Ne(r,e);a&&(n=a);let i=R8t(r,e);i&&(n=i)}else n=fy("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function D8t(r,e){let t=null;if(r&&YNe(r)){let n=$Ne(r,e);n&&(t=n);let a=N8t(r,e);a&&(t=a)}else t=fy("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function L8t(r){return Td(r.protocol,!0)}function Hyn(r,e){let t=!1;return e&&!r?t=!0:r&&bae(r)&&r.length&&r.forEach(n=>{t=L8t(n)}),t}function jyn(r){return typeof r=="number"}function zyn(r){return typeof r<"u"&&typeof r!==null}function Kyn(r){return!(!r||typeof r!="object"||!r.code||!X1e(r.code,!1)||!r.message||!Td(r.message,!1))}function Gyn(r){return!(M1(r)||!Td(r.method,!1))}function Vyn(r){return!(M1(r)||M1(r.result)&&M1(r.error)||!X1e(r.id,!1)||!Td(r.jsonrpc,!1))}function Yyn(r){return!(M1(r)||!Td(r.name,!1))}function $yn(r,e){return!(!ebe(e)||!C8t(r).includes(e))}function Qyn(r,e,t){return Td(t,!1)?k8t(r,e).includes(t):!1}function Jyn(r,e,t){return Td(t,!1)?A8t(r,e).includes(t):!1}function Zyn(r,e,t){let n=null,a=Xyn(r),i=egn(e),s=Object.keys(a),o=Object.keys(i),c=$Ct(Object.keys(r)),u=$Ct(Object.keys(e)),l=c.filter(h=>!u.includes(h));return l.length&&(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. Required: ${l.toString()} - Received: ${Object.keys(e).toString()}`)),Sg(s,o)||(n=ly("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. + Received: ${Object.keys(e).toString()}`)),R1(s,o)||(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. Required: ${s.toString()} - Approved: ${o.toString()}`)),Object.keys(e).forEach(h=>{if(!h.includes(":")||n)return;let f=yw(e[h].accounts);f.includes(h)||(n=ly("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${h} + Approved: ${o.toString()}`)),Object.keys(e).forEach(h=>{if(!h.includes(":")||n)return;let f=Zw(e[h].accounts);f.includes(h)||(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${h} Required: ${h} - Approved: ${f.toString()}`))}),s.forEach(h=>{n||(Sg(a[h].methods,i[h].methods)?Sg(a[h].events,i[h].events)||(n=ly("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${h}`)):n=ly("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${h}`))}),n}function Dfn(r){let e={};return Object.keys(r).forEach(t=>{var n;t.includes(":")?e[t]=r[t]:(n=r[t].chains)==null||n.forEach(a=>{e[a]={methods:r[t].methods,events:r[t].events}})}),e}function sCt(r){return[...new Set(r.map(e=>e.includes(":")?e.split(":")[0]:e))]}function Ofn(r){let e={};return Object.keys(r).forEach(t=>{t.includes(":")?e[t]=r[t]:yw(r[t].accounts)?.forEach(a=>{e[a]={accounts:r[t].accounts.filter(i=>i.includes(`${a}:`)),methods:r[t].methods,events:r[t].events}})}),e}function Lfn(r,e){return mj(r,!1)&&r<=e.max&&r>=e.min}we.BASE10=Rhe,we.BASE16=rl,we.BASE64=uj,we.COLON=Whn,we.DEFAULT_DEPTH=Dhe,we.EMPTY_SPACE=lj,we.ENV_MAP=D6,we.ONE_THOUSAND=Uhn,we.REACT_NATIVE_PRODUCT=xCt,we.RELAYER_DEFAULT_PROTOCOL=BCt,we.SDK_TYPE=ECt,we.SLASH=TCt,we.TYPE_0=Mhe,we.TYPE_1=L6,we.UTF8=fj,we.appendToQueryString=kCt,we.assertType=Ghn,we.calcExpiry=afn,we.capitalize=Zhn,we.capitalizeWord=NCt,we.createDelayedPromise=Xhn,we.createExpiringPromise=efn,we.decodeTypeByte=US,we.decrypt=Bhn,we.deriveSymKey=Phn,we.deserialize=Bhe,we.encodeTypeByte=vCt,we.encrypt=Nhn,we.engineEvent=sfn,we.enumify=Qhn,we.formatAccountId=hCt,we.formatAccountWithChain=whn,we.formatChainId=pCt,we.formatExpirerTarget=Fhe,we.formatIdTarget=rfn,we.formatMessage=Ihn,we.formatMessageContext=Vhn,we.formatRelayParams=OCt,we.formatRelayRpcUrl=zhn,we.formatTopicTarget=tfn,we.formatUA=PCt,we.formatUri=ffn,we.generateKeyPair=Ahn,we.generateRandomBytes32=Shn,we.getAccountsChains=yw,we.getAccountsFromNamespaces=xhn,we.getAddressFromAccount=fCt,we.getAddressesFromAccounts=_hn,we.getAppMetadata=Hhn,we.getChainFromAccount=mCt,we.getChainsFromAccounts=yCt,we.getChainsFromNamespace=pj,we.getChainsFromNamespaces=Thn,we.getChainsFromRequiredNamespaces=Ehn,we.getDidAddress=bCt,we.getDidAddressSegments=hj,we.getDidChainId=gCt,we.getEnvironment=Lhe,we.getHttpUrl=Khn,we.getInternalError=ly,we.getJavascriptID=SCt,we.getJavascriptOS=ACt,we.getLastItems=MCt,we.getNamespacedDidChainId=Chn,we.getNamespacesChains=LCt,we.getNamespacesEventsForChainId=qCt,we.getNamespacesMethodsForChainId=FCt,we.getRelayClientMetadata=jhn,we.getRelayProtocolApi=cfn,we.getRelayProtocolName=ofn,we.getRequiredNamespacesFromNamespaces=mfn,we.getSdkError=mw,we.getUniqueValues=Phe,we.hasOverlap=Sg,we.hashKey=Rhn,we.hashMessage=Mhn,we.isBrowser=ICt,we.isConformingNamespaces=Bfn,we.isExpired=ifn,we.isNode=Ohe,we.isProposalStruct=wfn,we.isReactNative=CCt,we.isSessionCompatible=bfn,we.isSessionStruct=_fn,we.isTypeOneEnvelope=Ohn,we.isUndefined=Pg,we.isValidAccountId=WCt,we.isValidAccounts=jCt,we.isValidActions=KCt,we.isValidArray=HS,we.isValidChainId=yj,we.isValidChains=UCt,we.isValidController=xfn,we.isValidErrorReason=kfn,we.isValidEvent=Pfn,we.isValidId=Cfn,we.isValidNamespaceAccounts=zCt,we.isValidNamespaceActions=Whe,we.isValidNamespaceChains=HCt,we.isValidNamespaceMethodsOrEvents=khe,we.isValidNamespaces=GCt,we.isValidNamespacesChainId=Rfn,we.isValidNamespacesEvent=Nfn,we.isValidNamespacesRequest=Mfn,we.isValidNumber=mj,we.isValidObject=qhe,we.isValidParams=Ifn,we.isValidRelay=VCt,we.isValidRelays=Efn,we.isValidRequest=Afn,we.isValidRequestExpiry=Lfn,we.isValidRequiredNamespaces=Tfn,we.isValidResponse=Sfn,we.isValidString=Cd,we.isValidUrl=vfn,we.mapEntries=Jhn,we.mapToObj=$hn,we.objToMap=Yhn,we.parseAccountId=She,we.parseChainId=dCt,we.parseContextNames=RCt,we.parseExpirerTarget=nfn,we.parseRelayParams=DCt,we.parseUri=hfn,we.serialize=wCt,we.validateDecoding=Dhn,we.validateEncoding=_Ct});var YCt=x((l5a,$Ct)=>{"use strict";d();p();function Ffn(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}$Ct.exports=qfn;function qfn(r,e,t){var n=t&&t.stringify||Ffn,a=1;if(typeof r=="object"&&r!==null){var i=e.length+a;if(i===1)return r;var s=new Array(i);s[0]=n(r);for(var o=1;o-1?h:0,r.charCodeAt(m+1)){case 100:case 102:if(l>=c||e[l]==null)break;h=c||e[l]==null)break;h=c||e[l]===void 0)break;h",h=m+2,m++;break}u+=n(e[l]),h=m+2,m++;break;case 115:if(l>=c)break;h{"use strict";d();p();var JCt=YCt();XCt.exports=Om;var zS=Yfn().console||{},Wfn={mapHttpRequest:gj,mapHttpResponse:gj,wrapRequestSerializer:Uhe,wrapResponseSerializer:Uhe,wrapErrorSerializer:Uhe,req:gj,res:gj,err:Kfn};function Ufn(r,e){return Array.isArray(r)?r.filter(function(n){return n!=="!stdSerializers.err"}):r===!0?Object.keys(e):!1}function Om(r){r=r||{},r.browser=r.browser||{};let e=r.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let t=r.browser.write||zS;r.browser.write&&(r.browser.asObject=!0);let n=r.serializers||{},a=Ufn(r.browser.serialize,n),i=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=["error","fatal","warn","info","debug","trace"];typeof t=="function"&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),r.enabled===!1&&(r.level="silent");let o=r.level||"info",c=Object.create(t);c.log||(c.log=KS),Object.defineProperty(c,"levelVal",{get:l}),Object.defineProperty(c,"level",{get:h,set:f});let u={transmit:e,serialize:a,asObject:r.browser.asObject,levels:s,timestamp:Gfn(r)};c.levels=Om.levels,c.level=o,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=KS,c.serializers=n,c._serialize=a,c._stdErrSerialize=i,c.child=m,e&&(c._logEvent=Hhe());function l(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function f(y){if(y!=="silent"&&!this.levels.values[y])throw Error("unknown level "+y);this._level=y,F6(u,c,"error","log"),F6(u,c,"fatal","error"),F6(u,c,"warn","error"),F6(u,c,"info","log"),F6(u,c,"debug","log"),F6(u,c,"trace","log")}function m(y,E){if(!y)throw new Error("missing bindings for child Pino");E=E||{},a&&y.serializers&&(E.serializers=y.serializers);let I=E.serializers;if(a&&I){var S=Object.assign({},n,I),L=r.browser.serialize===!0?Object.keys(S):a;delete y.serializers,bj([y],L,S,this._stdErrSerialize)}function q(W){this._childLevel=(W._childLevel|0)+1,this.error=q6(W,y,"error"),this.fatal=q6(W,y,"fatal"),this.warn=q6(W,y,"warn"),this.info=q6(W,y,"info"),this.debug=q6(W,y,"debug"),this.trace=q6(W,y,"trace"),S&&(this.serializers=S,this._serialize=L),e&&(this._logEvent=Hhe([].concat(W._logEvent.bindings,y)))}return q.prototype=this,new q(this)}return c}Om.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Om.stdSerializers=Wfn;Om.stdTimeFunctions=Object.assign({},{nullTime:QCt,epochTime:ZCt,unixTime:Vfn,isoTime:$fn});function F6(r,e,t,n){let a=Object.getPrototypeOf(e);e[t]=e.levelVal>e.levels.values[t]?KS:a[t]?a[t]:zS[t]||zS[n]||KS,Hfn(r,e,t)}function Hfn(r,e,t){!r.transmit&&e[t]===KS||(e[t]=function(n){return function(){let i=r.timestamp(),s=new Array(arguments.length),o=Object.getPrototypeOf&&Object.getPrototypeOf(this)===zS?zS:this;for(var c=0;c-1&&i in t&&(r[a][i]=t[i](r[a][i]))}function q6(r,e,t){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var a=1;a{"use strict";d();p();Object.defineProperty(vj,"__esModule",{value:!0});function Jfn(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}vj.safeJsonParse=Jfn;function Qfn(r){return typeof r=="string"?r:JSON.stringify(r,(e,t)=>typeof t>"u"?null:t)}vj.safeJsonStringify=Qfn});var e4t=x((v5a,wj)=>{"use strict";d();p();(function(){"use strict";let r;function e(){}r=e,r.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},r.prototype.setItem=function(t,n){this[t]=String(n)},r.prototype.removeItem=function(t){delete this[t]},r.prototype.clear=function(){let t=this;Object.keys(t).forEach(function(n){t[n]=void 0,delete t[n]})},r.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof global<"u"&&global.localStorage?wj.exports=global.localStorage:typeof window<"u"&&window.localStorage?wj.exports=window.localStorage:wj.exports=new e})()});var t4t=x(_j=>{"use strict";d();p();Object.defineProperty(_j,"__esModule",{value:!0});_j.IKeyValueStorage=void 0;var zhe=class{};_j.IKeyValueStorage=zhe});var r4t=x(xj=>{"use strict";d();p();Object.defineProperty(xj,"__esModule",{value:!0});xj.parseEntry=void 0;var Zfn=jhe();function Xfn(r){var e;return[r[0],Zfn.safeJsonParse((e=r[1])!==null&&e!==void 0?e:"")]}xj.parseEntry=Xfn});var a4t=x(Tj=>{"use strict";d();p();Object.defineProperty(Tj,"__esModule",{value:!0});var n4t=_d();n4t.__exportStar(t4t(),Tj);n4t.__exportStar(r4t(),Tj)});var s4t=x(VS=>{"use strict";d();p();Object.defineProperty(VS,"__esModule",{value:!0});VS.KeyValueStorage=void 0;var W6=_d(),i4t=jhe(),emn=W6.__importDefault(e4t()),tmn=a4t(),Ej=class{constructor(){this.localStorage=emn.default}getKeys(){return W6.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return W6.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(tmn.parseEntry)})}getItem(e){return W6.__awaiter(this,void 0,void 0,function*(){let t=this.localStorage.getItem(e);if(t!==null)return i4t.safeJsonParse(t)})}setItem(e,t){return W6.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,i4t.safeJsonStringify(t))})}removeItem(e){return W6.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}};VS.KeyValueStorage=Ej;VS.default=Ej});var Khe,o4t=ce(()=>{d();p();Khe=class{}});var Ghe={};cr(Ghe,{IEvents:()=>Khe});var Vhe=ce(()=>{d();p();o4t()});var c4t=x(Cj=>{"use strict";d();p();Object.defineProperty(Cj,"__esModule",{value:!0});Cj.IHeartBeat=void 0;var rmn=(Vhe(),nt(Ghe)),$he=class extends rmn.IEvents{constructor(e){super()}};Cj.IHeartBeat=$he});var Jhe=x(Yhe=>{"use strict";d();p();Object.defineProperty(Yhe,"__esModule",{value:!0});var nmn=_d();nmn.__exportStar(c4t(),Yhe)});var u4t=x(U6=>{"use strict";d();p();Object.defineProperty(U6,"__esModule",{value:!0});U6.HEARTBEAT_EVENTS=U6.HEARTBEAT_INTERVAL=void 0;var amn=fw();U6.HEARTBEAT_INTERVAL=amn.FIVE_SECONDS;U6.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Zhe=x(Qhe=>{"use strict";d();p();Object.defineProperty(Qhe,"__esModule",{value:!0});var imn=_d();imn.__exportStar(u4t(),Qhe)});var l4t=x(Ij=>{"use strict";d();p();Object.defineProperty(Ij,"__esModule",{value:!0});Ij.HeartBeat=void 0;var Xhe=_d(),smn=Ou(),omn=fw(),cmn=Jhe(),efe=Zhe(),$S=class extends cmn.IHeartBeat{constructor(e){super(e),this.events=new smn.EventEmitter,this.interval=efe.HEARTBEAT_INTERVAL,this.interval=e?.interval||efe.HEARTBEAT_INTERVAL}static init(e){return Xhe.__awaiter(this,void 0,void 0,function*(){let t=new $S(e);return yield t.init(),t})}init(){return Xhe.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}initialize(){return Xhe.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),omn.toMiliseconds(this.interval))})}pulse(){this.events.emit(efe.HEARTBEAT_EVENTS.pulse)}};Ij.HeartBeat=$S});var d4t=x(YS=>{"use strict";d();p();Object.defineProperty(YS,"__esModule",{value:!0});var tfe=_d();tfe.__exportStar(l4t(),YS);tfe.__exportStar(Jhe(),YS);tfe.__exportStar(Zhe(),YS)});var rfe=x(H6=>{"use strict";d();p();Object.defineProperty(H6,"__esModule",{value:!0});H6.PINO_CUSTOM_CONTEXT_KEY=H6.PINO_LOGGER_DEFAULTS=void 0;H6.PINO_LOGGER_DEFAULTS={level:"info"};H6.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var y4t=x(Hl=>{"use strict";d();p();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.generateChildLogger=Hl.formatChildLoggerContext=Hl.getLoggerContext=Hl.setBrowserLoggerContext=Hl.getBrowserLoggerContext=Hl.getDefaultLoggerOptions=void 0;var j6=rfe();function umn(r){return Object.assign(Object.assign({},r),{level:r?.level||j6.PINO_LOGGER_DEFAULTS.level})}Hl.getDefaultLoggerOptions=umn;function p4t(r,e=j6.PINO_CUSTOM_CONTEXT_KEY){return r[e]||""}Hl.getBrowserLoggerContext=p4t;function h4t(r,e,t=j6.PINO_CUSTOM_CONTEXT_KEY){return r[t]=e,r}Hl.setBrowserLoggerContext=h4t;function f4t(r,e=j6.PINO_CUSTOM_CONTEXT_KEY){let t="";return typeof r.bindings>"u"?t=p4t(r,e):t=r.bindings().context||"",t}Hl.getLoggerContext=f4t;function m4t(r,e,t=j6.PINO_CUSTOM_CONTEXT_KEY){let n=f4t(r,t);return n.trim()?`${n}/${e}`:e}Hl.formatChildLoggerContext=m4t;function lmn(r,e,t=j6.PINO_CUSTOM_CONTEXT_KEY){let n=m4t(r,e,t),a=r.child({context:n});return h4t(a,n,t)}Hl.generateChildLogger=lmn});var kj=x(z6=>{"use strict";d();p();Object.defineProperty(z6,"__esModule",{value:!0});z6.pino=void 0;var nfe=_d(),dmn=nfe.__importDefault(GS());Object.defineProperty(z6,"pino",{enumerable:!0,get:function(){return dmn.default}});nfe.__exportStar(rfe(),z6);nfe.__exportStar(y4t(),z6)});var wfe=x(ic=>{"use strict";d();p();Object.defineProperty(ic,"__esModule",{value:!0});var K6=(Vhe(),nt(Ghe)),g4t=Ou();function pmn(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var hmn=pmn(g4t),afe=class extends K6.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},ife=class{constructor(e,t,n){this.core=e,this.logger=t}},sfe=class extends K6.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}},ofe=class{constructor(e,t){this.logger=e,this.core=t}},cfe=class extends K6.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},ufe=class extends K6.IEvents{constructor(e){super()}},lfe=class{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}},dfe=class{constructor(){this.map=new Map}},pfe=class extends K6.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},hfe=class{constructor(e,t){this.core=e,this.logger=t}},ffe=class extends K6.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}},mfe=class{constructor(e,t){this.logger=e,this.core=t}},yfe=class extends hmn.default{constructor(){super()}},gfe=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},bfe=class extends g4t.EventEmitter{constructor(){super()}},vfe=class{constructor(e){this.client=e}};ic.ICore=afe,ic.ICrypto=ife,ic.IEngine=vfe,ic.IEngineEvents=bfe,ic.IExpirer=ffe,ic.IJsonRpcHistory=sfe,ic.IKeyChain=hfe,ic.IMessageTracker=ofe,ic.IPairing=mfe,ic.IPublisher=cfe,ic.IRelayer=ufe,ic.ISignClient=gfe,ic.ISignClientEvents=yfe,ic.IStore=lfe,ic.ISubscriber=pfe,ic.ISubscriberTopicMap=dfe});var w4t=x(dy=>{"use strict";d();p();Object.defineProperty(dy,"__esModule",{value:!0});var V6=P6(),G6=Hp();dy.DIGEST_LENGTH=64;dy.BLOCK_SIZE=128;var v4t=function(){function r(){this.digestLength=dy.DIGEST_LENGTH,this.blockSize=dy.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){G6.wipe(this._buffer),G6.wipe(this._tempHi),G6.wipe(this._tempLo),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(_fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=_fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){G6.wipe(e.stateHi),G6.wipe(e.stateLo),e.buffer&&G6.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();dy.SHA512=v4t;var b4t=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function _fe(r,e,t,n,a,i,s){for(var o=t[0],c=t[1],u=t[2],l=t[3],h=t[4],f=t[5],m=t[6],y=t[7],E=n[0],I=n[1],S=n[2],L=n[3],q=n[4],W=n[5],V=n[6],K=n[7],H,G,J,F,T,P,A,v;s>=128;){for(var k=0;k<16;k++){var O=8*k+i;r[k]=V6.readUint32BE(a,O),e[k]=V6.readUint32BE(a,O+4)}for(var k=0;k<80;k++){var D=o,B=c,_=u,N=l,U=h,C=f,z=m,ee=y,j=E,X=I,ie=S,ue=L,he=q,ke=W,ge=V,me=K;if(H=y,G=K,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=(h>>>14|q<<32-14)^(h>>>18|q<<32-18)^(q>>>41-32|h<<32-(41-32)),G=(q>>>14|h<<32-14)^(q>>>18|h<<32-18)^(h>>>41-32|q<<32-(41-32)),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=h&f^~h&m,G=q&W^~q&V,T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=b4t[k*2],G=b4t[k*2+1],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=r[k%16],G=e[k%16],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,J=A&65535|v<<16,F=T&65535|P<<16,H=J,G=F,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=(o>>>28|E<<32-28)^(E>>>34-32|o<<32-(34-32))^(E>>>39-32|o<<32-(39-32)),G=(E>>>28|o<<32-28)^(o>>>34-32|E<<32-(34-32))^(o>>>39-32|E<<32-(39-32)),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=o&c^o&u^c&u,G=E&I^E&S^I&S,T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,ee=A&65535|v<<16,me=T&65535|P<<16,H=N,G=ue,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=J,G=F,T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,N=A&65535|v<<16,ue=T&65535|P<<16,c=D,u=B,l=_,h=N,f=U,m=C,y=z,o=ee,I=j,S=X,L=ie,q=ue,W=he,V=ke,K=ge,E=me,k%16===15)for(var O=0;O<16;O++)H=r[O],G=e[O],T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=r[(O+9)%16],G=e[(O+9)%16],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,J=r[(O+1)%16],F=e[(O+1)%16],H=(J>>>1|F<<32-1)^(J>>>8|F<<32-8)^J>>>7,G=(F>>>1|J<<32-1)^(F>>>8|J<<32-8)^(F>>>7|J<<32-7),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,J=r[(O+14)%16],F=e[(O+14)%16],H=(J>>>19|F<<32-19)^(F>>>61-32|J<<32-(61-32))^J>>>6,G=(F>>>19|J<<32-19)^(J>>>61-32|F<<32-(61-32))^(F>>>6|J<<32-6),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,r[O]=A&65535|v<<16,e[O]=T&65535|P<<16}H=o,G=E,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[0],G=n[0],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[0]=o=A&65535|v<<16,n[0]=E=T&65535|P<<16,H=c,G=I,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[1],G=n[1],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[1]=c=A&65535|v<<16,n[1]=I=T&65535|P<<16,H=u,G=S,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[2],G=n[2],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[2]=u=A&65535|v<<16,n[2]=S=T&65535|P<<16,H=l,G=L,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[3],G=n[3],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[3]=l=A&65535|v<<16,n[3]=L=T&65535|P<<16,H=h,G=q,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[4],G=n[4],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[4]=h=A&65535|v<<16,n[4]=q=T&65535|P<<16,H=f,G=W,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[5],G=n[5],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[5]=f=A&65535|v<<16,n[5]=W=T&65535|P<<16,H=m,G=V,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[6],G=n[6],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[6]=m=A&65535|v<<16,n[6]=V=T&65535|P<<16,H=y,G=K,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[7],G=n[7],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[7]=y=A&65535|v<<16,n[7]=K=T&65535|P<<16,i+=128,s-=128}return i}function fmn(r){var e=new v4t;e.update(r);var t=e.digest();return e.clean(),t}dy.hash=fmn});var B4t=x(Da=>{"use strict";d();p();Object.defineProperty(Da,"__esModule",{value:!0});Da.convertSecretKeyToX25519=Da.convertPublicKeyToX25519=Da.verify=Da.sign=Da.extractPublicKeyFromSecretKey=Da.generateKeyPair=Da.generateKeyPairFromSeed=Da.SEED_LENGTH=Da.SECRET_KEY_LENGTH=Da.PUBLIC_KEY_LENGTH=Da.SIGNATURE_LENGTH=void 0;var mmn=BS(),JS=w4t(),C4t=Hp();Da.SIGNATURE_LENGTH=64;Da.PUBLIC_KEY_LENGTH=32;Da.SECRET_KEY_LENGTH=64;Da.SEED_LENGTH=32;function mt(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,I4t(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function k4t(r,e){let t=0;for(let n=0;n<32;n++)t|=r[n]^e[n];return(1&t-1>>>8)-1}function T4t(r,e){let t=new Uint8Array(32),n=new Uint8Array(32);return QS(t,r),QS(n,e),k4t(t,n)}function A4t(r){let e=new Uint8Array(32);return QS(e,r),e[0]&1}function wmn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function gw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function vw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function Va(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,E=0,I=0,S=0,L=0,q=0,W=0,V=0,K=0,H=0,G=0,J=0,F=0,T=0,P=0,A=0,v=0,k=0,O=0,D=0,B=0,_=0,N=t[0],U=t[1],C=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*C,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,E+=n*ke,I+=n*ge,S+=n*me,L+=n*Ke,q+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*C,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,E+=n*he,I+=n*ke,S+=n*ge,L+=n*me,q+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*C,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,E+=n*ue,I+=n*he,S+=n*ke,L+=n*ge,q+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*C,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,E+=n*ie,I+=n*ue,S+=n*he,L+=n*ke,q+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*C,f+=n*z,m+=n*ee,y+=n*j,E+=n*X,I+=n*ie,S+=n*ue,L+=n*he,q+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*C,m+=n*z,y+=n*ee,E+=n*j,I+=n*X,S+=n*ie,L+=n*ue,q+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,J+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*C,y+=n*z,E+=n*ee,I+=n*j,S+=n*X,L+=n*ie,q+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,J+=n*ve,F+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*C,E+=n*z,I+=n*ee,S+=n*j,L+=n*X,q+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,J+=n*Ke,F+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,E+=n*C,I+=n*z,S+=n*ee,L+=n*j,q+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,J+=n*me,F+=n*Ke,T+=n*ve,P+=n*Ae,n=e[9],y+=n*N,E+=n*U,I+=n*C,S+=n*z,L+=n*ee,q+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,J+=n*ge,F+=n*me,T+=n*Ke,P+=n*ve,A+=n*Ae,n=e[10],E+=n*N,I+=n*U,S+=n*C,L+=n*z,q+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,J+=n*ke,F+=n*ge,T+=n*me,P+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],I+=n*N,S+=n*U,L+=n*C,q+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,J+=n*he,F+=n*ke,T+=n*ge,P+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],S+=n*N,L+=n*U,q+=n*C,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,J+=n*ue,F+=n*he,T+=n*ke,P+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,q+=n*U,W+=n*C,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,J+=n*ie,F+=n*ue,T+=n*he,P+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],q+=n*N,W+=n*U,V+=n*C,K+=n*z,H+=n*ee,G+=n*j,J+=n*X,F+=n*ie,T+=n*ue,P+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*C,H+=n*z,G+=n*ee,J+=n*j,F+=n*X,T+=n*ie,P+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,_+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*J,l+=38*F,h+=38*T,f+=38*P,m+=38*A,y+=38*v,E+=38*k,I+=38*O,S+=38*D,L+=38*B,q+=38*_,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=q+a+65535,a=Math.floor(n/65536),q=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=q+a+65535,a=Math.floor(n/65536),q=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=E,r[11]=I,r[12]=S,r[13]=L,r[14]=q,r[15]=W}function bw(r,e){Va(r,e,e)}function S4t(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)bw(t,t),n!==2&&n!==4&&Va(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function _mn(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)bw(t,t),n!==1&&Va(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function Cfe(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt(),u=mt(),l=mt();vw(t,r[1],r[0]),vw(l,e[1],e[0]),Va(t,t,l),gw(n,r[0],r[1]),gw(l,e[0],e[1]),Va(n,n,l),Va(a,r[3],e[3]),Va(a,a,bmn),Va(i,r[2],e[2]),gw(i,i,i),vw(s,n,t),vw(o,i,a),gw(c,i,a),gw(u,n,t),Va(r[0],s,o),Va(r[1],u,c),Va(r[2],c,o),Va(r[3],s,u)}function E4t(r,e,t){for(let n=0;n<4;n++)I4t(r[n],e[n],t)}function kfe(r,e){let t=mt(),n=mt(),a=mt();S4t(a,e[2]),Va(t,e[0],a),Va(n,e[1],a),QS(r,n),r[31]^=A4t(t)<<7}function P4t(r,e,t){Rg(r[0],Efe),Rg(r[1],$6),Rg(r[2],$6),Rg(r[3],Efe);for(let n=255;n>=0;--n){let a=t[n/8|0]>>(n&7)&1;E4t(r,e,a),Cfe(e,r),Cfe(r,r),E4t(r,e,a)}}function Afe(r,e){let t=[mt(),mt(),mt(),mt()];Rg(t[0],_4t),Rg(t[1],x4t),Rg(t[2],$6),Va(t[3],_4t,x4t),P4t(r,t,e)}function R4t(r){if(r.length!==Da.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Da.SEED_LENGTH} bytes`);let e=(0,JS.hash)(r);e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(32),n=[mt(),mt(),mt(),mt()];Afe(n,e),kfe(t,n);let a=new Uint8Array(64);return a.set(r),a.set(t,32),{publicKey:t,secretKey:a}}Da.generateKeyPairFromSeed=R4t;function xmn(r){let e=(0,mmn.randomBytes)(32,r),t=R4t(e);return(0,C4t.wipe)(e),t}Da.generateKeyPair=xmn;function Tmn(r){if(r.length!==Da.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Da.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(r.subarray(32))}Da.extractPublicKeyFromSecretKey=Tmn;var Tfe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function M4t(r,e){let t,n,a,i;for(n=63;n>=32;--n){for(t=0,a=n-32,i=n-12;a>4)*Tfe[a],t=e[a]>>8,e[a]&=255;for(a=0;a<32;a++)e[a]-=t*Tfe[a];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function Ife(r){let e=new Float64Array(64);for(let t=0;t<64;t++)e[t]=r[t];for(let t=0;t<64;t++)r[t]=0;M4t(r,e)}function Emn(r,e){let t=new Float64Array(64),n=[mt(),mt(),mt(),mt()],a=(0,JS.hash)(r.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let i=new Uint8Array(64);i.set(a.subarray(32),32);let s=new JS.SHA512;s.update(i.subarray(32)),s.update(e);let o=s.digest();s.clean(),Ife(o),Afe(n,o),kfe(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(r.subarray(32)),s.update(e);let c=s.digest();Ife(c);for(let u=0;u<32;u++)t[u]=o[u];for(let u=0;u<32;u++)for(let l=0;l<32;l++)t[u+l]+=c[u]*a[l];return M4t(i.subarray(32),t),i}Da.sign=Emn;function N4t(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt();return Rg(r[2],$6),wmn(r[1],e),bw(a,r[1]),Va(i,a,gmn),vw(a,a,r[2]),gw(i,r[2],i),bw(s,i),bw(o,s),Va(c,o,s),Va(t,c,a),Va(t,t,i),_mn(t,t),Va(t,t,a),Va(t,t,i),Va(t,t,i),Va(r[0],t,i),bw(n,r[0]),Va(n,n,i),T4t(n,a)&&Va(r[0],r[0],vmn),bw(n,r[0]),Va(n,n,i),T4t(n,a)?-1:(A4t(r[0])===e[31]>>7&&vw(r[0],Efe,r[0]),Va(r[3],r[0],r[1]),0)}function Cmn(r,e,t){let n=new Uint8Array(32),a=[mt(),mt(),mt(),mt()],i=[mt(),mt(),mt(),mt()];if(t.length!==Da.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Da.SIGNATURE_LENGTH} bytes`);if(N4t(i,r))return!1;let s=new JS.SHA512;s.update(t.subarray(0,32)),s.update(r),s.update(e);let o=s.digest();return Ife(o),P4t(a,i,o),Afe(i,t.subarray(32)),Cfe(a,i),kfe(n,a),!k4t(t,n)}Da.verify=Cmn;function Imn(r){let e=[mt(),mt(),mt(),mt()];if(N4t(e,r))throw new Error("Ed25519: invalid public key");let t=mt(),n=mt(),a=e[1];gw(t,$6,a),vw(n,$6,a),S4t(n,n),Va(t,t,n);let i=new Uint8Array(32);return QS(i,t),i}Da.convertPublicKeyToX25519=Imn;function kmn(r){let e=(0,JS.hash)(r.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(e.subarray(0,32));return(0,C4t.wipe)(e),t}Da.convertSecretKeyToX25519=kmn});var Aj,Sj,ww,Y6,Pj,ZS,Rj,Mj,Nj,J6,Bj,Dj,D4t,O4t,Oj=ce(()=>{d();p();Aj="EdDSA",Sj="JWT",ww=".",Y6="base64url",Pj="utf8",ZS="utf8",Rj=":",Mj="did",Nj="key",J6="base58btc",Bj="z",Dj="K36",D4t=32,O4t=32});function XS(r){return ny(tm(Eh(r,Y6),Pj))}function eP(r){return tm(Eh(Mm(r),Pj),Y6)}function Sfe(r){let e=Eh(Dj,J6),t=Bj+tm(O4([e,r]),J6);return[Mj,Nj,t].join(Rj)}function Pfe(r){let[e,t,n]=r.split(Rj);if(e!==Mj||t!==Nj)throw new Error('Issuer must be a DID with method "key"');if(n.slice(0,1)!==Bj)throw new Error("Issuer must be a key in mulicodec format");let i=Eh(n.slice(1),J6);if(tm(i.slice(0,2),J6)!==Dj)throw new Error('Issuer must be a public key with type "Ed25519"');let o=i.slice(2);if(o.length!==32)throw new Error("Issuer must be a public key with length 32 bytes");return o}function L4t(r){return tm(r,Y6)}function F4t(r){return Eh(r,Y6)}function Rfe(r){return Eh([eP(r.header),eP(r.payload)].join(ww),ZS)}function Amn(r){let e=tm(r,ZS).split(ww),t=XS(e[0]),n=XS(e[1]);return{header:t,payload:n}}function Mfe(r){return[eP(r.header),eP(r.payload),L4t(r.signature)].join(ww)}function Nfe(r){let e=r.split(ww),t=XS(e[0]),n=XS(e[1]),a=F4t(e[2]),i=Eh(e.slice(0,2).join(ww),ZS);return{header:t,payload:n,signature:a,data:i}}var Bfe=ce(()=>{d();p();wv();b_();vv();v6();Oj()});function Smn(r=(0,q4t.randomBytes)(32)){return Q6.generateKeyPairFromSeed(r)}async function Pmn(r,e,t,n,a=(0,W4t.fromMiliseconds)(Date.now())){let i={alg:Aj,typ:Sj},s=Sfe(n.publicKey),o=a+t,c={iss:s,sub:r,aud:e,iat:a,exp:o},u=Rfe({header:i,payload:c}),l=Q6.sign(n.secretKey,u);return Mfe({header:i,payload:c,signature:l})}async function Rmn(r){let{header:e,payload:t,data:n,signature:a}=Nfe(r);if(e.alg!==Aj||e.typ!==Sj)throw new Error("JWT must use EdDSA algorithm");let i=Pfe(t.iss);return Q6.verify(i,n,a)}var Q6,q4t,W4t,U4t=ce(()=>{d();p();Q6=un(B4t()),q4t=un(BS()),W4t=un(fw());Oj();Bfe()});var H4t=ce(()=>{d();p()});var j4t={};cr(j4t,{DATA_ENCODING:()=>ZS,DID_DELIMITER:()=>Rj,DID_METHOD:()=>Nj,DID_PREFIX:()=>Mj,JSON_ENCODING:()=>Pj,JWT_DELIMITER:()=>ww,JWT_ENCODING:()=>Y6,JWT_IRIDIUM_ALG:()=>Aj,JWT_IRIDIUM_TYP:()=>Sj,KEY_PAIR_SEED_LENGTH:()=>O4t,MULTICODEC_ED25519_BASE:()=>Bj,MULTICODEC_ED25519_ENCODING:()=>J6,MULTICODEC_ED25519_HEADER:()=>Dj,MULTICODEC_ED25519_LENGTH:()=>D4t,decodeData:()=>Amn,decodeIss:()=>Pfe,decodeJSON:()=>XS,decodeJWT:()=>Nfe,decodeSig:()=>F4t,encodeData:()=>Rfe,encodeIss:()=>Sfe,encodeJSON:()=>eP,encodeJWT:()=>Mfe,encodeSig:()=>L4t,generateKeyPair:()=>Smn,signJWT:()=>Pmn,verifyJWT:()=>Rmn});var z4t=ce(()=>{d();p();U4t();Oj();H4t();Bfe()});var G4t=x((G3a,K4t)=>{"use strict";d();p();K4t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var $4t,V4t,Mmn,Nmn,Bmn,Lj,Y4t,Dfe=ce(()=>{d();p();$4t=un(Ou());v6();ty();V4t=10,Mmn=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:G4t(),Nmn=()=>typeof window<"u",Bmn=Mmn(),Lj=class{constructor(e){if(this.url=e,this.events=new $4t.EventEmitter,this.registering=!1,!WU(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e,t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Mm(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!WU(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{let a=(0,io.isReactNative)()?void 0:{rejectUnauthorized:!Ale(e)},i=new Bmn(e,[],a);Nmn()?i.onerror=s=>{let o=s;n(this.emitError(o.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?ny(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=sS(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return iS(e,t,"WS")}resetMaxListeners(){this.events.getMaxListeners()>V4t&&this.events.setMaxListeners(V4t)}emitError(e){let t=this.parseError(new Error(e?.message||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",t),t}},Y4t=Lj});var J4t={};cr(J4t,{WsConnection:()=>Lj,default:()=>Dmn});var Dmn,Q4t=ce(()=>{d();p();Dfe();Dfe();Dmn=Y4t});var M8t=x((tP,X6)=>{d();p();var Omn=200,Gfe="__lodash_hash_undefined__",Kj=1,u8t=2,l8t=9007199254740991,Fj="[object Arguments]",qfe="[object Array]",Lmn="[object AsyncFunction]",d8t="[object Boolean]",p8t="[object Date]",h8t="[object Error]",f8t="[object Function]",Fmn="[object GeneratorFunction]",qj="[object Map]",m8t="[object Number]",qmn="[object Null]",Z6="[object Object]",Z4t="[object Promise]",Wmn="[object Proxy]",y8t="[object RegExp]",Wj="[object Set]",g8t="[object String]",Umn="[object Symbol]",Hmn="[object Undefined]",Wfe="[object WeakMap]",b8t="[object ArrayBuffer]",Uj="[object DataView]",jmn="[object Float32Array]",zmn="[object Float64Array]",Kmn="[object Int8Array]",Gmn="[object Int16Array]",Vmn="[object Int32Array]",$mn="[object Uint8Array]",Ymn="[object Uint8ClampedArray]",Jmn="[object Uint16Array]",Qmn="[object Uint32Array]",Zmn=/[\\^$.*+?()[\]{}|]/g,Xmn=/^\[object .+?Constructor\]$/,e0n=/^(?:0|[1-9]\d*)$/,gi={};gi[jmn]=gi[zmn]=gi[Kmn]=gi[Gmn]=gi[Vmn]=gi[$mn]=gi[Ymn]=gi[Jmn]=gi[Qmn]=!0;gi[Fj]=gi[qfe]=gi[b8t]=gi[d8t]=gi[Uj]=gi[p8t]=gi[h8t]=gi[f8t]=gi[qj]=gi[m8t]=gi[Z6]=gi[y8t]=gi[Wj]=gi[g8t]=gi[Wfe]=!1;var v8t=typeof global=="object"&&global&&global.Object===Object&&global,t0n=typeof self=="object"&&self&&self.Object===Object&&self,py=v8t||t0n||Function("return this")(),w8t=typeof tP=="object"&&tP&&!tP.nodeType&&tP,X4t=w8t&&typeof X6=="object"&&X6&&!X6.nodeType&&X6,_8t=X4t&&X4t.exports===w8t,Ofe=_8t&&v8t.process,e8t=function(){try{return Ofe&&Ofe.binding&&Ofe.binding("util")}catch{}}(),t8t=e8t&&e8t.isTypedArray;function r0n(r,e){for(var t=-1,n=r==null?0:r.length,a=0,i=[];++t-1}function M0n(r,e){var t=this.__data__,n=Vj(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}hy.prototype.clear=A0n;hy.prototype.delete=S0n;hy.prototype.get=P0n;hy.prototype.has=R0n;hy.prototype.set=M0n;function Tw(r){var e=-1,t=r==null?0:r.length;for(this.clear();++eo))return!1;var u=i.get(r);if(u&&i.get(e))return u==e;var l=-1,h=!0,f=t&u8t?new jj:void 0;for(i.set(r,e),i.set(e,r);++l-1&&r%1==0&&r-1&&r%1==0&&r<=l8t}function P8t(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function aP(r){return r!=null&&typeof r=="object"}var R8t=t8t?s0n(t8t):Y0n;function uyn(r){return oyn(r)?K0n(r):J0n(r)}function lyn(){return[]}function dyn(){return!1}X6.exports=cyn});var NIt=x(wt=>{"use strict";d();p();Object.defineProperty(wt,"__esModule",{value:!0});var Cw=Ou(),pyn=GS(),hyn=s4t(),iz=d4t(),ji=kj(),Bg=wfe(),N8t=(v6(),nt(lde)),fyn=(z4t(),nt(j4t)),Me=jS(),ko=fw(),myn=(SS(),nt(AS)),cf=(ty(),nt(io)),yyn=(Q4t(),nt(J4t)),gyn=M8t();function cP(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function byn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var vyn=cP(Cw),J8t=cP(pyn),wyn=cP(hyn),Yj=byn(fyn),_yn=cP(yyn),xyn=cP(gyn);function Tyn(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(q);S!==L;){for(var V=y[S],K=0,H=q-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");I=K,S++}for(var G=q-I;G!==q&&W[G]===0;)G++;for(var J=c.repeat(E);G>>0,q=new Uint8Array(L);y[E];){var W=t[y.charCodeAt(E)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,q[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=V,E++}if(y[E]!==" "){for(var H=L-S;H!==L&&q[H]===0;)H++;for(var G=new Uint8Array(I+(L-H)),J=I;H!==L;)G[J++]=q[H++];return G}}}function m(y){var E=f(y);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var Eyn=Tyn,Cyn=Eyn,Q8t=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},Iyn=r=>new TextEncoder().encode(r),kyn=r=>new TextDecoder().decode(r),Yfe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},Jfe=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return Z8t(this,e)}},Qfe=class{constructor(e){this.decoders=e}or(e){return Z8t(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},Z8t=(r,e)=>new Qfe({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),Zfe=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new Yfe(e,t,n),this.decoder=new Jfe(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},sz=({name:r,prefix:e,encode:t,decode:n})=>new Zfe(r,e,t,n),uP=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=Cyn(t,e);return sz({prefix:r,name:e,encode:n,decode:i=>Q8t(a(i))})},Ayn=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},Syn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<sz({prefix:e,name:r,encode(a){return Syn(a,n,t)},decode(a){return Ayn(a,n,t,r)}}),Pyn=sz({prefix:"\0",name:"identity",encode:r=>kyn(r),decode:r=>Iyn(r)}),Ryn=Object.freeze({__proto__:null,identity:Pyn}),Myn=Mc({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Nyn=Object.freeze({__proto__:null,base2:Myn}),Byn=Mc({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Dyn=Object.freeze({__proto__:null,base8:Byn}),Oyn=uP({prefix:"9",name:"base10",alphabet:"0123456789"}),Lyn=Object.freeze({__proto__:null,base10:Oyn}),Fyn=Mc({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),qyn=Mc({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Wyn=Object.freeze({__proto__:null,base16:Fyn,base16upper:qyn}),Uyn=Mc({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Hyn=Mc({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),jyn=Mc({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),zyn=Mc({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Kyn=Mc({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Gyn=Mc({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Vyn=Mc({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),$yn=Mc({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Yyn=Mc({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Jyn=Object.freeze({__proto__:null,base32:Uyn,base32upper:Hyn,base32pad:jyn,base32padupper:zyn,base32hex:Kyn,base32hexupper:Gyn,base32hexpad:Vyn,base32hexpadupper:$yn,base32z:Yyn}),Qyn=uP({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Zyn=uP({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Xyn=Object.freeze({__proto__:null,base36:Qyn,base36upper:Zyn}),e1n=uP({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),t1n=uP({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),r1n=Object.freeze({__proto__:null,base58btc:e1n,base58flickr:t1n}),n1n=Mc({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),a1n=Mc({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),i1n=Mc({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),s1n=Mc({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),o1n=Object.freeze({__proto__:null,base64:n1n,base64pad:a1n,base64url:i1n,base64urlpad:s1n}),X8t=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),c1n=X8t.reduce((r,e,t)=>(r[t]=e,r),[]),u1n=X8t.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function l1n(r){return r.reduce((e,t)=>(e+=c1n[t],e),"")}function d1n(r){let e=[];for(let t of r){let n=u1n[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var p1n=sz({prefix:"\u{1F680}",name:"base256emoji",encode:l1n,decode:d1n}),h1n=Object.freeze({__proto__:null,base256emoji:p1n}),f1n=eIt,B8t=128,m1n=127,y1n=~m1n,g1n=Math.pow(2,31);function eIt(r,e,t){e=e||[],t=t||0;for(var n=t;r>=g1n;)e[t++]=r&255|B8t,r/=128;for(;r&y1n;)e[t++]=r&255|B8t,r>>>=7;return e[t]=r|0,eIt.bytes=t-n+1,e}var b1n=Xfe,v1n=128,D8t=127;function Xfe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw Xfe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&D8t)<=v1n);return Xfe.bytes=i-n,t}var w1n=Math.pow(2,7),_1n=Math.pow(2,14),x1n=Math.pow(2,21),T1n=Math.pow(2,28),E1n=Math.pow(2,35),C1n=Math.pow(2,42),I1n=Math.pow(2,49),k1n=Math.pow(2,56),A1n=Math.pow(2,63),S1n=function(r){return r(tIt.encode(r,e,t),e),L8t=r=>tIt.encodingLength(r),eme=(r,e)=>{let t=e.byteLength,n=L8t(r),a=n+L8t(t),i=new Uint8Array(a+t);return O8t(r,i,0),O8t(t,i,n),i.set(e,a),new tme(r,t,e,i)},tme=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}},rIt=({name:r,code:e,encode:t})=>new rme(r,e,t),rme=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?eme(this.code,t):t.then(n=>eme(this.code,n))}else throw Error("Unknown type, must be binary type")}},nIt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),R1n=rIt({name:"sha2-256",code:18,encode:nIt("SHA-256")}),M1n=rIt({name:"sha2-512",code:19,encode:nIt("SHA-512")}),N1n=Object.freeze({__proto__:null,sha256:R1n,sha512:M1n}),aIt=0,B1n="identity",iIt=Q8t,D1n=r=>eme(aIt,iIt(r)),O1n={code:aIt,name:B1n,encode:iIt,digest:D1n},L1n=Object.freeze({__proto__:null,identity:O1n});new TextEncoder,new TextDecoder;var F8t={...Ryn,...Nyn,...Dyn,...Lyn,...Wyn,...Jyn,...Xyn,...r1n,...o1n,...h1n};({...N1n,...L1n});function F1n(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function sIt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var q8t=sIt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),Vfe=sIt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=F1n(r.length);for(let t=0;t{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();let a=this.keychain.get(n);if(typeof a>"u"){let{message:i}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=ji.generateChildLogger(t,this.name)}get context(){return ji.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Qj=class{constructor(e,t,n){this.core=e,this.logger=t,this.name=lIt,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();let a=await this.getClientSeed(),i=Yj.generateKeyPair(a);return Yj.encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let a=Me.generateKeyPair();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();let i=await this.getClientSeed(),s=Yj.generateKeyPair(i),o=Me.generateRandomBytes32(),c=dIt;return await Yj.signJWT(o,a,c,s)},this.generateSharedKey=(a,i,s)=>{this.isInitialized();let o=this.getPrivateKey(a),c=Me.deriveSymKey(o,i);return this.setSymKey(c,s)},this.setSymKey=async(a,i)=>{this.isInitialized();let s=i||Me.hashKey(a);return await this.keychain.set(s,a),s},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,i,s)=>{this.isInitialized();let o=Me.validateEncoding(s),c=N8t.safeJsonStringify(i);if(Me.isTypeOneEnvelope(o)){let f=o.senderPublicKey,m=o.receiverPublicKey;a=await this.generateSharedKey(f,m)}let u=this.getSymKey(a),{type:l,senderPublicKey:h}=o;return Me.encrypt({type:l,symKey:u,message:c,senderPublicKey:h})},this.decode=async(a,i,s)=>{this.isInitialized();let o=Me.validateDecoding(i,s);if(Me.isTypeOneEnvelope(o)){let l=o.receiverPublicKey,h=o.senderPublicKey;a=await this.generateSharedKey(l,h)}let c=this.getSymKey(a),u=Me.decrypt({symKey:c,encoded:i});return N8t.safeJsonParse(u)},this.core=e,this.logger=ji.generateChildLogger(t,this.name),this.keychain=n||new Jj(this.core,this.logger)}get context(){return ji.getLoggerContext(this.logger)}getPayloadType(e){let t=Me.deserialize(e);return Me.decodeTypeByte(t.type)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(nme)}catch{e=Me.generateRandomBytes32(),await this.keychain.set(nme,e)}return W1n(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Zj=class extends Bg.IMessageTracker{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=fIt,this.version=mIt,this.initialized=!1,this.storagePrefix=fy,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();let i=Me.hashMessage(a),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=a,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();let i=this.get(n),s=Me.hashMessage(a);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=ji.generateChildLogger(e,this.name),this.core=t}get context(){return ji.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},ime=class extends Bg.IPublisher{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new Cw.EventEmitter,this.name=gIt,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,a,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}});try{let s=i?.ttl||yIt,o=Me.getRelayProtocolName(i),c=i?.prompt||!1,u=i?.tag||0,l={topic:n,message:a,opts:{ttl:s,relay:o,prompt:c,tag:u}},h=Me.hashMessage(a);this.queue.set(h,l);try{await await Me.createExpiringPromise(this.rpcPublish(n,a,s,o,c,u),this.publishTimeout),this.relayer.events.emit(Rc.publish,l)}catch{this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Rc.connection_stalled);return}this.onPublish(h,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=e,this.logger=ji.generateChildLogger(t,this.name),this.registerEventListeners()}get context(){return ji.getLoggerContext(this.logger)}rpcPublish(e,t,n,a,i,s){var o,c,u,l;let h={method:Me.getRelayProtocolApi(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:s}};return Me.isUndefined((o=h.params)==null?void 0:o.prompt)&&((c=h.params)==null||delete c.prompt),Me.isUndefined((u=h.params)==null?void 0:u.tag)&&((l=h.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(e,t){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(iz.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},sme=class{constructor(){this.map=new Map,this.set=(e,t)=>{let n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,t))return;let a=n.filter(i=>i!==t);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},K1n=Object.defineProperty,G1n=Object.defineProperties,V1n=Object.getOwnPropertyDescriptors,W8t=Object.getOwnPropertySymbols,$1n=Object.prototype.hasOwnProperty,Y1n=Object.prototype.propertyIsEnumerable,U8t=(r,e,t)=>e in r?K1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,sP=(r,e)=>{for(var t in e||(e={}))$1n.call(e,t)&&U8t(r,t,e[t]);if(W8t)for(var t of W8t(e))Y1n.call(e,t)&&U8t(r,t,e[t]);return r},$fe=(r,e)=>G1n(r,V1n(e)),Xj=class extends Bg.ISubscriber{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new sme,this.events=new Cw.EventEmitter,this.name=EIt,this.version=CIt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=fy,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{let i=Me.getRelayProtocolName(a),s={topic:n,relay:i};this.pending.set(n,s);let o=await this.rpcSubscribe(n,i);return this.onSubscribe(o,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),o}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof a?.id<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,i)=>{let s=new ko.Watch;s.start(this.pendingSubscriptionWatchLabel);let o=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=IIt&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=ji.generateChildLogger(t,this.name),this.clientId=""}get context(){return ji.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let n=this.topicMap.get(e);await Promise.all(n.map(async a=>await this.unsubscribeById(e,a,t)))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{let a=Me.getRelayProtocolName(n);await this.rpcUnsubscribe(e,t,a);let i=Me.getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,t){let n={method:Me.getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Rc.connection_stalled)}return Me.hashMessage(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,n={method:Me.getRelayProtocolApi(t.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Rc.connection_stalled)}}rpcUnsubscribe(e,t,n){let a={method:Me.getRelayProtocolApi(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.provider.request(a)}onSubscribe(e,t){this.setSubscription(e,$fe(sP({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,sP({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,sP({},t)),this.topicMap.set(t.topic,e),this.events.emit(of.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(of.deleted,$fe(sP({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(of.sync)}async reset(){if(!this.cached.length)return;let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);this.onBatchSubscribe(t.map((n,a)=>$fe(sP({},e[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(iz.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Rc.connect,async()=>{await this.onConnect()}),this.relayer.on(Rc.disconnect,()=>{this.onDisconnect()}),this.events.on(of.created,async e=>{let t=of.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(of.deleted,async e=>{let t=of.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}},J1n=Object.defineProperty,H8t=Object.getOwnPropertySymbols,Q1n=Object.prototype.hasOwnProperty,Z1n=Object.prototype.propertyIsEnumerable,j8t=(r,e,t)=>e in r?J1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,X1n=(r,e)=>{for(var t in e||(e={}))Q1n.call(e,t)&&j8t(r,t,e[t]);if(H8t)for(var t of H8t(e))Z1n.call(e,t)&&j8t(r,t,e[t]);return r},ez=class extends Bg.IRelayer{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new Cw.EventEmitter,this.name=wIt,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?ji.generateChildLogger(e.logger,this.name):J8t.default(ji.getDefaultLoggerOptions({level:e.logger||vIt})),this.messages=new Zj(this.logger,e.core),this.subscriber=new Xj(this,this.logger),this.publisher=new ime(this,this.logger),this.relayUrl=e?.relayUrl||cme,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return ji.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){this.isInitialized();let n="";return await Promise.all([new Promise(a=>{this.subscriber.once(of.created,i=>{i.topic===e&&a()})}),new Promise(async a=>{n=await this.subscriber.subscribe(e,t),a()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(Rc.transport_closed))}async transportOpen(e){if(!this.reconnecting){this.relayUrl=e||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(t=>{this.initialized||t(),this.subscriber.once(of.resubscribed,()=>{t()})}),await Promise.race([new Promise(async t=>{await this.provider.connect(),this.removeListener(Rc.transport_closed,this.rejectTransportOpen),t()}),new Promise(t=>this.once(Rc.transport_closed,this.rejectTransportOpen))])])}catch(t){let n=t;if(!/socket hang up/i.test(n.message))throw t;this.logger.error(t),this.events.emit(Rc.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(e){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(t=>setTimeout(t,ame)),await this.transportOpen(e))}rejectTransportOpen(){throw new Error("closeTransport called before connection was established")}async createProvider(){let e=await this.core.crypto.signJWT(this.relayUrl);return new myn.JsonRpcProvider(new _yn.default(Me.formatRelayRpcUrl({sdkVersion:xIt,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0})))}async recordMessageEvent(e){let{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){let{topic:t,message:n}=e;return await this.subscriber.isSubscribed(t)?this.messages.has(t,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),cf.isJsonRpcRequest(e)){if(!e.method.endsWith(_It))return;let t=e.params,{topic:n,message:a,publishedAt:i}=t.data,s={topic:n,message:a,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(X1n({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Rc.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=cf.formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}registerEventListeners(){this.provider.on(oP.payload,e=>this.onProviderPayload(e)),this.provider.on(oP.connect,()=>{this.events.emit(Rc.connect)}),this.provider.on(oP.disconnect,()=>{this.events.emit(Rc.disconnect),this.attemptToReconnect()}),this.provider.on(oP.error,e=>{this.logger.error(e),this.events.emit(Rc.error,e)}),this.events.on(Rc.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},ko.toMiliseconds(ame))}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},egn=Object.defineProperty,z8t=Object.getOwnPropertySymbols,tgn=Object.prototype.hasOwnProperty,rgn=Object.prototype.propertyIsEnumerable,K8t=(r,e,t)=>e in r?egn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,G8t=(r,e)=>{for(var t in e||(e={}))tgn.call(e,t)&&K8t(r,t,e[t]);if(z8t)for(var t of z8t(e))rgn.call(e,t)&&K8t(r,t,e[t]);return r},tz=class extends Bg.IStore{constructor(e,t,n,a=fy,i=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version=TIt,this.cached=[],this.initialized=!1,this.storagePrefix=fy,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{Me.isProposalStruct(s)?this.map.set(s.id,s):Me.isSessionStruct(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Me.isUndefined(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,o)=>{this.isInitialized(),this.map.has(s)?await this.update(s,o):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:o}),this.map.set(s,o),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(o=>Object.keys(s).every(c=>xyn.default(o[c],s[c]))):this.values),this.update=async(s,o)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:o});let c=G8t(G8t({},this.getData(s)),o);this.map.set(s,c),await this.persist()},this.delete=async(s,o)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:o}),this.map.delete(s),await this.persist())},this.logger=ji.generateChildLogger(t,this.name),this.storagePrefix=a,this.getKey=i}get context(){return ji.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},rz=class{constructor(e,t){this.core=e,this.logger=t,this.name=kIt,this.version=AIt,this.events=new vyn.default,this.initialized=!1,this.storagePrefix=fy,this.ignoredPayloadTypes=[Me.TYPE_1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=Me.generateRandomBytes32(),a=await this.core.crypto.setSymKey(n),i=Me.calcExpiry(ko.FIVE_MINUTES),s={protocol:bIt},o={topic:a,expiry:i,relay:s,active:!1},c=Me.formatUri({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:s});return await this.pairings.set(a,o),await this.core.relayer.subscribe(a),this.core.expirer.set(a,i),{topic:a,uri:c}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:a,symKey:i,relay:s}=Me.parseUri(n.uri);if(this.pairings.keys.includes(a))throw new Error(`Pairing already exists: ${a}`);if(this.core.crypto.hasKeys(a))throw new Error(`Keychain already exists: ${a}`);let o=Me.calcExpiry(ko.FIVE_MINUTES),c={topic:a,relay:s,expiry:o,active:!1};return await this.pairings.set(a,c),await this.core.crypto.setSymKey(i,a),await this.core.relayer.subscribe(a,{relay:s}),this.core.expirer.set(a,o),n.activatePairing&&await this.activate({topic:a}),c},this.activate=async({topic:n})=>{this.isInitialized();let a=Me.calcExpiry(ko.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:a}=n;if(this.pairings.keys.includes(a)){let i=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:o,reject:c}=Me.createDelayedPromise();this.events.once(Me.engineEvent("pairing_ping",i),({error:u})=>{u?c(u):o()}),await s()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",Me.getSdkError("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,i)=>{let s=cf.formatJsonRpcRequest(a,i),o=await this.core.crypto.encode(n,s),c=tE[a].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,o,c),s.id},this.sendResult=async(n,a,i)=>{let s=cf.formatJsonRpcResult(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=tE[c.request.method].res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.sendError=async(n,a,i)=>{let s=cf.formatJsonRpcError(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=tE[c.request.method]?tE[c.request.method].res:tE.unregistered_method.res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Me.getSdkError("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(a=>Me.isExpired(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{let{topic:a,payload:i}=n,s=i.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);default:return this.onUnknownRpcMethodRequest(a,i)}},this.onRelayEventResponse=async n=>{let{topic:a,payload:i}=n,s=(await this.core.history.get(a,i.id)).request.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,a)=>{let{id:i}=a;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,a)=>{let{id:i}=a;setTimeout(()=>{cf.isJsonRpcResult(a)?this.events.emit(Me.engineEvent("pairing_ping",i),{}):cf.isJsonRpcError(a)&&this.events.emit(Me.engineEvent("pairing_ping",i),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{let{id:i}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,a)=>{let{id:i,method:s}=a;try{if(this.registeredMethods.includes(s))return;let o=Me.getSdkError("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,o),this.logger.error(o)}catch(o){await this.sendError(i,n,o),this.logger.error(o)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Me.getSdkError("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Me.isValidParams(n)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!Me.isValidUrl(n.uri)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!Me.isValidString(n,!1)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){let{message:a}=Me.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(Me.isExpired(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:a}=Me.getInternalError("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=e,this.logger=ji.generateChildLogger(t,this.name),this.pairings=new tz(this.core,this.logger,this.name,this.storagePrefix)}get context(){return ji.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Rc.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let a=await this.core.crypto.decode(t,n);cf.isJsonRpcRequest(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):cf.isJsonRpcResponse(a)&&(await this.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.core.expirer.on(jp.expired,async e=>{let{topic:t}=Me.parseExpirerTarget(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}},nz=class extends Bg.IJsonRpcHistory{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new Cw.EventEmitter,this.name=SIt,this.version=PIt,this.cached=[],this.initialized=!1,this.storagePrefix=fy,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:i}),this.records.has(a.id))return;let s={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(sf.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=cf.isJsonRpcError(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(sf.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(i=>{if(i.topic===n){if(typeof a<"u"&&i.id!==a)return;this.records.delete(i.id),this.events.emit(sf.deleted,i)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=ji.generateChildLogger(t,this.name)}get context(){return ji.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;let n={topic:t.topic,request:cf.formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(sf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(sf.created,e=>{let t=sf.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(sf.updated,e=>{let t=sf.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(sf.deleted,e=>{let t=sf.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},az=class extends Bg.IExpirer{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new Cw.EventEmitter,this.name=RIt,this.version=MIt,this.cached=[],this.initialized=!1,this.storagePrefix=fy,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:a};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(jp.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){let a=this.formatTarget(n),i=this.getExpiration(a);this.expirations.delete(a),this.events.emit(jp.deleted,{target:a,expiration:i})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=ji.generateChildLogger(t,this.name)}get context(){return ji.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Me.formatTopicTarget(e);if(typeof e=="number")return Me.formatIdTarget(e);let{message:t}=Me.getInternalError("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(jp.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}checkExpiry(e,t){let{expiry:n}=t;ko.toMiliseconds(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(jp.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(iz.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(jp.created,e=>{let t=jp.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(jp.expired,e=>{let t=jp.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(jp.deleted,e=>{let t=jp.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},ngn=Object.defineProperty,V8t=Object.getOwnPropertySymbols,agn=Object.prototype.hasOwnProperty,ign=Object.prototype.propertyIsEnumerable,$8t=(r,e,t)=>e in r?ngn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Y8t=(r,e)=>{for(var t in e||(e={}))agn.call(e,t)&&$8t(r,t,e[t]);if(V8t)for(var t of V8t(e))ign.call(e,t)&&$8t(r,t,e[t]);return r},rE=class extends Bg.ICore{constructor(e){super(e),this.protocol=ome,this.version=oIt,this.name=oz,this.events=new Cw.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||cme;let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:J8t.default(ji.getDefaultLoggerOptions({level:e?.logger||cIt.logger}));this.logger=ji.generateChildLogger(t,this.name),this.heartbeat=new iz.HeartBeat,this.crypto=new Qj(this,this.logger,e?.keychain),this.history=new nz(this,this.logger),this.expirer=new az(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new wyn.default(Y8t(Y8t({},uIt),e?.storageOptions)),this.relayer=new ez({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new rz(this,this.logger)}static async init(e){let t=new rE(e);return await t.initialize(),t}get context(){return ji.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}},sgn=rE;wt.CORE_CONTEXT=oz,wt.CORE_DEFAULT=cIt,wt.CORE_PROTOCOL=ome,wt.CORE_STORAGE_OPTIONS=uIt,wt.CORE_STORAGE_PREFIX=fy,wt.CORE_VERSION=oIt,wt.CRYPTO_CLIENT_SEED=nme,wt.CRYPTO_CONTEXT=lIt,wt.CRYPTO_JWT_TTL=dIt,wt.Core=sgn,wt.Crypto=Qj,wt.EXPIRER_CONTEXT=RIt,wt.EXPIRER_DEFAULT_TTL=z1n,wt.EXPIRER_EVENTS=jp,wt.EXPIRER_STORAGE_VERSION=MIt,wt.Expirer=az,wt.HISTORY_CONTEXT=SIt,wt.HISTORY_EVENTS=sf,wt.HISTORY_STORAGE_VERSION=PIt,wt.JsonRpcHistory=nz,wt.KEYCHAIN_CONTEXT=pIt,wt.KEYCHAIN_STORAGE_VERSION=hIt,wt.KeyChain=Jj,wt.MESSAGES_CONTEXT=fIt,wt.MESSAGES_STORAGE_VERSION=mIt,wt.MessageTracker=Zj,wt.PAIRING_CONTEXT=kIt,wt.PAIRING_DEFAULT_TTL=j1n,wt.PAIRING_RPC_OPTS=tE,wt.PAIRING_STORAGE_VERSION=AIt,wt.PENDING_SUB_RESOLUTION_TIMEOUT=IIt,wt.PUBLISHER_CONTEXT=gIt,wt.PUBLISHER_DEFAULT_TTL=yIt,wt.Pairing=rz,wt.RELAYER_CONTEXT=wIt,wt.RELAYER_DEFAULT_LOGGER=vIt,wt.RELAYER_DEFAULT_PROTOCOL=bIt,wt.RELAYER_DEFAULT_RELAY_URL=cme,wt.RELAYER_EVENTS=Rc,wt.RELAYER_PROVIDER_EVENTS=oP,wt.RELAYER_RECONNECT_TIMEOUT=ame,wt.RELAYER_SDK_VERSION=xIt,wt.RELAYER_STORAGE_OPTIONS=U1n,wt.RELAYER_SUBSCRIBER_SUFFIX=_It,wt.Relayer=ez,wt.STORE_STORAGE_VERSION=TIt,wt.SUBSCRIBER_CONTEXT=EIt,wt.SUBSCRIBER_DEFAULT_TTL=H1n,wt.SUBSCRIBER_EVENTS=of,wt.SUBSCRIBER_STORAGE_VERSION=CIt,wt.Store=tz,wt.Subscriber=Xj,wt.default=rE});var zIt=x(ns=>{"use strict";d();p();Object.defineProperty(ns,"__esModule",{value:!0});var ogn=GS(),Dg=NIt(),ume=kj(),OIt=wfe(),be=jS(),LIt=Ou(),as=fw(),Ao=(ty(),nt(io));function FIt(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var cgn=FIt(ogn),ugn=FIt(LIt),mme="wc",yme=2,gme="client",lz=`${mme}@${yme}:${gme}:`,cz={name:gme,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},lgn={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire"},dgn={database:":memory:"},pgn={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},hgn="history",fgn="0.3",qIt="proposal",mgn=as.THIRTY_DAYS,WIt="Proposal expired",UIt="session",lP=as.SEVEN_DAYS,HIt="engine",nE={wc_sessionPropose:{req:{ttl:as.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:as.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:as.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:as.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:as.ONE_DAY,prompt:!1,tag:1104},res:{ttl:as.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:as.ONE_DAY,prompt:!1,tag:1106},res:{ttl:as.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:as.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:as.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:as.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:as.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:as.ONE_DAY,prompt:!1,tag:1112},res:{ttl:as.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:as.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:as.THIRTY_SECONDS,prompt:!1,tag:1115}}},uz={min:as.FIVE_MINUTES,max:as.SEVEN_DAYS},jIt="request",ygn=Object.defineProperty,ggn=Object.defineProperties,bgn=Object.getOwnPropertyDescriptors,BIt=Object.getOwnPropertySymbols,vgn=Object.prototype.hasOwnProperty,wgn=Object.prototype.propertyIsEnumerable,DIt=(r,e,t)=>e in r?ygn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,zp=(r,e)=>{for(var t in e||(e={}))vgn.call(e,t)&&DIt(r,t,e[t]);if(BIt)for(var t of BIt(e))wgn.call(e,t)&&DIt(r,t,e[t]);return r},lme=(r,e)=>ggn(r,bgn(e)),dme=class extends OIt.IEngine{constructor(e){super(e),this.name=HIt,this.events=new ugn.default,this.initialized=!1,this.ignoredPayloadTypes=[be.TYPE_1],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(nE)}),this.initialized=!0)},this.connect=async t=>{this.isInitialized();let n=lme(zp({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:a,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,relays:c}=n,u=a,l,h=!1;if(u&&(h=this.client.core.pairing.pairings.get(u).active),!u||!h){let{topic:q,uri:W}=await this.client.core.pairing.create();u=q,l=W}let f=await this.client.core.crypto.generateKeyPair(),m=zp({requiredNamespaces:i,optionalNamespaces:s,relays:c??[{protocol:Dg.RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:f,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:y,resolve:E,done:I}=be.createDelayedPromise(as.FIVE_MINUTES,WIt);if(this.events.once(be.engineEvent("session_connect"),async({error:q,session:W})=>{if(q)y(q);else if(W){W.self.publicKey=f;let V=lme(zp({},W),{requiredNamespaces:W.requiredNamespaces,optionalNamespaces:W.optionalNamespaces});await this.client.session.set(W.topic,V),await this.setExpiry(W.topic,W.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:W.peer.metadata}),E(V)}}),!u){let{message:q}=be.getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(q)}let S=await this.sendRequest(u,"wc_sessionPropose",m),L=be.calcExpiry(as.FIVE_MINUTES);return await this.setProposal(S,zp({id:S,expiry:L},m)),{uri:l,approval:I}},this.pair=async t=>(this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{this.isInitialized(),await this.isValidApprove(t);let{id:n,relayProtocol:a,namespaces:i,sessionProperties:s}=t,o=this.client.proposal.get(n),{pairingTopic:c,proposer:u,requiredNamespaces:l,optionalNamespaces:h}=o;be.isValidObject(l)||(l=be.getRequiredNamespacesFromNamespaces(i,"approve()"));let f=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(f,m);c&&n&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult(n,c,{relay:{protocol:a??"irn"},responderPublicKey:f}),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));let E=zp({relay:{protocol:a??"irn"},namespaces:i,requiredNamespaces:l,optionalNamespaces:h,controller:{publicKey:f,metadata:this.client.metadata},expiry:be.calcExpiry(lP)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(y);let I=await this.sendRequest(y,"wc_sessionSettle",E),{done:S,resolve:L,reject:q}=be.createDelayedPromise();this.events.once(be.engineEvent("session_approve",I),({error:V})=>{V?q(V):L(this.client.session.get(y))});let W=lme(zp({},E),{topic:y,acknowledged:!1,self:E.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:f});return await this.client.session.set(y,W),await this.setExpiry(y,be.calcExpiry(lP)),{topic:y,acknowledged:S}},this.reject=async t=>{this.isInitialized(),await this.isValidReject(t);let{id:n,reason:a}=t,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,a),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")))},this.update=async t=>{this.isInitialized(),await this.isValidUpdate(t);let{topic:n,namespaces:a}=t,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:a}),{done:s,resolve:o,reject:c}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_update",i),({error:u})=>{u?c(u):o()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:s}},this.extend=async t=>{this.isInitialized(),await this.isValidExtend(t);let{topic:n}=t,a=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_extend",a),({error:c})=>{c?o(c):s()}),await this.setExpiry(n,be.calcExpiry(lP)),{acknowledged:i}},this.request=async t=>{this.isInitialized(),await this.isValidRequest(t);let{chainId:n,request:a,topic:i,expiry:s}=t,o=await this.sendRequest(i,"wc_sessionRequest",{request:a,chainId:n},s),{done:c,resolve:u,reject:l}=be.createDelayedPromise(s);return this.events.once(be.engineEvent("session_request",o),({error:h,result:f})=>{h?l(h):u(f)}),this.client.events.emit("session_request_sent",{topic:i,request:a,chainId:n}),await c()},this.respond=async t=>{this.isInitialized(),await this.isValidRespond(t);let{topic:n,response:a}=t,{id:i}=a;Ao.isJsonRpcResult(a)?await this.sendResult(i,n,a.result):Ao.isJsonRpcError(a)&&await this.sendError(i,n,a.error),this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0})},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);let{topic:n}=t;if(this.client.session.keys.includes(n)){let a=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();this.events.once(be.engineEvent("session_ping",a),({error:c})=>{c?o(c):s()}),await i()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async t=>{this.isInitialized(),await this.isValidEmit(t);let{topic:n,event:a,chainId:i}=t;await this.sendRequest(n,"wc_sessionEvent",{event:a,chainId:i})},this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);let{topic:n}=t;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",be.getSdkError("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter(n=>be.isSessionCompatible(n,t))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(t,n)=>{let{self:a}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await Promise.all([this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(t),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deleteProposal=async(t,n)=>{await Promise.all([this.client.proposal.delete(t,be.getSdkError("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,n),a?Promise.resolve():this.client.core.expirer.del(t)])},this.setExpiry=async(t,n)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:n}),this.client.core.expirer.set(t,n)},this.setProposal=async(t,n)=>{await this.client.proposal.set(t,n),this.client.core.expirer.set(t,n.expiry)},this.setPendingSessionRequest=async t=>{let n=nE.wc_sessionRequest.req.ttl,{id:a,topic:i,params:s}=t;await this.client.pendingRequest.set(a,{id:a,topic:i,params:s}),n&&this.client.core.expirer.set(a,be.calcExpiry(n))},this.sendRequest=async(t,n,a,i)=>{let s=Ao.formatJsonRpcRequest(n,a),o=await this.client.core.crypto.encode(t,s),c=nE[n].req;return i&&(c.ttl=i),this.client.core.history.set(t,s),this.client.core.relayer.publish(t,o,c),s.id},this.sendResult=async(t,n,a)=>{let i=Ao.formatJsonRpcResult(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=nE[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.sendError=async(t,n,a)=>{let i=Ao.formatJsonRpcError(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=nE[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let t=[],n=[];this.client.session.getAll().forEach(a=>{be.isExpired(a.expiry)&&t.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{be.isExpired(a.expiry)&&n.push(a.id)}),await Promise.all([...t.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=t=>{let{topic:n,payload:a}=t,i=a.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async t=>{let{topic:n,payload:a}=t,i=(await this.client.core.history.get(n,a.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onSessionProposeRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidConnect(zp({},n.params));let s=be.calcExpiry(as.FIVE_MINUTES),o=zp({id:i,pairingTopic:t,expiry:s},a);await this.setProposal(i,o),this.client.events.emit("session_proposal",{id:i,params:o})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(t,n)=>{let{id:a}=n;if(Ao.isJsonRpcResult(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let c=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});let u=await this.client.core.crypto.generateSharedKey(o,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let l=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:t})}else Ao.isJsonRpcError(n)&&(await this.client.proposal.delete(a,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:o,expiry:c,namespaces:u,requiredNamespaces:l,optionalNamespaces:h,sessionProperties:f}=n.params,m=zp({topic:t,relay:s,expiry:c,namespaces:u,acknowledged:!0,requiredNamespaces:l,optionalNamespaces:h,controller:o.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:o.publicKey,metadata:o.metadata}},f&&{sessionProperties:f});await this.sendResult(n.id,t,!0),this.events.emit(be.engineEvent("session_connect"),{session:m})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(t,n)=>{let{id:a}=n;Ao.isJsonRpcResult(n)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(be.engineEvent("session_approve",a),{})):Ao.isJsonRpcError(n)&&(await this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidUpdate(zp({topic:t},a)),await this.client.session.update(t,{namespaces:a.namespaces}),await this.sendResult(i,t,!0),this.client.events.emit("session_update",{id:i,topic:t,params:a})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(t,n)=>{let{id:a}=n;Ao.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_update",a),{}):Ao.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(t,n)=>{let{id:a}=n;try{this.isValidExtend({topic:t}),await this.setExpiry(t,be.calcExpiry(lP)),await this.sendResult(a,t,!0),this.client.events.emit("session_extend",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(t,n)=>{let{id:a}=n;Ao.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_extend",a),{}):Ao.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(t,n)=>{let{id:a}=n;try{this.isValidPing({topic:t}),await this.sendResult(a,t,!0),this.client.events.emit("session_ping",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionPingResponse=(t,n)=>{let{id:a}=n;setTimeout(()=>{Ao.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_ping",a),{}):Ao.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(t,n)=>{let{id:a}=n;try{this.isValidDisconnect({topic:t,reason:n.params}),this.client.core.relayer.once(Dg.RELAYER_EVENTS.publish,async()=>{await this.deleteSession(t)}),await this.sendResult(a,t,!0),this.client.events.emit("session_delete",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidRequest(zp({topic:t},i)),await this.setPendingSessionRequest({id:a,topic:t,params:i}),this.client.events.emit("session_request",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(t,n)=>{let{id:a}=n;Ao.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_request",a),{result:n.result}):Ao.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_request",a),{error:n.error})},this.onSessionEventRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidEmit(zp({topic:t},i)),this.client.events.emit("session_event",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.isValidConnect=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(c)}let{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:i,sessionProperties:s,relays:o}=t;if(be.isUndefined(n)||await this.isValidPairingTopic(n),!be.isValidRelays(o,!0)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(c)}!be.isUndefined(a)&&be.isValidObject(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!be.isUndefined(i)&&be.isValidObject(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(t,n)=>{let a=be.isValidRequiredNamespaces(t,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async t=>{if(!be.isValidParams(t))throw new Error(be.getInternalError("MISSING_OR_INVALID",`approve() params: ${t}`).message);let{id:n,namespaces:a,relayProtocol:i,sessionProperties:s}=t;await this.isValidProposalId(n);let o=this.client.proposal.get(n),c=be.isValidNamespaces(a,"approve()");if(c)throw new Error(c.message);let u=be.isConformingNamespaces(o.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!be.isValidString(i,!0)){let{message:l}=be.getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(i)}let{id:n,reason:a}=t;if(await this.isValidProposalId(n),!be.isValidErrorReason(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidSessionSettleRequest=t=>{if(!be.isValidParams(t)){let{message:u}=be.getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(u)}let{relay:n,controller:a,namespaces:i,expiry:s}=t;if(!be.isValidRelay(n)){let{message:u}=be.getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let o=be.isValidController(a,"onSessionSettleRequest()");if(o)throw new Error(o.message);let c=be.isValidNamespaces(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(be.isExpired(s)){let{message:u}=be.getInternalError("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(c)}let{topic:n,namespaces:a}=t;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=be.isValidNamespaces(a,"update()");if(s)throw new Error(s.message);let o=be.isConformingNamespaces(i.requiredNamespaces,a,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionTopic(n)},this.isValidRequest=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(c)}let{topic:n,request:a,chainId:i,expiry:s}=t;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!be.isValidNamespacesChainId(o,i)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(c)}if(!be.isValidRequest(a)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!be.isValidNamespacesRequest(o,i,a.method)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!be.isValidRequestExpiry(s,uz)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${uz.min} and ${uz.max}`);throw new Error(c)}},this.isValidRespond=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(i)}let{topic:n,response:a}=t;if(await this.isValidSessionTopic(n),!be.isValidResponse(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidPing=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async t=>{if(!be.isValidParams(t)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(o)}let{topic:n,event:a,chainId:i}=t;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!be.isValidNamespacesChainId(s,i)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(o)}if(!be.isValidEvent(a)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}if(!be.isValidNamespacesEvent(s,i,a.name)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidDisconnect=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(t,n)=>{Object.values(t).forEach(a=>{if(!be.isValidString(a,!1)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:e}=be.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(Dg.RELAYER_EVENTS.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let a=await this.client.core.crypto.decode(t,n);Ao.isJsonRpcRequest(a)?(this.client.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):Ao.isJsonRpcResponse(a)&&(await this.client.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.client.core.expirer.on(Dg.EXPIRER_EVENTS.expired,async e=>{let{topic:t,id:n}=be.parseExpirerTarget(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,be.getInternalError("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(await this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=be.getInternalError("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(!this.client.session.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.session.get(e).expiry)){await this.deleteSession(e);let{message:t}=be.getInternalError("EXPIRED",`session topic: ${e}`);throw new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(be.isValidString(e,!1)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}else{let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}async isValidProposalId(e){if(!be.isValidId(e)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);let{message:t}=be.getInternalError("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}},pme=class extends Dg.Store{constructor(e,t){super(e,t,qIt,lz),this.core=e,this.logger=t}},hme=class extends Dg.Store{constructor(e,t){super(e,t,UIt,lz),this.core=e,this.logger=t}},fme=class extends Dg.Store{constructor(e,t){super(e,t,jIt,lz),this.core=e,this.logger=t}},aE=class extends OIt.ISignClient{constructor(e){super(e),this.protocol=mme,this.version=yme,this.name=cz.name,this.events=new LIt.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=e?.name||cz.name,this.metadata=e?.metadata||be.getAppMetadata();let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:cgn.default(ume.getDefaultLoggerOptions({level:e?.logger||cz.logger}));this.core=e?.core||new Dg.Core(e),this.logger=ume.generateChildLogger(t,this.name),this.session=new hme(this.core,this.logger),this.proposal=new pme(this.core,this.logger),this.pendingRequest=new fme(this.core,this.logger),this.engine=new dme(this)}static async init(e){let t=new aE(e);return await t.initialize(),t}get context(){return ume.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},_gn=aE;ns.ENGINE_CONTEXT=HIt,ns.ENGINE_RPC_OPTS=nE,ns.HISTORY_CONTEXT=hgn,ns.HISTORY_EVENTS=pgn,ns.HISTORY_STORAGE_VERSION=fgn,ns.PROPOSAL_CONTEXT=qIt,ns.PROPOSAL_EXPIRY=mgn,ns.PROPOSAL_EXPIRY_MESSAGE=WIt,ns.REQUEST_CONTEXT=jIt,ns.SESSION_CONTEXT=UIt,ns.SESSION_EXPIRY=lP,ns.SESSION_REQUEST_EXPIRY_BOUNDARIES=uz,ns.SIGN_CLIENT_CONTEXT=gme,ns.SIGN_CLIENT_DEFAULT=cz,ns.SIGN_CLIENT_EVENTS=lgn,ns.SIGN_CLIENT_PROTOCOL=mme,ns.SIGN_CLIENT_STORAGE_OPTIONS=dgn,ns.SIGN_CLIENT_STORAGE_PREFIX=lz,ns.SIGN_CLIENT_VERSION=yme,ns.SignClient=_gn,ns.default=aE});var QIt=x(pz=>{"use strict";d();p();Object.defineProperty(pz,"__esModule",{value:!0});var xgn=GS(),YIt=zIt(),bme=jS(),Tgn=kj(),hz=(SS(),nt(AS)),JIt=(PH(),nt(SH)),Egn=Ou();function fz(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var Cgn=fz(xgn),Ign=fz(YIt),Cme=fz(JIt),kgn=fz(Egn),KIt="error",Agn="wss://relay.walletconnect.com",Sgn="wc",Pgn="universal_provider",GIt=`${Sgn}@${2}:${Pgn}:`,Rgn="https://rpc.walletconnect.com/v1",dP={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function iE(r,e,t){let n,a=wme(r);return e.rpcMap&&(n=e.rpcMap[a]),n||(n=`${Rgn}?chainId=eip155:${a}&projectId=${t}`),n}function wme(r){return r.includes("eip155")?Number(r.split(":")[1]):Number(r)}function Mgn(r,e){if(!e.includes(r))throw new Error(`Chain '${r}' not approved. Please use one of the following: ${e.toString()}`)}function Ngn(r){return r.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}var mz=(r,e)=>{let t=n=>{n.request!==e.request||n.topic!==e.topic||(r.events.removeListener("session_request_sent",t),Bgn())};r.on("session_request_sent",t)};function Bgn(){if(typeof window<"u")try{let r=window.localStorage.getItem("WALLETCONNECT_DEEPLINK_CHOICE");if(r){let e=JSON.parse(r);window.open(e.href,"_self","noreferrer noopener")}}catch(r){console.error(r)}}var _me=class{constructor(e){this.name="eip155",this.namespace=e.namespace,this.client=e.client,this.events=e.events,this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){var t;switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return this.handleSwitchChain(e.request.params?(t=e.request.params[0])==null?void 0:t.chainId:"0x0"),null;case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),await this.client.request(e)):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){let n=wme(e);if(!this.httpProviders[n]){let a=t||iE(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!a)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,a)}this.chainId=n,this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let n=t||iE(`${this.name}:${e}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new JIt.HttpConnection(n))}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=wme(t);e[n]=this.createHttpProvider(n)}),e}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}handleSwitchChain(e){let t=parseInt(e,16),n=`${this.name}:${t}`;Mgn(n,this.namespace.chains),this.setDefaultChain(`${t}`)}},xme=class{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let n=t||iE(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||iE(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new Cme.default(n))}},Tme=class{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||iE(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||iE(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new Cme.default(n))}},Eme=class{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=this.getCardanoRPCUrl(t);e[t]=this.createHttpProvider(t,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||this.getCardanoRPCUrl(e);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new Cme.default(n))}},Dgn=Object.defineProperty,Ogn=Object.defineProperties,Lgn=Object.getOwnPropertyDescriptors,VIt=Object.getOwnPropertySymbols,Fgn=Object.prototype.hasOwnProperty,qgn=Object.prototype.propertyIsEnumerable,$It=(r,e,t)=>e in r?Dgn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,dz=(r,e)=>{for(var t in e||(e={}))Fgn.call(e,t)&&$It(r,t,e[t]);if(VIt)for(var t of VIt(e))qgn.call(e,t)&&$It(r,t,e[t]);return r},vme=(r,e)=>Ogn(r,Lgn(e)),sE=class{constructor(e){this.events=new kgn.default,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:Cgn.default(Tgn.getDefaultLoggerOptions({level:e?.logger||KIt}))}static async init(e){let t=new sE(e);return await t.initialize(),t}async request(e,t){let[n,a]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:dz({},e),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(e,t,n){this.request(e,n).then(a=>t(null,a)).catch(a=>t(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:bme.getSdkError("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");let{uri:n,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(i=>{this.session=i}).catch(i=>{if(i.message!==YIt.PROPOSAL_EXPIRY_MESSAGE)throw i;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{let[n,a]=this.validateChain(e);this.getProvider(n).setDefaultChain(a,t)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if(bme.isValidArray(t)){for(let n of t)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Ign.default.init({logger:this.providerOpts.logger||KIt,relayUrl:this.providerOpts.relayUrl||Agn,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");Object.keys(this.namespaces).forEach(e=>{var t,n,a;let i=((t=this.session)==null?void 0:t.namespaces[e].accounts)||[],s=Ngn(i),o=vme(dz({},Object.assign(this.namespaces[e],(a=(n=this.optionalNamespaces)==null?void 0:n[e])!=null?a:{})),{accounts:i,chains:s});switch(e){case"eip155":this.rpcProviders[e]=new _me({client:this.client,namespace:o,events:this.events});break;case"solana":this.rpcProviders[e]=new xme({client:this.client,namespace:o,events:this.events});break;case"cosmos":this.rpcProviders[e]=new Tme({client:this.client,namespace:o,events:this.events});break;case"polkadot":break;case"cip34":this.rpcProviders[e]=new Eme({client:this.client,namespace:o,events:this.events});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?this.events.emit("accountsChanged",n.data):n.name==="chainChanged"?this.onChainChanged(t.chainId):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var n;let{namespaces:a}=t,i=(n=this.client)==null?void 0:n.session.get(e);this.session=vme(dz({},i),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",vme(dz({},bme.getSdkError("USER_DISCONNECTED")),{data:e.topic}))}),this.on(dP.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace((t=this.session)==null?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:n,sessionProperties:a}=e;if(!t||!Object.keys(t).length)throw new Error("Namespaces must be not empty");this.namespaces=t,this.optionalNamespaces=n,this.sessionProperties=a,this.persist("namespaces",t),this.persist("optionalNamespaces",n)}validateChain(e){let[t,n]=e?.split(":")||["",""];if(t&&!Object.keys(this.namespaces).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&n)return[t,n];let a=Object.keys(this.namespaces)[0],i=this.rpcProviders[a].getDefaultChain();return[a,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){let[n,a]=this.validateChain(e);t||this.getProvider(n).setDefaultChain(a),this.namespaces[n].defaultChain=a,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",a)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${GIt}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${GIt}/${e}`)}},Wgn=sE;pz.UniversalProvider=Wgn,pz.default=sE});var m_a,Ugn,ZIt,Ime,Hgn,XIt,kme,ekt=ce(()=>{d();p();m_a=Symbol(),Ugn=Symbol(),ZIt=Object.getPrototypeOf,Ime=new WeakMap,Hgn=r=>r&&(Ime.has(r)?Ime.get(r):ZIt(r)===Object.prototype||ZIt(r)===Array.prototype),XIt=r=>Hgn(r)&&r[Ugn]||null,kme=(r,e=!0)=>{Ime.set(r,e)}});function uf(r={}){return zgn(r)}function Lg(r,e,t){let n=Iw.get(r);(Og.env&&Og.env.MODE)!=="production"&&!n&&console.warn("Please use proxy object");let a,i=[],s=n[3],o=!1,u=s(l=>{if(i.push(l),t){e(i.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(i.splice(0))}))});return o=!0,()=>{o=!1,u()}}function Kgn(r,e){let t=Iw.get(r);(Og.env&&Og.env.MODE)!=="production"&&!t&&console.warn("Please use proxy object");let[n,a,i]=t;return i(n,a(),e)}var Og,Ame,Iw,yz,jgn,zgn,tkt=ce(()=>{d();p();ekt();Og={},Ame=r=>typeof r=="object"&&r!==null,Iw=new WeakMap,yz=new WeakSet,jgn=(r=Object.is,e=(u,l)=>new Proxy(u,l),t=u=>Ame(u)&&!yz.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),n=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,i=(u,l,h=n)=>{let f=a.get(u);if(f?.[0]===l)return f[1];let m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return kme(m,!0),a.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{let E=Reflect.get(u,y);yz.has(E)?(kme(E,!1),m[y]=E):E instanceof Promise?Object.defineProperty(m,y,{get(){return h(E)}}):Iw.has(E)?m[y]=Kgn(E,h):m[y]=E}),Object.freeze(m)},s=new WeakMap,o=[1,1],c=u=>{if(!Ame(u))throw new Error("object required");let l=s.get(u);if(l)return l;let h=o[0],f=new Set,m=(J,F=++o[0])=>{h!==F&&(h=F,f.forEach(T=>T(J,F)))},y=o[1],E=(J=++o[1])=>(y!==J&&!f.size&&(y=J,S.forEach(([F])=>{let T=F[1](J);T>h&&(h=T)})),h),I=J=>(F,T)=>{let P=[...F];P[1]=[J,...P[1]],m(P,T)},S=new Map,L=(J,F)=>{if((Og.env&&Og.env.MODE)!=="production"&&S.has(J))throw new Error("prop listener already exists");if(f.size){let T=F[3](I(J));S.set(J,[F,T])}else S.set(J,[F])},q=J=>{var F;let T=S.get(J);T&&(S.delete(J),(F=T[1])==null||F.call(T))},W=J=>(f.add(J),f.size===1&&S.forEach(([T,P],A)=>{if((Og.env&&Og.env.MODE)!=="production"&&P)throw new Error("remove already exists");let v=T[3](I(A));S.set(A,[T,v])}),()=>{f.delete(J),f.size===0&&S.forEach(([T,P],A)=>{P&&(P(),S.set(A,[T]))})}),V=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),H=e(V,{deleteProperty(J,F){let T=Reflect.get(J,F);q(F);let P=Reflect.deleteProperty(J,F);return P&&m(["delete",[F],T]),P},set(J,F,T,P){var A;let v=Reflect.has(J,F),k=Reflect.get(J,F,P);if(v&&r(k,T))return!0;q(F),Ame(T)&&(T=XIt(T)||T);let O=T;if(!((A=Object.getOwnPropertyDescriptor(J,F))!=null&&A.set))if(T instanceof Promise)T.then(D=>{T.status="fulfilled",T.value=D,m(["resolve",[F],D])}).catch(D=>{T.status="rejected",T.reason=D,m(["reject",[F],D])});else{!Iw.has(T)&&t(T)&&(O=uf(T));let D=!yz.has(O)&&Iw.get(O);D&&L(F,D)}return Reflect.set(J,F,O,P),m(["set",[F],T,k]),!0}});s.set(u,H);let G=[V,E,i,W];return Iw.set(H,G),Reflect.ownKeys(u).forEach(J=>{let F=Object.getOwnPropertyDescriptor(u,J);F.get||F.set?Object.defineProperty(V,J,F):H[J]=u[J]}),H})=>[c,Iw,yz,r,e,t,n,a,i,s,o],[zgn]=jgn()});function Ggn(r){let e=Object.fromEntries(Object.entries(r).filter(([t,n])=>typeof n<"u"&&n!==null&&n!=="").map(([t,n])=>[t,n.toString()]));return new URLSearchParams(e).toString()}function vz(){let{projectId:r}=qs.state;if(!r)throw new Error("projectId is required to work with explorer api");return r}function Vgn(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var nkt,nl,yt,pP,zi,ws,$a,gz,qs,rkt,bz,kw,oo,Id,Br,oE,co,wz,Fm,Aw,Nc,Sr,Sme=ce(()=>{d();p();tkt();nkt=un(lc(),1),nl=uf({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),yt={state:nl,subscribe(r){return Lg(nl,()=>r(nl))},setChains(r){nl.chains=r},setStandaloneChains(r){nl.standaloneChains=r},setStandaloneUri(r){nl.standaloneUri=r},getSelectedChain(){let r=zi.client().getNetwork().chain;return r&&(nl.selectedChain=r),nl.selectedChain},setSelectedChain(r){nl.selectedChain=r},setIsStandalone(r){nl.isStandalone=r},setIsCustomDesktop(r){nl.isCustomDesktop=r},setIsCustomMobile(r){nl.isCustomMobile=r},setIsDataLoaded(r){nl.isDataLoaded=r},setIsUiLoaded(r){nl.isUiLoaded=r},setWalletConnectVersion(r){nl.walletConnectVersion=r}},pP=uf({initialized:!1,ethereumClient:void 0}),zi={setEthereumClient(r){!pP.initialized&&r&&(pP.ethereumClient=r,yt.setChains(r.chains),pP.initialized=!0)},client(){if(pP.ethereumClient)return pP.ethereumClient;throw new Error("ClientCtrl has no client set")}},ws=uf({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),$a={state:ws,subscribe(r){return Lg(ws,()=>r(ws))},getAccount(){let r=zi.client().getAccount();ws.address=r.address,ws.isConnected=r.isConnected},async fetchProfile(r,e){try{ws.profileLoading=!0;let t=e??ws.address,{id:n}=zi.client().getDefaultChain();if(t&&n===1){let[a,i]=await Promise.all([zi.client().fetchEnsName({address:t,chainId:1}),zi.client().fetchEnsAvatar({address:t,chainId:1})]);i&&await r(i),ws.profileName=a,ws.profileAvatar=i}}finally{ws.profileLoading=!1}},async fetchBalance(r){try{ws.balanceLoading=!0;let e=r??ws.address;if(e){let t=await zi.client().fetchBalance({address:e});ws.balance={amount:t.formatted,symbol:t.symbol}}}finally{ws.balanceLoading=!1}},setAddress(r){ws.address=r},setIsConnected(r){ws.isConnected=r},resetBalance(){ws.balance=void 0},resetAccount(){ws.address=void 0,ws.isConnected=!1,ws.profileName=void 0,ws.profileAvatar=void 0,ws.balance=void 0}},gz=uf({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),qs={state:gz,subscribe(r){return Lg(gz,()=>r(gz))},setConfig(r){var e,t,n,a;if(yt.setStandaloneChains(r.standaloneChains),yt.setIsStandalone(!!((e=r.standaloneChains)!=null&&e.length)||!!r.enableStandaloneMode),yt.setIsCustomMobile(!!((t=r.mobileWallets)!=null&&t.length)),yt.setIsCustomDesktop(!!((n=r.desktopWallets)!=null&&n.length)),yt.setWalletConnectVersion((a=r.walletConnectVersion)!=null?a:1),r.defaultChain)yt.setSelectedChain(r.defaultChain);else if(!yt.state.isStandalone){let i=zi.client().getDefaultChain();yt.setSelectedChain(i)}Object.assign(gz,r)}},rkt="https://explorer-api.walletconnect.com";bz={async fetchWallets(r,e){let t=Ggn(e),n=`${rkt}/v3/wallets?projectId=${r}&${t}`;return(await fetch(n)).json()},formatImageUrl(r,e){return`${rkt}/v3/logo/lg/${e}?projectId=${r}`}},kw=uf({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});oo={state:kw,async getPreviewWallets(r){let{listings:e}=await bz.fetchWallets(vz(),r);return kw.previewWallets=Object.values(e),kw.previewWallets},async getRecomendedWallets(){let{listings:r}=await bz.fetchWallets(vz(),{page:1,entries:6});kw.recomendedWallets=Object.values(r)},async getPaginatedWallets(r){let{page:e,search:t}=r,{listings:n,total:a}=await bz.fetchWallets(vz(),r),i=Object.values(n),s=t?"search":"wallets";return kw[s]={listings:[...kw[s].listings,...i],total:a,page:e??1},{listings:i,total:a}},getImageUrl(r){return bz.formatImageUrl(vz(),r)},resetSearch(){kw.search={listings:[],total:0,page:1}}},Id=uf({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),Br={state:Id,subscribe(r){return Lg(Id,()=>r(Id))},push(r,e){r!==Id.view&&(Id.view=r,e&&(Id.data=e),Id.history.push(r))},replace(r){Id.view=r,Id.history=[r]},goBack(){if(Id.history.length>1){Id.history.pop();let[r]=Id.history.slice(-1);Id.view=r}}},oE=uf({open:!1}),co={state:oE,subscribe(r){return Lg(oE,()=>r(oE))},async open(r){return new Promise(e=>{let{isStandalone:t,isUiLoaded:n,isDataLoaded:a}=yt.state,{isConnected:i}=$a.state,{enableNetworkView:s}=qs.state;if(t?(yt.setStandaloneUri(r?.uri),yt.setStandaloneChains(r?.standaloneChains),Br.replace("ConnectWallet")):r!=null&&r.route?Br.replace(r.route):i?Br.replace("Account"):s?Br.replace("SelectNetwork"):Br.replace("ConnectWallet"),n&&a)oE.open=!0,e();else{let o=setInterval(()=>{yt.state.isUiLoaded&&yt.state.isDataLoaded&&(clearInterval(o),oE.open=!0,e())},200)}})},close(){oE.open=!1}};wz=uf({themeMode:Vgn()?"dark":"light"}),Fm={state:wz,subscribe(r){return Lg(wz,()=>r(wz))},setThemeConfig(r){Object.assign(wz,r)}},Aw=uf({open:!1,message:"",variant:"success"}),Nc={state:Aw,subscribe(r){return Lg(Aw,()=>r(Aw))},openToast(r,e){Aw.open=!0,Aw.message=r,Aw.variant=e},closeToast(){Aw.open=!1}},Sr={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return Sr.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.getOwnPropertyNames(r).length===0&&Object.getOwnPropertySymbols(r).length===0},isHttpUrl(r){return r.startsWith("http://")||r.startsWith("https://")},formatNativeUrl(r,e,t){if(Sr.isHttpUrl(r))return this.formatUniversalUrl(r,e,t);let n=r;n.includes("://")||(n=r.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}wc?uri=${a}`},formatUniversalUrl(r,e,t){if(!Sr.isHttpUrl(r))return this.formatNativeUrl(r,e,t);let n=r;r.endsWith("/")&&(n=r.slice(0,-1)),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}/wc?uri=${a}`},async wait(r){return new Promise(e=>{setTimeout(e,r)})},openHref(r,e){window.open(r,e,"noreferrer noopener")},setWalletConnectDeepLink(r,e){localStorage.setItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:r,name:e}))},setWalletConnectAndroidDeepLink(r){let[e]=r.split("?");localStorage.setItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(r){return r===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=nkt.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}))});var _z,xz,Pme,akt,hP,ikt,pr,Rme,Tz,Mme=ce(()=>{d();p();_z=window,xz=_z.ShadowRoot&&(_z.ShadyCSS===void 0||_z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pme=Symbol(),akt=new WeakMap,hP=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Pme)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(xz&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=akt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&akt.set(t,e))}return e}toString(){return this.cssText}},ikt=r=>new hP(typeof r=="string"?r:r+"",void 0,Pme),pr=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[i+1],r[0]);return new hP(t,r,Pme)},Rme=(r,e)=>{xz?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=_z.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})},Tz=xz?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return ikt(t)})(r):r});var Nme,Ez,skt,$gn,okt,Dme,ckt,Bme,my,Cz=ce(()=>{d();p();Mme();Mme();Ez=window,skt=Ez.trustedTypes,$gn=skt?skt.emptyScript:"",okt=Ez.reactiveElementPolyfillSupport,Dme={toAttribute(r,e){switch(e){case Boolean:r=r?$gn:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ckt=(r,e)=>e!==r&&(e==e||r==r),Bme={attribute:!0,type:String,converter:Dme,reflect:!1,hasChanged:ckt},my=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,n)=>{let a=this._$Ep(n,t);a!==void 0&&(this._$Ev.set(a,n),e.push(a))}),e}static createProperty(e,t=Bme){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(a){let i=this[e];this[t]=a,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Bme}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let a of n)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(Tz(a))}else e!==void 0&&t.push(Tz(e));return t}static _$Ep(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Rme(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Bme){var a;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((a=n.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?n.converter:Dme).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var n;let a=this.constructor,i=a._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=a.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Dme;this._$El=i,this[i]=o.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let a=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||ckt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,i)=>this[i]=a),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var i;return(i=a.hostUpdate)===null||i===void 0?void 0:i.call(a)}),this.update(n)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var a;return(a=n.hostUpdated)===null||a===void 0?void 0:a.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};my.finalized=!0,my.elementProperties=new Map,my.elementStyles=[],my.shadowRootOptions={mode:"open"},okt?.({ReactiveElement:my}),((Nme=Ez.reactiveElementVersions)!==null&&Nme!==void 0?Nme:Ez.reactiveElementVersions=[]).push("1.6.1")});function dE(r,e,t=r,n){var a,i,s,o;if(e===yy)return e;let c=n!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[n]:t._$Cl,u=yP(e)?void 0:e._$litDirective$;return c?.constructor!==u&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),u===void 0?c=void 0:(c=new u(r),c._$AT(r,t,n)),n!==void 0?((s=(o=t)._$Co)!==null&&s!==void 0?s:o._$Co=[])[n]=c:t._$Cl=c),c!==void 0&&(e=dE(r,c._$AS(r,e.values),c,n)),e}var Ome,Iz,uE,ukt,Fg,ykt,Ygn,lE,mP,yP,gkt,Jgn,fP,lkt,dkt,Sw,pkt,hkt,bkt,vkt,_e,Dr,yy,uo,fkt,cE,Qgn,Pw,Lme,Rw,pE,Fme,Zgn,qme,Wme,Ume,mkt,wkt,Mw=ce(()=>{d();p();Iz=window,uE=Iz.trustedTypes,ukt=uE?uE.createPolicy("lit-html",{createHTML:r=>r}):void 0,Fg=`lit$${(Math.random()+"").slice(9)}$`,ykt="?"+Fg,Ygn=`<${ykt}>`,lE=document,mP=(r="")=>lE.createComment(r),yP=r=>r===null||typeof r!="object"&&typeof r!="function",gkt=Array.isArray,Jgn=r=>gkt(r)||typeof r?.[Symbol.iterator]=="function",fP=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lkt=/-->/g,dkt=/>/g,Sw=RegExp(`>|[ + Approved: ${f.toString()}`))}),s.forEach(h=>{n||(R1(a[h].methods,i[h].methods)?R1(a[h].events,i[h].events)||(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${h}`)):n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${h}`))}),n}function Xyn(r){let e={};return Object.keys(r).forEach(t=>{var n;t.includes(":")?e[t]=r[t]:(n=r[t].chains)==null||n.forEach(a=>{e[a]={methods:r[t].methods,events:r[t].events}})}),e}function $Ct(r){return[...new Set(r.map(e=>e.includes(":")?e.split(":")[0]:e))]}function egn(r){let e={};return Object.keys(r).forEach(t=>{t.includes(":")?e[t]=r[t]:Zw(r[t].accounts)?.forEach(a=>{e[a]={accounts:r[t].accounts.filter(i=>i.includes(`${a}:`)),methods:r[t].methods,events:r[t].events}})}),e}function tgn(r,e){return X1e(r,!1)&&r<=e.max&&r>=e.min}we.BASE10=WNe,we.BASE16=el,we.BASE64=V1e,we.COLON=ayn,we.DEFAULT_DEPTH=zNe,we.EMPTY_SPACE=Y1e,we.ENV_MAP=iQ,we.ONE_THOUSAND=iyn,we.REACT_NATIVE_PRODUCT=d8t,we.RELAYER_DEFAULT_PROTOCOL=T8t,we.SDK_TYPE=h8t,we.SLASH=p8t,we.TYPE_0=UNe,we.TYPE_1=oQ,we.UTF8=Z1e,we.appendToQueryString=y8t,we.assertType=lyn,we.calcExpiry=_yn,we.capitalize=yyn,we.capitalizeWord=_8t,we.createDelayedPromise=gyn,we.createExpiringPromise=byn,we.decodeTypeByte=gae,we.decrypt=Z0n,we.deriveSymKey=Y0n,we.deserialize=jNe,we.encodeTypeByte=c8t,we.encrypt=J0n,we.engineEvent=Iyn,we.enumify=myn,we.formatAccountId=r8t,we.formatAccountWithChain=q0n,we.formatChainId=t8t,we.formatExpirerTarget=VNe,we.formatIdTarget=wyn,we.formatMessage=z0n,we.formatMessageContext=dyn,we.formatRelayParams=E8t,we.formatRelayRpcUrl=cyn,we.formatTopicTarget=vyn,we.formatUA=v8t,we.formatUri=Myn,we.generateKeyPair=G0n,we.generateRandomBytes32=V0n,we.getAccountsChains=Zw,we.getAccountsFromNamespaces=W0n,we.getAddressFromAccount=n8t,we.getAddressesFromAccounts=F0n,we.getAppMetadata=syn,we.getChainFromAccount=a8t,we.getChainsFromAccounts=i8t,we.getChainsFromNamespace=Q1e,we.getChainsFromNamespaces=U0n,we.getChainsFromRequiredNamespaces=H0n,we.getDidAddress=o8t,we.getDidAddressSegments=J1e,we.getDidChainId=s8t,we.getEnvironment=GNe,we.getHttpUrl=uyn,we.getInternalError=fy,we.getJavascriptID=b8t,we.getJavascriptOS=g8t,we.getLastItems=x8t,we.getNamespacedDidChainId=j0n,we.getNamespacesChains=C8t,we.getNamespacesEventsForChainId=A8t,we.getNamespacesMethodsForChainId=k8t,we.getRelayClientMetadata=oyn,we.getRelayProtocolApi=Cyn,we.getRelayProtocolName=Eyn,we.getRequiredNamespacesFromNamespaces=Nyn,we.getSdkError=Jw,we.getUniqueValues=FNe,we.hasOverlap=R1,we.hashKey=$0n,we.hashMessage=Q0n,we.isBrowser=m8t,we.isConformingNamespaces=Zyn,we.isExpired=Tyn,we.isNode=KNe,we.isProposalStruct=qyn,we.isReactNative=f8t,we.isSessionCompatible=Lyn,we.isSessionStruct=Fyn,we.isTypeOneEnvelope=eyn,we.isUndefined=M1,we.isValidAccountId=P8t,we.isValidAccounts=M8t,we.isValidActions=B8t,we.isValidArray=bae,we.isValidChainId=ebe,we.isValidChains=S8t,we.isValidController=Wyn,we.isValidErrorReason=Kyn,we.isValidEvent=Yyn,we.isValidId=jyn,we.isValidNamespaceAccounts=N8t,we.isValidNamespaceActions=$Ne,we.isValidNamespaceChains=R8t,we.isValidNamespaceMethodsOrEvents=LNe,we.isValidNamespaces=D8t,we.isValidNamespacesChainId=$yn,we.isValidNamespacesEvent=Jyn,we.isValidNamespacesRequest=Qyn,we.isValidNumber=X1e,we.isValidObject=YNe,we.isValidParams=zyn,we.isValidRelay=L8t,we.isValidRelays=Hyn,we.isValidRequest=Gyn,we.isValidRequestExpiry=tgn,we.isValidRequiredNamespaces=Uyn,we.isValidResponse=Vyn,we.isValidString=Td,we.isValidUrl=Oyn,we.mapEntries=fyn,we.mapToObj=pyn,we.objToMap=hyn,we.parseAccountId=qNe,we.parseChainId=e8t,we.parseContextNames=w8t,we.parseExpirerTarget=xyn,we.parseRelayParams=I8t,we.parseUri=Ryn,we.serialize=u8t,we.validateDecoding=X0n,we.validateEncoding=l8t});var q8t=_((O_a,O8t)=>{"use strict";d();p();function rgn(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}O8t.exports=ngn;function ngn(r,e,t){var n=t&&t.stringify||rgn,a=1;if(typeof r=="object"&&r!==null){var i=e.length+a;if(i===1)return r;var s=new Array(i);s[0]=n(r);for(var o=1;o-1?h:0,r.charCodeAt(m+1)){case 100:case 102:if(l>=c||e[l]==null)break;h=c||e[l]==null)break;h=c||e[l]===void 0)break;h",h=m+2,m++;break}u+=n(e[l]),h=m+2,m++;break;case 115:if(l>=c)break;h{"use strict";d();p();var F8t=q8t();H8t.exports=Bm;var wae=hgn().console||{},agn={mapHttpRequest:tbe,mapHttpResponse:tbe,wrapRequestSerializer:QNe,wrapResponseSerializer:QNe,wrapErrorSerializer:QNe,req:tbe,res:tbe,err:ugn};function ign(r,e){return Array.isArray(r)?r.filter(function(n){return n!=="!stdSerializers.err"}):r===!0?Object.keys(e):!1}function Bm(r){r=r||{},r.browser=r.browser||{};let e=r.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let t=r.browser.write||wae;r.browser.write&&(r.browser.asObject=!0);let n=r.serializers||{},a=ign(r.browser.serialize,n),i=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=["error","fatal","warn","info","debug","trace"];typeof t=="function"&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),r.enabled===!1&&(r.level="silent");let o=r.level||"info",c=Object.create(t);c.log||(c.log=xae),Object.defineProperty(c,"levelVal",{get:l}),Object.defineProperty(c,"level",{get:h,set:f});let u={transmit:e,serialize:a,asObject:r.browser.asObject,levels:s,timestamp:lgn(r)};c.levels=Bm.levels,c.level=o,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=xae,c.serializers=n,c._serialize=a,c._stdErrSerialize=i,c.child=m,e&&(c._logEvent=JNe());function l(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function f(y){if(y!=="silent"&&!this.levels.values[y])throw Error("unknown level "+y);this._level=y,cQ(u,c,"error","log"),cQ(u,c,"fatal","error"),cQ(u,c,"warn","error"),cQ(u,c,"info","log"),cQ(u,c,"debug","log"),cQ(u,c,"trace","log")}function m(y,I){if(!y)throw new Error("missing bindings for child Pino");I=I||{},a&&y.serializers&&(I.serializers=y.serializers);let C=I.serializers;if(a&&C){var R=Object.assign({},n,C),L=r.browser.serialize===!0?Object.keys(R):a;delete y.serializers,rbe([y],L,R,this._stdErrSerialize)}function F(W){this._childLevel=(W._childLevel|0)+1,this.error=uQ(W,y,"error"),this.fatal=uQ(W,y,"fatal"),this.warn=uQ(W,y,"warn"),this.info=uQ(W,y,"info"),this.debug=uQ(W,y,"debug"),this.trace=uQ(W,y,"trace"),R&&(this.serializers=R,this._serialize=L),e&&(this._logEvent=JNe([].concat(W._logEvent.bindings,y)))}return F.prototype=this,new F(this)}return c}Bm.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Bm.stdSerializers=agn;Bm.stdTimeFunctions=Object.assign({},{nullTime:W8t,epochTime:U8t,unixTime:dgn,isoTime:pgn});function cQ(r,e,t,n){let a=Object.getPrototypeOf(e);e[t]=e.levelVal>e.levels.values[t]?xae:a[t]?a[t]:wae[t]||wae[n]||xae,sgn(r,e,t)}function sgn(r,e,t){!r.transmit&&e[t]===xae||(e[t]=function(n){return function(){let i=r.timestamp(),s=new Array(arguments.length),o=Object.getPrototypeOf&&Object.getPrototypeOf(this)===wae?wae:this;for(var c=0;c-1&&i in t&&(r[a][i]=t[i](r[a][i]))}function uQ(r,e,t){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var a=1;a{"use strict";d();p();Object.defineProperty(nbe,"__esModule",{value:!0});function fgn(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}nbe.safeJsonParse=fgn;function mgn(r){return typeof r=="string"?r:JSON.stringify(r,(e,t)=>typeof t>"u"?null:t)}nbe.safeJsonStringify=mgn});var j8t=_((G_a,abe)=>{"use strict";d();p();(function(){"use strict";let r;function e(){}r=e,r.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},r.prototype.setItem=function(t,n){this[t]=String(n)},r.prototype.removeItem=function(t){delete this[t]},r.prototype.clear=function(){let t=this;Object.keys(t).forEach(function(n){t[n]=void 0,delete t[n]})},r.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof global<"u"&&global.localStorage?abe.exports=global.localStorage:typeof window<"u"&&window.localStorage?abe.exports=window.localStorage:abe.exports=new e})()});var z8t=_(ibe=>{"use strict";d();p();Object.defineProperty(ibe,"__esModule",{value:!0});ibe.IKeyValueStorage=void 0;var XNe=class{};ibe.IKeyValueStorage=XNe});var K8t=_(sbe=>{"use strict";d();p();Object.defineProperty(sbe,"__esModule",{value:!0});sbe.parseEntry=void 0;var ygn=ZNe();function ggn(r){var e;return[r[0],ygn.safeJsonParse((e=r[1])!==null&&e!==void 0?e:"")]}sbe.parseEntry=ggn});var V8t=_(obe=>{"use strict";d();p();Object.defineProperty(obe,"__esModule",{value:!0});var G8t=vd();G8t.__exportStar(z8t(),obe);G8t.__exportStar(K8t(),obe)});var $8t=_(Tae=>{"use strict";d();p();Object.defineProperty(Tae,"__esModule",{value:!0});Tae.KeyValueStorage=void 0;var lQ=vd(),Y8t=ZNe(),bgn=lQ.__importDefault(j8t()),vgn=V8t(),cbe=class{constructor(){this.localStorage=bgn.default}getKeys(){return lQ.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return lQ.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(vgn.parseEntry)})}getItem(e){return lQ.__awaiter(this,void 0,void 0,function*(){let t=this.localStorage.getItem(e);if(t!==null)return Y8t.safeJsonParse(t)})}setItem(e,t){return lQ.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,Y8t.safeJsonStringify(t))})}removeItem(e){return lQ.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}};Tae.KeyValueStorage=cbe;Tae.default=cbe});var eBe,Q8t=ce(()=>{d();p();eBe=class{}});var tBe={};cr(tBe,{IEvents:()=>eBe});var rBe=ce(()=>{d();p();Q8t()});var J8t=_(ube=>{"use strict";d();p();Object.defineProperty(ube,"__esModule",{value:!0});ube.IHeartBeat=void 0;var wgn=(rBe(),nt(tBe)),nBe=class extends wgn.IEvents{constructor(e){super()}};ube.IHeartBeat=nBe});var iBe=_(aBe=>{"use strict";d();p();Object.defineProperty(aBe,"__esModule",{value:!0});var xgn=vd();xgn.__exportStar(J8t(),aBe)});var Z8t=_(dQ=>{"use strict";d();p();Object.defineProperty(dQ,"__esModule",{value:!0});dQ.HEARTBEAT_EVENTS=dQ.HEARTBEAT_INTERVAL=void 0;var _gn=Qw();dQ.HEARTBEAT_INTERVAL=_gn.FIVE_SECONDS;dQ.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var oBe=_(sBe=>{"use strict";d();p();Object.defineProperty(sBe,"__esModule",{value:!0});var Tgn=vd();Tgn.__exportStar(Z8t(),sBe)});var X8t=_(lbe=>{"use strict";d();p();Object.defineProperty(lbe,"__esModule",{value:!0});lbe.HeartBeat=void 0;var cBe=vd(),Ign=Lu(),Egn=Qw(),Cgn=iBe(),uBe=oBe(),Iae=class extends Cgn.IHeartBeat{constructor(e){super(e),this.events=new Ign.EventEmitter,this.interval=uBe.HEARTBEAT_INTERVAL,this.interval=e?.interval||uBe.HEARTBEAT_INTERVAL}static init(e){return cBe.__awaiter(this,void 0,void 0,function*(){let t=new Iae(e);return yield t.init(),t})}init(){return cBe.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}initialize(){return cBe.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),Egn.toMiliseconds(this.interval))})}pulse(){this.events.emit(uBe.HEARTBEAT_EVENTS.pulse)}};lbe.HeartBeat=Iae});var e4t=_(Eae=>{"use strict";d();p();Object.defineProperty(Eae,"__esModule",{value:!0});var lBe=vd();lBe.__exportStar(X8t(),Eae);lBe.__exportStar(iBe(),Eae);lBe.__exportStar(oBe(),Eae)});var dBe=_(pQ=>{"use strict";d();p();Object.defineProperty(pQ,"__esModule",{value:!0});pQ.PINO_CUSTOM_CONTEXT_KEY=pQ.PINO_LOGGER_DEFAULTS=void 0;pQ.PINO_LOGGER_DEFAULTS={level:"info"};pQ.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var i4t=_(Wl=>{"use strict";d();p();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.generateChildLogger=Wl.formatChildLoggerContext=Wl.getLoggerContext=Wl.setBrowserLoggerContext=Wl.getBrowserLoggerContext=Wl.getDefaultLoggerOptions=void 0;var hQ=dBe();function kgn(r){return Object.assign(Object.assign({},r),{level:r?.level||hQ.PINO_LOGGER_DEFAULTS.level})}Wl.getDefaultLoggerOptions=kgn;function t4t(r,e=hQ.PINO_CUSTOM_CONTEXT_KEY){return r[e]||""}Wl.getBrowserLoggerContext=t4t;function r4t(r,e,t=hQ.PINO_CUSTOM_CONTEXT_KEY){return r[t]=e,r}Wl.setBrowserLoggerContext=r4t;function n4t(r,e=hQ.PINO_CUSTOM_CONTEXT_KEY){let t="";return typeof r.bindings>"u"?t=t4t(r,e):t=r.bindings().context||"",t}Wl.getLoggerContext=n4t;function a4t(r,e,t=hQ.PINO_CUSTOM_CONTEXT_KEY){let n=n4t(r,t);return n.trim()?`${n}/${e}`:e}Wl.formatChildLoggerContext=a4t;function Agn(r,e,t=hQ.PINO_CUSTOM_CONTEXT_KEY){let n=a4t(r,e,t),a=r.child({context:n});return r4t(a,n,t)}Wl.generateChildLogger=Agn});var dbe=_(fQ=>{"use strict";d();p();Object.defineProperty(fQ,"__esModule",{value:!0});fQ.pino=void 0;var pBe=vd(),Pgn=pBe.__importDefault(_ae());Object.defineProperty(fQ,"pino",{enumerable:!0,get:function(){return Pgn.default}});pBe.__exportStar(dBe(),fQ);pBe.__exportStar(i4t(),fQ)});var PBe=_(ic=>{"use strict";d();p();Object.defineProperty(ic,"__esModule",{value:!0});var mQ=(rBe(),nt(tBe)),s4t=Lu();function Sgn(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var Rgn=Sgn(s4t),hBe=class extends mQ.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},fBe=class{constructor(e,t,n){this.core=e,this.logger=t}},mBe=class extends mQ.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}},yBe=class{constructor(e,t){this.logger=e,this.core=t}},gBe=class extends mQ.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},bBe=class extends mQ.IEvents{constructor(e){super()}},vBe=class{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}},wBe=class{constructor(){this.map=new Map}},xBe=class extends mQ.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},_Be=class{constructor(e,t){this.core=e,this.logger=t}},TBe=class extends mQ.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}},IBe=class{constructor(e,t){this.logger=e,this.core=t}},EBe=class extends Rgn.default{constructor(){super()}},CBe=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},kBe=class extends s4t.EventEmitter{constructor(){super()}},ABe=class{constructor(e){this.client=e}};ic.ICore=hBe,ic.ICrypto=fBe,ic.IEngine=ABe,ic.IEngineEvents=kBe,ic.IExpirer=TBe,ic.IJsonRpcHistory=mBe,ic.IKeyChain=_Be,ic.IMessageTracker=yBe,ic.IPairing=IBe,ic.IPublisher=gBe,ic.IRelayer=bBe,ic.ISignClient=CBe,ic.ISignClientEvents=EBe,ic.IStore=vBe,ic.ISubscriber=xBe,ic.ISubscriberTopicMap=wBe});var u4t=_(my=>{"use strict";d();p();Object.defineProperty(my,"__esModule",{value:!0});var gQ=eQ(),yQ=Wp();my.DIGEST_LENGTH=64;my.BLOCK_SIZE=128;var c4t=function(){function r(){this.digestLength=my.DIGEST_LENGTH,this.blockSize=my.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){yQ.wipe(this._buffer),yQ.wipe(this._tempHi),yQ.wipe(this._tempLo),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(SBe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=SBe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){yQ.wipe(e.stateHi),yQ.wipe(e.stateLo),e.buffer&&yQ.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();my.SHA512=c4t;var o4t=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function SBe(r,e,t,n,a,i,s){for(var o=t[0],c=t[1],u=t[2],l=t[3],h=t[4],f=t[5],m=t[6],y=t[7],I=n[0],C=n[1],R=n[2],L=n[3],F=n[4],W=n[5],V=n[6],K=n[7],H,G,Q,q,T,M,A,v;s>=128;){for(var k=0;k<16;k++){var O=8*k+i;r[k]=gQ.readUint32BE(a,O),e[k]=gQ.readUint32BE(a,O+4)}for(var k=0;k<80;k++){var D=o,B=c,x=u,N=l,U=h,E=f,z=m,ee=y,j=I,X=C,ie=R,ue=L,he=F,ke=W,ge=V,me=K;if(H=y,G=K,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=(h>>>14|F<<32-14)^(h>>>18|F<<32-18)^(F>>>41-32|h<<32-(41-32)),G=(F>>>14|h<<32-14)^(F>>>18|h<<32-18)^(h>>>41-32|F<<32-(41-32)),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=h&f^~h&m,G=F&W^~F&V,T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=o4t[k*2],G=o4t[k*2+1],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=r[k%16],G=e[k%16],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,Q=A&65535|v<<16,q=T&65535|M<<16,H=Q,G=q,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=(o>>>28|I<<32-28)^(I>>>34-32|o<<32-(34-32))^(I>>>39-32|o<<32-(39-32)),G=(I>>>28|o<<32-28)^(o>>>34-32|I<<32-(34-32))^(o>>>39-32|I<<32-(39-32)),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=o&c^o&u^c&u,G=I&C^I&R^C&R,T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,ee=A&65535|v<<16,me=T&65535|M<<16,H=N,G=ue,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=Q,G=q,T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,N=A&65535|v<<16,ue=T&65535|M<<16,c=D,u=B,l=x,h=N,f=U,m=E,y=z,o=ee,C=j,R=X,L=ie,F=ue,W=he,V=ke,K=ge,I=me,k%16===15)for(var O=0;O<16;O++)H=r[O],G=e[O],T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=r[(O+9)%16],G=e[(O+9)%16],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,Q=r[(O+1)%16],q=e[(O+1)%16],H=(Q>>>1|q<<32-1)^(Q>>>8|q<<32-8)^Q>>>7,G=(q>>>1|Q<<32-1)^(q>>>8|Q<<32-8)^(q>>>7|Q<<32-7),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,Q=r[(O+14)%16],q=e[(O+14)%16],H=(Q>>>19|q<<32-19)^(q>>>61-32|Q<<32-(61-32))^Q>>>6,G=(q>>>19|Q<<32-19)^(Q>>>61-32|q<<32-(61-32))^(q>>>6|Q<<32-6),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,r[O]=A&65535|v<<16,e[O]=T&65535|M<<16}H=o,G=I,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[0],G=n[0],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[0]=o=A&65535|v<<16,n[0]=I=T&65535|M<<16,H=c,G=C,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[1],G=n[1],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[1]=c=A&65535|v<<16,n[1]=C=T&65535|M<<16,H=u,G=R,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[2],G=n[2],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[2]=u=A&65535|v<<16,n[2]=R=T&65535|M<<16,H=l,G=L,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[3],G=n[3],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[3]=l=A&65535|v<<16,n[3]=L=T&65535|M<<16,H=h,G=F,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[4],G=n[4],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[4]=h=A&65535|v<<16,n[4]=F=T&65535|M<<16,H=f,G=W,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[5],G=n[5],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[5]=f=A&65535|v<<16,n[5]=W=T&65535|M<<16,H=m,G=V,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[6],G=n[6],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[6]=m=A&65535|v<<16,n[6]=V=T&65535|M<<16,H=y,G=K,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[7],G=n[7],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[7]=y=A&65535|v<<16,n[7]=K=T&65535|M<<16,i+=128,s-=128}return i}function Mgn(r){var e=new c4t;e.update(r);var t=e.digest();return e.clean(),t}my.hash=Mgn});var T4t=_(Da=>{"use strict";d();p();Object.defineProperty(Da,"__esModule",{value:!0});Da.convertSecretKeyToX25519=Da.convertPublicKeyToX25519=Da.verify=Da.sign=Da.extractPublicKeyFromSecretKey=Da.generateKeyPair=Da.generateKeyPairFromSeed=Da.SEED_LENGTH=Da.SECRET_KEY_LENGTH=Da.PUBLIC_KEY_LENGTH=Da.SIGNATURE_LENGTH=void 0;var Ngn=lae(),Cae=u4t(),f4t=Wp();Da.SIGNATURE_LENGTH=64;Da.PUBLIC_KEY_LENGTH=32;Da.SECRET_KEY_LENGTH=64;Da.SEED_LENGTH=32;function mt(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,m4t(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function y4t(r,e){let t=0;for(let n=0;n<32;n++)t|=r[n]^e[n];return(1&t-1>>>8)-1}function p4t(r,e){let t=new Uint8Array(32),n=new Uint8Array(32);return kae(t,r),kae(n,e),y4t(t,n)}function g4t(r){let e=new Uint8Array(32);return kae(e,r),e[0]&1}function qgn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function Xw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function t5(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function ja(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,I=0,C=0,R=0,L=0,F=0,W=0,V=0,K=0,H=0,G=0,Q=0,q=0,T=0,M=0,A=0,v=0,k=0,O=0,D=0,B=0,x=0,N=t[0],U=t[1],E=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*E,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,I+=n*ke,C+=n*ge,R+=n*me,L+=n*Ke,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*E,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,I+=n*he,C+=n*ke,R+=n*ge,L+=n*me,F+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*E,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,I+=n*ue,C+=n*he,R+=n*ke,L+=n*ge,F+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*E,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,I+=n*ie,C+=n*ue,R+=n*he,L+=n*ke,F+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*E,f+=n*z,m+=n*ee,y+=n*j,I+=n*X,C+=n*ie,R+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*E,m+=n*z,y+=n*ee,I+=n*j,C+=n*X,R+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,Q+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*E,y+=n*z,I+=n*ee,C+=n*j,R+=n*X,L+=n*ie,F+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,Q+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*E,I+=n*z,C+=n*ee,R+=n*j,L+=n*X,F+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,Q+=n*Ke,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,I+=n*E,C+=n*z,R+=n*ee,L+=n*j,F+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,Q+=n*me,q+=n*Ke,T+=n*ve,M+=n*Ae,n=e[9],y+=n*N,I+=n*U,C+=n*E,R+=n*z,L+=n*ee,F+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,Q+=n*ge,q+=n*me,T+=n*Ke,M+=n*ve,A+=n*Ae,n=e[10],I+=n*N,C+=n*U,R+=n*E,L+=n*z,F+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,Q+=n*ke,q+=n*ge,T+=n*me,M+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],C+=n*N,R+=n*U,L+=n*E,F+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,Q+=n*he,q+=n*ke,T+=n*ge,M+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],R+=n*N,L+=n*U,F+=n*E,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,Q+=n*ue,q+=n*he,T+=n*ke,M+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*E,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,Q+=n*ie,q+=n*ue,T+=n*he,M+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,V+=n*E,K+=n*z,H+=n*ee,G+=n*j,Q+=n*X,q+=n*ie,T+=n*ue,M+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*E,H+=n*z,G+=n*ee,Q+=n*j,q+=n*X,T+=n*ie,M+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,x+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*Q,l+=38*q,h+=38*T,f+=38*M,m+=38*A,y+=38*v,I+=38*k,C+=38*O,R+=38*D,L+=38*B,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=I,r[11]=C,r[12]=R,r[13]=L,r[14]=F,r[15]=W}function e5(r,e){ja(r,e,e)}function b4t(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)e5(t,t),n!==2&&n!==4&&ja(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function Fgn(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)e5(t,t),n!==1&&ja(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function BBe(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt(),u=mt(),l=mt();t5(t,r[1],r[0]),t5(l,e[1],e[0]),ja(t,t,l),Xw(n,r[0],r[1]),Xw(l,e[0],e[1]),ja(n,n,l),ja(a,r[3],e[3]),ja(a,a,Lgn),ja(i,r[2],e[2]),Xw(i,i,i),t5(s,n,t),t5(o,i,a),Xw(c,i,a),Xw(u,n,t),ja(r[0],s,o),ja(r[1],u,c),ja(r[2],c,o),ja(r[3],s,u)}function h4t(r,e,t){for(let n=0;n<4;n++)m4t(r[n],e[n],t)}function LBe(r,e){let t=mt(),n=mt(),a=mt();b4t(a,e[2]),ja(t,e[0],a),ja(n,e[1],a),kae(r,n),r[31]^=g4t(t)<<7}function v4t(r,e,t){N1(r[0],NBe),N1(r[1],bQ),N1(r[2],bQ),N1(r[3],NBe);for(let n=255;n>=0;--n){let a=t[n/8|0]>>(n&7)&1;h4t(r,e,a),BBe(e,r),BBe(r,r),h4t(r,e,a)}}function OBe(r,e){let t=[mt(),mt(),mt(),mt()];N1(t[0],l4t),N1(t[1],d4t),N1(t[2],bQ),ja(t[3],l4t,d4t),v4t(r,t,e)}function w4t(r){if(r.length!==Da.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Da.SEED_LENGTH} bytes`);let e=(0,Cae.hash)(r);e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(32),n=[mt(),mt(),mt(),mt()];OBe(n,e),LBe(t,n);let a=new Uint8Array(64);return a.set(r),a.set(t,32),{publicKey:t,secretKey:a}}Da.generateKeyPairFromSeed=w4t;function Wgn(r){let e=(0,Ngn.randomBytes)(32,r),t=w4t(e);return(0,f4t.wipe)(e),t}Da.generateKeyPair=Wgn;function Ugn(r){if(r.length!==Da.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Da.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(r.subarray(32))}Da.extractPublicKeyFromSecretKey=Ugn;var MBe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function x4t(r,e){let t,n,a,i;for(n=63;n>=32;--n){for(t=0,a=n-32,i=n-12;a>4)*MBe[a],t=e[a]>>8,e[a]&=255;for(a=0;a<32;a++)e[a]-=t*MBe[a];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function DBe(r){let e=new Float64Array(64);for(let t=0;t<64;t++)e[t]=r[t];for(let t=0;t<64;t++)r[t]=0;x4t(r,e)}function Hgn(r,e){let t=new Float64Array(64),n=[mt(),mt(),mt(),mt()],a=(0,Cae.hash)(r.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let i=new Uint8Array(64);i.set(a.subarray(32),32);let s=new Cae.SHA512;s.update(i.subarray(32)),s.update(e);let o=s.digest();s.clean(),DBe(o),OBe(n,o),LBe(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(r.subarray(32)),s.update(e);let c=s.digest();DBe(c);for(let u=0;u<32;u++)t[u]=o[u];for(let u=0;u<32;u++)for(let l=0;l<32;l++)t[u+l]+=c[u]*a[l];return x4t(i.subarray(32),t),i}Da.sign=Hgn;function _4t(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt();return N1(r[2],bQ),qgn(r[1],e),e5(a,r[1]),ja(i,a,Dgn),t5(a,a,r[2]),Xw(i,r[2],i),e5(s,i),e5(o,s),ja(c,o,s),ja(t,c,a),ja(t,t,i),Fgn(t,t),ja(t,t,a),ja(t,t,i),ja(t,t,i),ja(r[0],t,i),e5(n,r[0]),ja(n,n,i),p4t(n,a)&&ja(r[0],r[0],Ogn),e5(n,r[0]),ja(n,n,i),p4t(n,a)?-1:(g4t(r[0])===e[31]>>7&&t5(r[0],NBe,r[0]),ja(r[3],r[0],r[1]),0)}function jgn(r,e,t){let n=new Uint8Array(32),a=[mt(),mt(),mt(),mt()],i=[mt(),mt(),mt(),mt()];if(t.length!==Da.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Da.SIGNATURE_LENGTH} bytes`);if(_4t(i,r))return!1;let s=new Cae.SHA512;s.update(t.subarray(0,32)),s.update(r),s.update(e);let o=s.digest();return DBe(o),v4t(a,i,o),OBe(i,t.subarray(32)),BBe(a,i),LBe(n,a),!y4t(t,n)}Da.verify=jgn;function zgn(r){let e=[mt(),mt(),mt(),mt()];if(_4t(e,r))throw new Error("Ed25519: invalid public key");let t=mt(),n=mt(),a=e[1];Xw(t,bQ,a),t5(n,bQ,a),b4t(n,n),ja(t,t,n);let i=new Uint8Array(32);return kae(i,t),i}Da.convertPublicKeyToX25519=zgn;function Kgn(r){let e=(0,Cae.hash)(r.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(e.subarray(0,32));return(0,f4t.wipe)(e),t}Da.convertSecretKeyToX25519=Kgn});var pbe,hbe,r5,vQ,fbe,Aae,mbe,ybe,gbe,wQ,bbe,vbe,I4t,E4t,wbe=ce(()=>{d();p();pbe="EdDSA",hbe="JWT",r5=".",vQ="base64url",fbe="utf8",Aae="utf8",mbe=":",ybe="did",gbe="key",wQ="base58btc",bbe="z",vbe="K36",I4t=32,E4t=32});function Pae(r){return oy(Xf(_h(r,vQ),fbe))}function Sae(r){return Xf(_h(Sm(r),fbe),vQ)}function qBe(r){let e=_h(vbe,wQ),t=bbe+Xf(aX([e,r]),wQ);return[ybe,gbe,t].join(mbe)}function FBe(r){let[e,t,n]=r.split(mbe);if(e!==ybe||t!==gbe)throw new Error('Issuer must be a DID with method "key"');if(n.slice(0,1)!==bbe)throw new Error("Issuer must be a key in mulicodec format");let i=_h(n.slice(1),wQ);if(Xf(i.slice(0,2),wQ)!==vbe)throw new Error('Issuer must be a public key with type "Ed25519"');let o=i.slice(2);if(o.length!==32)throw new Error("Issuer must be a public key with length 32 bytes");return o}function C4t(r){return Xf(r,vQ)}function k4t(r){return _h(r,vQ)}function WBe(r){return _h([Sae(r.header),Sae(r.payload)].join(r5),Aae)}function Ggn(r){let e=Xf(r,Aae).split(r5),t=Pae(e[0]),n=Pae(e[1]);return{header:t,payload:n}}function UBe(r){return[Sae(r.header),Sae(r.payload),C4t(r.signature)].join(r5)}function HBe(r){let e=r.split(r5),t=Pae(e[0]),n=Pae(e[1]),a=k4t(e[2]),i=_h(e.slice(0,2).join(r5),Aae);return{header:t,payload:n,signature:a,data:i}}var jBe=ce(()=>{d();p();Zv();WG();Jv();j$();wbe()});function Vgn(r=(0,A4t.randomBytes)(32)){return xQ.generateKeyPairFromSeed(r)}async function Ygn(r,e,t,n,a=(0,P4t.fromMiliseconds)(Date.now())){let i={alg:pbe,typ:hbe},s=qBe(n.publicKey),o=a+t,c={iss:s,sub:r,aud:e,iat:a,exp:o},u=WBe({header:i,payload:c}),l=xQ.sign(n.secretKey,u);return UBe({header:i,payload:c,signature:l})}async function $gn(r){let{header:e,payload:t,data:n,signature:a}=HBe(r);if(e.alg!==pbe||e.typ!==hbe)throw new Error("JWT must use EdDSA algorithm");let i=FBe(t.iss);return xQ.verify(i,n,a)}var xQ,A4t,P4t,S4t=ce(()=>{d();p();xQ=un(T4t()),A4t=un(lae()),P4t=un(Qw());wbe();jBe()});var R4t=ce(()=>{d();p()});var M4t={};cr(M4t,{DATA_ENCODING:()=>Aae,DID_DELIMITER:()=>mbe,DID_METHOD:()=>gbe,DID_PREFIX:()=>ybe,JSON_ENCODING:()=>fbe,JWT_DELIMITER:()=>r5,JWT_ENCODING:()=>vQ,JWT_IRIDIUM_ALG:()=>pbe,JWT_IRIDIUM_TYP:()=>hbe,KEY_PAIR_SEED_LENGTH:()=>E4t,MULTICODEC_ED25519_BASE:()=>bbe,MULTICODEC_ED25519_ENCODING:()=>wQ,MULTICODEC_ED25519_HEADER:()=>vbe,MULTICODEC_ED25519_LENGTH:()=>I4t,decodeData:()=>Ggn,decodeIss:()=>FBe,decodeJSON:()=>Pae,decodeJWT:()=>HBe,decodeSig:()=>k4t,encodeData:()=>WBe,encodeIss:()=>qBe,encodeJSON:()=>Sae,encodeJWT:()=>UBe,encodeSig:()=>C4t,generateKeyPair:()=>Vgn,signJWT:()=>Ygn,verifyJWT:()=>$gn});var N4t=ce(()=>{d();p();S4t();wbe();R4t();jBe()});var D4t=_((v6a,B4t)=>{"use strict";d();p();B4t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var O4t,L4t,Qgn,Jgn,Zgn,xbe,q4t,zBe=ce(()=>{d();p();O4t=un(Lu());j$();iy();L4t=10,Qgn=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:D4t(),Jgn=()=>typeof window<"u",Zgn=Qgn(),xbe=class{constructor(e){if(this.url=e,this.events=new O4t.EventEmitter,this.registering=!1,!Ige(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e,t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Sm(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!Ige(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{let a=(0,to.isReactNative)()?void 0:{rejectUnauthorized:!ORe(e)},i=new Zgn(e,[],a);Jgn()?i.onerror=s=>{let o=s;n(this.emitError(o.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?oy(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=Lne(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return Dne(e,t,"WS")}resetMaxListeners(){this.events.getMaxListeners()>L4t&&this.events.setMaxListeners(L4t)}emitError(e){let t=this.parseError(new Error(e?.message||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",t),t}},q4t=xbe});var F4t={};cr(F4t,{WsConnection:()=>xbe,default:()=>Xgn});var Xgn,W4t=ce(()=>{d();p();zBe();zBe();Xgn=q4t});var xkt=_((Rae,TQ)=>{d();p();var e1n=200,tDe="__lodash_hash_undefined__",Pbe=1,Z4t=2,X4t=9007199254740991,_be="[object Arguments]",YBe="[object Array]",t1n="[object AsyncFunction]",ekt="[object Boolean]",tkt="[object Date]",rkt="[object Error]",nkt="[object Function]",r1n="[object GeneratorFunction]",Tbe="[object Map]",akt="[object Number]",n1n="[object Null]",_Q="[object Object]",U4t="[object Promise]",a1n="[object Proxy]",ikt="[object RegExp]",Ibe="[object Set]",skt="[object String]",i1n="[object Symbol]",s1n="[object Undefined]",$Be="[object WeakMap]",okt="[object ArrayBuffer]",Ebe="[object DataView]",o1n="[object Float32Array]",c1n="[object Float64Array]",u1n="[object Int8Array]",l1n="[object Int16Array]",d1n="[object Int32Array]",p1n="[object Uint8Array]",h1n="[object Uint8ClampedArray]",f1n="[object Uint16Array]",m1n="[object Uint32Array]",y1n=/[\\^$.*+?()[\]{}|]/g,g1n=/^\[object .+?Constructor\]$/,b1n=/^(?:0|[1-9]\d*)$/,hi={};hi[o1n]=hi[c1n]=hi[u1n]=hi[l1n]=hi[d1n]=hi[p1n]=hi[h1n]=hi[f1n]=hi[m1n]=!0;hi[_be]=hi[YBe]=hi[okt]=hi[ekt]=hi[Ebe]=hi[tkt]=hi[rkt]=hi[nkt]=hi[Tbe]=hi[akt]=hi[_Q]=hi[ikt]=hi[Ibe]=hi[skt]=hi[$Be]=!1;var ckt=typeof global=="object"&&global&&global.Object===Object&&global,v1n=typeof self=="object"&&self&&self.Object===Object&&self,yy=ckt||v1n||Function("return this")(),ukt=typeof Rae=="object"&&Rae&&!Rae.nodeType&&Rae,H4t=ukt&&typeof TQ=="object"&&TQ&&!TQ.nodeType&&TQ,lkt=H4t&&H4t.exports===ukt,KBe=lkt&&ckt.process,j4t=function(){try{return KBe&&KBe.binding&&KBe.binding("util")}catch{}}(),z4t=j4t&&j4t.isTypedArray;function w1n(r,e){for(var t=-1,n=r==null?0:r.length,a=0,i=[];++t-1}function Q1n(r,e){var t=this.__data__,n=Rbe(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}gy.prototype.clear=G1n;gy.prototype.delete=V1n;gy.prototype.get=Y1n;gy.prototype.has=$1n;gy.prototype.set=Q1n;function i5(r){var e=-1,t=r==null?0:r.length;for(this.clear();++eo))return!1;var u=i.get(r);if(u&&i.get(e))return u==e;var l=-1,h=!0,f=t&Z4t?new kbe:void 0;for(i.set(r,e),i.set(e,r);++l-1&&r%1==0&&r-1&&r%1==0&&r<=X4t}function vkt(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function Bae(r){return r!=null&&typeof r=="object"}var wkt=z4t?I1n(z4t):hbn;function kbn(r){return Ebn(r)?ubn(r):fbn(r)}function Abn(){return[]}function Pbn(){return!1}TQ.exports=Cbn});var _At=_(wt=>{"use strict";d();p();Object.defineProperty(wt,"__esModule",{value:!0});var o5=Lu(),Sbn=_ae(),Rbn=$8t(),jbe=e4t(),Oi=dbe(),L1=PBe(),_kt=(j$(),nt(v9e)),Mbn=(N4t(),nt(M4t)),Me=vae(),Eo=Qw(),Nbn=(iae(),nt(aae)),sf=(iy(),nt(to)),Bbn=(W4t(),nt(F4t)),Dbn=xkt();function qae(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function Lbn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Obn=qae(o5),Fkt=qae(Sbn),qbn=qae(Rbn),Nbe=Lbn(Mbn),Fbn=qae(Bbn),Wbn=qae(Dbn);function Ubn(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);R!==L;){for(var V=y[R],K=0,H=F-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");C=K,R++}for(var G=F-C;G!==F&&W[G]===0;)G++;for(var Q=c.repeat(I);G>>0,F=new Uint8Array(L);y[I];){var W=t[y.charCodeAt(I)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");R=V,I++}if(y[I]!==" "){for(var H=L-R;H!==L&&F[H]===0;)H++;for(var G=new Uint8Array(C+(L-H)),Q=C;H!==L;)G[Q++]=F[H++];return G}}}function m(y){var I=f(y);if(I)return I;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var Hbn=Ubn,jbn=Hbn,Wkt=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},zbn=r=>new TextEncoder().encode(r),Kbn=r=>new TextDecoder().decode(r),aDe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},iDe=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return Ukt(this,e)}},sDe=class{constructor(e){this.decoders=e}or(e){return Ukt(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},Ukt=(r,e)=>new sDe({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),oDe=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new aDe(e,t,n),this.decoder=new iDe(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},zbe=({name:r,prefix:e,encode:t,decode:n})=>new oDe(r,e,t,n),Fae=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=jbn(t,e);return zbe({prefix:r,name:e,encode:n,decode:i=>Wkt(a(i))})},Gbn=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},Vbn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<zbe({prefix:e,name:r,encode(a){return Vbn(a,n,t)},decode(a){return Gbn(a,n,t,r)}}),Ybn=zbe({prefix:"\0",name:"identity",encode:r=>Kbn(r),decode:r=>zbn(r)}),$bn=Object.freeze({__proto__:null,identity:Ybn}),Qbn=Mc({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Jbn=Object.freeze({__proto__:null,base2:Qbn}),Zbn=Mc({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Xbn=Object.freeze({__proto__:null,base8:Zbn}),evn=Fae({prefix:"9",name:"base10",alphabet:"0123456789"}),tvn=Object.freeze({__proto__:null,base10:evn}),rvn=Mc({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),nvn=Mc({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),avn=Object.freeze({__proto__:null,base16:rvn,base16upper:nvn}),ivn=Mc({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),svn=Mc({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),ovn=Mc({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),cvn=Mc({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),uvn=Mc({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),lvn=Mc({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),dvn=Mc({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),pvn=Mc({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),hvn=Mc({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),fvn=Object.freeze({__proto__:null,base32:ivn,base32upper:svn,base32pad:ovn,base32padupper:cvn,base32hex:uvn,base32hexupper:lvn,base32hexpad:dvn,base32hexpadupper:pvn,base32z:hvn}),mvn=Fae({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),yvn=Fae({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),gvn=Object.freeze({__proto__:null,base36:mvn,base36upper:yvn}),bvn=Fae({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),vvn=Fae({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),wvn=Object.freeze({__proto__:null,base58btc:bvn,base58flickr:vvn}),xvn=Mc({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),_vn=Mc({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Tvn=Mc({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Ivn=Mc({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Evn=Object.freeze({__proto__:null,base64:xvn,base64pad:_vn,base64url:Tvn,base64urlpad:Ivn}),Hkt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Cvn=Hkt.reduce((r,e,t)=>(r[t]=e,r),[]),kvn=Hkt.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function Avn(r){return r.reduce((e,t)=>(e+=Cvn[t],e),"")}function Pvn(r){let e=[];for(let t of r){let n=kvn[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var Svn=zbe({prefix:"\u{1F680}",name:"base256emoji",encode:Avn,decode:Pvn}),Rvn=Object.freeze({__proto__:null,base256emoji:Svn}),Mvn=jkt,Tkt=128,Nvn=127,Bvn=~Nvn,Dvn=Math.pow(2,31);function jkt(r,e,t){e=e||[],t=t||0;for(var n=t;r>=Dvn;)e[t++]=r&255|Tkt,r/=128;for(;r&Bvn;)e[t++]=r&255|Tkt,r>>>=7;return e[t]=r|0,jkt.bytes=t-n+1,e}var Lvn=cDe,Ovn=128,Ikt=127;function cDe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw cDe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&Ikt)<=Ovn);return cDe.bytes=i-n,t}var qvn=Math.pow(2,7),Fvn=Math.pow(2,14),Wvn=Math.pow(2,21),Uvn=Math.pow(2,28),Hvn=Math.pow(2,35),jvn=Math.pow(2,42),zvn=Math.pow(2,49),Kvn=Math.pow(2,56),Gvn=Math.pow(2,63),Vvn=function(r){return r(zkt.encode(r,e,t),e),Ckt=r=>zkt.encodingLength(r),uDe=(r,e)=>{let t=e.byteLength,n=Ckt(r),a=n+Ckt(t),i=new Uint8Array(a+t);return Ekt(r,i,0),Ekt(t,i,n),i.set(e,a),new lDe(r,t,e,i)},lDe=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}},Kkt=({name:r,code:e,encode:t})=>new dDe(r,e,t),dDe=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?uDe(this.code,t):t.then(n=>uDe(this.code,n))}else throw Error("Unknown type, must be binary type")}},Gkt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),$vn=Kkt({name:"sha2-256",code:18,encode:Gkt("SHA-256")}),Qvn=Kkt({name:"sha2-512",code:19,encode:Gkt("SHA-512")}),Jvn=Object.freeze({__proto__:null,sha256:$vn,sha512:Qvn}),Vkt=0,Zvn="identity",Ykt=Wkt,Xvn=r=>uDe(Vkt,Ykt(r)),e2n={code:Vkt,name:Zvn,encode:Ykt,digest:Xvn},t2n=Object.freeze({__proto__:null,identity:e2n});new TextEncoder,new TextDecoder;var kkt={...$bn,...Jbn,...Xbn,...tvn,...avn,...fvn,...gvn,...wvn,...Evn,...Rvn};({...Jvn,...t2n});function r2n(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function $kt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Akt=$kt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),rDe=$kt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=r2n(r.length);for(let t=0;t{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();let a=this.keychain.get(n);if(typeof a>"u"){let{message:i}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=Oi.generateChildLogger(t,this.name)}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Dbe=class{constructor(e,t,n){this.core=e,this.logger=t,this.name=Xkt,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();let a=await this.getClientSeed(),i=Nbe.generateKeyPair(a);return Nbe.encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let a=Me.generateKeyPair();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();let i=await this.getClientSeed(),s=Nbe.generateKeyPair(i),o=Me.generateRandomBytes32(),c=eAt;return await Nbe.signJWT(o,a,c,s)},this.generateSharedKey=(a,i,s)=>{this.isInitialized();let o=this.getPrivateKey(a),c=Me.deriveSymKey(o,i);return this.setSymKey(c,s)},this.setSymKey=async(a,i)=>{this.isInitialized();let s=i||Me.hashKey(a);return await this.keychain.set(s,a),s},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,i,s)=>{this.isInitialized();let o=Me.validateEncoding(s),c=_kt.safeJsonStringify(i);if(Me.isTypeOneEnvelope(o)){let f=o.senderPublicKey,m=o.receiverPublicKey;a=await this.generateSharedKey(f,m)}let u=this.getSymKey(a),{type:l,senderPublicKey:h}=o;return Me.encrypt({type:l,symKey:u,message:c,senderPublicKey:h})},this.decode=async(a,i,s)=>{this.isInitialized();let o=Me.validateDecoding(i,s);if(Me.isTypeOneEnvelope(o)){let l=o.receiverPublicKey,h=o.senderPublicKey;a=await this.generateSharedKey(l,h)}let c=this.getSymKey(a),u=Me.decrypt({symKey:c,encoded:i});return _kt.safeJsonParse(u)},this.core=e,this.logger=Oi.generateChildLogger(t,this.name),this.keychain=n||new Bbe(this.core,this.logger)}get context(){return Oi.getLoggerContext(this.logger)}getPayloadType(e){let t=Me.deserialize(e);return Me.decodeTypeByte(t.type)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(pDe)}catch{e=Me.generateRandomBytes32(),await this.keychain.set(pDe,e)}return a2n(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Lbe=class extends L1.IMessageTracker{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=nAt,this.version=aAt,this.initialized=!1,this.storagePrefix=by,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();let i=Me.hashMessage(a),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=a,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();let i=this.get(n),s=Me.hashMessage(a);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oi.generateChildLogger(e,this.name),this.core=t}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},fDe=class extends L1.IPublisher{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new o5.EventEmitter,this.name=sAt,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,a,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}});try{let s=i?.ttl||iAt,o=Me.getRelayProtocolName(i),c=i?.prompt||!1,u=i?.tag||0,l={topic:n,message:a,opts:{ttl:s,relay:o,prompt:c,tag:u}},h=Me.hashMessage(a);this.queue.set(h,l);try{await await Me.createExpiringPromise(this.rpcPublish(n,a,s,o,c,u),this.publishTimeout),this.relayer.events.emit(Rc.publish,l)}catch{this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Rc.connection_stalled);return}this.onPublish(h,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=e,this.logger=Oi.generateChildLogger(t,this.name),this.registerEventListeners()}get context(){return Oi.getLoggerContext(this.logger)}rpcPublish(e,t,n,a,i,s){var o,c,u,l;let h={method:Me.getRelayProtocolApi(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:s}};return Me.isUndefined((o=h.params)==null?void 0:o.prompt)&&((c=h.params)==null||delete c.prompt),Me.isUndefined((u=h.params)==null?void 0:u.tag)&&((l=h.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(e,t){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(jbe.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},mDe=class{constructor(){this.map=new Map,this.set=(e,t)=>{let n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,t))return;let a=n.filter(i=>i!==t);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},u2n=Object.defineProperty,l2n=Object.defineProperties,d2n=Object.getOwnPropertyDescriptors,Pkt=Object.getOwnPropertySymbols,p2n=Object.prototype.hasOwnProperty,h2n=Object.prototype.propertyIsEnumerable,Skt=(r,e,t)=>e in r?u2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Lae=(r,e)=>{for(var t in e||(e={}))p2n.call(e,t)&&Skt(r,t,e[t]);if(Pkt)for(var t of Pkt(e))h2n.call(e,t)&&Skt(r,t,e[t]);return r},nDe=(r,e)=>l2n(r,d2n(e)),Obe=class extends L1.ISubscriber{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new mDe,this.events=new o5.EventEmitter,this.name=hAt,this.version=fAt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=by,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{let i=Me.getRelayProtocolName(a),s={topic:n,relay:i};this.pending.set(n,s);let o=await this.rpcSubscribe(n,i);return this.onSubscribe(o,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),o}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof a?.id<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,i)=>{let s=new Eo.Watch;s.start(this.pendingSubscriptionWatchLabel);let o=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=mAt&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=Oi.generateChildLogger(t,this.name),this.clientId=""}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let n=this.topicMap.get(e);await Promise.all(n.map(async a=>await this.unsubscribeById(e,a,t)))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{let a=Me.getRelayProtocolName(n);await this.rpcUnsubscribe(e,t,a);let i=Me.getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,t){let n={method:Me.getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Rc.connection_stalled)}return Me.hashMessage(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,n={method:Me.getRelayProtocolApi(t.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Rc.connection_stalled)}}rpcUnsubscribe(e,t,n){let a={method:Me.getRelayProtocolApi(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.provider.request(a)}onSubscribe(e,t){this.setSubscription(e,nDe(Lae({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,Lae({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,Lae({},t)),this.topicMap.set(t.topic,e),this.events.emit(af.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(af.deleted,nDe(Lae({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(af.sync)}async reset(){if(!this.cached.length)return;let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);this.onBatchSubscribe(t.map((n,a)=>nDe(Lae({},e[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(jbe.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Rc.connect,async()=>{await this.onConnect()}),this.relayer.on(Rc.disconnect,()=>{this.onDisconnect()}),this.events.on(af.created,async e=>{let t=af.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(af.deleted,async e=>{let t=af.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}},f2n=Object.defineProperty,Rkt=Object.getOwnPropertySymbols,m2n=Object.prototype.hasOwnProperty,y2n=Object.prototype.propertyIsEnumerable,Mkt=(r,e,t)=>e in r?f2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,g2n=(r,e)=>{for(var t in e||(e={}))m2n.call(e,t)&&Mkt(r,t,e[t]);if(Rkt)for(var t of Rkt(e))y2n.call(e,t)&&Mkt(r,t,e[t]);return r},qbe=class extends L1.IRelayer{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new o5.EventEmitter,this.name=uAt,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Oi.generateChildLogger(e.logger,this.name):Fkt.default(Oi.getDefaultLoggerOptions({level:e.logger||cAt})),this.messages=new Lbe(this.logger,e.core),this.subscriber=new Obe(this,this.logger),this.publisher=new fDe(this,this.logger),this.relayUrl=e?.relayUrl||gDe,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Oi.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){this.isInitialized();let n="";return await Promise.all([new Promise(a=>{this.subscriber.once(af.created,i=>{i.topic===e&&a()})}),new Promise(async a=>{n=await this.subscriber.subscribe(e,t),a()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(Rc.transport_closed))}async transportOpen(e){if(!this.reconnecting){this.relayUrl=e||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(t=>{this.initialized||t(),this.subscriber.once(af.resubscribed,()=>{t()})}),await Promise.race([new Promise(async t=>{await this.provider.connect(),this.removeListener(Rc.transport_closed,this.rejectTransportOpen),t()}),new Promise(t=>this.once(Rc.transport_closed,this.rejectTransportOpen))])])}catch(t){let n=t;if(!/socket hang up/i.test(n.message))throw t;this.logger.error(t),this.events.emit(Rc.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(e){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(t=>setTimeout(t,hDe)),await this.transportOpen(e))}rejectTransportOpen(){throw new Error("closeTransport called before connection was established")}async createProvider(){let e=await this.core.crypto.signJWT(this.relayUrl);return new Nbn.JsonRpcProvider(new Fbn.default(Me.formatRelayRpcUrl({sdkVersion:dAt,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0})))}async recordMessageEvent(e){let{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){let{topic:t,message:n}=e;return await this.subscriber.isSubscribed(t)?this.messages.has(t,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),sf.isJsonRpcRequest(e)){if(!e.method.endsWith(lAt))return;let t=e.params,{topic:n,message:a,publishedAt:i}=t.data,s={topic:n,message:a,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(g2n({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Rc.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=sf.formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}registerEventListeners(){this.provider.on(Oae.payload,e=>this.onProviderPayload(e)),this.provider.on(Oae.connect,()=>{this.events.emit(Rc.connect)}),this.provider.on(Oae.disconnect,()=>{this.events.emit(Rc.disconnect),this.attemptToReconnect()}),this.provider.on(Oae.error,e=>{this.logger.error(e),this.events.emit(Rc.error,e)}),this.events.on(Rc.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},Eo.toMiliseconds(hDe))}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},b2n=Object.defineProperty,Nkt=Object.getOwnPropertySymbols,v2n=Object.prototype.hasOwnProperty,w2n=Object.prototype.propertyIsEnumerable,Bkt=(r,e,t)=>e in r?b2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Dkt=(r,e)=>{for(var t in e||(e={}))v2n.call(e,t)&&Bkt(r,t,e[t]);if(Nkt)for(var t of Nkt(e))w2n.call(e,t)&&Bkt(r,t,e[t]);return r},Fbe=class extends L1.IStore{constructor(e,t,n,a=by,i=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version=pAt,this.cached=[],this.initialized=!1,this.storagePrefix=by,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{Me.isProposalStruct(s)?this.map.set(s.id,s):Me.isSessionStruct(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Me.isUndefined(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,o)=>{this.isInitialized(),this.map.has(s)?await this.update(s,o):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:o}),this.map.set(s,o),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(o=>Object.keys(s).every(c=>Wbn.default(o[c],s[c]))):this.values),this.update=async(s,o)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:o});let c=Dkt(Dkt({},this.getData(s)),o);this.map.set(s,c),await this.persist()},this.delete=async(s,o)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:o}),this.map.delete(s),await this.persist())},this.logger=Oi.generateChildLogger(t,this.name),this.storagePrefix=a,this.getKey=i}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Wbe=class{constructor(e,t){this.core=e,this.logger=t,this.name=yAt,this.version=gAt,this.events=new Obn.default,this.initialized=!1,this.storagePrefix=by,this.ignoredPayloadTypes=[Me.TYPE_1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=Me.generateRandomBytes32(),a=await this.core.crypto.setSymKey(n),i=Me.calcExpiry(Eo.FIVE_MINUTES),s={protocol:oAt},o={topic:a,expiry:i,relay:s,active:!1},c=Me.formatUri({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:s});return await this.pairings.set(a,o),await this.core.relayer.subscribe(a),this.core.expirer.set(a,i),{topic:a,uri:c}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:a,symKey:i,relay:s}=Me.parseUri(n.uri);if(this.pairings.keys.includes(a))throw new Error(`Pairing already exists: ${a}`);if(this.core.crypto.hasKeys(a))throw new Error(`Keychain already exists: ${a}`);let o=Me.calcExpiry(Eo.FIVE_MINUTES),c={topic:a,relay:s,expiry:o,active:!1};return await this.pairings.set(a,c),await this.core.crypto.setSymKey(i,a),await this.core.relayer.subscribe(a,{relay:s}),this.core.expirer.set(a,o),n.activatePairing&&await this.activate({topic:a}),c},this.activate=async({topic:n})=>{this.isInitialized();let a=Me.calcExpiry(Eo.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:a}=n;if(this.pairings.keys.includes(a)){let i=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:o,reject:c}=Me.createDelayedPromise();this.events.once(Me.engineEvent("pairing_ping",i),({error:u})=>{u?c(u):o()}),await s()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",Me.getSdkError("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,i)=>{let s=sf.formatJsonRpcRequest(a,i),o=await this.core.crypto.encode(n,s),c=EQ[a].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,o,c),s.id},this.sendResult=async(n,a,i)=>{let s=sf.formatJsonRpcResult(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=EQ[c.request.method].res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.sendError=async(n,a,i)=>{let s=sf.formatJsonRpcError(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=EQ[c.request.method]?EQ[c.request.method].res:EQ.unregistered_method.res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Me.getSdkError("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(a=>Me.isExpired(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{let{topic:a,payload:i}=n,s=i.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);default:return this.onUnknownRpcMethodRequest(a,i)}},this.onRelayEventResponse=async n=>{let{topic:a,payload:i}=n,s=(await this.core.history.get(a,i.id)).request.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,a)=>{let{id:i}=a;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,a)=>{let{id:i}=a;setTimeout(()=>{sf.isJsonRpcResult(a)?this.events.emit(Me.engineEvent("pairing_ping",i),{}):sf.isJsonRpcError(a)&&this.events.emit(Me.engineEvent("pairing_ping",i),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{let{id:i}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,a)=>{let{id:i,method:s}=a;try{if(this.registeredMethods.includes(s))return;let o=Me.getSdkError("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,o),this.logger.error(o)}catch(o){await this.sendError(i,n,o),this.logger.error(o)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Me.getSdkError("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Me.isValidParams(n)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!Me.isValidUrl(n.uri)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!Me.isValidString(n,!1)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){let{message:a}=Me.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(Me.isExpired(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:a}=Me.getInternalError("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=e,this.logger=Oi.generateChildLogger(t,this.name),this.pairings=new Fbe(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Oi.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Rc.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let a=await this.core.crypto.decode(t,n);sf.isJsonRpcRequest(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):sf.isJsonRpcResponse(a)&&(await this.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.core.expirer.on(Up.expired,async e=>{let{topic:t}=Me.parseExpirerTarget(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}},Ube=class extends L1.IJsonRpcHistory{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new o5.EventEmitter,this.name=bAt,this.version=vAt,this.cached=[],this.initialized=!1,this.storagePrefix=by,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:i}),this.records.has(a.id))return;let s={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(nf.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=sf.isJsonRpcError(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(nf.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(i=>{if(i.topic===n){if(typeof a<"u"&&i.id!==a)return;this.records.delete(i.id),this.events.emit(nf.deleted,i)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oi.generateChildLogger(t,this.name)}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;let n={topic:t.topic,request:sf.formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(nf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(nf.created,e=>{let t=nf.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(nf.updated,e=>{let t=nf.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(nf.deleted,e=>{let t=nf.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Hbe=class extends L1.IExpirer{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new o5.EventEmitter,this.name=wAt,this.version=xAt,this.cached=[],this.initialized=!1,this.storagePrefix=by,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:a};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(Up.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){let a=this.formatTarget(n),i=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Up.deleted,{target:a,expiration:i})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oi.generateChildLogger(t,this.name)}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Me.formatTopicTarget(e);if(typeof e=="number")return Me.formatIdTarget(e);let{message:t}=Me.getInternalError("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Up.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}checkExpiry(e,t){let{expiry:n}=t;Eo.toMiliseconds(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(Up.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(jbe.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Up.created,e=>{let t=Up.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Up.expired,e=>{let t=Up.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Up.deleted,e=>{let t=Up.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},x2n=Object.defineProperty,Lkt=Object.getOwnPropertySymbols,_2n=Object.prototype.hasOwnProperty,T2n=Object.prototype.propertyIsEnumerable,Okt=(r,e,t)=>e in r?x2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,qkt=(r,e)=>{for(var t in e||(e={}))_2n.call(e,t)&&Okt(r,t,e[t]);if(Lkt)for(var t of Lkt(e))T2n.call(e,t)&&Okt(r,t,e[t]);return r},CQ=class extends L1.ICore{constructor(e){super(e),this.protocol=yDe,this.version=Qkt,this.name=Kbe,this.events=new o5.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||gDe;let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:Fkt.default(Oi.getDefaultLoggerOptions({level:e?.logger||Jkt.logger}));this.logger=Oi.generateChildLogger(t,this.name),this.heartbeat=new jbe.HeartBeat,this.crypto=new Dbe(this,this.logger,e?.keychain),this.history=new Ube(this,this.logger),this.expirer=new Hbe(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new qbn.default(qkt(qkt({},Zkt),e?.storageOptions)),this.relayer=new qbe({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Wbe(this,this.logger)}static async init(e){let t=new CQ(e);return await t.initialize(),t}get context(){return Oi.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}},I2n=CQ;wt.CORE_CONTEXT=Kbe,wt.CORE_DEFAULT=Jkt,wt.CORE_PROTOCOL=yDe,wt.CORE_STORAGE_OPTIONS=Zkt,wt.CORE_STORAGE_PREFIX=by,wt.CORE_VERSION=Qkt,wt.CRYPTO_CLIENT_SEED=pDe,wt.CRYPTO_CONTEXT=Xkt,wt.CRYPTO_JWT_TTL=eAt,wt.Core=I2n,wt.Crypto=Dbe,wt.EXPIRER_CONTEXT=wAt,wt.EXPIRER_DEFAULT_TTL=c2n,wt.EXPIRER_EVENTS=Up,wt.EXPIRER_STORAGE_VERSION=xAt,wt.Expirer=Hbe,wt.HISTORY_CONTEXT=bAt,wt.HISTORY_EVENTS=nf,wt.HISTORY_STORAGE_VERSION=vAt,wt.JsonRpcHistory=Ube,wt.KEYCHAIN_CONTEXT=tAt,wt.KEYCHAIN_STORAGE_VERSION=rAt,wt.KeyChain=Bbe,wt.MESSAGES_CONTEXT=nAt,wt.MESSAGES_STORAGE_VERSION=aAt,wt.MessageTracker=Lbe,wt.PAIRING_CONTEXT=yAt,wt.PAIRING_DEFAULT_TTL=o2n,wt.PAIRING_RPC_OPTS=EQ,wt.PAIRING_STORAGE_VERSION=gAt,wt.PENDING_SUB_RESOLUTION_TIMEOUT=mAt,wt.PUBLISHER_CONTEXT=sAt,wt.PUBLISHER_DEFAULT_TTL=iAt,wt.Pairing=Wbe,wt.RELAYER_CONTEXT=uAt,wt.RELAYER_DEFAULT_LOGGER=cAt,wt.RELAYER_DEFAULT_PROTOCOL=oAt,wt.RELAYER_DEFAULT_RELAY_URL=gDe,wt.RELAYER_EVENTS=Rc,wt.RELAYER_PROVIDER_EVENTS=Oae,wt.RELAYER_RECONNECT_TIMEOUT=hDe,wt.RELAYER_SDK_VERSION=dAt,wt.RELAYER_STORAGE_OPTIONS=i2n,wt.RELAYER_SUBSCRIBER_SUFFIX=lAt,wt.Relayer=qbe,wt.STORE_STORAGE_VERSION=pAt,wt.SUBSCRIBER_CONTEXT=hAt,wt.SUBSCRIBER_DEFAULT_TTL=s2n,wt.SUBSCRIBER_EVENTS=af,wt.SUBSCRIBER_STORAGE_VERSION=fAt,wt.Store=Fbe,wt.Subscriber=Obe,wt.default=CQ});var NAt=_(Xi=>{"use strict";d();p();Object.defineProperty(Xi,"__esModule",{value:!0});var E2n=_ae(),O1=_At(),bDe=dbe(),EAt=PBe(),be=vae(),CAt=Lu(),es=Qw(),Co=(iy(),nt(to));function kAt(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var C2n=kAt(E2n),k2n=kAt(CAt),IDe="wc",EDe=2,CDe="client",Ybe=`${IDe}@${EDe}:${CDe}:`,Gbe={name:CDe,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},A2n={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire"},P2n={database:":memory:"},S2n={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},R2n="history",M2n="0.3",AAt="proposal",N2n=es.THIRTY_DAYS,PAt="Proposal expired",SAt="session",Wae=es.SEVEN_DAYS,RAt="engine",kQ={wc_sessionPropose:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1104},res:{ttl:es.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1106},res:{ttl:es.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1112},res:{ttl:es.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1115}}},Vbe={min:es.FIVE_MINUTES,max:es.SEVEN_DAYS},MAt="request",B2n=Object.defineProperty,D2n=Object.defineProperties,L2n=Object.getOwnPropertyDescriptors,TAt=Object.getOwnPropertySymbols,O2n=Object.prototype.hasOwnProperty,q2n=Object.prototype.propertyIsEnumerable,IAt=(r,e,t)=>e in r?B2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Hp=(r,e)=>{for(var t in e||(e={}))O2n.call(e,t)&&IAt(r,t,e[t]);if(TAt)for(var t of TAt(e))q2n.call(e,t)&&IAt(r,t,e[t]);return r},vDe=(r,e)=>D2n(r,L2n(e)),wDe=class extends EAt.IEngine{constructor(e){super(e),this.name=RAt,this.events=new k2n.default,this.initialized=!1,this.ignoredPayloadTypes=[be.TYPE_1],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(kQ)}),this.initialized=!0)},this.connect=async t=>{this.isInitialized();let n=vDe(Hp({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:a,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,relays:c}=n,u=a,l,h=!1;if(u&&(h=this.client.core.pairing.pairings.get(u).active),!u||!h){let{topic:F,uri:W}=await this.client.core.pairing.create();u=F,l=W}let f=await this.client.core.crypto.generateKeyPair(),m=Hp({requiredNamespaces:i,optionalNamespaces:s,relays:c??[{protocol:O1.RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:f,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:y,resolve:I,done:C}=be.createDelayedPromise(es.FIVE_MINUTES,PAt);if(this.events.once(be.engineEvent("session_connect"),async({error:F,session:W})=>{if(F)y(F);else if(W){W.self.publicKey=f;let V=vDe(Hp({},W),{requiredNamespaces:W.requiredNamespaces,optionalNamespaces:W.optionalNamespaces});await this.client.session.set(W.topic,V),await this.setExpiry(W.topic,W.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:W.peer.metadata}),I(V)}}),!u){let{message:F}=be.getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(F)}let R=await this.sendRequest(u,"wc_sessionPropose",m),L=be.calcExpiry(es.FIVE_MINUTES);return await this.setProposal(R,Hp({id:R,expiry:L},m)),{uri:l,approval:C}},this.pair=async t=>(this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{this.isInitialized(),await this.isValidApprove(t);let{id:n,relayProtocol:a,namespaces:i,sessionProperties:s}=t,o=this.client.proposal.get(n),{pairingTopic:c,proposer:u,requiredNamespaces:l,optionalNamespaces:h}=o;be.isValidObject(l)||(l=be.getRequiredNamespacesFromNamespaces(i,"approve()"));let f=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(f,m);c&&n&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult(n,c,{relay:{protocol:a??"irn"},responderPublicKey:f}),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));let I=Hp({relay:{protocol:a??"irn"},namespaces:i,requiredNamespaces:l,optionalNamespaces:h,controller:{publicKey:f,metadata:this.client.metadata},expiry:be.calcExpiry(Wae)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(y);let C=await this.sendRequest(y,"wc_sessionSettle",I),{done:R,resolve:L,reject:F}=be.createDelayedPromise();this.events.once(be.engineEvent("session_approve",C),({error:V})=>{V?F(V):L(this.client.session.get(y))});let W=vDe(Hp({},I),{topic:y,acknowledged:!1,self:I.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:f});return await this.client.session.set(y,W),await this.setExpiry(y,be.calcExpiry(Wae)),{topic:y,acknowledged:R}},this.reject=async t=>{this.isInitialized(),await this.isValidReject(t);let{id:n,reason:a}=t,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,a),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")))},this.update=async t=>{this.isInitialized(),await this.isValidUpdate(t);let{topic:n,namespaces:a}=t,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:a}),{done:s,resolve:o,reject:c}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_update",i),({error:u})=>{u?c(u):o()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:s}},this.extend=async t=>{this.isInitialized(),await this.isValidExtend(t);let{topic:n}=t,a=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_extend",a),({error:c})=>{c?o(c):s()}),await this.setExpiry(n,be.calcExpiry(Wae)),{acknowledged:i}},this.request=async t=>{this.isInitialized(),await this.isValidRequest(t);let{chainId:n,request:a,topic:i,expiry:s}=t,o=await this.sendRequest(i,"wc_sessionRequest",{request:a,chainId:n},s),{done:c,resolve:u,reject:l}=be.createDelayedPromise(s);return this.events.once(be.engineEvent("session_request",o),({error:h,result:f})=>{h?l(h):u(f)}),this.client.events.emit("session_request_sent",{topic:i,request:a,chainId:n}),await c()},this.respond=async t=>{this.isInitialized(),await this.isValidRespond(t);let{topic:n,response:a}=t,{id:i}=a;Co.isJsonRpcResult(a)?await this.sendResult(i,n,a.result):Co.isJsonRpcError(a)&&await this.sendError(i,n,a.error),this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0})},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);let{topic:n}=t;if(this.client.session.keys.includes(n)){let a=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();this.events.once(be.engineEvent("session_ping",a),({error:c})=>{c?o(c):s()}),await i()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async t=>{this.isInitialized(),await this.isValidEmit(t);let{topic:n,event:a,chainId:i}=t;await this.sendRequest(n,"wc_sessionEvent",{event:a,chainId:i})},this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);let{topic:n}=t;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",be.getSdkError("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter(n=>be.isSessionCompatible(n,t))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(t,n)=>{let{self:a}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await Promise.all([this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(t),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deleteProposal=async(t,n)=>{await Promise.all([this.client.proposal.delete(t,be.getSdkError("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,n),a?Promise.resolve():this.client.core.expirer.del(t)])},this.setExpiry=async(t,n)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:n}),this.client.core.expirer.set(t,n)},this.setProposal=async(t,n)=>{await this.client.proposal.set(t,n),this.client.core.expirer.set(t,n.expiry)},this.setPendingSessionRequest=async t=>{let n=kQ.wc_sessionRequest.req.ttl,{id:a,topic:i,params:s}=t;await this.client.pendingRequest.set(a,{id:a,topic:i,params:s}),n&&this.client.core.expirer.set(a,be.calcExpiry(n))},this.sendRequest=async(t,n,a,i)=>{let s=Co.formatJsonRpcRequest(n,a),o=await this.client.core.crypto.encode(t,s),c=kQ[n].req;return i&&(c.ttl=i),this.client.core.history.set(t,s),this.client.core.relayer.publish(t,o,c),s.id},this.sendResult=async(t,n,a)=>{let i=Co.formatJsonRpcResult(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=kQ[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.sendError=async(t,n,a)=>{let i=Co.formatJsonRpcError(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=kQ[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let t=[],n=[];this.client.session.getAll().forEach(a=>{be.isExpired(a.expiry)&&t.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{be.isExpired(a.expiry)&&n.push(a.id)}),await Promise.all([...t.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=t=>{let{topic:n,payload:a}=t,i=a.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async t=>{let{topic:n,payload:a}=t,i=(await this.client.core.history.get(n,a.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onSessionProposeRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidConnect(Hp({},n.params));let s=be.calcExpiry(es.FIVE_MINUTES),o=Hp({id:i,pairingTopic:t,expiry:s},a);await this.setProposal(i,o),this.client.events.emit("session_proposal",{id:i,params:o})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(t,n)=>{let{id:a}=n;if(Co.isJsonRpcResult(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let c=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});let u=await this.client.core.crypto.generateSharedKey(o,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let l=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:t})}else Co.isJsonRpcError(n)&&(await this.client.proposal.delete(a,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:o,expiry:c,namespaces:u,requiredNamespaces:l,optionalNamespaces:h,sessionProperties:f}=n.params,m=Hp({topic:t,relay:s,expiry:c,namespaces:u,acknowledged:!0,requiredNamespaces:l,optionalNamespaces:h,controller:o.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:o.publicKey,metadata:o.metadata}},f&&{sessionProperties:f});await this.sendResult(n.id,t,!0),this.events.emit(be.engineEvent("session_connect"),{session:m})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(be.engineEvent("session_approve",a),{})):Co.isJsonRpcError(n)&&(await this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidUpdate(Hp({topic:t},a)),await this.client.session.update(t,{namespaces:a.namespaces}),await this.sendResult(i,t,!0),this.client.events.emit("session_update",{id:i,topic:t,params:a})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_update",a),{}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(t,n)=>{let{id:a}=n;try{this.isValidExtend({topic:t}),await this.setExpiry(t,be.calcExpiry(Wae)),await this.sendResult(a,t,!0),this.client.events.emit("session_extend",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_extend",a),{}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(t,n)=>{let{id:a}=n;try{this.isValidPing({topic:t}),await this.sendResult(a,t,!0),this.client.events.emit("session_ping",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionPingResponse=(t,n)=>{let{id:a}=n;setTimeout(()=>{Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_ping",a),{}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(t,n)=>{let{id:a}=n;try{this.isValidDisconnect({topic:t,reason:n.params}),this.client.core.relayer.once(O1.RELAYER_EVENTS.publish,async()=>{await this.deleteSession(t)}),await this.sendResult(a,t,!0),this.client.events.emit("session_delete",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidRequest(Hp({topic:t},i)),await this.setPendingSessionRequest({id:a,topic:t,params:i}),this.client.events.emit("session_request",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_request",a),{result:n.result}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_request",a),{error:n.error})},this.onSessionEventRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidEmit(Hp({topic:t},i)),this.client.events.emit("session_event",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.isValidConnect=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(c)}let{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:i,sessionProperties:s,relays:o}=t;if(be.isUndefined(n)||await this.isValidPairingTopic(n),!be.isValidRelays(o,!0)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(c)}!be.isUndefined(a)&&be.isValidObject(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!be.isUndefined(i)&&be.isValidObject(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(t,n)=>{let a=be.isValidRequiredNamespaces(t,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async t=>{if(!be.isValidParams(t))throw new Error(be.getInternalError("MISSING_OR_INVALID",`approve() params: ${t}`).message);let{id:n,namespaces:a,relayProtocol:i,sessionProperties:s}=t;await this.isValidProposalId(n);let o=this.client.proposal.get(n),c=be.isValidNamespaces(a,"approve()");if(c)throw new Error(c.message);let u=be.isConformingNamespaces(o.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!be.isValidString(i,!0)){let{message:l}=be.getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(i)}let{id:n,reason:a}=t;if(await this.isValidProposalId(n),!be.isValidErrorReason(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidSessionSettleRequest=t=>{if(!be.isValidParams(t)){let{message:u}=be.getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(u)}let{relay:n,controller:a,namespaces:i,expiry:s}=t;if(!be.isValidRelay(n)){let{message:u}=be.getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let o=be.isValidController(a,"onSessionSettleRequest()");if(o)throw new Error(o.message);let c=be.isValidNamespaces(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(be.isExpired(s)){let{message:u}=be.getInternalError("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(c)}let{topic:n,namespaces:a}=t;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=be.isValidNamespaces(a,"update()");if(s)throw new Error(s.message);let o=be.isConformingNamespaces(i.requiredNamespaces,a,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionTopic(n)},this.isValidRequest=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(c)}let{topic:n,request:a,chainId:i,expiry:s}=t;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!be.isValidNamespacesChainId(o,i)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(c)}if(!be.isValidRequest(a)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!be.isValidNamespacesRequest(o,i,a.method)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!be.isValidRequestExpiry(s,Vbe)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${Vbe.min} and ${Vbe.max}`);throw new Error(c)}},this.isValidRespond=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(i)}let{topic:n,response:a}=t;if(await this.isValidSessionTopic(n),!be.isValidResponse(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidPing=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async t=>{if(!be.isValidParams(t)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(o)}let{topic:n,event:a,chainId:i}=t;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!be.isValidNamespacesChainId(s,i)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(o)}if(!be.isValidEvent(a)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}if(!be.isValidNamespacesEvent(s,i,a.name)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidDisconnect=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(t,n)=>{Object.values(t).forEach(a=>{if(!be.isValidString(a,!1)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:e}=be.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(O1.RELAYER_EVENTS.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let a=await this.client.core.crypto.decode(t,n);Co.isJsonRpcRequest(a)?(this.client.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):Co.isJsonRpcResponse(a)&&(await this.client.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.client.core.expirer.on(O1.EXPIRER_EVENTS.expired,async e=>{let{topic:t,id:n}=be.parseExpirerTarget(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,be.getInternalError("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(await this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=be.getInternalError("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(!this.client.session.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.session.get(e).expiry)){await this.deleteSession(e);let{message:t}=be.getInternalError("EXPIRED",`session topic: ${e}`);throw new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(be.isValidString(e,!1)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}else{let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}async isValidProposalId(e){if(!be.isValidId(e)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);let{message:t}=be.getInternalError("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}},xDe=class extends O1.Store{constructor(e,t){super(e,t,AAt,Ybe),this.core=e,this.logger=t}},_De=class extends O1.Store{constructor(e,t){super(e,t,SAt,Ybe),this.core=e,this.logger=t}},TDe=class extends O1.Store{constructor(e,t){super(e,t,MAt,Ybe),this.core=e,this.logger=t}},AQ=class extends EAt.ISignClient{constructor(e){super(e),this.protocol=IDe,this.version=EDe,this.name=Gbe.name,this.events=new CAt.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=e?.name||Gbe.name,this.metadata=e?.metadata||be.getAppMetadata();let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:C2n.default(bDe.getDefaultLoggerOptions({level:e?.logger||Gbe.logger}));this.core=e?.core||new O1.Core(e),this.logger=bDe.generateChildLogger(t,this.name),this.session=new _De(this.core,this.logger),this.proposal=new xDe(this.core,this.logger),this.pendingRequest=new TDe(this.core,this.logger),this.engine=new wDe(this)}static async init(e){let t=new AQ(e);return await t.initialize(),t}get context(){return bDe.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},F2n=AQ;Xi.ENGINE_CONTEXT=RAt,Xi.ENGINE_RPC_OPTS=kQ,Xi.HISTORY_CONTEXT=R2n,Xi.HISTORY_EVENTS=S2n,Xi.HISTORY_STORAGE_VERSION=M2n,Xi.PROPOSAL_CONTEXT=AAt,Xi.PROPOSAL_EXPIRY=N2n,Xi.PROPOSAL_EXPIRY_MESSAGE=PAt,Xi.REQUEST_CONTEXT=MAt,Xi.SESSION_CONTEXT=SAt,Xi.SESSION_EXPIRY=Wae,Xi.SESSION_REQUEST_EXPIRY_BOUNDARIES=Vbe,Xi.SIGN_CLIENT_CONTEXT=CDe,Xi.SIGN_CLIENT_DEFAULT=Gbe,Xi.SIGN_CLIENT_EVENTS=A2n,Xi.SIGN_CLIENT_PROTOCOL=IDe,Xi.SIGN_CLIENT_STORAGE_OPTIONS=P2n,Xi.SIGN_CLIENT_STORAGE_PREFIX=Ybe,Xi.SIGN_CLIENT_VERSION=EDe,Xi.SignClient=F2n,Xi.default=AQ});var WAt=_(Qbe=>{"use strict";d();p();Object.defineProperty(Qbe,"__esModule",{value:!0});var W2n=_ae(),qAt=NAt(),kDe=vae(),U2n=dbe(),Jbe=(iae(),nt(aae)),FAt=(f1e(),nt(h1e)),H2n=Lu();function Zbe(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var j2n=Zbe(W2n),z2n=Zbe(qAt),BDe=Zbe(FAt),K2n=Zbe(H2n),BAt="error",G2n="wss://relay.walletconnect.com",V2n="wc",Y2n="universal_provider",DAt=`${V2n}@${2}:${Y2n}:`,$2n="https://rpc.walletconnect.com/v1",Uae={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function PQ(r,e,t){let n,a=PDe(r);return e.rpcMap&&(n=e.rpcMap[a]),n||(n=`${$2n}?chainId=eip155:${a}&projectId=${t}`),n}function PDe(r){return r.includes("eip155")?Number(r.split(":")[1]):Number(r)}function Q2n(r,e){if(!e.includes(r))throw new Error(`Chain '${r}' not approved. Please use one of the following: ${e.toString()}`)}function J2n(r){return r.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}var Xbe=(r,e)=>{let t=n=>{n.request!==e.request||n.topic!==e.topic||(r.events.removeListener("session_request_sent",t),Z2n())};r.on("session_request_sent",t)};function Z2n(){if(typeof window<"u")try{let r=window.localStorage.getItem("WALLETCONNECT_DEEPLINK_CHOICE");if(r){let e=JSON.parse(r);window.open(e.href,"_self","noreferrer noopener")}}catch(r){console.error(r)}}var SDe=class{constructor(e){this.name="eip155",this.namespace=e.namespace,this.client=e.client,this.events=e.events,this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){var t;switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return this.handleSwitchChain(e.request.params?(t=e.request.params[0])==null?void 0:t.chainId:"0x0"),null;case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),await this.client.request(e)):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){let n=PDe(e);if(!this.httpProviders[n]){let a=t||PQ(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!a)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,a)}this.chainId=n,this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let n=t||PQ(`${this.name}:${e}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new FAt.HttpConnection(n))}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=PDe(t);e[n]=this.createHttpProvider(n)}),e}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}handleSwitchChain(e){let t=parseInt(e,16),n=`${this.name}:${t}`;Q2n(n,this.namespace.chains),this.setDefaultChain(`${t}`)}},RDe=class{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let n=t||PQ(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||PQ(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new BDe.default(n))}},MDe=class{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||PQ(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||PQ(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new BDe.default(n))}},NDe=class{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=this.getCardanoRPCUrl(t);e[t]=this.createHttpProvider(t,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||this.getCardanoRPCUrl(e);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new BDe.default(n))}},X2n=Object.defineProperty,ewn=Object.defineProperties,twn=Object.getOwnPropertyDescriptors,LAt=Object.getOwnPropertySymbols,rwn=Object.prototype.hasOwnProperty,nwn=Object.prototype.propertyIsEnumerable,OAt=(r,e,t)=>e in r?X2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,$be=(r,e)=>{for(var t in e||(e={}))rwn.call(e,t)&&OAt(r,t,e[t]);if(LAt)for(var t of LAt(e))nwn.call(e,t)&&OAt(r,t,e[t]);return r},ADe=(r,e)=>ewn(r,twn(e)),SQ=class{constructor(e){this.events=new K2n.default,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:j2n.default(U2n.getDefaultLoggerOptions({level:e?.logger||BAt}))}static async init(e){let t=new SQ(e);return await t.initialize(),t}async request(e,t){let[n,a]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:$be({},e),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(e,t,n){this.request(e,n).then(a=>t(null,a)).catch(a=>t(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:kDe.getSdkError("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");let{uri:n,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(i=>{this.session=i}).catch(i=>{if(i.message!==qAt.PROPOSAL_EXPIRY_MESSAGE)throw i;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{let[n,a]=this.validateChain(e);this.getProvider(n).setDefaultChain(a,t)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if(kDe.isValidArray(t)){for(let n of t)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await z2n.default.init({logger:this.providerOpts.logger||BAt,relayUrl:this.providerOpts.relayUrl||G2n,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");Object.keys(this.namespaces).forEach(e=>{var t,n,a;let i=((t=this.session)==null?void 0:t.namespaces[e].accounts)||[],s=J2n(i),o=ADe($be({},Object.assign(this.namespaces[e],(a=(n=this.optionalNamespaces)==null?void 0:n[e])!=null?a:{})),{accounts:i,chains:s});switch(e){case"eip155":this.rpcProviders[e]=new SDe({client:this.client,namespace:o,events:this.events});break;case"solana":this.rpcProviders[e]=new RDe({client:this.client,namespace:o,events:this.events});break;case"cosmos":this.rpcProviders[e]=new MDe({client:this.client,namespace:o,events:this.events});break;case"polkadot":break;case"cip34":this.rpcProviders[e]=new NDe({client:this.client,namespace:o,events:this.events});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?this.events.emit("accountsChanged",n.data):n.name==="chainChanged"?this.onChainChanged(t.chainId):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var n;let{namespaces:a}=t,i=(n=this.client)==null?void 0:n.session.get(e);this.session=ADe($be({},i),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",ADe($be({},kDe.getSdkError("USER_DISCONNECTED")),{data:e.topic}))}),this.on(Uae.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace((t=this.session)==null?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:n,sessionProperties:a}=e;if(!t||!Object.keys(t).length)throw new Error("Namespaces must be not empty");this.namespaces=t,this.optionalNamespaces=n,this.sessionProperties=a,this.persist("namespaces",t),this.persist("optionalNamespaces",n)}validateChain(e){let[t,n]=e?.split(":")||["",""];if(t&&!Object.keys(this.namespaces).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&n)return[t,n];let a=Object.keys(this.namespaces)[0],i=this.rpcProviders[a].getDefaultChain();return[a,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){let[n,a]=this.validateChain(e);t||this.getProvider(n).setDefaultChain(a),this.namespaces[n].defaultChain=a,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",a)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${DAt}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${DAt}/${e}`)}},awn=SQ;Qbe.UniversalProvider=awn,Qbe.default=SQ});var H6a,iwn,UAt,DDe,swn,HAt,LDe,jAt=ce(()=>{d();p();H6a=Symbol(),iwn=Symbol(),UAt=Object.getPrototypeOf,DDe=new WeakMap,swn=r=>r&&(DDe.has(r)?DDe.get(r):UAt(r)===Object.prototype||UAt(r)===Array.prototype),HAt=r=>swn(r)&&r[iwn]||null,LDe=(r,e=!0)=>{DDe.set(r,e)}});function of(r={}){return cwn(r)}function F1(r,e,t){let n=c5.get(r);(q1.env&&q1.env.MODE)!=="production"&&!n&&console.warn("Please use proxy object");let a,i=[],s=n[3],o=!1,u=s(l=>{if(i.push(l),t){e(i.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(i.splice(0))}))});return o=!0,()=>{o=!1,u()}}function uwn(r,e){let t=c5.get(r);(q1.env&&q1.env.MODE)!=="production"&&!t&&console.warn("Please use proxy object");let[n,a,i]=t;return i(n,a(),e)}var q1,ODe,c5,eve,own,cwn,zAt=ce(()=>{d();p();jAt();q1={},ODe=r=>typeof r=="object"&&r!==null,c5=new WeakMap,eve=new WeakSet,own=(r=Object.is,e=(u,l)=>new Proxy(u,l),t=u=>ODe(u)&&!eve.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),n=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,i=(u,l,h=n)=>{let f=a.get(u);if(f?.[0]===l)return f[1];let m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return LDe(m,!0),a.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{let I=Reflect.get(u,y);eve.has(I)?(LDe(I,!1),m[y]=I):I instanceof Promise?Object.defineProperty(m,y,{get(){return h(I)}}):c5.has(I)?m[y]=uwn(I,h):m[y]=I}),Object.freeze(m)},s=new WeakMap,o=[1,1],c=u=>{if(!ODe(u))throw new Error("object required");let l=s.get(u);if(l)return l;let h=o[0],f=new Set,m=(Q,q=++o[0])=>{h!==q&&(h=q,f.forEach(T=>T(Q,q)))},y=o[1],I=(Q=++o[1])=>(y!==Q&&!f.size&&(y=Q,R.forEach(([q])=>{let T=q[1](Q);T>h&&(h=T)})),h),C=Q=>(q,T)=>{let M=[...q];M[1]=[Q,...M[1]],m(M,T)},R=new Map,L=(Q,q)=>{if((q1.env&&q1.env.MODE)!=="production"&&R.has(Q))throw new Error("prop listener already exists");if(f.size){let T=q[3](C(Q));R.set(Q,[q,T])}else R.set(Q,[q])},F=Q=>{var q;let T=R.get(Q);T&&(R.delete(Q),(q=T[1])==null||q.call(T))},W=Q=>(f.add(Q),f.size===1&&R.forEach(([T,M],A)=>{if((q1.env&&q1.env.MODE)!=="production"&&M)throw new Error("remove already exists");let v=T[3](C(A));R.set(A,[T,v])}),()=>{f.delete(Q),f.size===0&&R.forEach(([T,M],A)=>{M&&(M(),R.set(A,[T]))})}),V=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),H=e(V,{deleteProperty(Q,q){let T=Reflect.get(Q,q);F(q);let M=Reflect.deleteProperty(Q,q);return M&&m(["delete",[q],T]),M},set(Q,q,T,M){var A;let v=Reflect.has(Q,q),k=Reflect.get(Q,q,M);if(v&&r(k,T))return!0;F(q),ODe(T)&&(T=HAt(T)||T);let O=T;if(!((A=Object.getOwnPropertyDescriptor(Q,q))!=null&&A.set))if(T instanceof Promise)T.then(D=>{T.status="fulfilled",T.value=D,m(["resolve",[q],D])}).catch(D=>{T.status="rejected",T.reason=D,m(["reject",[q],D])});else{!c5.has(T)&&t(T)&&(O=of(T));let D=!eve.has(O)&&c5.get(O);D&&L(q,D)}return Reflect.set(Q,q,O,M),m(["set",[q],T,k]),!0}});s.set(u,H);let G=[V,I,i,W];return c5.set(H,G),Reflect.ownKeys(u).forEach(Q=>{let q=Object.getOwnPropertyDescriptor(u,Q);q.get||q.set?Object.defineProperty(V,Q,q):H[Q]=u[Q]}),H})=>[c,c5,eve,r,e,t,n,a,i,s,o],[cwn]=own()});function lwn(r){let e=Object.fromEntries(Object.entries(r).filter(([t,n])=>typeof n<"u"&&n!==null&&n!=="").map(([t,n])=>[t,n.toString()]));return new URLSearchParams(e).toString()}function nve(){let{projectId:r}=Ds.state;if(!r)throw new Error("projectId is required to work with explorer api");return r}function dwn(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var GAt,tl,yt,Hae,qi,ys,za,tve,Ds,KAt,rve,u5,no,Id,Br,RQ,ao,ave,Lm,l5,Nc,Pr,qDe=ce(()=>{d();p();zAt();GAt=un(lc(),1),tl=of({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),yt={state:tl,subscribe(r){return F1(tl,()=>r(tl))},setChains(r){tl.chains=r},setStandaloneChains(r){tl.standaloneChains=r},setStandaloneUri(r){tl.standaloneUri=r},getSelectedChain(){let r=qi.client().getNetwork().chain;return r&&(tl.selectedChain=r),tl.selectedChain},setSelectedChain(r){tl.selectedChain=r},setIsStandalone(r){tl.isStandalone=r},setIsCustomDesktop(r){tl.isCustomDesktop=r},setIsCustomMobile(r){tl.isCustomMobile=r},setIsDataLoaded(r){tl.isDataLoaded=r},setIsUiLoaded(r){tl.isUiLoaded=r},setWalletConnectVersion(r){tl.walletConnectVersion=r}},Hae=of({initialized:!1,ethereumClient:void 0}),qi={setEthereumClient(r){!Hae.initialized&&r&&(Hae.ethereumClient=r,yt.setChains(r.chains),Hae.initialized=!0)},client(){if(Hae.ethereumClient)return Hae.ethereumClient;throw new Error("ClientCtrl has no client set")}},ys=of({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),za={state:ys,subscribe(r){return F1(ys,()=>r(ys))},getAccount(){let r=qi.client().getAccount();ys.address=r.address,ys.isConnected=r.isConnected},async fetchProfile(r,e){try{ys.profileLoading=!0;let t=e??ys.address,{id:n}=qi.client().getDefaultChain();if(t&&n===1){let[a,i]=await Promise.all([qi.client().fetchEnsName({address:t,chainId:1}),qi.client().fetchEnsAvatar({address:t,chainId:1})]);i&&await r(i),ys.profileName=a,ys.profileAvatar=i}}finally{ys.profileLoading=!1}},async fetchBalance(r){try{ys.balanceLoading=!0;let e=r??ys.address;if(e){let t=await qi.client().fetchBalance({address:e});ys.balance={amount:t.formatted,symbol:t.symbol}}}finally{ys.balanceLoading=!1}},setAddress(r){ys.address=r},setIsConnected(r){ys.isConnected=r},resetBalance(){ys.balance=void 0},resetAccount(){ys.address=void 0,ys.isConnected=!1,ys.profileName=void 0,ys.profileAvatar=void 0,ys.balance=void 0}},tve=of({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),Ds={state:tve,subscribe(r){return F1(tve,()=>r(tve))},setConfig(r){var e,t,n,a;if(yt.setStandaloneChains(r.standaloneChains),yt.setIsStandalone(!!((e=r.standaloneChains)!=null&&e.length)||!!r.enableStandaloneMode),yt.setIsCustomMobile(!!((t=r.mobileWallets)!=null&&t.length)),yt.setIsCustomDesktop(!!((n=r.desktopWallets)!=null&&n.length)),yt.setWalletConnectVersion((a=r.walletConnectVersion)!=null?a:1),r.defaultChain)yt.setSelectedChain(r.defaultChain);else if(!yt.state.isStandalone){let i=qi.client().getDefaultChain();yt.setSelectedChain(i)}Object.assign(tve,r)}},KAt="https://explorer-api.walletconnect.com";rve={async fetchWallets(r,e){let t=lwn(e),n=`${KAt}/v3/wallets?projectId=${r}&${t}`;return(await fetch(n)).json()},formatImageUrl(r,e){return`${KAt}/v3/logo/lg/${e}?projectId=${r}`}},u5=of({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});no={state:u5,async getPreviewWallets(r){let{listings:e}=await rve.fetchWallets(nve(),r);return u5.previewWallets=Object.values(e),u5.previewWallets},async getRecomendedWallets(){let{listings:r}=await rve.fetchWallets(nve(),{page:1,entries:6});u5.recomendedWallets=Object.values(r)},async getPaginatedWallets(r){let{page:e,search:t}=r,{listings:n,total:a}=await rve.fetchWallets(nve(),r),i=Object.values(n),s=t?"search":"wallets";return u5[s]={listings:[...u5[s].listings,...i],total:a,page:e??1},{listings:i,total:a}},getImageUrl(r){return rve.formatImageUrl(nve(),r)},resetSearch(){u5.search={listings:[],total:0,page:1}}},Id=of({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),Br={state:Id,subscribe(r){return F1(Id,()=>r(Id))},push(r,e){r!==Id.view&&(Id.view=r,e&&(Id.data=e),Id.history.push(r))},replace(r){Id.view=r,Id.history=[r]},goBack(){if(Id.history.length>1){Id.history.pop();let[r]=Id.history.slice(-1);Id.view=r}}},RQ=of({open:!1}),ao={state:RQ,subscribe(r){return F1(RQ,()=>r(RQ))},async open(r){return new Promise(e=>{let{isStandalone:t,isUiLoaded:n,isDataLoaded:a}=yt.state,{isConnected:i}=za.state,{enableNetworkView:s}=Ds.state;if(t?(yt.setStandaloneUri(r?.uri),yt.setStandaloneChains(r?.standaloneChains),Br.replace("ConnectWallet")):r!=null&&r.route?Br.replace(r.route):i?Br.replace("Account"):s?Br.replace("SelectNetwork"):Br.replace("ConnectWallet"),n&&a)RQ.open=!0,e();else{let o=setInterval(()=>{yt.state.isUiLoaded&&yt.state.isDataLoaded&&(clearInterval(o),RQ.open=!0,e())},200)}})},close(){RQ.open=!1}};ave=of({themeMode:dwn()?"dark":"light"}),Lm={state:ave,subscribe(r){return F1(ave,()=>r(ave))},setThemeConfig(r){Object.assign(ave,r)}},l5=of({open:!1,message:"",variant:"success"}),Nc={state:l5,subscribe(r){return F1(l5,()=>r(l5))},openToast(r,e){l5.open=!0,l5.message=r,l5.variant=e},closeToast(){l5.open=!1}},Pr={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return Pr.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.getOwnPropertyNames(r).length===0&&Object.getOwnPropertySymbols(r).length===0},isHttpUrl(r){return r.startsWith("http://")||r.startsWith("https://")},formatNativeUrl(r,e,t){if(Pr.isHttpUrl(r))return this.formatUniversalUrl(r,e,t);let n=r;n.includes("://")||(n=r.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}wc?uri=${a}`},formatUniversalUrl(r,e,t){if(!Pr.isHttpUrl(r))return this.formatNativeUrl(r,e,t);let n=r;r.endsWith("/")&&(n=r.slice(0,-1)),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}/wc?uri=${a}`},async wait(r){return new Promise(e=>{setTimeout(e,r)})},openHref(r,e){window.open(r,e,"noreferrer noopener")},setWalletConnectDeepLink(r,e){localStorage.setItem(Pr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:r,name:e}))},setWalletConnectAndroidDeepLink(r){let[e]=r.split("?");localStorage.setItem(Pr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(Pr.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(r){return r===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=GAt.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}))});var ive,sve,FDe,VAt,jae,YAt,pr,WDe,ove,UDe=ce(()=>{d();p();ive=window,sve=ive.ShadowRoot&&(ive.ShadyCSS===void 0||ive.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,FDe=Symbol(),VAt=new WeakMap,jae=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==FDe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(sve&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=VAt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&VAt.set(t,e))}return e}toString(){return this.cssText}},YAt=r=>new jae(typeof r=="string"?r:r+"",void 0,FDe),pr=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[i+1],r[0]);return new jae(t,r,FDe)},WDe=(r,e)=>{sve?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=ive.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})},ove=sve?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return YAt(t)})(r):r});var HDe,cve,$At,pwn,QAt,zDe,JAt,jDe,vy,uve=ce(()=>{d();p();UDe();UDe();cve=window,$At=cve.trustedTypes,pwn=$At?$At.emptyScript:"",QAt=cve.reactiveElementPolyfillSupport,zDe={toAttribute(r,e){switch(e){case Boolean:r=r?pwn:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},JAt=(r,e)=>e!==r&&(e==e||r==r),jDe={attribute:!0,type:String,converter:zDe,reflect:!1,hasChanged:JAt},vy=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,n)=>{let a=this._$Ep(n,t);a!==void 0&&(this._$Ev.set(a,n),e.push(a))}),e}static createProperty(e,t=jDe){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(a){let i=this[e];this[t]=a,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||jDe}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let a of n)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(ove(a))}else e!==void 0&&t.push(ove(e));return t}static _$Ep(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return WDe(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=jDe){var a;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((a=n.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?n.converter:zDe).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var n;let a=this.constructor,i=a._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=a.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:zDe;this._$El=i,this[i]=o.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let a=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||JAt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,i)=>this[i]=a),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var i;return(i=a.hostUpdate)===null||i===void 0?void 0:i.call(a)}),this.update(n)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var a;return(a=n.hostUpdated)===null||a===void 0?void 0:a.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};vy.finalized=!0,vy.elementProperties=new Map,vy.elementStyles=[],vy.shadowRootOptions={mode:"open"},QAt?.({ReactiveElement:vy}),((HDe=cve.reactiveElementVersions)!==null&&HDe!==void 0?HDe:cve.reactiveElementVersions=[]).push("1.6.1")});function DQ(r,e,t=r,n){var a,i,s,o;if(e===wy)return e;let c=n!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[n]:t._$Cl,u=Gae(e)?void 0:e._$litDirective$;return c?.constructor!==u&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),u===void 0?c=void 0:(c=new u(r),c._$AT(r,t,n)),n!==void 0?((s=(o=t)._$Co)!==null&&s!==void 0?s:o._$Co=[])[n]=c:t._$Cl=c),c!==void 0&&(e=DQ(r,c._$AS(r,e.values),c,n)),e}var KDe,lve,NQ,ZAt,W1,iPt,hwn,BQ,Kae,Gae,sPt,fwn,zae,XAt,ePt,d5,tPt,rPt,oPt,cPt,xe,Dr,wy,io,nPt,MQ,mwn,p5,GDe,h5,LQ,VDe,ywn,YDe,$De,QDe,aPt,uPt,f5=ce(()=>{d();p();lve=window,NQ=lve.trustedTypes,ZAt=NQ?NQ.createPolicy("lit-html",{createHTML:r=>r}):void 0,W1=`lit$${(Math.random()+"").slice(9)}$`,iPt="?"+W1,hwn=`<${iPt}>`,BQ=document,Kae=(r="")=>BQ.createComment(r),Gae=r=>r===null||typeof r!="object"&&typeof r!="function",sPt=Array.isArray,fwn=r=>sPt(r)||typeof r?.[Symbol.iterator]=="function",zae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,XAt=/-->/g,ePt=/>/g,d5=RegExp(`>|[ \f\r](?:([^\\s"'>=/]+)([ \f\r]*=[ \f\r]*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),pkt=/'/g,hkt=/"/g,bkt=/^(?:script|style|textarea|title)$/i,vkt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),_e=vkt(1),Dr=vkt(2),yy=Symbol.for("lit-noChange"),uo=Symbol.for("lit-nothing"),fkt=new WeakMap,cE=lE.createTreeWalker(lE,129,null,!1),Qgn=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"":"",s=fP;for(let c=0;c"?(s=a??fP,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?Sw:h[3]==='"'?hkt:pkt):s===hkt||s===pkt?s=Sw:s===lkt||s===dkt?s=fP:(s=Sw,a=void 0);let y=s===Sw&&r[c+1].startsWith("/>")?" ":"";i+=s===fP?u+Ygn:f>=0?(n.push(l),u.slice(0,f)+"$lit$"+u.slice(f)+Fg+y):u+Fg+(f===-2?(n.push(void 0),c):y)}let o=i+(r[t]||"")+(e===2?"":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ukt!==void 0?ukt.createHTML(o):o,n]},Pw=class{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,o=e.length-1,c=this.parts,[u,l]=Qgn(e,t);if(this.el=Pw.createElement(u,n),cE.currentNode=this.el.content,t===2){let h=this.el.content,f=h.firstChild;f.remove(),h.append(...f.childNodes)}for(;(a=cE.nextNode())!==null&&c.length0){a.textContent=uE?uE.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=uo}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=dE(this,e,t,0),s=!yP(e)||e!==this._$AH&&e!==yy,s&&(this._$AH=e);else{let o=e,c,u;for(e=i[0],c=0;c{var n,a;let i=(n=t?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let o=(a=t?.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=s=new Rw(e.insertBefore(mP(),o),o,void 0,t??{})}return s._$AI(r),s}});var Hme,jme,gt,_kt,xkt=ce(()=>{d();p();Cz();Cz();Mw();Mw();gt=class extends my{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=wkt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return yy}};gt.finalized=!0,gt._$litElement$=!0,(Hme=globalThis.litElementHydrateSupport)===null||Hme===void 0||Hme.call(globalThis,{LitElement:gt});_kt=globalThis.litElementPolyfillSupport;_kt?.({LitElement:gt});((jme=globalThis.litElementVersions)!==null&&jme!==void 0?jme:globalThis.litElementVersions=[]).push("3.2.2")});var Tkt=ce(()=>{d();p();});var Ekt=ce(()=>{d();p();Cz();Mw();xkt();Tkt()});var Qt,Ckt=ce(()=>{d();p();Qt=r=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(r,e):((t,n)=>{let{kind:a,elements:i}=n;return{kind:a,elements:i,finisher(s){customElements.define(t,s)}}})(r,e)});function ar(r){return(e,t)=>t!==void 0?((n,a,i)=>{a.constructor.createProperty(i,n)})(r,e,t):Xgn(r,e)}var Xgn,zme=ce(()=>{d();p();Xgn=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}}});function _n(r){return ar({...r,state:!0})}var Ikt=ce(()=>{d();p();zme();});var Nw=ce(()=>{d();p();});var kkt=ce(()=>{d();p();Nw();});var Akt=ce(()=>{d();p();Nw();});var Skt=ce(()=>{d();p();Nw();});var Pkt=ce(()=>{d();p();Nw();});var Kme,Rxa,Gme=ce(()=>{d();p();Nw();Rxa=((Kme=window.HTMLSlotElement)===null||Kme===void 0?void 0:Kme.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var Rkt=ce(()=>{d();p();Nw();Gme();});var Mkt=ce(()=>{d();p();Ckt();zme();Ikt();kkt();Akt();Skt();Pkt();Gme();Rkt()});var Nkt,Bkt,kz,Dkt=ce(()=>{d();p();Nkt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bkt=r=>(...e)=>({_$litDirective$:r,values:e}),kz=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var al,Okt=ce(()=>{d();p();Mw();Dkt();al=Bkt(class extends kz{constructor(r){var e;if(super(r),r.type!==Nkt.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,n;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let a=r.element.classList;this.nt.forEach(i=>{i in e||(a.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((n=this.st)===null||n===void 0?void 0:n.has(i))||(s?(a.add(i),this.nt.add(i)):(a.remove(i),this.nt.delete(i)))}return yy}})});var Lkt=ce(()=>{d();p();Okt()});function Vme(r,e){r.indexOf(e)===-1&&r.push(e)}var Fkt=ce(()=>{d();p()});var bP,$me=ce(()=>{d();p();bP=(r,e,t)=>Math.min(Math.max(t,r),e)});var Bc,qkt=ce(()=>{d();p();Bc={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}});var lf,Az=ce(()=>{d();p();lf=r=>typeof r=="number"});var qm,Yme=ce(()=>{d();p();Az();qm=r=>Array.isArray(r)&&!lf(r[0])});var Wkt,Ukt=ce(()=>{d();p();Wkt=(r,e,t)=>{let n=e-r;return((t-r)%n+n)%n+r}});function Hkt(r,e){return qm(r)?r[Wkt(0,r.length,e)]:r}var jkt=ce(()=>{d();p();Yme();Ukt()});var Sz,Jme=ce(()=>{d();p();Sz=(r,e,t)=>-t*r+t*e+r});var vP,So,Qme=ce(()=>{d();p();vP=()=>{},So=r=>r});var Bw,Pz=ce(()=>{d();p();Bw=(r,e,t)=>e-r===0?1:(t-r)/(e-r)});function Zme(r,e){let t=r[r.length-1];for(let n=1;n<=e;n++){let a=Bw(0,e,n);r.push(Sz(t,1,a))}}function zkt(r){let e=[0];return Zme(e,r-1),e}var Kkt=ce(()=>{d();p();Jme();Pz()});function Xme(r,e=zkt(r.length),t=So){let n=r.length,a=n-e.length;return a>0&&Zme(e,a),i=>{let s=0;for(;s{d();p();Jme();Qme();Kkt();Pz();jkt();$me()});var wP,Vkt=ce(()=>{d();p();Az();wP=r=>Array.isArray(r)&&lf(r[0])});var hE,$kt=ce(()=>{d();p();hE=r=>typeof r=="object"&&Boolean(r.createAnimation)});var Kp,Ykt=ce(()=>{d();p();Kp=r=>typeof r=="function"});var _P,Jkt=ce(()=>{d();p();_P=r=>typeof r=="string"});var Wm,Qkt=ce(()=>{d();p();Wm={ms:r=>r*1e3,s:r=>r/1e3}});function e0e(r,e){return e?r*(1e3/e):0}var Zkt=ce(()=>{d();p()});var Nu=ce(()=>{d();p();Fkt();$me();qkt();Gkt();Vkt();$kt();Yme();Ykt();Az();Jkt();Qme();Pz();Qkt();Zkt()});function rbn(r,e,t,n,a){let i,s,o=0;do s=e+(t-e)/2,i=Xkt(s,n,a)-r,i>0?t=s:e=s;while(Math.abs(i)>ebn&&++orbn(i,0,1,r,t);return i=>i===0||i===1?i:Xkt(a(i),e,n)}var Xkt,ebn,tbn,eAt=ce(()=>{d();p();Nu();Xkt=(r,e,t)=>(((1-3*t+3*e)*r+(3*t-6*e))*r+3*e)*r,ebn=1e-7,tbn=12});var t0e,tAt=ce(()=>{d();p();Nu();t0e=(r,e="end")=>t=>{t=e==="end"?Math.min(t,.999):Math.max(t,.001);let n=t*r,a=e==="end"?Math.floor(n):Math.ceil(n);return bP(0,1,a/r)}});var rAt=ce(()=>{d();p();eAt();tAt()});function r0e(r){if(Kp(r))return r;if(wP(r))return Dw(...r);if(nAt[r])return nAt[r];if(r.startsWith("steps")){let e=nbn.exec(r);if(e){let t=e[1].split(",");return t0e(parseFloat(t[0]),t[1].trim())}}return So}var nAt,nbn,aAt=ce(()=>{d();p();rAt();Nu();nAt={ease:Dw(.25,.1,.25,1),"ease-in":Dw(.42,0,1,1),"ease-in-out":Dw(.42,0,.58,1),"ease-out":Dw(0,0,.58,1)},nbn=/\((.*?)\)/});var Ow,iAt=ce(()=>{d();p();Nu();aAt();Ow=class{constructor(e,t=[0,1],{easing:n,duration:a=Bc.duration,delay:i=Bc.delay,endDelay:s=Bc.endDelay,repeat:o=Bc.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=So,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,f)=>{this.resolve=h,this.reject=f}),n=n||Bc.easing,hE(n)){let h=n.createAnimation(t);n=h.easing,t=h.keyframes||t,a=h.duration||a}this.repeat=o,this.easing=qm(n)?So:r0e(n),this.updateDuration(a);let l=Xme(t,c,qm(n)?n.map(r0e):So);this.tick=h=>{var f;i=i;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(h-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);let y=m/this.duration,E=Math.floor(y),I=y%1;!I&&y>=1&&(I=1),I===1&&E--;let S=E%2;(u==="reverse"||u==="alternate"&&S||u==="alternate-reverse"&&!S)&&(I=1-I);let L=m>=this.totalDuration?1:Math.min(I,1),q=l(this.easing(L));e(q),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,q)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}});var n0e=ce(()=>{d();p();iAt()});var abn,Rz,sAt=ce(()=>{d();p();abn=function(){},Rz=function(){};g.env.NODE_ENV!=="production"&&(abn=function(r,e){!r&&typeof console<"u"&&console.warn(e)},Rz=function(r,e){if(!r)throw new Error(e)})});var xP,oAt=ce(()=>{d();p();xP=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}});var a0e=ce(()=>{d();p();oAt()});function Mz(r){return i0e.has(r)||i0e.set(r,{transforms:[],values:new Map}),i0e.get(r)}function cAt(r,e){return r.has(e)||r.set(e,new xP),r.get(e)}var i0e,s0e=ce(()=>{d();p();a0e();i0e=new WeakMap});var ibn,sbn,TP,uAt,obn,Um,Bz,Nz,cbn,ubn,Dz,lAt,lbn,dbn,fE=ce(()=>{d();p();Nu();s0e();ibn=["","X","Y","Z"],sbn=["translate","scale","rotate","skew"],TP={x:"translateX",y:"translateY",z:"translateZ"},uAt={syntax:"",initialValue:"0deg",toDefaultUnit:r=>r+"deg"},obn={translate:{syntax:"",initialValue:"0px",toDefaultUnit:r=>r+"px"},rotate:uAt,scale:{syntax:"",initialValue:1,toDefaultUnit:So},skew:uAt},Um=new Map,Bz=r=>`--motion-${r}`,Nz=["x","y","z"];sbn.forEach(r=>{ibn.forEach(e=>{Nz.push(r+e),Um.set(Bz(r+e),obn[r])})});cbn=(r,e)=>Nz.indexOf(r)-Nz.indexOf(e),ubn=new Set(Nz),Dz=r=>ubn.has(r),lAt=(r,e)=>{TP[e]&&(e=TP[e]);let{transforms:t}=Mz(r);Vme(t,e),r.style.transform=lbn(t)},lbn=r=>r.sort(cbn).reduce(dbn,"").trim(),dbn=(r,e)=>`${r} ${e}(var(${Bz(e)}))`});function pAt(r){if(!dAt.has(r)){dAt.add(r);try{let{syntax:e,initialValue:t}=Um.has(r)?Um.get(r):{};CSS.registerProperty({name:r,inherits:!1,syntax:e,initialValue:t})}catch{}}}var EP,dAt,o0e=ce(()=>{d();p();fE();EP=r=>r.startsWith("--"),dAt=new Set});var c0e,hAt,u0e,qg,l0e=ce(()=>{d();p();c0e=(r,e)=>document.createElement("div").animate(r,e),hAt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{c0e({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(c0e({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{c0e({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},u0e={},qg={};for(let r in hAt)qg[r]=()=>(u0e[r]===void 0&&(u0e[r]=hAt[r]()),u0e[r])});var pbn,hbn,d0e,fbn,fAt=ce(()=>{d();p();Nu();l0e();pbn=.015,hbn=(r,e)=>{let t="",n=Math.round(e/pbn);for(let a=0;aKp(r)?qg.linearEasing()?`linear(${hbn(r,e)})`:Bc.easing:wP(r)?fbn(r):r,fbn=([r,e,t,n])=>`cubic-bezier(${r}, ${e}, ${t}, ${n})`});function mAt(r,e){for(let t=0;t{d();p();yAt=r=>Array.isArray(r)?r:[r]});function Lw(r){return TP[r]&&(r=TP[r]),Dz(r)?Bz(r):r}var Oz=ce(()=>{d();p();fE()});var CP,bAt=ce(()=>{d();p();o0e();Oz();fE();CP={get:(r,e)=>{e=Lw(e);let t=EP(e)?r.style.getPropertyValue(e):getComputedStyle(r)[e];if(!t&&t!==0){let n=Um.get(e);n&&(t=n.initialValue)}return t},set:(r,e,t)=>{e=Lw(e),EP(e)?r.style.setProperty(e,t):r.style[e]=t}}});function Lz(r,e=!0){if(!(!r||r.playState==="finished"))try{r.stop?r.stop():(e&&r.commitStyles(),r.cancel())}catch{}}var p0e=ce(()=>{d();p()});function Fz(r,e){var t;let n=e?.toDefaultUnit||So,a=r[r.length-1];if(_P(a)){let i=((t=a.match(/(-?[\d.]+)([a-z%]*)/))===null||t===void 0?void 0:t[2])||"";i&&(n=s=>s+i)}return n}var h0e=ce(()=>{d();p();Nu()});function mbn(){return window.__MOTION_DEV_TOOLS_RECORD}function vAt(r,e,t,n={},a){let i=mbn(),s=n.record!==!1&&i,o,{duration:c=Bc.duration,delay:u=Bc.delay,endDelay:l=Bc.endDelay,repeat:h=Bc.repeat,easing:f=Bc.easing,persist:m=!1,direction:y,offset:E,allowWebkitAcceleration:I=!1}=n,S=Mz(r),L=Dz(e),q=qg.waapi();L&&lAt(r,e);let W=Lw(e),V=cAt(S.values,W),K=Um.get(W);return Lz(V.animation,!(hE(f)&&V.generator)&&n.record!==!1),()=>{let H=()=>{var F,T;return(T=(F=CP.get(r,W))!==null&&F!==void 0?F:K?.initialValue)!==null&&T!==void 0?T:0},G=mAt(yAt(t),H),J=Fz(G,K);if(hE(f)){let F=f.createAnimation(G,e!=="opacity",H,W,V);f=F.easing,G=F.keyframes||G,c=F.duration||c}if(EP(W)&&(qg.cssRegisterProperty()?pAt(W):q=!1),L&&!qg.linearEasing()&&(Kp(f)||qm(f)&&f.some(Kp))&&(q=!1),q){K&&(G=G.map(P=>lf(P)?K.toDefaultUnit(P):P)),G.length===1&&(!qg.partialKeyframes()||s)&&G.unshift(H());let F={delay:Wm.ms(u),duration:Wm.ms(c),endDelay:Wm.ms(l),easing:qm(f)?void 0:d0e(f,c),direction:y,iterations:h+1,fill:"both"};o=r.animate({[W]:G,offset:E,easing:qm(f)?f.map(P=>d0e(P,c)):void 0},F),o.finished||(o.finished=new Promise((P,A)=>{o.onfinish=P,o.oncancel=A}));let T=G[G.length-1];o.finished.then(()=>{m||(CP.set(r,W,T),o.cancel())}).catch(vP),I||(o.playbackRate=1.000001)}else if(a&&L)G=G.map(F=>typeof F=="string"?parseFloat(F):F),G.length===1&&G.unshift(parseFloat(H())),o=new a(F=>{CP.set(r,W,J?J(F):F)},G,Object.assign(Object.assign({},n),{duration:c,easing:f}));else{let F=G[G.length-1];CP.set(r,W,K&&lf(F)?K.toDefaultUnit(F):F)}return s&&i(r,e,G,{duration:c,delay:u,easing:f,repeat:h,offset:E},"motion-one"),V.setAnimation(o),o}}var wAt=ce(()=>{d();p();s0e();o0e();Nu();fE();fAt();l0e();gAt();bAt();Oz();p0e();h0e()});var _At,xAt=ce(()=>{d();p();_At=(r,e)=>r[e]?Object.assign(Object.assign({},r),r[e]):Object.assign({},r)});function TAt(r,e){var t;return typeof r=="string"?e?((t=e[r])!==null&&t!==void 0||(e[r]=document.querySelectorAll(r)),r=e[r]):r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[])}var EAt=ce(()=>{d();p()});var ybn,IP,gbn,bbn,vbn,f0e=ce(()=>{d();p();Nu();p0e();ybn=r=>r(),IP=(r,e,t=Bc.duration)=>new Proxy({animations:r.map(ybn).filter(Boolean),duration:t,options:e},bbn),gbn=r=>r.animations[0],bbn={get:(r,e)=>{let t=gbn(r);switch(e){case"duration":return r.duration;case"currentTime":return Wm.s(t?.[e]||0);case"playbackRate":case"playState":return t?.[e];case"finished":return r.finished||(r.finished=Promise.all(r.animations.map(vbn)).catch(vP)),r.finished;case"stop":return()=>{r.animations.forEach(n=>Lz(n))};case"forEachNative":return n=>{r.animations.forEach(a=>n(a,r))};default:return typeof t?.[e]>"u"?void 0:()=>r.animations.forEach(n=>n[e]())}},set:(r,e,t)=>{switch(e){case"currentTime":t=Wm.ms(t);case"currentTime":case"playbackRate":for(let n=0;nr.finished});function CAt(r,e,t){return Kp(r)?r(e,t):r}var IAt=ce(()=>{d();p();Nu()});function kAt(r){return function(t,n,a={}){t=TAt(t);let i=t.length;Rz(Boolean(i),"No valid element provided."),Rz(Boolean(n),"No keyframes defined.");let s=[];for(let o=0;o{d();p();sAt();wAt();xAt();EAt();f0e();IAt()});var m0e,SAt=ce(()=>{d();p();n0e();AAt();m0e=kAt(Ow)});function kP(r,e,t){let n=Math.max(e-wbn,0);return e0e(t-r(n),e-n)}var wbn,y0e=ce(()=>{d();p();Nu();wbn=5});var Wg,g0e=ce(()=>{d();p();Wg={stiffness:100,damping:10,mass:1}});var PAt,RAt=ce(()=>{d();p();g0e();PAt=(r=Wg.stiffness,e=Wg.damping,t=Wg.mass)=>e/(2*Math.sqrt(r*t))});function MAt(r,e,t){return r=e||r>e&&t<=e}var NAt=ce(()=>{d();p()});var b0e,BAt=ce(()=>{d();p();Nu();g0e();RAt();NAt();y0e();b0e=({stiffness:r=Wg.stiffness,damping:e=Wg.damping,mass:t=Wg.mass,from:n=0,to:a=1,velocity:i=0,restSpeed:s=2,restDistance:o=.5}={})=>{i=i?Wm.s(i):0;let c={done:!1,hasReachedTarget:!1,current:n,target:a},u=a-n,l=Math.sqrt(r/t)/1e3,h=PAt(r,e,t),f;if(h<1){let m=l*Math.sqrt(1-h*h);f=y=>a-Math.exp(-h*l*y)*((-i+h*l*u)/m*Math.sin(m*y)+u*Math.cos(m*y))}else f=m=>a-Math.exp(-l*m)*(u+(-i+l*u)*m);return m=>{c.current=f(m);let y=m===0?i:kP(f,m,c.current),E=Math.abs(y)<=s,I=Math.abs(a-c.current)<=o;return c.done=E&&I,c.hasReachedTarget=MAt(n,a,c.current),c}}});function w0e(r,e=So){let t,n=v0e,a=r(0),i=[e(a.current)];for(;!a.done&&n<_bn;)a=r(n),i.push(e(a.done?a.target:a.current)),t===void 0&&a.hasReachedTarget&&(t=n),n+=v0e;let s=n-v0e;return i.length===1&&i.push(a.current),{keyframes:i,duration:s/1e3,overshootDuration:(t??s)/1e3}}var v0e,_bn,DAt=ce(()=>{d();p();Nu();v0e=10,_bn=1e4});var _0e=ce(()=>{d();p();BAt();DAt();y0e()});function OAt(r){return lf(r)&&!isNaN(r)}function x0e(r){return _P(r)?parseFloat(r):r}function LAt(r){let e=new WeakMap;return(t={})=>{let n=new Map,a=(s=0,o=100,c=0,u=!1)=>{let l=`${s}-${o}-${c}-${u}`;return n.has(l)||n.set(l,r(Object.assign({from:s,to:o,velocity:c,restSpeed:u?.05:2,restDistance:u?.01:.5},t))),n.get(l)},i=(s,o)=>(e.has(s)||e.set(s,w0e(s,o)),e.get(s));return{createAnimation:(s,o=!0,c,u,l)=>{let h,f,m,y=0,E=So,I=s.length;if(o){E=Fz(s,u?Um.get(Lw(u)):void 0);let S=s[I-1];if(m=x0e(S),I>1&&s[0]!==null)f=x0e(s[0]);else{let L=l?.generator;if(L){let{animation:q,generatorStartTime:W}=l,V=q?.startTime||W||0,K=q?.currentTime||performance.now()-V,H=L(K).current;f=H,y=kP(G=>L(G).current,K,H)}else c&&(f=x0e(c()))}}if(OAt(f)&&OAt(m)){let S=a(f,m,y,u?.includes("scale"));h=Object.assign(Object.assign({},i(S,E)),{easing:"linear"}),l&&(l.generator=S,l.generatorStartTime=performance.now())}return h||(h={easing:"ease",duration:i(a(0,100)).overshootDuration}),h}}}}var FAt=ce(()=>{d();p();_0e();Nu();h0e();fE();Oz()});var mE,qAt=ce(()=>{d();p();_0e();FAt();mE=LAt(b0e)});var T0e=ce(()=>{d();p();SAt();qAt();f0e()});function xbn(r,e={}){return IP([()=>{let t=new Ow(r,[0,1],e);return t.finished.catch(()=>{}),t}],e,e.duration)}function Hm(r,e,t){return(Kp(r)?xbn:m0e)(r,e,t)}var WAt=ce(()=>{d();p();T0e();Nu();n0e()});var UAt=ce(()=>{d();p();T0e();a0e();WAt()});var il,HAt=ce(()=>{d();p();Mw();il=r=>r??uo});var jAt=ce(()=>{d();p();HAt()});var uSt={};cr(uSt,{W3mAccountButton:()=>vE,W3mConnectButton:()=>zw,W3mCoreButton:()=>Hg,W3mModal:()=>UP,W3mNetworkSwitch:()=>Kw});function Ibn(){var r;let e=(r=Fm.state.themeMode)!=null?r:"dark",t={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--w3m-color-fg-1":t.foreground[1],"--w3m-color-fg-2":t.foreground[2],"--w3m-color-fg-3":t.foreground[3],"--w3m-color-bg-1":t.background[1],"--w3m-color-bg-2":t.background[2],"--w3m-color-bg-3":t.background[3],"--w3m-color-overlay":t.overlay}}function kbn(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)"}}function Abn(){let{themeVariables:r}=Fm.state;return{"--w3m-background-image-url":r!=null&&r["--w3m-background-image-url"]?`url(${r["--w3m-background-image-url"]})`:"none"}}function A0e(r,e,t){return r===e?!1:(r-e<0?e-r:r-e)<=t+yvn}function gvn(r,e){let t=Array.prototype.slice.call(cSt.default.create(r,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((a,i,s)=>(s%n===0?a.push([i]):a[a.length-1].push(i))&&a,[])}var cSt,Tbn,zAt,Ebn,Cbn,KAt,qz,or,Sbn,Pbn,Rbn,Wz,yE,Mbn,Nbn,Bbn,AP,Fw,Dbn,Obn,Lbn,E0e,SP,yr,Fbn,qbn,Wbn,GAt,Uz,Ubn,Hbn,jbn,zbn,C0e,Kbn,Gbn,Vbn,$bn,I0e,Ybn,Jbn,Qbn,PP,qw,Zbn,wE,Gw,Xbn,evn,VAt,tvn,rvn,$At,nvn,qe,avn,ivn,svn,k0e,RP,ovn,cvn,uvn,YAt,Hz,lvn,dvn,pvn,jz,gE,hvn,fvn,mvn,JAt,zz,yvn,QAt,gy,bvn,vvn,wvn,_vn,MP,Ww,xvn,Tvn,Evn,ZAt,Kz,Cvn,Ivn,kvn,Avn,S0e,Svn,Pvn,Rvn,P0e,NP,Mvn,Nvn,Bvn,XAt,Gz,Dvn,Ovn,Lvn,Ug,jm,Fvn,qvn,Wvn,R0e,BP,Uvn,Hvn,jvn,eSt,zvn,Kvn,tSt,M0e,Gvn,Vvn,rSt,N0e,$vn,Yvn,Jvn,nSt,Qvn,Zvn,Xvn,B0e,vE,e2n,t2n,r2n,D0e,DP,n2n,a2n,i2n,OP,Uw,sl,s2n,o2n,c2n,u2n,O0e,l2n,d2n,p2n,LP,Hw,h2n,f2n,m2n,L0e,FP,y2n,g2n,b2n,Vz,zw,v2n,w2n,bE,Hg,_2n,x2n,T2n,E2n,F0e,C2n,I2n,k2n,A2n,q0e,S2n,P2n,R2n,M2n,W0e,N2n,B2n,D2n,aSt,UP,O2n,L2n,F2n,$z,Kw,q2n,W2n,U2n,H2n,U0e,j2n,z2n,K2n,iSt,Yz,G2n,V2n,$2n,Y2n,H0e,J2n,Q2n,Z2n,j0e,X2n,ewn,twn,rwn,z0e,nwn,awn,iwn,sSt,Jz,swn,own,cwn,uwn,K0e,lwn,dwn,pwn,hwn,G0e,fwn,mwn,ywn,V0e,qP,gwn,bwn,vwn,wwn,$0e,_wn,xwn,Twn,Y0e,Ewn,Cwn,Iwn,kwn,J0e,Awn,Swn,Pwn,oSt,Qz,Rwn,Mwn,Nwn,WP,Q0e,jw,lSt=ce(()=>{d();p();Ekt();Mkt();Sme();Lkt();Mw();UAt();jAt();cSt=un(kpe(),1),Tbn=Object.defineProperty,zAt=Object.getOwnPropertySymbols,Ebn=Object.prototype.hasOwnProperty,Cbn=Object.prototype.propertyIsEnumerable,KAt=(r,e,t)=>e in r?Tbn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,qz=(r,e)=>{for(var t in e||(e={}))Ebn.call(e,t)&&KAt(r,t,e[t]);if(zAt)for(var t of zAt(e))Cbn.call(e,t)&&KAt(r,t,e[t]);return r};or={setTheme(){let r=document.querySelector(":root"),{themeVariables:e}=Fm.state;if(r){let t=qz(qz(qz(qz({},Ibn()),kbn()),e),Abn());Object.entries(t).forEach(([n,a])=>r.style.setProperty(n,a))}},globalCss:pr`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},Sbn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`,Pbn=Object.defineProperty,Rbn=Object.getOwnPropertyDescriptor,Wz=(r,e,t,n)=>{for(var a=n>1?void 0:n?Rbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Pbn(e,t,a),a},yE=class extends gt{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return _e``}};yE.styles=[or.globalCss,Sbn],Wz([ar()],yE.prototype,"icon",2),Wz([ar()],yE.prototype,"label",2),Wz([ar()],yE.prototype,"onClick",2),yE=Wz([Qt("w3m-box-button")],yE);Mbn=pr`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{background-color:var(--w3m-color-bg-3)}`,Nbn=Object.defineProperty,Bbn=Object.getOwnPropertyDescriptor,AP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Bbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Nbn(e,t,a),a},Fw=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){let r={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0};return _e``}};Fw.styles=[or.globalCss,Mbn],AP([ar()],Fw.prototype,"disabled",2),AP([ar()],Fw.prototype,"iconLeft",2),AP([ar()],Fw.prototype,"iconRight",2),AP([ar()],Fw.prototype,"onClick",2),Fw=AP([Qt("w3m-button")],Fw);Dbn=pr`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}`,Obn=Object.defineProperty,Lbn=Object.getOwnPropertyDescriptor,E0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Lbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Obn(e,t,a),a},SP=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let r={"w3m-secondary":this.variant==="secondary"};return _e``}};SP.styles=[or.globalCss,Dbn],E0e([ar()],SP.prototype,"disabled",2),E0e([ar()],SP.prototype,"variant",2),SP=E0e([Qt("w3m-button-big")],SP);yr={CROSS_ICON:Dr``,WALLET_CONNECT_LOGO:Dr``,WALLET_CONNECT_ICON:Dr``,WALLET_CONNECT_ICON_COLORED:Dr``,BACK_ICON:Dr``,COPY_ICON:Dr``,RETRY_ICON:Dr``,DESKTOP_ICON:Dr``,MOBILE_ICON:Dr``,ARROW_DOWN_ICON:Dr``,ARROW_UP_RIGHT_ICON:Dr``,ARROW_RIGHT_ICON:Dr``,QRCODE_ICON:Dr``,SCAN_ICON:Dr``,CHECKMARK_ICON:Dr``,HELP_ETH_IMG:Dr``,HELP_PAINTING_IMG:Dr``,HELP_CHART_IMG:Dr``,HELP_KEY_IMG:Dr``,HELP_USER_IMG:Dr``,HELP_LOCK_IMG:Dr``,HELP_COMPAS_IMG:Dr``,HELP_NOUN_IMG:Dr``,HELP_DAO_IMG:Dr``,SEARCH_ICON:Dr``,HELP_ICON:Dr``,WALLET_ICON:Dr``,NETWORK_PLACEHOLDER:Dr``,WALLET_PLACEHOLDER:Dr``,TOKEN_PLACEHOLDER:Dr``,ACCOUNT_COPY:Dr``,ACCOUNT_DISCONNECT:Dr``},Fbn=pr`.w3m-custom-placeholder{inset:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9)}.w3m-custom-placeholder{background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}.w3m-action-btn{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}.w3m-action-btn:hover{background-color:var(--w3m-color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--w3m-color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}`,qbn=Object.defineProperty,Wbn=Object.getOwnPropertyDescriptor,GAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Wbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&qbn(e,t,a),a},Uz=class extends gt{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=Br.subscribe(r=>{this.isHelp=r.view==="Help"})}disconnectedCallback(){var r;(r=this.unsubscribeRouter)==null||r.call(this)}onHelp(){Br.push("Help")}logoTemplate(){var r;let e=(r=Fm.state.themeVariables)==null?void 0:r["--w3m-logo-image-url"];return e?_e``:yr.WALLET_CONNECT_LOGO}render(){let r={"w3m-actions":!0,"w3m-help-active":this.isHelp};return _e`
${this.logoTemplate()}
`}};Uz.styles=[or.globalCss,Fbn],GAt([_n()],Uz.prototype,"isHelp",2),Uz=GAt([Qt("w3m-modal-backcard")],Uz);Ubn=pr`main{padding:20px;padding-top:0;width:100%}`,Hbn=Object.defineProperty,jbn=Object.getOwnPropertyDescriptor,zbn=(r,e,t,n)=>{for(var a=n>1?void 0:n?jbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Hbn(e,t,a),a},C0e=class extends gt{render(){return _e`
`}};C0e.styles=[or.globalCss,Ubn],C0e=zbn([Qt("w3m-modal-content")],C0e);Kbn=pr`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`,Gbn=Object.defineProperty,Vbn=Object.getOwnPropertyDescriptor,$bn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Vbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Gbn(e,t,a),a},I0e=class extends gt{render(){return _e`
`}};I0e.styles=[or.globalCss,Kbn],I0e=$bn([Qt("w3m-modal-footer")],I0e);Ybn=pr`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`,Jbn=Object.defineProperty,Qbn=Object.getOwnPropertyDescriptor,PP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Qbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Jbn(e,t,a),a},qw=class extends gt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return _e``}actionBtnTemplate(){return _e``}render(){let r={"w3m-border":this.border},e=Br.state.history.length>1,t=this.title?_e`${this.title}`:_e``;return _e`
${e?this.backBtnTemplate():null} ${t} ${this.onAction?this.actionBtnTemplate():null}
`}};qw.styles=[or.globalCss,Ybn],PP([ar()],qw.prototype,"title",2),PP([ar()],qw.prototype,"onAction",2),PP([ar()],qw.prototype,"actionIcon",2),PP([ar()],qw.prototype,"border",2),qw=PP([Qt("w3m-modal-header")],qw);Zbn={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00"},wE=(r=>(r.metaMask="metaMask",r.trust="trust",r.phantom="phantom",r.brave="brave",r.spotEthWallet="spotEthWallet",r.exodus="exodus",r.tokenPocket="tokenPocket",r.frame="frame",r.tally="tally",r.coinbaseWallet="coinbaseWallet",r.core="core",r.bitkeep="bitkeep",r.mathWallet="mathWallet",r.opera="opera",r.tokenary="tokenary",r["1inch"]="1inch",r.kuCoinWallet="kuCoinWallet",r.ledger="ledger",r))(wE||{}),Gw={injectedPreset:{metaMask:{name:"MetaMask",icon:"619537c0-2ff3-4c78-9ed8-a05e7567f300",url:"https://metamask.io",isMobile:!0,isInjected:!0},trust:{name:"Trust",icon:"0528ee7e-16d1-4089-21e3-bbfb41933100",url:"https://trustwallet.com",isMobile:!0,isInjected:!0},spotEthWallet:{name:"Spot",icon:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",url:"https://www.spot-wallet.com",isMobile:!0,isInjected:!0},phantom:{name:"Phantom",icon:"62471a22-33cb-4e65-5b54-c3d9ea24b900",url:"https://phantom.app",isInjected:!0},core:{name:"Core",icon:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",url:"https://core.app",isMobile:!0,isInjected:!0},bitkeep:{name:"BitKeep",icon:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",url:"https://bitkeep.com",isMobile:!0,isInjected:!0},tokenPocket:{name:"TokenPocket",icon:"f3119826-4ef5-4d31-4789-d4ae5c18e400",url:"https://www.tokenpocket.pro",isMobile:!0,isInjected:!0},mathWallet:{name:"MathWallet",icon:"26a8f588-3231-4411-60ce-5bb6b805a700",url:"https://mathwallet.org",isMobile:!0,isInjected:!0},exodus:{name:"Exodus",icon:"4c16cad4-cac9-4643-6726-c696efaf5200",url:"https://www.exodus.com",isMobile:!0,isDesktop:!0,isInjected:!0},kuCoinWallet:{name:"KuCoin Wallet",icon:"1e47340b-8fd7-4ad6-17e7-b2bd651fae00",url:"https://kuwallet.com",isMobile:!0,isInjected:!0},ledger:{name:"Ledger",icon:"a7f416de-aa03-4c5e-3280-ab49269aef00",url:"https://www.ledger.com",isDesktop:!0},brave:{name:"Brave",icon:"125e828e-9936-4451-a8f2-949c119b7400",url:"https://brave.com/wallet",isInjected:!0},frame:{name:"Frame",icon:"cd492418-ea85-4ef1-aeed-1c9e20b58900",url:"https://frame.sh",isInjected:!0},tally:{name:"Tally",icon:"98d2620c-9fc8-4a1c-31bc-78d59d00a300",url:"https://tallyho.org",isInjected:!0},coinbaseWallet:{name:"Coinbase",icon:"f8068a7f-83d7-4190-1f94-78154a12c600",url:"https://www.coinbase.com/wallet",isInjected:!0},opera:{name:"Opera",icon:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",url:"https://www.opera.com/crypto",isInjected:!0},tokenary:{name:"Tokenary",icon:"5e481041-dc3c-4a81-373a-76bbde91b800",url:"https://tokenary.io",isDesktop:!0,isInjected:!0},["1inch"]:{name:"1inch Wallet",icon:"dce1ee99-403f-44a9-9f94-20de30616500",url:"https://1inch.io/wallet",isMobile:!0}},getInjectedId(r){if(r.toUpperCase()!=="INJECTED"&&r.length)return r;let{ethereum:e,spotEthWallet:t,coinbaseWalletExtension:n}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":t?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isTally?"tally":n?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch":e.isKuCoinWallet?"kuCoinWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},getInjectedName(r){var e,t;if(r.length&&r.toUpperCase()!=="INJECTED")return r;let n=Gw.getInjectedId("");return(t=(e=Gw.injectedPreset[n])==null?void 0:e.name)!=null?t:"Injected"}},Xbn={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},evn=Object.defineProperty,VAt=Object.getOwnPropertySymbols,tvn=Object.prototype.hasOwnProperty,rvn=Object.prototype.propertyIsEnumerable,$At=(r,e,t)=>e in r?evn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,nvn=(r,e)=>{for(var t in e||(e={}))tvn.call(e,t)&&$At(r,t,e[t]);if(VAt)for(var t of VAt(e))rvn.call(e,t)&&$At(r,t,e[t]);return r},qe={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",rejectStandaloneButtonComponent(){let{isStandalone:r}=yt.state;if(r)throw new Error("Web3Modal button components are not available in standalone mode.")},getShadowRootElement(r,e){let t=r.renderRoot.querySelector(e);if(!t)throw new Error(`${e} not found`);return t},getWalletId(r){return Gw.getInjectedId(r)},getWalletIcon(r){var e,t;let n=(e=Gw.injectedPreset[r])==null?void 0:e.icon,{projectId:a,walletImages:i}=qs.state;return(t=i?.[r])!=null?t:a&&n?oo.getImageUrl(n):""},getWalletName(r,e=!1){let t=Gw.getInjectedName(r);return e?t.split(" ")[0]:t},getChainIcon(r){var e;let t=Zbn[r],{projectId:n,chainImages:a}=qs.state;return(e=a?.[r])!=null?e:n&&t?oo.getImageUrl(t):""},getTokenIcon(r){var e,t;let n=(e=Xbn[r])==null?void 0:e.icon,{projectId:a,tokenImages:i}=qs.state;return(t=i?.[r])!=null?t:a&&n?oo.getImageUrl(n):""},isMobileAnimation(){return window.innerWidth<=qe.MOBILE_BREAKPOINT},async preloadImage(r){let e=new Promise((t,n)=>{let a=new Image;a.onload=t,a.onerror=n,a.src=r});return Promise.race([e,Sr.wait(3e3)])},getErrorMessage(r){return r instanceof Error?r.message:"Unknown Error"},debounce(r,e=500){let t;return(...n)=>{function a(){r(...n)}t&&clearTimeout(t),t=setTimeout(a,e)}},async handleMobileLinking(r){Sr.removeWalletConnectDeepLink();let{standaloneUri:e,selectedChain:t}=yt.state,{links:n,name:a}=r;function i(s){let o="";n!=null&&n.universal?o=Sr.formatUniversalUrl(n.universal,s,a):n!=null&&n.native&&(o=Sr.formatNativeUrl(n.native,s,a)),Sr.openHref(o,"_self")}e?(qe.setRecentWallet(r),i(e)):(await zi.client().connectWalletConnect(s=>{i(s)},t?.id),qe.setRecentWallet(r),co.close())},async handleAndroidLinking(){Sr.removeWalletConnectDeepLink();let{standaloneUri:r,selectedChain:e}=yt.state;r?Sr.openHref(r,"_self"):(await zi.client().connectWalletConnect(t=>{Sr.setWalletConnectAndroidDeepLink(t),Sr.openHref(t,"_self")},e?.id),co.close())},async handleUriCopy(){let{standaloneUri:r}=yt.state;if(r)await navigator.clipboard.writeText(r);else{let e=zi.client().walletConnectUri;await navigator.clipboard.writeText(e)}Nc.openToast("Link copied","success")},async handleConnectorConnection(r,e){try{let{selectedChain:t}=yt.state;await zi.client().connectConnector(r,t?.id),co.close()}catch(t){console.error(t),e?e():Nc.openToast(qe.getErrorMessage(t),"error")}},getCustomWallets(){var r;let{desktopWallets:e,mobileWallets:t}=qs.state;return(r=Sr.isMobile()?t:e)!=null?r:[]},getCustomImageUrls(){let{chainImages:r,walletImages:e}=qs.state,t=Object.values(r??{}),n=Object.values(e??{});return Object.values([...t,...n])},getConnectorImageUrls(){return zi.client().getConnectors().map(({id:r})=>Gw.getInjectedId(r)).map(r=>qe.getWalletIcon(r))},truncate(r,e=8){return r.length<=e?r:`${r.substring(0,4)}...${r.substring(r.length-4)}`},generateAvatarColors(r){var e;let t=(e=r.match(/.{1,7}/g))==null?void 0:e.splice(0,5),n=[];t?.forEach(i=>{let s=0;for(let c=0;c>c*8&255;o[c]=u}n.push(`rgb(${o[0]}, ${o[1]}, ${o[2]})`)});let a=document.querySelector(":root");if(a){let i={"--w3m-color-av-1":n[0],"--w3m-color-av-2":n[1],"--w3m-color-av-3":n[2],"--w3m-color-av-4":n[3],"--w3m-color-av-5":n[4]};Object.entries(i).forEach(([s,o])=>a.style.setProperty(s,o))}},setRecentWallet(r){let{walletConnectVersion:e}=yt.state;localStorage.setItem(qe.W3M_RECENT_WALLET,JSON.stringify({[e]:r}))},getRecentWallet(){let r=localStorage.getItem(qe.W3M_RECENT_WALLET);if(r){let{walletConnectVersion:e}=yt.state,t=JSON.parse(r);if(t[e])return t[e]}},getExtensionWallets(){let r=[];for(let[e,t]of Object.entries(Gw.injectedPreset))t!=null&&t.isInjected&&!t.isDesktop&&r.push(nvn({id:e},t));return r},caseSafeIncludes(r,e){return r.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){Sr.openHref(qe.EXPLORER_WALLET_URL,"_blank")}},avn=pr`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`,ivn=Object.defineProperty,svn=Object.getOwnPropertyDescriptor,k0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?svn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ivn(e,t,a),a},RP=class extends gt{constructor(){super(),this.view=Br.state.view,this.prevView=Br.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=Br.subscribe(r=>{this.view!==r.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([r])=>{let e=`${r.contentRect.height}px`;this.oldHeight!=="0px"&&(Hm(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),Hm(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var r,e;(r=this.unsubscribe)==null||r.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return qe.getShadowRootElement(this,".w3m-router")}get contentEl(){return qe.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return _e``;case"SelectNetwork":return _e``;case"InjectedConnector":return _e``;case"InstallConnector":return _e``;case"GetWallet":return _e``;case"DesktopConnector":return _e``;case"WalletExplorer":return _e``;case"Qrcode":return _e``;case"Help":return _e``;case"Account":return _e``;case"SwitchNetwork":return _e``;case"Connectors":return _e``;default:return _e`
Not Found
`}}async onChangeRoute(){await Hm(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=Br.state.view}render(){return _e`
${this.viewTemplate()}
`}};RP.styles=[or.globalCss,avn],k0e([_n()],RP.prototype,"view",2),k0e([_n()],RP.prototype,"prevView",2),RP=k0e([Qt("w3m-modal-router")],RP);ovn=pr`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`,cvn=Object.defineProperty,uvn=Object.getOwnPropertyDescriptor,YAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?uvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&cvn(e,t,a),a},Hz=class extends gt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Nc.subscribe(r=>{r.open?(this.open=!0,this.timeout=setTimeout(()=>Nc.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),clearTimeout(this.timeout),Nc.closeToast()}render(){let{message:r,variant:e}=Nc.state,t={"w3m-success":e==="success","w3m-error":e==="error"};return this.open?_e`
${e==="success"?yr.CHECKMARK_ICON:null} ${e==="error"?yr.CROSS_ICON:null}${r}
`:null}};Hz.styles=[or.globalCss,ovn],YAt([_n()],Hz.prototype,"open",2),Hz=YAt([Qt("w3m-modal-toast")],Hz);lvn=pr`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:hover{background-color:var(--w3m-color-overlay)}`,dvn=Object.defineProperty,pvn=Object.getOwnPropertyDescriptor,jz=(r,e,t,n)=>{for(var a=n>1?void 0:n?pvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&dvn(e,t,a),a},gE=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return _e``}};gE.styles=[or.globalCss,lvn],jz([ar()],gE.prototype,"onClick",2),jz([ar()],gE.prototype,"name",2),jz([ar()],gE.prototype,"chainId",2),gE=jz([Qt("w3m-network-button")],gE);hvn=pr`div{width:inherit;height:inherit}.polygon-stroke{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}`,fvn=Object.defineProperty,mvn=Object.getOwnPropertyDescriptor,JAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?mvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&fvn(e,t,a),a},zz=class extends gt{constructor(){super(...arguments),this.chainId=""}render(){let r=qe.getChainIcon(this.chainId);return r?_e`
`:_e`${yr.NETWORK_PLACEHOLDER}`}};zz.styles=[or.globalCss,hvn],JAt([ar()],zz.prototype,"chainId",2),zz=JAt([Qt("w3m-network-image")],zz);yvn=.1,QAt=2.5,gy=7;bvn={generate(r,e,t,n){let a=n==="light"?"#141414":"#fff",i=n==="light"?"#fff":"#141414",s=[],o=gvn(r,"Q"),c=e/o.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:E,y:I})=>{let S=(o.length-gy)*c*E,L=(o.length-gy)*c*I,q=.32;for(let W=0;W`)}});let l=Math.floor((t+25)/c),h=o.length/2-l/2,f=o.length/2+l/2-1,m=[];o.forEach((E,I)=>{E.forEach((S,L)=>{if(o[I][L]&&!(Io.length-(gy+1)&&Lo.length-(gy+1))&&!(I>h&&Ih&&L{y[E]?y[E].push(I):y[E]=[I]}),Object.entries(y).map(([E,I])=>{let S=I.filter(L=>I.every(q=>!A0e(L,q,c)));return[Number(E),S]}).forEach(([E,I])=>{I.forEach(S=>{s.push(Dr``)})}),Object.entries(y).filter(([E,I])=>I.length>1).map(([E,I])=>{let S=I.filter(L=>I.some(q=>A0e(L,q,c)));return[Number(E),S]}).map(([E,I])=>{I.sort((L,q)=>LW.some(V=>A0e(L,V,c)));q?q.push(L):S.push([L])}return[E,S.map(L=>[L[0],L[L.length-1]])]}).forEach(([E,I])=>{I.forEach(([S,L])=>{s.push(Dr``)})}),s}},vvn=pr`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1;animation:fadeIn ease .2s}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`,wvn=Object.defineProperty,_vn=Object.getOwnPropertyDescriptor,MP=(r,e,t,n)=>{for(var a=n>1?void 0:n?_vn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&wvn(e,t,a),a},Ww=class extends gt{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var r;let e=(r=Fm.state.themeMode)!=null?r:"light";return Dr`${bvn.generate(this.uri,this.size,this.size/4,e)}`}render(){return _e`
${this.walletId||this.logoSrc?_e``:yr.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};Ww.styles=[or.globalCss,vvn],MP([ar()],Ww.prototype,"uri",2),MP([ar({type:Number})],Ww.prototype,"size",2),MP([ar()],Ww.prototype,"logoSrc",2),MP([ar()],Ww.prototype,"walletId",2),Ww=MP([Qt("w3m-qrcode")],Ww);xvn=pr`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:transparent;position:absolute;background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--w3m-color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`,Tvn=Object.defineProperty,Evn=Object.getOwnPropertyDescriptor,ZAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Evn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Tvn(e,t,a),a},Kz=class extends gt{constructor(){super(...arguments),this.onChange=()=>null}render(){let r=Sr.isMobile()?"Search mobile wallets":"Search desktop wallets";return _e`
${yr.SEARCH_ICON}${r}
`}};Kz.styles=[or.globalCss,xvn],ZAt([ar()],Kz.prototype,"onChange",2),Kz=ZAt([Qt("w3m-search-input")],Kz);Cvn=pr`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--w3m-accent-color)}`,Ivn=Object.defineProperty,kvn=Object.getOwnPropertyDescriptor,Avn=(r,e,t,n)=>{for(var a=n>1?void 0:n?kvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ivn(e,t,a),a},S0e=class extends gt{render(){return _e``}};S0e.styles=[or.globalCss,Cvn],S0e=Avn([Qt("w3m-spinner")],S0e);Svn=pr`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:'tnum' on,'lnum' on,'case' on}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`,Pvn=Object.defineProperty,Rvn=Object.getOwnPropertyDescriptor,P0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Rvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Pvn(e,t,a),a},NP=class extends gt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let r={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return _e``}};NP.styles=[or.globalCss,Svn],P0e([ar()],NP.prototype,"variant",2),P0e([ar()],NP.prototype,"color",2),NP=P0e([Qt("w3m-text")],NP);Mvn=pr`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`,Nvn=Object.defineProperty,Bvn=Object.getOwnPropertyDescriptor,XAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Bvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Nvn(e,t,a),a},Gz=class extends gt{constructor(){super(...arguments),this.symbol=void 0}render(){var r;let e=qe.getTokenIcon((r=this.symbol)!=null?r:"");return e?_e`
${this.id}
`:yr.TOKEN_PLACEHOLDER}};Gz.styles=[or.globalCss,Mvn],XAt([ar()],Gz.prototype,"symbol",2),Gz=XAt([Qt("w3m-token-image")],Gz);Dvn=pr`button{transition:all .2s ease;width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:hover{background-color:var(--w3m-color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`,Ovn=Object.defineProperty,Lvn=Object.getOwnPropertyDescriptor,Ug=(r,e,t,n)=>{for(var a=n>1?void 0:n?Lvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ovn(e,t,a),a},jm=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?_e`RECENT`:this.installed?_e`INSTALLED`:null}render(){var r;return _e``}};jm.styles=[or.globalCss,Dvn],Ug([ar()],jm.prototype,"onClick",2),Ug([ar()],jm.prototype,"name",2),Ug([ar()],jm.prototype,"walletId",2),Ug([ar()],jm.prototype,"label",2),Ug([ar()],jm.prototype,"src",2),Ug([ar()],jm.prototype,"installed",2),Ug([ar()],jm.prototype,"recent",2),jm=Ug([Qt("w3m-wallet-button")],jm);Fvn=pr`div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,qvn=Object.defineProperty,Wvn=Object.getOwnPropertyDescriptor,R0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Wvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&qvn(e,t,a),a},BP=class extends gt{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var r;let e=qe.getWalletId((r=this.walletId)!=null?r:""),t=qe.getWalletId(e),n=this.src?this.src:qe.getWalletIcon(t);return _e`${n.length?_e`
${this.id}
`:yr.WALLET_PLACEHOLDER}`}};BP.styles=[or.globalCss,Fvn],R0e([ar()],BP.prototype,"walletId",2),R0e([ar()],BP.prototype,"src",2),BP=R0e([Qt("w3m-wallet-image")],BP);Uvn=Object.defineProperty,Hvn=Object.getOwnPropertyDescriptor,jvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Hvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Uvn(e,t,a),a},eSt=class extends gt{constructor(){super(),this.unwatchAccount=void 0,$a.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=zi.client().watchAccount(r=>{let{address:e}=$a.state;r.address!==e&&(this.fetchProfile(r.address),this.fetchBalance(r.address)),$a.setAddress(r.address),$a.setIsConnected(r.isConnected)})}disconnectedCallback(){var r;(r=this.unwatchAccount)==null||r.call(this)}async fetchProfile(r){var e;let t=(e=yt.state.chains)==null?void 0:e.find(n=>n.id===1);if(qs.state.enableAccountView&&t)try{await $a.fetchProfile(qe.preloadImage,r)}catch(n){console.error(n),Nc.openToast(qe.getErrorMessage(n),"error")}}async fetchBalance(r){if(qs.state.enableAccountView)try{await $a.fetchBalance(r)}catch(e){console.error(e),Nc.openToast(qe.getErrorMessage(e),"error")}}};eSt=jvn([Qt("w3m-account-context")],eSt);zvn=Object.defineProperty,Kvn=Object.getOwnPropertyDescriptor,tSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Kvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&zvn(e,t,a),a},M0e=class extends gt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(r){try{r!=null&&r.length&&await Promise.all(r.map(async e=>qe.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images")}}async preloadListings(){var r;if(qs.state.enableExplorer){let{standaloneChains:e,chains:t,walletConnectVersion:n}=yt.state,a=e?.join(",");await Promise.all([oo.getPreviewWallets({page:1,entries:10,chains:a,device:Sr.isMobile()?"mobile":"desktop",version:n}),oo.getRecomendedWallets()]),yt.setIsDataLoaded(!0);let{previewWallets:i,recomendedWallets:s}=oo.state,o=(r=t?.map(u=>qe.getChainIcon(u.id)))!=null?r:[],c=[...i,...s].map(u=>u.image_url.lg);await this.loadImages([...o,...c])}else yt.setIsDataLoaded(!0)}async preloadCustomImages(){let r=qe.getCustomImageUrls();await this.loadImages(r)}async preloadConnectorImages(){if(!yt.state.isStandalone){let r=qe.getConnectorImageUrls();await this.loadImages(r)}}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch(r){console.error(r),Nc.openToast("Failed preloading","error")}}};tSt([_n()],M0e.prototype,"preload",2),M0e=tSt([Qt("w3m-explorer-context")],M0e);Gvn=Object.defineProperty,Vvn=Object.getOwnPropertyDescriptor,rSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Vvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Gvn(e,t,a),a},N0e=class extends gt{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;let r=yt.getSelectedChain();this.activeChainId=r?.id,this.unwatchNetwork=zi.client().watchNetwork(e=>{let t=e.chain;t&&this.activeChainId!==t.id&&(yt.setSelectedChain(t),this.activeChainId=t.id,$a.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var r;(r=this.unwatchNetwork)==null||r.call(this)}async fetchBalance(){if(qs.state.enableAccountView)try{await $a.fetchBalance()}catch(r){console.error(r),Nc.openToast(qe.getErrorMessage(r),"error")}}};rSt([_n()],N0e.prototype,"activeChainId",2),N0e=rSt([Qt("w3m-network-context")],N0e);$vn=Object.defineProperty,Yvn=Object.getOwnPropertyDescriptor,Jvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Yvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&$vn(e,t,a),a},nSt=class extends gt{constructor(){super(),this.unsubscribeTheme=void 0,or.setTheme(),this.unsubscribeTheme=Fm.subscribe(or.setTheme)}disconnectedCallback(){var r;(r=this.unsubscribeTheme)==null||r.call(this)}};nSt=Jvn([Qt("w3m-theme-context")],nSt);Qvn=pr`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`,Zvn=Object.defineProperty,Xvn=Object.getOwnPropertyDescriptor,B0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Xvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Zvn(e,t,a),a},vE=class extends gt{constructor(){super(),this.balance="hide",this.avatar="show",qe.rejectStandaloneButtonComponent()}onOpen(){let{isStandalone:r}=yt.state;r||co.open({route:"Account"})}accountTemplate(){let r=this.avatar==="show";return _e`${r?_e``:null}`}render(){let r=this.balance==="show",e={"w3m-no-avatar":this.avatar==="hide"};return r?_e`
`:_e`${this.accountTemplate()}`}};vE.styles=[or.globalCss,Qvn],B0e([ar()],vE.prototype,"balance",2),B0e([ar()],vE.prototype,"avatar",2),vE=B0e([Qt("w3m-account-button")],vE);e2n=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`,t2n=Object.defineProperty,r2n=Object.getOwnPropertyDescriptor,D0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?r2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&t2n(e,t,a),a},DP=class extends gt{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;let{selectedChain:r}=yt.state;this.chainId=r?.id.toString(),this.label=r?.name,this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.chainId=e?.id.toString(),this.label=e?.name})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onClick(){Br.push("SelectNetwork")}render(){let{chains:r,selectedChain:e}=yt.state,t=r?.map(i=>i.id),n=e&&t?.includes(e.id),a=r&&r.length<=1&&n;return _e``}};DP.styles=[or.globalCss,e2n],D0e([_n()],DP.prototype,"chainId",2),D0e([_n()],DP.prototype,"label",2),DP=D0e([Qt("w3m-account-network-button")],DP);n2n=pr`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`,a2n=Object.defineProperty,i2n=Object.getOwnPropertyDescriptor,OP=(r,e,t,n)=>{for(var a=n>1?void 0:n?i2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&a2n(e,t,a),a},Uw=class extends gt{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=$a.state.address,this.name=$a.state.profileName,this.loading=!!$a.state.profileLoading,this.unsubscribeAccount=$a.subscribe(({address:r,profileName:e,profileLoading:t})=>{this.address=r,this.name=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){var r;let e=this.variant==="button",t={"w3m-loading":this.loading};return _e`${this.name?this.name:qe.truncate((r=this.address)!=null?r:"")}`}};Uw.styles=[or.globalCss,n2n],OP([_n()],Uw.prototype,"address",2),OP([_n()],Uw.prototype,"name",2),OP([_n()],Uw.prototype,"loading",2),OP([ar()],Uw.prototype,"variant",2),Uw=OP([Qt("w3m-address-text")],Uw);sl={allowedExplorerListings(r){let{explorerAllowList:e,explorerDenyList:t}=qs.state,n=[...r];return e&&(n=n.filter(a=>e.includes(a.id))),t&&(n=n.filter(a=>!t.includes(a.id))),n},walletsWithInjected(r){let e=[...r??[]];if(window.ethereum){let t=qe.getWalletName("");e=e.filter(({name:n})=>!qe.caseSafeIncludes(n,t))}return e},connectorWallets(){let{isStandalone:r}=yt.state;if(r)return[];let e=zi.client().getConnectors();return!window.ethereum&&Sr.isMobile()&&(e=e.filter(({id:t})=>t!=="injected"&&t!==wE.metaMask)),e},walletTemplatesWithRecent(r,e){let t=[...r];if(e){let n=qe.getRecentWallet();t=t.filter(a=>!a.values.includes(n?.name)),t.splice(1,0,e)}return t},deduplicateExplorerListingsFromConnectors(r){let{isStandalone:e}=yt.state;if(e)return r;let t=zi.client().getConnectors().map(({name:n})=>n.toUpperCase());return r.filter(({name:n})=>!t.includes(n.toUpperCase()))}},s2n=pr`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 10),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px}.w3m-slider::after,.w3m-slider::before{content:'';height:100%;width:50px;z-index:2;position:absolute;background:linear-gradient(to right,var(--w3m-color-bg-1) 0,transparent 100%);top:0}.w3m-slider::before{left:0}.w3m-slider::after{right:0;transform:rotateZ(180deg)}.w3m-track{display:flex;width:calc(70px * 20);animation:scroll 20s linear infinite}.w3m-action{padding:30px 0 10px 0;display:flex;justify-content:center;align-items:center;flex-direction:column}.w3m-action w3m-button-big:last-child{margin-top:10px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;box-shadow:0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08);border-radius:15px}w3m-button-big{margin:0 5px}`,o2n=Object.defineProperty,c2n=Object.getOwnPropertyDescriptor,u2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?c2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&o2n(e,t,a),a},O0e=class extends gt{onGoToQrcode(){Br.push("Qrcode")}onGoToConnectors(){Br.push("Connectors")}onGoToGetWallet(){Br.push("GetWallet")}getConnectors(){let r=sl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==wE.metaMask)),r}render(){let{previewWallets:r}=oo.state,e=r.length,t=[...r,...r],n=this.getConnectors().length>0;return _e`${e?_e`
${t.map(({image_url:a})=>_e``)}
`:null}
${n?"WalletConnect":"Select Wallet"}${n?_e`Other`:null}
I don’t have a wallet
`}};O0e.styles=[or.globalCss,s2n],O0e=u2n([Qt("w3m-android-wallet-selection")],O0e);l2n=pr`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`,d2n=Object.defineProperty,p2n=Object.getOwnPropertyDescriptor,LP=(r,e,t,n)=>{for(var a=n>1?void 0:n?p2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&d2n(e,t,a),a},Hw=class extends gt{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=$a.state.address,this.avatar=$a.state.profileAvatar,this.loading=!!$a.state.profileLoading,this.unsubscribeAccount=$a.subscribe(({address:r,profileAvatar:e,profileLoading:t})=>{this.address=r,this.avatar=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?_e``:this.address?(qe.generateAvatarColors(this.address),_e`
${this.loading?_e`
`:null}
`):null}};Hw.styles=[or.globalCss,l2n],LP([_n()],Hw.prototype,"address",2),LP([_n()],Hw.prototype,"avatar",2),LP([_n()],Hw.prototype,"loading",2),LP([ar()],Hw.prototype,"size",2),Hw=LP([Qt("w3m-avatar")],Hw);h2n=pr`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`,f2n=Object.defineProperty,m2n=Object.getOwnPropertyDescriptor,L0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?m2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&f2n(e,t,a),a},FP=class extends gt{constructor(){var r,e;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(r=$a.state.balance)==null?void 0:r.symbol,this.amount=(e=$a.state.balance)==null?void 0:e.amount,this.unsubscribeAccount=$a.subscribe(({balance:t})=>{this.symbol=t?.symbol,this.amount=t?.amount})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r="_._";return this.amount==="0.0"&&(r=0),this.amount&&this.amount.length>6&&(r=parseFloat(this.amount).toFixed(3)),_e`
${r} ${this.symbol}
`}};FP.styles=[or.globalCss,h2n],L0e([_n()],FP.prototype,"symbol",2),L0e([_n()],FP.prototype,"amount",2),FP=L0e([Qt("w3m-balance")],FP);y2n=pr`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`,g2n=Object.defineProperty,b2n=Object.getOwnPropertyDescriptor,Vz=(r,e,t,n)=>{for(var a=n>1?void 0:n?b2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&g2n(e,t,a),a},zw=class extends gt{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,qe.rejectStandaloneButtonComponent(),this.modalUnsub=co.subscribe(r=>{r.open&&(this.loading=!0),r.open||(this.loading=!1)})}disconnectedCallback(){var r;(r=this.modalUnsub)==null||r.call(this)}iconTemplate(){return this.icon==="show"?yr.WALLET_CONNECT_ICON:null}onClick(){$a.state.isConnected?this.onDisconnect():this.onConnect()}onConnect(){this.loading=!0;let{enableNetworkView:r}=qs.state,{chains:e,selectedChain:t}=yt.state,n=e?.length&&e.length>1;r||n&&!t?co.open({route:"SelectNetwork"}):co.open({route:"ConnectWallet"})}onDisconnect(){zi.client().disconnect(),$a.resetAccount()}render(){return _e`${this.loading?_e`Connecting...`:_e`${this.iconTemplate()}${this.label}`}`}};zw.styles=[or.globalCss,y2n],Vz([_n()],zw.prototype,"loading",2),Vz([ar()],zw.prototype,"label",2),Vz([ar()],zw.prototype,"icon",2),zw=Vz([Qt("w3m-connect-button")],zw);v2n=Object.defineProperty,w2n=Object.getOwnPropertyDescriptor,bE=(r,e,t,n)=>{for(var a=n>1?void 0:n?w2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&v2n(e,t,a),a},Hg=class extends gt{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,qe.rejectStandaloneButtonComponent(),this.isConnected=$a.state.isConnected,this.unsubscribeAccount=$a.subscribe(({isConnected:r})=>{this.isConnected=r})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let{enableAccountView:r}=qs.state,e=il(this.balance),t=il(this.label),n=il(this.icon),a=il(this.avatar);return this.isConnected&&r?_e``:_e``}};bE([_n()],Hg.prototype,"isConnected",2),bE([ar()],Hg.prototype,"label",2),bE([ar()],Hg.prototype,"icon",2),bE([ar()],Hg.prototype,"avatar",2),bE([ar()],Hg.prototype,"balance",2),Hg=bE([Qt("w3m-core-button")],Hg);_2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`,x2n=Object.defineProperty,T2n=Object.getOwnPropertyDescriptor,E2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?T2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&x2n(e,t,a),a},F0e=class extends gt{onDesktopWallet(r){Br.push("DesktopConnector",{DesktopConnector:r})}onInjectedWallet(){Br.push("InjectedConnector")}onInstallConnector(){Br.push("InstallConnector",{InstallConnector:{id:"metaMask",name:"MetaMask",isMobile:!0,url:"https://metamask.io"}})}async onConnectorWallet(r){window.ethereum?r==="injected"||r===wE.metaMask?this.onInjectedWallet():await qe.handleConnectorConnection(r):this.onInstallConnector()}desktopWalletsTemplate(){let{desktopWallets:r}=qs.state;return r?.map(({id:e,name:t,links:{universal:n,native:a}})=>_e``)}previewWalletsTemplate(){let r=sl.allowedExplorerListings(oo.state.previewWallets);return r=sl.deduplicateExplorerListingsFromConnectors(r),r.map(({name:e,desktop:{universal:t,native:n},homepage:a,image_url:i,id:s})=>_e``)}connectorWalletsTemplate(){return sl.connectorWallets().map(({id:r,name:e,ready:t})=>_e``)}recentWalletTemplate(){let r=qe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return _e``}render(){let{standaloneUri:r}=yt.state,e=this.desktopWalletsTemplate(),t=this.previewWalletsTemplate(),n=this.connectorWalletsTemplate(),a=this.recentWalletTemplate(),i=[...e??[],...t],s=[...n,...i],o=sl.walletTemplatesWithRecent(s,a),c=sl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>4,h=[];l?h=u.slice(0,3):h=u;let f=!!h.length;return _e`
${yr.MOBILE_ICON}Mobile
${yr.SCAN_ICON}Scan with your wallet
${f?_e`
${yr.DESKTOP_ICON}Desktop
${h} ${l?_e``:null}
`:null}`}};F0e.styles=[or.globalCss,_2n],F0e=E2n([Qt("w3m-desktop-wallet-selection")],F0e);C2n=pr`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out}a:hover{opacity:.8}`,I2n=Object.defineProperty,k2n=Object.getOwnPropertyDescriptor,A2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?k2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&I2n(e,t,a),a},q0e=class extends gt{render(){let{termsOfServiceUrl:r,privacyPolicyUrl:e}=qs.state;return r??e?_e`
By connecting your wallet to this app, you agree to the app's
${r?_e`Terms of Service`:null} ${r&&e?"and":null} ${e?_e`Privacy Policy`:null}
`:null}};q0e.styles=[or.globalCss,C2n],q0e=A2n([Qt("w3m-legal-notice")],q0e);S2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,P2n=Object.defineProperty,R2n=Object.getOwnPropertyDescriptor,M2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?R2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&P2n(e,t,a),a},W0e=class extends gt{onGoToQrcode(){Br.push("Qrcode")}async onConnectorWallet(r){await qe.handleConnectorConnection(r)}mobileWalletsTemplate(){let{mobileWallets:r}=qs.state,e=sl.walletsWithInjected(r);if(e.length)return e.map(({id:t,name:n,links:{universal:a,native:i}})=>_e``)}previewWalletsTemplate(){let{previewWallets:r}=oo.state,e=sl.walletsWithInjected(r);return e=sl.allowedExplorerListings(e),e=sl.deduplicateExplorerListingsFromConnectors(e),e.map(({image_url:t,name:n,mobile:{native:a,universal:i},id:s})=>_e``)}connectorWalletsTemplate(){let r=sl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==wE.metaMask)),r.map(({name:e,id:t,ready:n})=>_e``)}recentWalletTemplate(){let r=qe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return _e``}render(){let{standaloneUri:r}=yt.state,e=this.connectorWalletsTemplate(),t=this.mobileWalletsTemplate(),n=this.previewWalletsTemplate(),a=this.recentWalletTemplate(),i=t??n,s=[...e,...i],o=sl.walletTemplatesWithRecent(s,a),c=sl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>8,h=[];l?h=u.slice(0,7):h=u;let f=h.slice(0,4),m=h.slice(4,8),y=!!h.length;return _e`${y?_e`
${f} ${m.length?_e`${m} ${l?_e``:null}`:null}
`:null}`}};W0e.styles=[or.globalCss,S2n],W0e=M2n([Qt("w3m-mobile-wallet-selection")],W0e);N2n=pr`:host{all:initial}.w3m-overlay{inset:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start}}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`,B2n=Object.defineProperty,D2n=Object.getOwnPropertyDescriptor,aSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?D2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&B2n(e,t,a),a},UP=class extends gt{constructor(){super(),this.open=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=co.subscribe(r=>{r.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var r;(r=this.unsubscribeModal)==null||r.call(this)}get overlayEl(){return qe.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return qe.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(r){document.querySelector("body")&&(r?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(r){r.target===r.currentTarget&&co.close()}async onOpenModalEvent(){this.toggleBodyScroll(!1);let r=.2;await Hm(this.containerEl,{y:0},{duration:0}).finished,Hm(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:r}),Hm(this.containerEl,qe.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:mE({velocity:.4})},y:{easing:mE({mass:.5})},delay:r}),this.addKeyboardEvents(),this.open=!0}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents(),await Promise.all([Hm(this.containerEl,qe.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:mE({velocity:0})},y:{easing:mE({mass:.5})}}).finished,Hm(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",r=>{var e;r.key==="Escape"?co.close():r.key==="Tab"&&((e=r.target)!=null&&e.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var r;(r=this.abortController)==null||r.abort(),this.abortController=void 0}managedModalContextTemplate(){let{isStandalone:r}=yt.state;return r?null:_e``}render(){let r={"w3m-overlay":!0,"w3m-open":this.open};return _e`${this.managedModalContextTemplate()}
${this.open?_e`
`:null}
`}};UP.styles=[or.globalCss,N2n],aSt([_n()],UP.prototype,"open",2),UP=aSt([Qt("w3m-modal")],UP);O2n=pr`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`,L2n=Object.defineProperty,F2n=Object.getOwnPropertyDescriptor,$z=(r,e,t,n)=>{for(var a=n>1?void 0:n?F2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&L2n(e,t,a),a},Kw=class extends gt{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0,qe.rejectStandaloneButtonComponent();let{selectedChain:r}=yt.state;this.onSetChainData(r),this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.onSetChainData(e)})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onSetChainData(r){if(r){let{chains:e}=yt.state,t=e?.map(n=>n.id);this.chainId=r.id.toString(),this.wrongNetwork=!(t!=null&&t.includes(r.id)),this.label=this.wrongNetwork?"Wrong Network":r.name}}onClick(){co.open({route:"SelectNetwork"})}render(){var r;let{chains:e}=yt.state,t=e&&e.length>1;return _e`${(r=this.label)!=null&&r.length?this.label:"Select Network"}`}};Kw.styles=[or.globalCss,O2n],$z([_n()],Kw.prototype,"chainId",2),$z([_n()],Kw.prototype,"label",2),$z([_n()],Kw.prototype,"wrongNetwork",2),Kw=$z([Qt("w3m-network-switch")],Kw);q2n=pr`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:hover{background-color:var(--w3m-color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,W2n=Object.defineProperty,U2n=Object.getOwnPropertyDescriptor,H2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?U2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&W2n(e,t,a),a},U0e=class extends gt{onClick(){Br.push("WalletExplorer")}render(){let{previewWallets:r}=oo.state,e=qe.getCustomWallets(),t=[...r,...e].reverse().slice(0,4);return _e``}};U0e.styles=[or.globalCss,q2n],U0e=H2n([Qt("w3m-view-all-wallets-button")],U0e);j2n=pr`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,z2n=Object.defineProperty,K2n=Object.getOwnPropertyDescriptor,iSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?K2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&z2n(e,t,a),a},Yz=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return qe.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(r=0){var e;Sr.removeWalletConnectDeepLink();try{let{standaloneUri:t}=yt.state;t?setTimeout(()=>this.uri=t,0):(await zi.client().connectWalletConnect(n=>this.uri=n,(e=yt.state.selectedChain)==null?void 0:e.id),co.close())}catch(t){console.error(t),Nc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}render(){return _e`
${this.uri?_e``:_e``}
`}};Yz.styles=[or.globalCss,j2n],iSt([_n()],Yz.prototype,"uri",2),Yz=iSt([Qt("w3m-walletconnect-qr")],Yz);G2n=pr`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`,V2n=Object.defineProperty,$2n=Object.getOwnPropertyDescriptor,Y2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?$2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&V2n(e,t,a),a},H0e=class extends gt{onDisconnect(){co.close(),zi.client().disconnect(),$a.resetAccount()}async onCopyAddress(){var r;await navigator.clipboard.writeText((r=$a.state.address)!=null?r:""),Nc.openToast("Address copied","success")}render(){return _e`
Connected
`}};H0e.styles=[or.globalCss,G2n],H0e=Y2n([Qt("w3m-account-view")],H0e);J2n=Object.defineProperty,Q2n=Object.getOwnPropertyDescriptor,Z2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?Q2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&J2n(e,t,a),a},j0e=class extends gt{viewTemplate(){return Sr.isAndroid()?_e``:Sr.isMobile()?_e``:_e``}render(){return _e`${this.viewTemplate()}`}};j0e.styles=[or.globalCss],j0e=Z2n([Qt("w3m-connect-wallet-view")],j0e);X2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}`,ewn=Object.defineProperty,twn=Object.getOwnPropertyDescriptor,rwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?twn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ewn(e,t,a),a},z0e=class extends gt{async onConnectorWallet(r){await qe.handleConnectorConnection(r)}connectorWalletsTemplate(){let r=sl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==wE.metaMask)),r.map(({name:e,id:t,ready:n})=>_e``)}render(){let r=this.connectorWalletsTemplate();return _e`
${r}
`}};z0e.styles=[or.globalCss,X2n],z0e=rwn([Qt("w3m-connectors-view")],z0e);nwn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`,awn=Object.defineProperty,iwn=Object.getOwnPropertyDescriptor,sSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?iwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&awn(e,t,a),a},Jz=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(r){let{native:e,universal:t,name:n}=this.getRouterData();if(e){let a=Sr.formatNativeUrl(e,r,n);Sr.openHref(a,"_self")}else if(t){let a=Sr.formatUniversalUrl(t,r,n);Sr.openHref(a,"_blank")}}async createConnectionAndWait(r=0){var e;Sr.removeWalletConnectDeepLink();let{standaloneUri:t}=yt.state,{name:n,walletId:a,native:i,universal:s,icon:o}=this.getRouterData(),c={name:n,id:a,links:{native:i,universal:s},image:o};if(t)qe.setRecentWallet(c),this.onFormatAndRedirect(t);else try{await zi.client().connectWalletConnect(u=>{this.uri=u,this.onFormatAndRedirect(u)},(e=yt.state.selectedChain)==null?void 0:e.id),qe.setRecentWallet(c),co.close()}catch{Nc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}onConnectWithMobile(){Br.push("Qrcode")}onGoToWallet(){let{universal:r,name:e}=this.getRouterData();if(r){let t=Sr.formatUniversalUrl(r,this.uri,e);Sr.openHref(t,"_blank")}}render(){let{name:r,icon:e,universal:t,walletId:n}=this.getRouterData(),a=qe.getWalletName(r);return _e`
${e?_e``:_e``}
${`Continue in ${a}...`}
Retry${t?_e`Go to Wallet`:_e`Connect with Mobile`}
`}};Jz.styles=[or.globalCss,nwn],sSt([_n()],Jz.prototype,"uri",2),Jz=sSt([Qt("w3m-desktop-connector-view")],Jz);swn=pr`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`,own=Object.defineProperty,cwn=Object.getOwnPropertyDescriptor,uwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?cwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&own(e,t,a),a},K0e=class extends gt{onGet(r){Sr.openHref(r,"_blank")}render(){let{recomendedWallets:r}=oo.state,e=qe.getCustomWallets().slice(0,6),t=r.length,n=e.length;return _e`${t?r.map(({name:a,image_url:i,homepage:s})=>_e`
${a}Get
`):null} ${n?e.map(({name:a,id:i,links:s})=>_e`
${a}Get
`):null}
`}};K0e.styles=[or.globalCss,swn],K0e=uwn([Qt("w3m-get-wallet-view")],K0e);lwn=pr`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`,dwn=Object.defineProperty,pwn=Object.getOwnPropertyDescriptor,hwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?pwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&dwn(e,t,a),a},G0e=class extends gt{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){qs.state.enableExplorer?Br.push("GetWallet"):qe.openWalletExplorerUrl()}onLearnMore(){Sr.openHref(this.learnUrl,"_blank")}render(){return _e`
${yr.HELP_CHART_IMG} ${yr.HELP_PAINTING_IMG} ${yr.HELP_ETH_IMG}
A home for your digital assetsA wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.
${yr.HELP_KEY_IMG} ${yr.HELP_USER_IMG} ${yr.HELP_LOCK_IMG}
One login for all of web3Log in to any app by connecting your wallet. Say goodbye to countless passwords!
${yr.HELP_COMPAS_IMG} ${yr.HELP_NOUN_IMG} ${yr.HELP_DAO_IMG}
Your gateway to a new webWith your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.
`}};G0e.styles=[or.globalCss,lwn],G0e=hwn([Qt("w3m-help-view")],G0e);fwn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`,mwn=Object.defineProperty,ywn=Object.getOwnPropertyDescriptor,V0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?ywn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&mwn(e,t,a),a},qP=class extends gt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=zi.client().getConnectorById("injected"),this.onConnect()}async onConnect(){let{ready:r}=this.connector;r&&(this.error=!1,this.connecting=!0,await qe.handleConnectorConnection("injected",()=>{this.error=!0,this.connecting=!1}))}render(){let r=qe.getWalletName(this.connector.name),e=qe.getWalletId(this.connector.id),t={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return _e`
${this.connecting?_e``:null}${this.error?"Connection declined":`Continue in ${r}...`}
Try Again
`}};qP.styles=[or.globalCss,fwn],V0e([_n()],qP.prototype,"connecting",2),V0e([_n()],qP.prototype,"error",2),qP=V0e([Qt("w3m-injected-connector-view")],qP);gwn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:15px;align-items:center;flex-direction:column}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-install-actions w3m-button{margin:5px;opacity:1}.w3m-info-text{text-align:center}`,bwn=Object.defineProperty,vwn=Object.getOwnPropertyDescriptor,wwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?vwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bwn(e,t,a),a},$0e=class extends gt{getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.InstallConnector;if(!e)throw new Error("Missing router data");return e}onInstall(){let{url:r}=this.getRouterData();Sr.openHref(r,"_blank")}onMobile(){let{name:r}=this.getRouterData();Br.push("ConnectWallet"),Nc.openToast(`Scan the code with ${r}`,"success")}render(){let{name:r,id:e,isMobile:t}=this.getRouterData();return _e`
Install ${r}To connect ${r}, install the browser extension.
Install Extension${t?_e`${r} Mobile`:null}
`}};$0e.styles=[or.globalCss,gwn],$0e=wwn([Qt("w3m-install-connector-view")],$0e);_wn=Object.defineProperty,xwn=Object.getOwnPropertyDescriptor,Twn=(r,e,t,n)=>{for(var a=n>1?void 0:n?xwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_wn(e,t,a),a},Y0e=class extends gt{render(){return _e``}};Y0e.styles=[or.globalCss],Y0e=Twn([Qt("w3m-qrcode-view")],Y0e);Ewn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`,Cwn=Object.defineProperty,Iwn=Object.getOwnPropertyDescriptor,kwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Iwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Cwn(e,t,a),a},J0e=class extends gt{async onSelectChain(r){try{let{selectedChain:e,walletConnectVersion:t}=yt.state,{isConnected:n}=$a.state;n?e?.id===r.id?Br.replace("Account"):t===2?(await zi.client().switchNetwork({chainId:r.id}),Br.replace("Account")):Br.push("SwitchNetwork",{SwitchNetwork:r}):(Br.push("ConnectWallet"),yt.setSelectedChain(r))}catch(e){console.error(e),Nc.openToast(qe.getErrorMessage(e),"error")}}render(){let{chains:r}=yt.state;return _e`
${r?.map(e=>_e`${e.name}`)}
`}};J0e.styles=[or.globalCss,Ewn],J0e=kwn([Qt("w3m-select-network-view")],J0e);Awn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`,Swn=Object.defineProperty,Pwn=Object.getOwnPropertyDescriptor,oSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Pwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Swn(e,t,a),a},Qz=class extends gt{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;let r=this.getRouterData();await zi.client().switchNetwork({chainId:r.id}),yt.setSelectedChain(r),Br.replace("Account")}catch{this.error=!0}}render(){let{id:r,name:e}=this.getRouterData(),t={"w3m-wrapper":!0,"w3m-error":this.error};return _e`
${this.error?null:_e``}${this.error?"Connection declined":"Approve in your wallet"}
Try Again
`}};Qz.styles=[or.globalCss,Awn],oSt([_n()],Qz.prototype,"error",2),Qz=oSt([Qt("w3m-switch-network-view")],Qz);Rwn=pr`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,Mwn=Object.defineProperty,Nwn=Object.getOwnPropertyDescriptor,WP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Nwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Mwn(e,t,a),a},Q0e=40,jw=class extends gt{constructor(){super(...arguments),this.loading=!oo.state.wallets.listings.length,this.firstFetch=!oo.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=qe.debounce(r=>{r.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=r,oo.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),oo.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var r;(r=this.intersectionObserver)==null||r.disconnect()}get placeholderEl(){return qe.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([r])=>{r.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:r,search:e}=oo.state,{listings:t,total:n}=this.search?e:r;return n<=Q0e||t.length>=n}async fetchWallets(){var r;let{wallets:e,search:t}=oo.state,n=qe.getExtensionWallets(),{listings:a,total:i,page:s}=this.search?t:e;if(!this.endReached&&(this.firstFetch||i>Q0e&&a.lengthh.lg),l=n.map(({id:h})=>qe.getWalletIcon(h));await Promise.all([...u.map(async h=>qe.preloadImage(h)),...l.map(async h=>qe.preloadImage(h)),Sr.wait(300)]),this.endReached=this.isLastPage()}catch(o){console.error(o),Nc.openToast(qe.getErrorMessage(o),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnectCustom({name:r,id:e,links:t}){Sr.isMobile()?qe.handleMobileLinking({links:t,name:r,id:e}):Br.push("DesktopConnector",{DesktopConnector:{name:r,walletId:e,universal:t.universal,native:t.native}})}onConnectListing(r){if(Sr.isMobile()){let{id:e,image_url:t}=r,{native:n,universal:a}=r.mobile;qe.handleMobileLinking({links:{native:n,universal:a},name:r.name,id:e,image:t.lg})}else Br.push("DesktopConnector",{DesktopConnector:{name:r.name,icon:r.image_url.lg,universal:r.desktop.universal||r.homepage,native:r.desktop.native}})}onConnectExtension(r){qe.getWalletId("")===r.id?Br.push("InjectedConnector"):Br.push("InstallConnector",{InstallConnector:r})}onSearchChange(r){let{value:e}=r.target;this.searchDebounce(e)}render(){let{wallets:r,search:e}=oo.state,{isStandalone:t}=yt.state,{listings:n}=this.search?e:r;n=sl.allowedExplorerListings(n);let a=this.loading&&!n.length,i=this.search.length>=3,s=!t&&!Sr.isMobile()?qe.getExtensionWallets():[],o=qe.getCustomWallets();i&&(s=s.filter(({name:h})=>qe.caseSafeIncludes(h,this.search)),o=o.filter(({name:h})=>qe.caseSafeIncludes(h,this.search)));let c=!this.loading&&!n.length&&!s.length,u=Math.max(s.length,n.length),l={"w3m-loading":a,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":c};return _e`
${a?null:[...Array(u)].map((h,f)=>_e`${o[f]?_e``:null} ${s[f]?_e``:null} ${n[f]?_e``:null}`)}
${c?_e`No results found`:null} ${!c&&this.loading?_e``:null}
`}};jw.styles=[or.globalCss,Rwn],WP([_n()],jw.prototype,"loading",2),WP([_n()],jw.prototype,"firstFetch",2),WP([_n()],jw.prototype,"search",2),WP([_n()],jw.prototype,"endReached",2),jw=WP([Qt("w3m-wallet-explorer-view")],jw)});var hSt={};cr(hSt,{Web3Modal:()=>Z0e});var Bwn,dSt,Dwn,Own,pSt,Lwn,Z0e,fSt=ce(()=>{d();p();Sme();Bwn=Object.defineProperty,dSt=Object.getOwnPropertySymbols,Dwn=Object.prototype.hasOwnProperty,Own=Object.prototype.propertyIsEnumerable,pSt=(r,e,t)=>e in r?Bwn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Lwn=(r,e)=>{for(var t in e||(e={}))Dwn.call(e,t)&&pSt(r,t,e[t]);if(dSt)for(var t of dSt(e))Own.call(e,t)&&pSt(r,t,e[t]);return r},Z0e=class{constructor(e){this.openModal=co.open,this.closeModal=co.close,this.subscribeModal=co.subscribe,this.setTheme=Fm.setThemeConfig,Fm.setThemeConfig(e),qs.setConfig(Lwn({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>(lSt(),uSt));let e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),yt.setIsUiLoaded(!0)}}}});var tye=x(jg=>{"use strict";d();p();Object.defineProperty(jg,"__esModule",{value:!0});var Fwn=Ou(),HP=jS(),qwn=QIt();function Wwn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Uwn="wc",Hwn="ethereum_provider",jwn=`${Uwn}@${2}:${Hwn}:`,zwn="https://rpc.walletconnect.com/v1/",Zz=["eth_sendTransaction","personal_sign"],Kwn=["eth_accounts","eth_requestAccounts","eth_call","eth_getBalance","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Xz=["chainChanged","accountsChanged"],Gwn=["message","disconnect","connect"],Vwn=Object.defineProperty,$wn=Object.defineProperties,Ywn=Object.getOwnPropertyDescriptors,mSt=Object.getOwnPropertySymbols,Jwn=Object.prototype.hasOwnProperty,Qwn=Object.prototype.propertyIsEnumerable,ySt=(r,e,t)=>e in r?Vwn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gSt=(r,e)=>{for(var t in e||(e={}))Jwn.call(e,t)&&ySt(r,t,e[t]);if(mSt)for(var t of mSt(e))Qwn.call(e,t)&&ySt(r,t,e[t]);return r},bSt=(r,e)=>$wn(r,Ywn(e));function eye(r){return Number(r[0].split(":")[1])}function X0e(r){return`0x${r.toString(16)}`}function Zwn(r){let{chains:e,optionalChains:t,methods:n,optionalMethods:a,events:i,optionalEvents:s,rpcMap:o}=r;if(!HP.isValidArray(e))throw new Error("Invalid chains");let c=e,u=n||Zz,l=i||Xz,h={[eye(c)]:o[eye(c)]},f={chains:c,methods:u,events:l,rpcMap:h},m=i?.filter(S=>!Xz.includes(S)),y=n?.filter(S=>!Zz.includes(S));if(!t&&!s&&!a&&!(m!=null&&m.length)&&!(y!=null&&y.length))return{required:f};let E=m?.length&&y?.length||!t,I={chains:[...new Set(E?c.concat(t||[]):t)],methods:[...new Set(u.concat(a||[]))],events:[...new Set(l.concat(s||[]))],rpcMap:o};return{required:f,optional:I}}var _E=class{constructor(){this.events=new Fwn.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=jwn,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new _E;return await t.initialize(e),t}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,t){this.signer.sendAsync(e,t,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:n}=Zwn(this.rpc);try{let a=await new Promise(async(s,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(bSt(gSt({namespaces:{[this.namespace]:t}},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:e?.pairingTopic})).then(u=>{s(u)}).catch(u=>{o(new Error(u.message))})});if(!a)return;this.setChainIds(this.rpc.chains);let i=HP.getAccountsFromNamespaces(a.namespaces,[this.namespace]);this.setAccounts(i),this.events.emit("connect",{chainId:X0e(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",X0e(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",bSt(gSt({},HP.getSdkError("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,n;this.rpc.showQrModal&&((t=this.modal)==null||t.closeModal(),(n=this.modal)==null||n.openModal({uri:e})),this.events.emit("display_uri",e)})}setHttpProvider(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",X0e(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.setHttpProvider(t)}}parseAccountId(e){let[t,n,a]=e.split(":");return{chainId:`${t}:${n}`,address:a}}setAccounts(e){this.accounts=e.filter(t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId).map(t=>this.parseAccountId(t).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,n;return{chains:((t=e.chains)==null?void 0:t.map(a=>this.formatChainId(a)))||[`${this.namespace}:1`],optionalChains:e.optionalChains?e.optionalChains.map(a=>this.formatChainId(a)):void 0,methods:e?.methods||Zz,events:e?.events||Xz,optionalMethods:e?.optionalMethods||[],optionalEvents:e?.optionalEvents||[],rpcMap:e?.rpcMap||this.buildRpcMap(e.chains.concat(e.optionalChains||[]),e.projectId),showQrModal:(n=e?.showQrModal)!=null?n:!0,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let n={};return e.forEach(a=>{n[a]=this.getRpcUrl(a,t)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=eye(this.rpc.chains),this.signer=await qwn.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let{Web3Modal:t}=await Promise.resolve().then(function(){return Wwn((fSt(),nt(hSt)))});this.modal=new t({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains})}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:n,rpcMap:a}=e;t&&HP.isValidArray(t)&&(this.rpc.chains=t.map(i=>this.formatChainId(i)),t.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)})),n&&HP.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(i=>this.formatChainId(i)),n.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)}))}getRpcUrl(e,t){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${zwn}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`);this.setChainIds(e?[this.formatChainId(e)]:this.session.namespaces[this.namespace].accounts),this.setAccounts(this.session.namespaces[this.namespace].accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(t=>this.parseAccount(t))}},Xwn=_E;jg.EthereumProvider=Xwn,jg.OPTIONAL_EVENTS=Gwn,jg.OPTIONAL_METHODS=Kwn,jg.REQUIRED_EVENTS=Xz,jg.REQUIRED_METHODS=Zz,jg.default=_E});var ASt=x(dye=>{"use strict";d();p();Object.defineProperty(dye,"__esModule",{value:!0});var bi=bm(),Jr=vm(),zg=ec(),Vw=je(),jP=eT();Yu();vt();Qe();function e5n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var xSt="eip155",TSt="wagmi.requestedChains",sye="wallet_addEthereumChain",rye="last-used-chain-id",Ki=new WeakMap,tK=new WeakMap,$w=new WeakMap,nye=new WeakSet,ESt=new WeakSet,aye=new WeakSet,iye=new WeakSet,zP=new WeakSet,oye=new WeakSet,cye=new WeakSet,uye=new WeakSet,lye=class extends jP.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),bi._classPrivateMethodInitSpec(this,uye),bi._classPrivateMethodInitSpec(this,cye),bi._classPrivateMethodInitSpec(this,oye),bi._classPrivateMethodInitSpec(this,zP),bi._classPrivateMethodInitSpec(this,iye),bi._classPrivateMethodInitSpec(this,aye),bi._classPrivateMethodInitSpec(this,ESt),bi._classPrivateMethodInitSpec(this,nye),zg._defineProperty(this,"id","walletConnect"),zg._defineProperty(this,"name","WalletConnect"),zg._defineProperty(this,"ready",!0),Jr._classPrivateFieldInitSpec(this,Ki,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,tK,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,$w,{writable:!0,value:void 0}),zg._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Vw.utils.getAddress(t[0])})}),zg._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Jr._classPrivateFieldGet(this,$w).setItem(rye,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),zg._defineProperty(this,"onDisconnect",()=>{bi._classPrivateMethodGet(this,zP,eK).call(this,[]),Jr._classPrivateFieldGet(this,$w).removeItem(rye),this.emit("disconnect")}),zg._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),zg._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Jr._classPrivateFieldGet(this,Ki)})}),Jr._classPrivateFieldSet(this,$w,e.options.storage),bi._classPrivateMethodGet(this,nye,vSt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Jr._classPrivateFieldGet(this,$w).getItem(rye),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await bi._classPrivateMethodGet(this,aye,wSt).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l}),bi._classPrivateMethodGet(this,zP,eK).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=Vw.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new Vw.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new jP.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{bi._classPrivateMethodGet(this,iye,_St).call(this),bi._classPrivateMethodGet(this,zP,eK).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return Vw.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jr._classPrivateFieldGet(this,Ki)||await bi._classPrivateMethodGet(this,nye,vSt).call(this),e&&await this.switchChain(e),!Jr._classPrivateFieldGet(this,Ki))throw new Error("No provider found.");return Jr._classPrivateFieldGet(this,Ki)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Vw.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await bi._classPrivateMethodGet(this,aye,wSt).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new jP.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=bi._classPrivateMethodGet(this,cye,ISt).call(this),i=bi._classPrivateMethodGet(this,uye,kSt).call(this);if(!a.includes(e)&&i.includes(sye)){await n.request({method:sye,params:[{chainId:Vw.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await bi._classPrivateMethodGet(this,oye,CSt).call(this);o.push(e),bi._classPrivateMethodGet(this,zP,eK).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:Vw.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new jP.UserRejectedRequestError(n):new jP.SwitchChainError(n)}}async setupListeners(){!Jr._classPrivateFieldGet(this,Ki)||(bi._classPrivateMethodGet(this,iye,_St).call(this),Jr._classPrivateFieldGet(this,Ki).on("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Ki).on("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Ki).on("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Ki).on("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Ki).on("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Ki).on("connect",this.onConnect))}};async function vSt(){return!Jr._classPrivateFieldGet(this,tK)&&typeof window<"u"&&Jr._classPrivateFieldSet(this,tK,bi._classPrivateMethodGet(this,ESt,t5n).call(this)),Jr._classPrivateFieldGet(this,tK)}async function t5n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return e5n(tye())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Jr._classPrivateFieldSet(this,Ki,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function wSt(){if(bi._classPrivateMethodGet(this,uye,kSt).call(this).includes(sye)||!this.options.isNewChainsStale)return!1;let e=await bi._classPrivateMethodGet(this,oye,CSt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=bi._classPrivateMethodGet(this,cye,ISt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function _St(){!Jr._classPrivateFieldGet(this,Ki)||(Jr._classPrivateFieldGet(this,Ki).removeListener("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Ki).removeListener("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Ki).removeListener("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Ki).removeListener("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Ki).removeListener("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Ki).removeListener("connect",this.onConnect))}function eK(r){Jr._classPrivateFieldGet(this,$w).setItem(TSt,JSON.stringify(r))}async function CSt(){let r=await Jr._classPrivateFieldGet(this,$w).getItem(TSt);return r?JSON.parse(r):[]}function ISt(){return Jr._classPrivateFieldGet(this,Ki)?Jr._classPrivateFieldGet(this,Ki).session?.namespaces[xSt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function kSt(){return Jr._classPrivateFieldGet(this,Ki)?Jr._classPrivateFieldGet(this,Ki).session?.namespaces[xSt]?.methods??[]:[]}dye.WalletConnectConnector=lye});var RSt=x(vye=>{"use strict";d();p();Object.defineProperty(vye,"__esModule",{value:!0});var KP=bm(),hye=ec(),Hr=vm(),r5n=Qx(),n5n=Xx();Yu();Qe();vt();G1();je();var jl=new WeakMap,xE=new WeakMap,a5n=new WeakMap,fye=new WeakMap,mye=new WeakMap,yye=new WeakMap,gye=new WeakMap,bye=new WeakMap,SSt=new WeakSet,pye=new WeakSet,Yw=class extends n5n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e.walletId||Yw.id,e),KP._classPrivateMethodInitSpec(this,pye),KP._classPrivateMethodInitSpec(this,SSt),Hr._classPrivateFieldInitSpec(this,jl,{writable:!0,value:void 0}),Hr._classPrivateFieldInitSpec(this,xE,{writable:!0,value:void 0}),hye._defineProperty(this,"connector",void 0),Hr._classPrivateFieldInitSpec(this,a5n,{writable:!0,value:t=>{if(t)throw t}}),Hr._classPrivateFieldInitSpec(this,fye,{writable:!0,value:t=>{if(Hr._classPrivateFieldSet(this,xE,t.provider),!Hr._classPrivateFieldGet(this,xE))throw new Error("WalletConnect provider not found after connecting.")}}),Hr._classPrivateFieldInitSpec(this,mye,{writable:!0,value:()=>{KP._classPrivateMethodGet(this,pye,PSt).call(this)}}),Hr._classPrivateFieldInitSpec(this,yye,{writable:!0,value:async t=>{t.chain||t.account}}),Hr._classPrivateFieldInitSpec(this,gye,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),Hr._classPrivateFieldInitSpec(this,bye,{writable:!0,value:()=>{this.emit("open_wallet")}})}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return ASt()});Hr._classPrivateFieldSet(this,jl,new e({chains:this.chains,options:{qrcode:this.options.qrcode,projectId:this.options.projectId,dappMetadata:this.options.dappMetadata,storage:this.walletStorage}})),this.connector=new r5n.WagmiAdapter(Hr._classPrivateFieldGet(this,jl)),Hr._classPrivateFieldSet(this,xE,await Hr._classPrivateFieldGet(this,jl).getProvider()),KP._classPrivateMethodGet(this,SSt,i5n).call(this)}return this.connector}};function i5n(){!Hr._classPrivateFieldGet(this,jl)||(KP._classPrivateMethodGet(this,pye,PSt).call(this),Hr._classPrivateFieldGet(this,jl).on("connect",Hr._classPrivateFieldGet(this,fye)),Hr._classPrivateFieldGet(this,jl).on("disconnect",Hr._classPrivateFieldGet(this,mye)),Hr._classPrivateFieldGet(this,jl).on("change",Hr._classPrivateFieldGet(this,yye)),Hr._classPrivateFieldGet(this,jl).on("message",Hr._classPrivateFieldGet(this,gye)),Hr._classPrivateFieldGet(this,xE)?.signer.client.on("session_request_sent",Hr._classPrivateFieldGet(this,bye)))}function PSt(){!Hr._classPrivateFieldGet(this,jl)||(Hr._classPrivateFieldGet(this,jl).removeListener("connect",Hr._classPrivateFieldGet(this,fye)),Hr._classPrivateFieldGet(this,jl).removeListener("disconnect",Hr._classPrivateFieldGet(this,mye)),Hr._classPrivateFieldGet(this,jl).removeListener("change",Hr._classPrivateFieldGet(this,yye)),Hr._classPrivateFieldGet(this,jl).removeListener("message",Hr._classPrivateFieldGet(this,gye)),Hr._classPrivateFieldGet(this,xE)?.signer.client.removeListener("session_request_sent",Hr._classPrivateFieldGet(this,bye)))}hye._defineProperty(Yw,"id","walletConnect");hye._defineProperty(Yw,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});vye.WalletConnect=Yw});var USt=x(Sye=>{"use strict";d();p();Object.defineProperty(Sye,"__esModule",{value:!0});var vi=Am(),Qr=Sm(),Kg=ac(),Jw=je(),GP=o6();el();vt();Qe();function s5n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var DSt="eip155",OSt="wagmi.requestedChains",Eye="wallet_addEthereumChain",wye="last-used-chain-id",Gi=new WeakMap,nK=new WeakMap,Qw=new WeakMap,_ye=new WeakSet,LSt=new WeakSet,xye=new WeakSet,Tye=new WeakSet,VP=new WeakSet,Cye=new WeakSet,Iye=new WeakSet,kye=new WeakSet,Aye=class extends GP.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),vi._classPrivateMethodInitSpec(this,kye),vi._classPrivateMethodInitSpec(this,Iye),vi._classPrivateMethodInitSpec(this,Cye),vi._classPrivateMethodInitSpec(this,VP),vi._classPrivateMethodInitSpec(this,Tye),vi._classPrivateMethodInitSpec(this,xye),vi._classPrivateMethodInitSpec(this,LSt),vi._classPrivateMethodInitSpec(this,_ye),Kg._defineProperty(this,"id","walletConnect"),Kg._defineProperty(this,"name","WalletConnect"),Kg._defineProperty(this,"ready",!0),Qr._classPrivateFieldInitSpec(this,Gi,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,nK,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,Qw,{writable:!0,value:void 0}),Kg._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Jw.utils.getAddress(t[0])})}),Kg._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Qr._classPrivateFieldGet(this,Qw).setItem(wye,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),Kg._defineProperty(this,"onDisconnect",()=>{vi._classPrivateMethodGet(this,VP,rK).call(this,[]),Qr._classPrivateFieldGet(this,Qw).removeItem(wye),this.emit("disconnect")}),Kg._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),Kg._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Qr._classPrivateFieldGet(this,Gi)})}),Qr._classPrivateFieldSet(this,Qw,e.options.storage),vi._classPrivateMethodGet(this,_ye,MSt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Qr._classPrivateFieldGet(this,Qw).getItem(wye),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await vi._classPrivateMethodGet(this,xye,NSt).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l}),vi._classPrivateMethodGet(this,VP,rK).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=Jw.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new Jw.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new GP.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{vi._classPrivateMethodGet(this,Tye,BSt).call(this),vi._classPrivateMethodGet(this,VP,rK).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return Jw.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr._classPrivateFieldGet(this,Gi)||await vi._classPrivateMethodGet(this,_ye,MSt).call(this),e&&await this.switchChain(e),!Qr._classPrivateFieldGet(this,Gi))throw new Error("No provider found.");return Qr._classPrivateFieldGet(this,Gi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Jw.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await vi._classPrivateMethodGet(this,xye,NSt).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new GP.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=vi._classPrivateMethodGet(this,Iye,qSt).call(this),i=vi._classPrivateMethodGet(this,kye,WSt).call(this);if(!a.includes(e)&&i.includes(Eye)){await n.request({method:Eye,params:[{chainId:Jw.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await vi._classPrivateMethodGet(this,Cye,FSt).call(this);o.push(e),vi._classPrivateMethodGet(this,VP,rK).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:Jw.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new GP.UserRejectedRequestError(n):new GP.SwitchChainError(n)}}async setupListeners(){!Qr._classPrivateFieldGet(this,Gi)||(vi._classPrivateMethodGet(this,Tye,BSt).call(this),Qr._classPrivateFieldGet(this,Gi).on("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Gi).on("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Gi).on("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Gi).on("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Gi).on("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Gi).on("connect",this.onConnect))}};async function MSt(){return!Qr._classPrivateFieldGet(this,nK)&&typeof window<"u"&&Qr._classPrivateFieldSet(this,nK,vi._classPrivateMethodGet(this,LSt,o5n).call(this)),Qr._classPrivateFieldGet(this,nK)}async function o5n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return s5n(tye())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Qr._classPrivateFieldSet(this,Gi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function NSt(){if(vi._classPrivateMethodGet(this,kye,WSt).call(this).includes(Eye)||!this.options.isNewChainsStale)return!1;let e=await vi._classPrivateMethodGet(this,Cye,FSt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=vi._classPrivateMethodGet(this,Iye,qSt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function BSt(){!Qr._classPrivateFieldGet(this,Gi)||(Qr._classPrivateFieldGet(this,Gi).removeListener("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Gi).removeListener("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Gi).removeListener("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Gi).removeListener("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Gi).removeListener("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Gi).removeListener("connect",this.onConnect))}function rK(r){Qr._classPrivateFieldGet(this,Qw).setItem(OSt,JSON.stringify(r))}async function FSt(){let r=await Qr._classPrivateFieldGet(this,Qw).getItem(OSt);return r?JSON.parse(r):[]}function qSt(){return Qr._classPrivateFieldGet(this,Gi)?Qr._classPrivateFieldGet(this,Gi).session?.namespaces[DSt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function WSt(){return Qr._classPrivateFieldGet(this,Gi)?Qr._classPrivateFieldGet(this,Gi).session?.namespaces[DSt]?.methods??[]:[]}Sye.WalletConnectConnector=Aye});var zSt=x(Lye=>{"use strict";d();p();Object.defineProperty(Lye,"__esModule",{value:!0});var $P=Am(),Rye=ac(),jr=Sm(),c5n=a6(),u5n=s6();el();Qe();vt();lg();je();var zl=new WeakMap,TE=new WeakMap,l5n=new WeakMap,Mye=new WeakMap,Nye=new WeakMap,Bye=new WeakMap,Dye=new WeakMap,Oye=new WeakMap,HSt=new WeakSet,Pye=new WeakSet,Zw=class extends u5n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e.walletId||Zw.id,e),$P._classPrivateMethodInitSpec(this,Pye),$P._classPrivateMethodInitSpec(this,HSt),jr._classPrivateFieldInitSpec(this,zl,{writable:!0,value:void 0}),jr._classPrivateFieldInitSpec(this,TE,{writable:!0,value:void 0}),Rye._defineProperty(this,"connector",void 0),jr._classPrivateFieldInitSpec(this,l5n,{writable:!0,value:t=>{if(t)throw t}}),jr._classPrivateFieldInitSpec(this,Mye,{writable:!0,value:t=>{if(jr._classPrivateFieldSet(this,TE,t.provider),!jr._classPrivateFieldGet(this,TE))throw new Error("WalletConnect provider not found after connecting.")}}),jr._classPrivateFieldInitSpec(this,Nye,{writable:!0,value:()=>{$P._classPrivateMethodGet(this,Pye,jSt).call(this)}}),jr._classPrivateFieldInitSpec(this,Bye,{writable:!0,value:async t=>{t.chain||t.account}}),jr._classPrivateFieldInitSpec(this,Dye,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),jr._classPrivateFieldInitSpec(this,Oye,{writable:!0,value:()=>{this.emit("open_wallet")}})}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return USt()});jr._classPrivateFieldSet(this,zl,new e({chains:this.chains,options:{qrcode:this.options.qrcode,projectId:this.options.projectId,dappMetadata:this.options.dappMetadata,storage:this.walletStorage}})),this.connector=new c5n.WagmiAdapter(jr._classPrivateFieldGet(this,zl)),jr._classPrivateFieldSet(this,TE,await jr._classPrivateFieldGet(this,zl).getProvider()),$P._classPrivateMethodGet(this,HSt,d5n).call(this)}return this.connector}};function d5n(){!jr._classPrivateFieldGet(this,zl)||($P._classPrivateMethodGet(this,Pye,jSt).call(this),jr._classPrivateFieldGet(this,zl).on("connect",jr._classPrivateFieldGet(this,Mye)),jr._classPrivateFieldGet(this,zl).on("disconnect",jr._classPrivateFieldGet(this,Nye)),jr._classPrivateFieldGet(this,zl).on("change",jr._classPrivateFieldGet(this,Bye)),jr._classPrivateFieldGet(this,zl).on("message",jr._classPrivateFieldGet(this,Dye)),jr._classPrivateFieldGet(this,TE)?.signer.client.on("session_request_sent",jr._classPrivateFieldGet(this,Oye)))}function jSt(){!jr._classPrivateFieldGet(this,zl)||(jr._classPrivateFieldGet(this,zl).removeListener("connect",jr._classPrivateFieldGet(this,Mye)),jr._classPrivateFieldGet(this,zl).removeListener("disconnect",jr._classPrivateFieldGet(this,Nye)),jr._classPrivateFieldGet(this,zl).removeListener("change",jr._classPrivateFieldGet(this,Bye)),jr._classPrivateFieldGet(this,zl).removeListener("message",jr._classPrivateFieldGet(this,Dye)),jr._classPrivateFieldGet(this,TE)?.signer.client.removeListener("session_request_sent",jr._classPrivateFieldGet(this,Oye)))}Rye._defineProperty(Zw,"id","walletConnect");Rye._defineProperty(Zw,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});Lye.WalletConnect=Zw});var KSt=x((WIa,Fye)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Fye.exports=RSt():Fye.exports=zSt()});var VSt=x(Wye=>{"use strict";d();p();Object.defineProperty(Wye,"__esModule",{value:!0});var _s=vm(),YP=ec(),p5n=Qx(),GSt=je(),h5n=tT();Yu();Qe();var by=new WeakMap,Xw=new WeakMap,EE=new WeakMap,qye=class extends p5n.TWConnector{constructor(e){super(),YP._defineProperty(this,"id","device_wallet"),YP._defineProperty(this,"name","Device Wallet"),YP._defineProperty(this,"options",void 0),_s._classPrivateFieldInitSpec(this,by,{writable:!0,value:void 0}),_s._classPrivateFieldInitSpec(this,Xw,{writable:!0,value:void 0}),_s._classPrivateFieldInitSpec(this,EE,{writable:!0,value:void 0}),YP._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),YP._defineProperty(this,"onChainChanged",t=>{let n=h5n.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,_s._classPrivateFieldSet(this,by,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await _s._classPrivateFieldGet(this,by).getSavedWalletAddress()?await _s._classPrivateFieldGet(this,by).loadSavedWallet(e):(await _s._classPrivateFieldGet(this,by).generateNewWallet(),await _s._classPrivateFieldGet(this,by).save(e))}async disconnect(){_s._classPrivateFieldSet(this,Xw,void 0),_s._classPrivateFieldSet(this,EE,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return _s._classPrivateFieldGet(this,Xw)||_s._classPrivateFieldSet(this,Xw,new GSt.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),_s._classPrivateFieldGet(this,Xw)}async getSigner(){if(!_s._classPrivateFieldGet(this,by))throw new Error("No wallet found");if(!_s._classPrivateFieldGet(this,EE)){let e=await this.getProvider();_s._classPrivateFieldSet(this,EE,await _s._classPrivateFieldGet(this,by).getSigner(e))}return _s._classPrivateFieldGet(this,EE)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");_s._classPrivateFieldSet(this,Xw,new GSt.providers.JsonRpcBatchProvider(t.rpc[0])),_s._classPrivateFieldSet(this,EE,await _s._classPrivateFieldGet(this,by).getSigner(_s._classPrivateFieldGet(this,Xw))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};Wye.DeviceWalletConnector=qye});var YSt=x(sK=>{"use strict";d();p();Object.defineProperty(sK,"__esModule",{value:!0});var vy=vm(),e5=ec(),aK=Xx(),f5n=G1(),m5n=vt(),$St=je();Yu();bm();Qe();var Uye="data",Hye="address",iK=new WeakMap,t5=class extends aK.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(t5.id,{...e,shouldAutoConnect:!1}),e5._defineProperty(this,"connector",void 0),vy._classPrivateFieldInitSpec(this,iK,{writable:!0,value:void 0}),e5._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return VSt()}),t;switch(this.options.storageType){case"asyncStore":t=await wy.fromAsyncStorage(this.options.storage||aK.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await wy.fromCredentialStore();break;default:t=await wy.fromAsyncStorage(this.options.storage||aK.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||m5n.Ethereum,wallet:t,chains:this.options.chains||aK.thirdwebChains}),vy._classPrivateFieldSet(this,iK,t)}return this.connector}getWalletData(){if(!vy._classPrivateFieldGet(this,iK))throw new Error("Wallet not initialized");return vy._classPrivateFieldGet(this,iK).getWalletData()}static getAddressStorageKey(){return Hye}static getDataStorageKey(){return Uye}};e5._defineProperty(t5,"id","deviceWallet");e5._defineProperty(t5,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var JP=new WeakMap,wy=class extends f5n.AbstractWallet{static async fromAsyncStorage(e){return new wy({storage:new jye(e)})}static async fromCredentialStore(){return new wy({storage:new zye(navigator.credentials)})}constructor(e){super(),e5._defineProperty(this,"options",void 0),vy._classPrivateFieldInitSpec(this,JP,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!vy._classPrivateFieldGet(this,JP))throw new Error("Wallet not initialized");let t=vy._classPrivateFieldGet(this,JP);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=$St.ethers.Wallet.createRandom();return vy._classPrivateFieldSet(this,JP,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await $St.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return vy._classPrivateFieldSet(this,JP,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},jye=class{constructor(e){e5._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem(Hye),this.storage.getItem(Uye)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem(Hye,e.address),this.storage.setItem(Uye,e.encryptedData)])}},zye=class{constructor(e){e5._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};sK.DeviceBrowserWallet=t5;sK.DeviceWalletImpl=wy});var QSt=x(Gye=>{"use strict";d();p();Object.defineProperty(Gye,"__esModule",{value:!0});var xs=Sm(),QP=ac(),y5n=a6(),JSt=je(),g5n=c6();el();Qe();var _y=new WeakMap,r5=new WeakMap,CE=new WeakMap,Kye=class extends y5n.TWConnector{constructor(e){super(),QP._defineProperty(this,"id","device_wallet"),QP._defineProperty(this,"name","Device Wallet"),QP._defineProperty(this,"options",void 0),xs._classPrivateFieldInitSpec(this,_y,{writable:!0,value:void 0}),xs._classPrivateFieldInitSpec(this,r5,{writable:!0,value:void 0}),xs._classPrivateFieldInitSpec(this,CE,{writable:!0,value:void 0}),QP._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),QP._defineProperty(this,"onChainChanged",t=>{let n=g5n.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,xs._classPrivateFieldSet(this,_y,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await xs._classPrivateFieldGet(this,_y).getSavedWalletAddress()?await xs._classPrivateFieldGet(this,_y).loadSavedWallet(e):(await xs._classPrivateFieldGet(this,_y).generateNewWallet(),await xs._classPrivateFieldGet(this,_y).save(e))}async disconnect(){xs._classPrivateFieldSet(this,r5,void 0),xs._classPrivateFieldSet(this,CE,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return xs._classPrivateFieldGet(this,r5)||xs._classPrivateFieldSet(this,r5,new JSt.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),xs._classPrivateFieldGet(this,r5)}async getSigner(){if(!xs._classPrivateFieldGet(this,_y))throw new Error("No wallet found");if(!xs._classPrivateFieldGet(this,CE)){let e=await this.getProvider();xs._classPrivateFieldSet(this,CE,await xs._classPrivateFieldGet(this,_y).getSigner(e))}return xs._classPrivateFieldGet(this,CE)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");xs._classPrivateFieldSet(this,r5,new JSt.providers.JsonRpcBatchProvider(t.rpc[0])),xs._classPrivateFieldSet(this,CE,await xs._classPrivateFieldGet(this,_y).getSigner(xs._classPrivateFieldGet(this,r5))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};Gye.DeviceWalletConnector=Kye});var XSt=x(uK=>{"use strict";d();p();Object.defineProperty(uK,"__esModule",{value:!0});var xy=Sm(),n5=ac(),oK=s6(),b5n=lg(),v5n=vt(),ZSt=je();el();Am();Qe();var Vye="data",$ye="address",cK=new WeakMap,a5=class extends oK.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(a5.id,{...e,shouldAutoConnect:!1}),n5._defineProperty(this,"connector",void 0),xy._classPrivateFieldInitSpec(this,cK,{writable:!0,value:void 0}),n5._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return QSt()}),t;switch(this.options.storageType){case"asyncStore":t=await Ty.fromAsyncStorage(this.options.storage||oK.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await Ty.fromCredentialStore();break;default:t=await Ty.fromAsyncStorage(this.options.storage||oK.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||v5n.Ethereum,wallet:t,chains:this.options.chains||oK.thirdwebChains}),xy._classPrivateFieldSet(this,cK,t)}return this.connector}getWalletData(){if(!xy._classPrivateFieldGet(this,cK))throw new Error("Wallet not initialized");return xy._classPrivateFieldGet(this,cK).getWalletData()}static getAddressStorageKey(){return $ye}static getDataStorageKey(){return Vye}};n5._defineProperty(a5,"id","deviceWallet");n5._defineProperty(a5,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var ZP=new WeakMap,Ty=class extends b5n.AbstractWallet{static async fromAsyncStorage(e){return new Ty({storage:new Yye(e)})}static async fromCredentialStore(){return new Ty({storage:new Jye(navigator.credentials)})}constructor(e){super(),n5._defineProperty(this,"options",void 0),xy._classPrivateFieldInitSpec(this,ZP,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!xy._classPrivateFieldGet(this,ZP))throw new Error("Wallet not initialized");let t=xy._classPrivateFieldGet(this,ZP);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=ZSt.ethers.Wallet.createRandom();return xy._classPrivateFieldSet(this,ZP,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await ZSt.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return xy._classPrivateFieldSet(this,ZP,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},Yye=class{constructor(e){n5._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem($ye),this.storage.getItem(Vye)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem($ye,e.address),this.storage.setItem(Vye,e.encryptedData)])}},Jye=class{constructor(e){n5._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};uK.DeviceBrowserWallet=a5;uK.DeviceWalletImpl=Ty});var ePt=x((tka,Qye)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Qye.exports=YSt():Qye.exports=XSt()});d();p();var nPt=un(U8e()),aPt=un(lIe()),iPt=un(zht()),Zye=un(bn()),r1e=un(Qwt()),Xye=un(e5t()),n1e=un(u5t()),a1e=un(z6t()),i1e=un(KSt()),s1e=un(ePt()),e1e=un(je()),w5n="339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3",_5n="145769e410f16970a79ff77b2d89a1e0",tPt="/",rPt="#",Gg=(r,e)=>e1e.BigNumber.isBigNumber(e)||typeof e=="object"&&e!==null&&e.type==="BigNumber"&&"hex"in e?e1e.BigNumber.from(e).toString():e,x5n=[a1e.MetaMask,n1e.InjectedWallet,i1e.WalletConnect,r1e.CoinbaseWallet,s1e.DeviceBrowserWallet],T5n=window,t1e=class{constructor(){this.walletMap=new Map}updateSDKSigner(e){this.activeSDK&&(e?this.activeSDK.updateSignerOrProvider(e):this.initializedChain&&this.activeSDK.updateSignerOrProvider(this.initializedChain)),e&&(this.auth?this.auth.updateWallet(new Xye.EthersWallet(e)):this.auth=new nPt.ThirdwebAuth(new Xye.EthersWallet(e),"example.com"))}initialize(e,t){this.initializedChain=e,console.debug("thirdwebSDK initialization:",e,t);let n=JSON.parse(t),a=n?.storage&&n?.storage?.ipfsGatewayUrl?new Zye.ThirdwebStorage({gatewayUrls:{"ipfs://":[n.storage.ipfsGatewayUrl]}}):new Zye.ThirdwebStorage;n.thirdwebApiKey=n.thirdwebApiKey||w5n,this.activeSDK=new iPt.ThirdwebSDK(e,n,a);for(let i of x5n){let s,o={name:n.wallet?.appName||"thirdweb powered game",url:n.wallet?.appUrl||"https://thirdweb.com",description:n.wallet?.appDescription||"",logoUrl:n.wallet?.appIcons?.[0]||"",...n.wallet?.extras};switch(i.id){case"injected":s=new n1e.InjectedWallet({dappMetadata:o});break;case"metamask":s=new a1e.MetaMask({dappMetadata:o});break;case"walletConnect":s=new i1e.WalletConnect({dappMetadata:o,projectId:_5n});break;case"coinbaseWallet":s=new r1e.CoinbaseWallet({dappMetadata:o});break;case"deviceWallet":s=new s1e.DeviceBrowserWallet({dappMetadata:o})}s&&(s.on("connect",async()=>this.updateSDKSigner(await s.getSigner())),s.on("change",async()=>this.updateSDKSigner(await s.getSigner())),s.on("disconnect",()=>this.updateSDKSigner()),this.walletMap.set(i.id,s))}}async connect(e="injected",t,n){if(!this.activeSDK)throw new Error("SDK not initialized");t===0&&(t=void 0);let a=this.walletMap.get(e);if(a)return a.walletId==="deviceWallet"&&n?await a.connect({chainId:t,password:n}):await a.connect({chainId:t}),this.activeWallet=a,this.updateSDKSigner(await a.getSigner()),await this.activeSDK.wallet.getAddress();throw new Error("Invalid Wallet")}async disconnect(){this.activeWallet&&(await this.activeWallet.disconnect(),this.activeWallet=void 0,this.updateSDKSigner())}async switchNetwork(e){if(e&&this.activeWallet&&"switchChain"in this.activeWallet)await this.activeWallet.switchChain(e),this.updateSDKSigner(await this.activeWallet.getSigner());else throw new Error("Error Switching Network")}async invoke(e,t){if(!this.activeSDK)throw new Error("SDK not initialized");let n=e.split(tPt),a=n[0].split(rPt),i=a[0],o=JSON.parse(t).arguments.map(c=>{try{return typeof c=="string"&&(c.startsWith("{")||c.startsWith("["))?JSON.parse(c):c}catch{return c}});if(console.debug("thirdwebSDK call:",e,o),i.startsWith("sdk")){let c;if(a.length>1&&(c=a[1]),c&&n.length===2){let u=await this.activeSDK[c][n[1]](...o);return JSON.stringify({result:u},Gg)}else if(n.length===2){let u=await this.activeSDK[n[1]](...o);return JSON.stringify({result:u},Gg)}else throw new Error("Invalid Route")}if(i.startsWith("auth")){if(!this.auth)throw new Error("You need to connect a wallet to use auth!");let c;if(a.length>1&&(c=a[1]),c==="login"&&n.length===1){let u=await this.auth.login({domain:o[0]});return JSON.stringify({result:u})}else if(c==="verify"&&n.length===1){let u=await this.auth.verify(o[0]);return JSON.stringify({result:u})}}if(i.startsWith("0x")){let c;if(a.length>1)try{c=JSON.parse(a[1])}catch{c=a[1]}let u=c?await this.activeSDK.getContract(i,c):await this.activeSDK.getContract(i);if(n.length===2){let l=await u[n[1]](...o);return JSON.stringify({result:l},Gg)}else if(n.length===3){let l=await u[n[1]][n[2]](...o);return JSON.stringify({result:l},Gg)}else if(n.length===4){let l=await u[n[1]][n[2]][n[3]](...o);return JSON.stringify({result:l},Gg)}else throw new Error("Invalid Route")}}async invokeListener(e,t,n,a,i){if(!this.activeSDK)throw new Error("SDK not initialized");let s=t.split(tPt),o=s[0].split(rPt),c=o[0],l=JSON.parse(n).arguments.map(h=>{try{return typeof h=="string"&&(h.startsWith("{")||h.startsWith("["))?JSON.parse(h):h}catch{return h}});if(console.debug("thirdwebSDK invoke listener:",e,t,l,a),c.startsWith("0x")){let h;if(o.length>1)try{h=JSON.parse(o[1])}catch{h=o[1]}let f=h?await this.activeSDK.getContract(c,h):await this.activeSDK.getContract(c);if(s.length===2)await f[s[1]](...l,m=>i(a,e,JSON.stringify(m,Gg)));else if(s.length===3)await f[s[1]][s[2]](...l,m=>i(a,e,JSON.stringify(m,Gg)));else if(s.length===4)await f[s[1]][s[2]][s[3]](...l,m=>i(a,e,JSON.stringify(m,Gg)));else throw new Error("Invalid Route")}}async fundWallet(e){if(!this.activeSDK)throw new Error("SDK not initialized");let{appId:t,...n}=JSON.parse(e);return await new aPt.CoinbasePayIntegration({appId:t}).fundWallet(n)}};T5n.bridge=new t1e;})(); +\f\r"'\`<>=]|("|')|))|$)`,"g"),tPt=/'/g,rPt=/"/g,oPt=/^(?:script|style|textarea|title)$/i,cPt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),xe=cPt(1),Dr=cPt(2),wy=Symbol.for("lit-noChange"),io=Symbol.for("lit-nothing"),nPt=new WeakMap,MQ=BQ.createTreeWalker(BQ,129,null,!1),mwn=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"":"",s=zae;for(let c=0;c"?(s=a??zae,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?d5:h[3]==='"'?rPt:tPt):s===rPt||s===tPt?s=d5:s===XAt||s===ePt?s=zae:(s=d5,a=void 0);let y=s===d5&&r[c+1].startsWith("/>")?" ":"";i+=s===zae?u+hwn:f>=0?(n.push(l),u.slice(0,f)+"$lit$"+u.slice(f)+W1+y):u+W1+(f===-2?(n.push(void 0),c):y)}let o=i+(r[t]||"")+(e===2?"":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ZAt!==void 0?ZAt.createHTML(o):o,n]},p5=class{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,o=e.length-1,c=this.parts,[u,l]=mwn(e,t);if(this.el=p5.createElement(u,n),MQ.currentNode=this.el.content,t===2){let h=this.el.content,f=h.firstChild;f.remove(),h.append(...f.childNodes)}for(;(a=MQ.nextNode())!==null&&c.length0){a.textContent=NQ?NQ.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=io}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=DQ(this,e,t,0),s=!Gae(e)||e!==this._$AH&&e!==wy,s&&(this._$AH=e);else{let o=e,c,u;for(e=i[0],c=0;c{var n,a;let i=(n=t?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let o=(a=t?.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=s=new h5(e.insertBefore(Kae(),o),o,void 0,t??{})}return s._$AI(r),s}});var JDe,ZDe,gt,lPt,dPt=ce(()=>{d();p();uve();uve();f5();f5();gt=class extends vy{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=uPt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return wy}};gt.finalized=!0,gt._$litElement$=!0,(JDe=globalThis.litElementHydrateSupport)===null||JDe===void 0||JDe.call(globalThis,{LitElement:gt});lPt=globalThis.litElementPolyfillSupport;lPt?.({LitElement:gt});((ZDe=globalThis.litElementVersions)!==null&&ZDe!==void 0?ZDe:globalThis.litElementVersions=[]).push("3.2.2")});var pPt=ce(()=>{d();p();});var hPt=ce(()=>{d();p();uve();f5();dPt();pPt()});var Jt,fPt=ce(()=>{d();p();Jt=r=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(r,e):((t,n)=>{let{kind:a,elements:i}=n;return{kind:a,elements:i,finisher(s){customElements.define(t,s)}}})(r,e)});function ar(r){return(e,t)=>t!==void 0?((n,a,i)=>{a.constructor.createProperty(i,n)})(r,e,t):gwn(r,e)}var gwn,XDe=ce(()=>{d();p();gwn=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}}});function xn(r){return ar({...r,state:!0})}var mPt=ce(()=>{d();p();XDe();});var m5=ce(()=>{d();p();});var yPt=ce(()=>{d();p();m5();});var gPt=ce(()=>{d();p();m5();});var bPt=ce(()=>{d();p();m5();});var vPt=ce(()=>{d();p();m5();});var eLe,aEa,tLe=ce(()=>{d();p();m5();aEa=((eLe=window.HTMLSlotElement)===null||eLe===void 0?void 0:eLe.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var wPt=ce(()=>{d();p();m5();tLe();});var xPt=ce(()=>{d();p();fPt();XDe();mPt();yPt();gPt();bPt();vPt();tLe();wPt()});var _Pt,TPt,dve,IPt=ce(()=>{d();p();_Pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},TPt=r=>(...e)=>({_$litDirective$:r,values:e}),dve=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var rl,EPt=ce(()=>{d();p();f5();IPt();rl=TPt(class extends dve{constructor(r){var e;if(super(r),r.type!==_Pt.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,n;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let a=r.element.classList;this.nt.forEach(i=>{i in e||(a.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((n=this.st)===null||n===void 0?void 0:n.has(i))||(s?(a.add(i),this.nt.add(i)):(a.remove(i),this.nt.delete(i)))}return wy}})});var CPt=ce(()=>{d();p();EPt()});function rLe(r,e){r.indexOf(e)===-1&&r.push(e)}var kPt=ce(()=>{d();p()});var Yae,nLe=ce(()=>{d();p();Yae=(r,e,t)=>Math.min(Math.max(t,r),e)});var Bc,APt=ce(()=>{d();p();Bc={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}});var cf,pve=ce(()=>{d();p();cf=r=>typeof r=="number"});var Om,aLe=ce(()=>{d();p();pve();Om=r=>Array.isArray(r)&&!cf(r[0])});var PPt,SPt=ce(()=>{d();p();PPt=(r,e,t)=>{let n=e-r;return((t-r)%n+n)%n+r}});function RPt(r,e){return Om(r)?r[PPt(0,r.length,e)]:r}var MPt=ce(()=>{d();p();aLe();SPt()});var hve,iLe=ce(()=>{d();p();hve=(r,e,t)=>-t*r+t*e+r});var $ae,ko,sLe=ce(()=>{d();p();$ae=()=>{},ko=r=>r});var y5,fve=ce(()=>{d();p();y5=(r,e,t)=>e-r===0?1:(t-r)/(e-r)});function oLe(r,e){let t=r[r.length-1];for(let n=1;n<=e;n++){let a=y5(0,e,n);r.push(hve(t,1,a))}}function NPt(r){let e=[0];return oLe(e,r-1),e}var BPt=ce(()=>{d();p();iLe();fve()});function cLe(r,e=NPt(r.length),t=ko){let n=r.length,a=n-e.length;return a>0&&oLe(e,a),i=>{let s=0;for(;s{d();p();iLe();sLe();BPt();fve();MPt();nLe()});var Qae,LPt=ce(()=>{d();p();pve();Qae=r=>Array.isArray(r)&&cf(r[0])});var OQ,OPt=ce(()=>{d();p();OQ=r=>typeof r=="object"&&Boolean(r.createAnimation)});var jp,qPt=ce(()=>{d();p();jp=r=>typeof r=="function"});var Jae,FPt=ce(()=>{d();p();Jae=r=>typeof r=="string"});var qm,WPt=ce(()=>{d();p();qm={ms:r=>r*1e3,s:r=>r/1e3}});function uLe(r,e){return e?r*(1e3/e):0}var UPt=ce(()=>{d();p()});var Nu=ce(()=>{d();p();kPt();nLe();APt();DPt();LPt();OPt();aLe();qPt();pve();FPt();sLe();fve();WPt();UPt()});function wwn(r,e,t,n,a){let i,s,o=0;do s=e+(t-e)/2,i=HPt(s,n,a)-r,i>0?t=s:e=s;while(Math.abs(i)>bwn&&++owwn(i,0,1,r,t);return i=>i===0||i===1?i:HPt(a(i),e,n)}var HPt,bwn,vwn,jPt=ce(()=>{d();p();Nu();HPt=(r,e,t)=>(((1-3*t+3*e)*r+(3*t-6*e))*r+3*e)*r,bwn=1e-7,vwn=12});var lLe,zPt=ce(()=>{d();p();Nu();lLe=(r,e="end")=>t=>{t=e==="end"?Math.min(t,.999):Math.max(t,.001);let n=t*r,a=e==="end"?Math.floor(n):Math.ceil(n);return Yae(0,1,a/r)}});var KPt=ce(()=>{d();p();jPt();zPt()});function dLe(r){if(jp(r))return r;if(Qae(r))return g5(...r);if(GPt[r])return GPt[r];if(r.startsWith("steps")){let e=xwn.exec(r);if(e){let t=e[1].split(",");return lLe(parseFloat(t[0]),t[1].trim())}}return ko}var GPt,xwn,VPt=ce(()=>{d();p();KPt();Nu();GPt={ease:g5(.25,.1,.25,1),"ease-in":g5(.42,0,1,1),"ease-in-out":g5(.42,0,.58,1),"ease-out":g5(0,0,.58,1)},xwn=/\((.*?)\)/});var b5,YPt=ce(()=>{d();p();Nu();VPt();b5=class{constructor(e,t=[0,1],{easing:n,duration:a=Bc.duration,delay:i=Bc.delay,endDelay:s=Bc.endDelay,repeat:o=Bc.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=ko,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,f)=>{this.resolve=h,this.reject=f}),n=n||Bc.easing,OQ(n)){let h=n.createAnimation(t);n=h.easing,t=h.keyframes||t,a=h.duration||a}this.repeat=o,this.easing=Om(n)?ko:dLe(n),this.updateDuration(a);let l=cLe(t,c,Om(n)?n.map(dLe):ko);this.tick=h=>{var f;i=i;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(h-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);let y=m/this.duration,I=Math.floor(y),C=y%1;!C&&y>=1&&(C=1),C===1&&I--;let R=I%2;(u==="reverse"||u==="alternate"&&R||u==="alternate-reverse"&&!R)&&(C=1-C);let L=m>=this.totalDuration?1:Math.min(C,1),F=l(this.easing(L));e(F),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,F)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}});var pLe=ce(()=>{d();p();YPt()});var _wn,mve,$Pt=ce(()=>{d();p();_wn=function(){},mve=function(){};g.env.NODE_ENV!=="production"&&(_wn=function(r,e){!r&&typeof console<"u"&&console.warn(e)},mve=function(r,e){if(!r)throw new Error(e)})});var Zae,QPt=ce(()=>{d();p();Zae=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}});var hLe=ce(()=>{d();p();QPt()});function yve(r){return fLe.has(r)||fLe.set(r,{transforms:[],values:new Map}),fLe.get(r)}function JPt(r,e){return r.has(e)||r.set(e,new Zae),r.get(e)}var fLe,mLe=ce(()=>{d();p();hLe();fLe=new WeakMap});var Twn,Iwn,Xae,ZPt,Ewn,Fm,bve,gve,Cwn,kwn,vve,XPt,Awn,Pwn,qQ=ce(()=>{d();p();Nu();mLe();Twn=["","X","Y","Z"],Iwn=["translate","scale","rotate","skew"],Xae={x:"translateX",y:"translateY",z:"translateZ"},ZPt={syntax:"",initialValue:"0deg",toDefaultUnit:r=>r+"deg"},Ewn={translate:{syntax:"",initialValue:"0px",toDefaultUnit:r=>r+"px"},rotate:ZPt,scale:{syntax:"",initialValue:1,toDefaultUnit:ko},skew:ZPt},Fm=new Map,bve=r=>`--motion-${r}`,gve=["x","y","z"];Iwn.forEach(r=>{Twn.forEach(e=>{gve.push(r+e),Fm.set(bve(r+e),Ewn[r])})});Cwn=(r,e)=>gve.indexOf(r)-gve.indexOf(e),kwn=new Set(gve),vve=r=>kwn.has(r),XPt=(r,e)=>{Xae[e]&&(e=Xae[e]);let{transforms:t}=yve(r);rLe(t,e),r.style.transform=Awn(t)},Awn=r=>r.sort(Cwn).reduce(Pwn,"").trim(),Pwn=(r,e)=>`${r} ${e}(var(${bve(e)}))`});function tSt(r){if(!eSt.has(r)){eSt.add(r);try{let{syntax:e,initialValue:t}=Fm.has(r)?Fm.get(r):{};CSS.registerProperty({name:r,inherits:!1,syntax:e,initialValue:t})}catch{}}}var eie,eSt,yLe=ce(()=>{d();p();qQ();eie=r=>r.startsWith("--"),eSt=new Set});var gLe,rSt,bLe,U1,vLe=ce(()=>{d();p();gLe=(r,e)=>document.createElement("div").animate(r,e),rSt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{gLe({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(gLe({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{gLe({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},bLe={},U1={};for(let r in rSt)U1[r]=()=>(bLe[r]===void 0&&(bLe[r]=rSt[r]()),bLe[r])});var Swn,Rwn,wLe,Mwn,nSt=ce(()=>{d();p();Nu();vLe();Swn=.015,Rwn=(r,e)=>{let t="",n=Math.round(e/Swn);for(let a=0;ajp(r)?U1.linearEasing()?`linear(${Rwn(r,e)})`:Bc.easing:Qae(r)?Mwn(r):r,Mwn=([r,e,t,n])=>`cubic-bezier(${r}, ${e}, ${t}, ${n})`});function aSt(r,e){for(let t=0;t{d();p();iSt=r=>Array.isArray(r)?r:[r]});function v5(r){return Xae[r]&&(r=Xae[r]),vve(r)?bve(r):r}var wve=ce(()=>{d();p();qQ()});var tie,oSt=ce(()=>{d();p();yLe();wve();qQ();tie={get:(r,e)=>{e=v5(e);let t=eie(e)?r.style.getPropertyValue(e):getComputedStyle(r)[e];if(!t&&t!==0){let n=Fm.get(e);n&&(t=n.initialValue)}return t},set:(r,e,t)=>{e=v5(e),eie(e)?r.style.setProperty(e,t):r.style[e]=t}}});function xve(r,e=!0){if(!(!r||r.playState==="finished"))try{r.stop?r.stop():(e&&r.commitStyles(),r.cancel())}catch{}}var xLe=ce(()=>{d();p()});function _ve(r,e){var t;let n=e?.toDefaultUnit||ko,a=r[r.length-1];if(Jae(a)){let i=((t=a.match(/(-?[\d.]+)([a-z%]*)/))===null||t===void 0?void 0:t[2])||"";i&&(n=s=>s+i)}return n}var _Le=ce(()=>{d();p();Nu()});function Nwn(){return window.__MOTION_DEV_TOOLS_RECORD}function cSt(r,e,t,n={},a){let i=Nwn(),s=n.record!==!1&&i,o,{duration:c=Bc.duration,delay:u=Bc.delay,endDelay:l=Bc.endDelay,repeat:h=Bc.repeat,easing:f=Bc.easing,persist:m=!1,direction:y,offset:I,allowWebkitAcceleration:C=!1}=n,R=yve(r),L=vve(e),F=U1.waapi();L&&XPt(r,e);let W=v5(e),V=JPt(R.values,W),K=Fm.get(W);return xve(V.animation,!(OQ(f)&&V.generator)&&n.record!==!1),()=>{let H=()=>{var q,T;return(T=(q=tie.get(r,W))!==null&&q!==void 0?q:K?.initialValue)!==null&&T!==void 0?T:0},G=aSt(iSt(t),H),Q=_ve(G,K);if(OQ(f)){let q=f.createAnimation(G,e!=="opacity",H,W,V);f=q.easing,G=q.keyframes||G,c=q.duration||c}if(eie(W)&&(U1.cssRegisterProperty()?tSt(W):F=!1),L&&!U1.linearEasing()&&(jp(f)||Om(f)&&f.some(jp))&&(F=!1),F){K&&(G=G.map(M=>cf(M)?K.toDefaultUnit(M):M)),G.length===1&&(!U1.partialKeyframes()||s)&&G.unshift(H());let q={delay:qm.ms(u),duration:qm.ms(c),endDelay:qm.ms(l),easing:Om(f)?void 0:wLe(f,c),direction:y,iterations:h+1,fill:"both"};o=r.animate({[W]:G,offset:I,easing:Om(f)?f.map(M=>wLe(M,c)):void 0},q),o.finished||(o.finished=new Promise((M,A)=>{o.onfinish=M,o.oncancel=A}));let T=G[G.length-1];o.finished.then(()=>{m||(tie.set(r,W,T),o.cancel())}).catch($ae),C||(o.playbackRate=1.000001)}else if(a&&L)G=G.map(q=>typeof q=="string"?parseFloat(q):q),G.length===1&&G.unshift(parseFloat(H())),o=new a(q=>{tie.set(r,W,Q?Q(q):q)},G,Object.assign(Object.assign({},n),{duration:c,easing:f}));else{let q=G[G.length-1];tie.set(r,W,K&&cf(q)?K.toDefaultUnit(q):q)}return s&&i(r,e,G,{duration:c,delay:u,easing:f,repeat:h,offset:I},"motion-one"),V.setAnimation(o),o}}var uSt=ce(()=>{d();p();mLe();yLe();Nu();qQ();nSt();vLe();sSt();oSt();wve();xLe();_Le()});var lSt,dSt=ce(()=>{d();p();lSt=(r,e)=>r[e]?Object.assign(Object.assign({},r),r[e]):Object.assign({},r)});function pSt(r,e){var t;return typeof r=="string"?e?((t=e[r])!==null&&t!==void 0||(e[r]=document.querySelectorAll(r)),r=e[r]):r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[])}var hSt=ce(()=>{d();p()});var Bwn,rie,Dwn,Lwn,Own,TLe=ce(()=>{d();p();Nu();xLe();Bwn=r=>r(),rie=(r,e,t=Bc.duration)=>new Proxy({animations:r.map(Bwn).filter(Boolean),duration:t,options:e},Lwn),Dwn=r=>r.animations[0],Lwn={get:(r,e)=>{let t=Dwn(r);switch(e){case"duration":return r.duration;case"currentTime":return qm.s(t?.[e]||0);case"playbackRate":case"playState":return t?.[e];case"finished":return r.finished||(r.finished=Promise.all(r.animations.map(Own)).catch($ae)),r.finished;case"stop":return()=>{r.animations.forEach(n=>xve(n))};case"forEachNative":return n=>{r.animations.forEach(a=>n(a,r))};default:return typeof t?.[e]>"u"?void 0:()=>r.animations.forEach(n=>n[e]())}},set:(r,e,t)=>{switch(e){case"currentTime":t=qm.ms(t);case"currentTime":case"playbackRate":for(let n=0;nr.finished});function fSt(r,e,t){return jp(r)?r(e,t):r}var mSt=ce(()=>{d();p();Nu()});function ySt(r){return function(t,n,a={}){t=pSt(t);let i=t.length;mve(Boolean(i),"No valid element provided."),mve(Boolean(n),"No keyframes defined.");let s=[];for(let o=0;o{d();p();$Pt();uSt();dSt();hSt();TLe();mSt()});var ILe,bSt=ce(()=>{d();p();pLe();gSt();ILe=ySt(b5)});function nie(r,e,t){let n=Math.max(e-qwn,0);return uLe(t-r(n),e-n)}var qwn,ELe=ce(()=>{d();p();Nu();qwn=5});var H1,CLe=ce(()=>{d();p();H1={stiffness:100,damping:10,mass:1}});var vSt,wSt=ce(()=>{d();p();CLe();vSt=(r=H1.stiffness,e=H1.damping,t=H1.mass)=>e/(2*Math.sqrt(r*t))});function xSt(r,e,t){return r=e||r>e&&t<=e}var _St=ce(()=>{d();p()});var kLe,TSt=ce(()=>{d();p();Nu();CLe();wSt();_St();ELe();kLe=({stiffness:r=H1.stiffness,damping:e=H1.damping,mass:t=H1.mass,from:n=0,to:a=1,velocity:i=0,restSpeed:s=2,restDistance:o=.5}={})=>{i=i?qm.s(i):0;let c={done:!1,hasReachedTarget:!1,current:n,target:a},u=a-n,l=Math.sqrt(r/t)/1e3,h=vSt(r,e,t),f;if(h<1){let m=l*Math.sqrt(1-h*h);f=y=>a-Math.exp(-h*l*y)*((-i+h*l*u)/m*Math.sin(m*y)+u*Math.cos(m*y))}else f=m=>a-Math.exp(-l*m)*(u+(-i+l*u)*m);return m=>{c.current=f(m);let y=m===0?i:nie(f,m,c.current),I=Math.abs(y)<=s,C=Math.abs(a-c.current)<=o;return c.done=I&&C,c.hasReachedTarget=xSt(n,a,c.current),c}}});function PLe(r,e=ko){let t,n=ALe,a=r(0),i=[e(a.current)];for(;!a.done&&n{d();p();Nu();ALe=10,Fwn=1e4});var SLe=ce(()=>{d();p();TSt();ISt();ELe()});function ESt(r){return cf(r)&&!isNaN(r)}function RLe(r){return Jae(r)?parseFloat(r):r}function CSt(r){let e=new WeakMap;return(t={})=>{let n=new Map,a=(s=0,o=100,c=0,u=!1)=>{let l=`${s}-${o}-${c}-${u}`;return n.has(l)||n.set(l,r(Object.assign({from:s,to:o,velocity:c,restSpeed:u?.05:2,restDistance:u?.01:.5},t))),n.get(l)},i=(s,o)=>(e.has(s)||e.set(s,PLe(s,o)),e.get(s));return{createAnimation:(s,o=!0,c,u,l)=>{let h,f,m,y=0,I=ko,C=s.length;if(o){I=_ve(s,u?Fm.get(v5(u)):void 0);let R=s[C-1];if(m=RLe(R),C>1&&s[0]!==null)f=RLe(s[0]);else{let L=l?.generator;if(L){let{animation:F,generatorStartTime:W}=l,V=F?.startTime||W||0,K=F?.currentTime||performance.now()-V,H=L(K).current;f=H,y=nie(G=>L(G).current,K,H)}else c&&(f=RLe(c()))}}if(ESt(f)&&ESt(m)){let R=a(f,m,y,u?.includes("scale"));h=Object.assign(Object.assign({},i(R,I)),{easing:"linear"}),l&&(l.generator=R,l.generatorStartTime=performance.now())}return h||(h={easing:"ease",duration:i(a(0,100)).overshootDuration}),h}}}}var kSt=ce(()=>{d();p();SLe();Nu();_Le();qQ();wve()});var FQ,ASt=ce(()=>{d();p();SLe();kSt();FQ=CSt(kLe)});var MLe=ce(()=>{d();p();bSt();ASt();TLe()});function Wwn(r,e={}){return rie([()=>{let t=new b5(r,[0,1],e);return t.finished.catch(()=>{}),t}],e,e.duration)}function Wm(r,e,t){return(jp(r)?Wwn:ILe)(r,e,t)}var PSt=ce(()=>{d();p();MLe();Nu();pLe()});var SSt=ce(()=>{d();p();MLe();hLe();PSt()});var nl,RSt=ce(()=>{d();p();f5();nl=r=>r??io});var MSt=ce(()=>{d();p();RSt()});var ZSt={};cr(ZSt,{W3mAccountButton:()=>jQ,W3mConnectButton:()=>C5,W3mCoreButton:()=>z1,W3mModal:()=>gie,W3mNetworkSwitch:()=>k5});function zwn(){var r;let e=(r=Lm.state.themeMode)!=null?r:"dark",t={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--w3m-color-fg-1":t.foreground[1],"--w3m-color-fg-2":t.foreground[2],"--w3m-color-fg-3":t.foreground[3],"--w3m-color-bg-1":t.background[1],"--w3m-color-bg-2":t.background[2],"--w3m-color-bg-3":t.background[3],"--w3m-color-overlay":t.overlay}}function Kwn(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)"}}function Gwn(){let{themeVariables:r}=Lm.state;return{"--w3m-background-image-url":r!=null&&r["--w3m-background-image-url"]?`url(${r["--w3m-background-image-url"]})`:"none"}}function OLe(r,e,t){return r===e?!1:(r-e<0?e-r:r-e)<=t+B5n}function D5n(r,e){let t=Array.prototype.slice.call(JSt.default.create(r,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((a,i,s)=>(s%n===0?a.push([i]):a[a.length-1].push(i))&&a,[])}var JSt,Uwn,NSt,Hwn,jwn,BSt,Tve,or,Vwn,Ywn,$wn,Ive,WQ,Qwn,Jwn,Zwn,aie,w5,Xwn,e5n,t5n,NLe,iie,yr,r5n,n5n,a5n,DSt,Eve,i5n,s5n,o5n,c5n,BLe,u5n,l5n,d5n,p5n,DLe,h5n,f5n,m5n,sie,x5,y5n,zQ,A5,g5n,b5n,LSt,v5n,w5n,OSt,x5n,Fe,_5n,T5n,I5n,LLe,oie,E5n,C5n,k5n,qSt,Cve,A5n,P5n,S5n,kve,UQ,R5n,M5n,N5n,FSt,Ave,B5n,WSt,xy,L5n,O5n,q5n,F5n,cie,_5,W5n,U5n,H5n,USt,Pve,j5n,z5n,K5n,G5n,qLe,V5n,Y5n,$5n,FLe,uie,Q5n,J5n,Z5n,HSt,Sve,X5n,e3n,t3n,j1,Um,r3n,n3n,a3n,WLe,lie,i3n,s3n,o3n,jSt,c3n,u3n,zSt,ULe,l3n,d3n,KSt,HLe,p3n,h3n,f3n,GSt,m3n,y3n,g3n,jLe,jQ,b3n,v3n,w3n,zLe,die,x3n,_3n,T3n,pie,T5,al,I3n,E3n,C3n,k3n,KLe,A3n,P3n,S3n,hie,I5,R3n,M3n,N3n,GLe,fie,B3n,D3n,L3n,Rve,C5,O3n,q3n,HQ,z1,F3n,W3n,U3n,H3n,VLe,j3n,z3n,K3n,G3n,YLe,V3n,Y3n,$3n,Q3n,$Le,J3n,Z3n,X3n,VSt,gie,exn,txn,rxn,Mve,k5,nxn,axn,ixn,sxn,QLe,oxn,cxn,uxn,YSt,Nve,lxn,dxn,pxn,hxn,JLe,fxn,mxn,yxn,ZLe,gxn,bxn,vxn,wxn,XLe,xxn,_xn,Txn,$St,Bve,Ixn,Exn,Cxn,kxn,eOe,Axn,Pxn,Sxn,Rxn,tOe,Mxn,Nxn,Bxn,rOe,mie,Dxn,Lxn,Oxn,qxn,nOe,Fxn,Wxn,Uxn,aOe,Hxn,jxn,zxn,Kxn,iOe,Gxn,Vxn,Yxn,QSt,Dve,$xn,Qxn,Jxn,yie,sOe,E5,XSt=ce(()=>{d();p();hPt();xPt();qDe();CPt();f5();SSt();MSt();JSt=un(LMe(),1),Uwn=Object.defineProperty,NSt=Object.getOwnPropertySymbols,Hwn=Object.prototype.hasOwnProperty,jwn=Object.prototype.propertyIsEnumerable,BSt=(r,e,t)=>e in r?Uwn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Tve=(r,e)=>{for(var t in e||(e={}))Hwn.call(e,t)&&BSt(r,t,e[t]);if(NSt)for(var t of NSt(e))jwn.call(e,t)&&BSt(r,t,e[t]);return r};or={setTheme(){let r=document.querySelector(":root"),{themeVariables:e}=Lm.state;if(r){let t=Tve(Tve(Tve(Tve({},zwn()),Kwn()),e),Gwn());Object.entries(t).forEach(([n,a])=>r.style.setProperty(n,a))}},globalCss:pr`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},Vwn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`,Ywn=Object.defineProperty,$wn=Object.getOwnPropertyDescriptor,Ive=(r,e,t,n)=>{for(var a=n>1?void 0:n?$wn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ywn(e,t,a),a},WQ=class extends gt{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return xe``}};WQ.styles=[or.globalCss,Vwn],Ive([ar()],WQ.prototype,"icon",2),Ive([ar()],WQ.prototype,"label",2),Ive([ar()],WQ.prototype,"onClick",2),WQ=Ive([Jt("w3m-box-button")],WQ);Qwn=pr`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{background-color:var(--w3m-color-bg-3)}`,Jwn=Object.defineProperty,Zwn=Object.getOwnPropertyDescriptor,aie=(r,e,t,n)=>{for(var a=n>1?void 0:n?Zwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Jwn(e,t,a),a},w5=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){let r={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0};return xe``}};w5.styles=[or.globalCss,Qwn],aie([ar()],w5.prototype,"disabled",2),aie([ar()],w5.prototype,"iconLeft",2),aie([ar()],w5.prototype,"iconRight",2),aie([ar()],w5.prototype,"onClick",2),w5=aie([Jt("w3m-button")],w5);Xwn=pr`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}`,e5n=Object.defineProperty,t5n=Object.getOwnPropertyDescriptor,NLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?t5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&e5n(e,t,a),a},iie=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let r={"w3m-secondary":this.variant==="secondary"};return xe``}};iie.styles=[or.globalCss,Xwn],NLe([ar()],iie.prototype,"disabled",2),NLe([ar()],iie.prototype,"variant",2),iie=NLe([Jt("w3m-button-big")],iie);yr={CROSS_ICON:Dr``,WALLET_CONNECT_LOGO:Dr``,WALLET_CONNECT_ICON:Dr``,WALLET_CONNECT_ICON_COLORED:Dr``,BACK_ICON:Dr``,COPY_ICON:Dr``,RETRY_ICON:Dr``,DESKTOP_ICON:Dr``,MOBILE_ICON:Dr``,ARROW_DOWN_ICON:Dr``,ARROW_UP_RIGHT_ICON:Dr``,ARROW_RIGHT_ICON:Dr``,QRCODE_ICON:Dr``,SCAN_ICON:Dr``,CHECKMARK_ICON:Dr``,HELP_ETH_IMG:Dr``,HELP_PAINTING_IMG:Dr``,HELP_CHART_IMG:Dr``,HELP_KEY_IMG:Dr``,HELP_USER_IMG:Dr``,HELP_LOCK_IMG:Dr``,HELP_COMPAS_IMG:Dr``,HELP_NOUN_IMG:Dr``,HELP_DAO_IMG:Dr``,SEARCH_ICON:Dr``,HELP_ICON:Dr``,WALLET_ICON:Dr``,NETWORK_PLACEHOLDER:Dr``,WALLET_PLACEHOLDER:Dr``,TOKEN_PLACEHOLDER:Dr``,ACCOUNT_COPY:Dr``,ACCOUNT_DISCONNECT:Dr``},r5n=pr`.w3m-custom-placeholder{inset:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9)}.w3m-custom-placeholder{background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}.w3m-action-btn{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}.w3m-action-btn:hover{background-color:var(--w3m-color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--w3m-color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}`,n5n=Object.defineProperty,a5n=Object.getOwnPropertyDescriptor,DSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?a5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&n5n(e,t,a),a},Eve=class extends gt{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=Br.subscribe(r=>{this.isHelp=r.view==="Help"})}disconnectedCallback(){var r;(r=this.unsubscribeRouter)==null||r.call(this)}onHelp(){Br.push("Help")}logoTemplate(){var r;let e=(r=Lm.state.themeVariables)==null?void 0:r["--w3m-logo-image-url"];return e?xe``:yr.WALLET_CONNECT_LOGO}render(){let r={"w3m-actions":!0,"w3m-help-active":this.isHelp};return xe`
${this.logoTemplate()}
`}};Eve.styles=[or.globalCss,r5n],DSt([xn()],Eve.prototype,"isHelp",2),Eve=DSt([Jt("w3m-modal-backcard")],Eve);i5n=pr`main{padding:20px;padding-top:0;width:100%}`,s5n=Object.defineProperty,o5n=Object.getOwnPropertyDescriptor,c5n=(r,e,t,n)=>{for(var a=n>1?void 0:n?o5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&s5n(e,t,a),a},BLe=class extends gt{render(){return xe`
`}};BLe.styles=[or.globalCss,i5n],BLe=c5n([Jt("w3m-modal-content")],BLe);u5n=pr`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`,l5n=Object.defineProperty,d5n=Object.getOwnPropertyDescriptor,p5n=(r,e,t,n)=>{for(var a=n>1?void 0:n?d5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&l5n(e,t,a),a},DLe=class extends gt{render(){return xe`
`}};DLe.styles=[or.globalCss,u5n],DLe=p5n([Jt("w3m-modal-footer")],DLe);h5n=pr`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`,f5n=Object.defineProperty,m5n=Object.getOwnPropertyDescriptor,sie=(r,e,t,n)=>{for(var a=n>1?void 0:n?m5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&f5n(e,t,a),a},x5=class extends gt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return xe``}actionBtnTemplate(){return xe``}render(){let r={"w3m-border":this.border},e=Br.state.history.length>1,t=this.title?xe`${this.title}`:xe``;return xe`
${e?this.backBtnTemplate():null} ${t} ${this.onAction?this.actionBtnTemplate():null}
`}};x5.styles=[or.globalCss,h5n],sie([ar()],x5.prototype,"title",2),sie([ar()],x5.prototype,"onAction",2),sie([ar()],x5.prototype,"actionIcon",2),sie([ar()],x5.prototype,"border",2),x5=sie([Jt("w3m-modal-header")],x5);y5n={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00"},zQ=(r=>(r.metaMask="metaMask",r.trust="trust",r.phantom="phantom",r.brave="brave",r.spotEthWallet="spotEthWallet",r.exodus="exodus",r.tokenPocket="tokenPocket",r.frame="frame",r.tally="tally",r.coinbaseWallet="coinbaseWallet",r.core="core",r.bitkeep="bitkeep",r.mathWallet="mathWallet",r.opera="opera",r.tokenary="tokenary",r["1inch"]="1inch",r.kuCoinWallet="kuCoinWallet",r.ledger="ledger",r))(zQ||{}),A5={injectedPreset:{metaMask:{name:"MetaMask",icon:"619537c0-2ff3-4c78-9ed8-a05e7567f300",url:"https://metamask.io",isMobile:!0,isInjected:!0},trust:{name:"Trust",icon:"0528ee7e-16d1-4089-21e3-bbfb41933100",url:"https://trustwallet.com",isMobile:!0,isInjected:!0},spotEthWallet:{name:"Spot",icon:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",url:"https://www.spot-wallet.com",isMobile:!0,isInjected:!0},phantom:{name:"Phantom",icon:"62471a22-33cb-4e65-5b54-c3d9ea24b900",url:"https://phantom.app",isInjected:!0},core:{name:"Core",icon:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",url:"https://core.app",isMobile:!0,isInjected:!0},bitkeep:{name:"BitKeep",icon:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",url:"https://bitkeep.com",isMobile:!0,isInjected:!0},tokenPocket:{name:"TokenPocket",icon:"f3119826-4ef5-4d31-4789-d4ae5c18e400",url:"https://www.tokenpocket.pro",isMobile:!0,isInjected:!0},mathWallet:{name:"MathWallet",icon:"26a8f588-3231-4411-60ce-5bb6b805a700",url:"https://mathwallet.org",isMobile:!0,isInjected:!0},exodus:{name:"Exodus",icon:"4c16cad4-cac9-4643-6726-c696efaf5200",url:"https://www.exodus.com",isMobile:!0,isDesktop:!0,isInjected:!0},kuCoinWallet:{name:"KuCoin Wallet",icon:"1e47340b-8fd7-4ad6-17e7-b2bd651fae00",url:"https://kuwallet.com",isMobile:!0,isInjected:!0},ledger:{name:"Ledger",icon:"a7f416de-aa03-4c5e-3280-ab49269aef00",url:"https://www.ledger.com",isDesktop:!0},brave:{name:"Brave",icon:"125e828e-9936-4451-a8f2-949c119b7400",url:"https://brave.com/wallet",isInjected:!0},frame:{name:"Frame",icon:"cd492418-ea85-4ef1-aeed-1c9e20b58900",url:"https://frame.sh",isInjected:!0},tally:{name:"Tally",icon:"98d2620c-9fc8-4a1c-31bc-78d59d00a300",url:"https://tallyho.org",isInjected:!0},coinbaseWallet:{name:"Coinbase",icon:"f8068a7f-83d7-4190-1f94-78154a12c600",url:"https://www.coinbase.com/wallet",isInjected:!0},opera:{name:"Opera",icon:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",url:"https://www.opera.com/crypto",isInjected:!0},tokenary:{name:"Tokenary",icon:"5e481041-dc3c-4a81-373a-76bbde91b800",url:"https://tokenary.io",isDesktop:!0,isInjected:!0},["1inch"]:{name:"1inch Wallet",icon:"dce1ee99-403f-44a9-9f94-20de30616500",url:"https://1inch.io/wallet",isMobile:!0}},getInjectedId(r){if(r.toUpperCase()!=="INJECTED"&&r.length)return r;let{ethereum:e,spotEthWallet:t,coinbaseWalletExtension:n}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":t?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isTally?"tally":n?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch":e.isKuCoinWallet?"kuCoinWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},getInjectedName(r){var e,t;if(r.length&&r.toUpperCase()!=="INJECTED")return r;let n=A5.getInjectedId("");return(t=(e=A5.injectedPreset[n])==null?void 0:e.name)!=null?t:"Injected"}},g5n={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},b5n=Object.defineProperty,LSt=Object.getOwnPropertySymbols,v5n=Object.prototype.hasOwnProperty,w5n=Object.prototype.propertyIsEnumerable,OSt=(r,e,t)=>e in r?b5n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,x5n=(r,e)=>{for(var t in e||(e={}))v5n.call(e,t)&&OSt(r,t,e[t]);if(LSt)for(var t of LSt(e))w5n.call(e,t)&&OSt(r,t,e[t]);return r},Fe={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",rejectStandaloneButtonComponent(){let{isStandalone:r}=yt.state;if(r)throw new Error("Web3Modal button components are not available in standalone mode.")},getShadowRootElement(r,e){let t=r.renderRoot.querySelector(e);if(!t)throw new Error(`${e} not found`);return t},getWalletId(r){return A5.getInjectedId(r)},getWalletIcon(r){var e,t;let n=(e=A5.injectedPreset[r])==null?void 0:e.icon,{projectId:a,walletImages:i}=Ds.state;return(t=i?.[r])!=null?t:a&&n?no.getImageUrl(n):""},getWalletName(r,e=!1){let t=A5.getInjectedName(r);return e?t.split(" ")[0]:t},getChainIcon(r){var e;let t=y5n[r],{projectId:n,chainImages:a}=Ds.state;return(e=a?.[r])!=null?e:n&&t?no.getImageUrl(t):""},getTokenIcon(r){var e,t;let n=(e=g5n[r])==null?void 0:e.icon,{projectId:a,tokenImages:i}=Ds.state;return(t=i?.[r])!=null?t:a&&n?no.getImageUrl(n):""},isMobileAnimation(){return window.innerWidth<=Fe.MOBILE_BREAKPOINT},async preloadImage(r){let e=new Promise((t,n)=>{let a=new Image;a.onload=t,a.onerror=n,a.src=r});return Promise.race([e,Pr.wait(3e3)])},getErrorMessage(r){return r instanceof Error?r.message:"Unknown Error"},debounce(r,e=500){let t;return(...n)=>{function a(){r(...n)}t&&clearTimeout(t),t=setTimeout(a,e)}},async handleMobileLinking(r){Pr.removeWalletConnectDeepLink();let{standaloneUri:e,selectedChain:t}=yt.state,{links:n,name:a}=r;function i(s){let o="";n!=null&&n.universal?o=Pr.formatUniversalUrl(n.universal,s,a):n!=null&&n.native&&(o=Pr.formatNativeUrl(n.native,s,a)),Pr.openHref(o,"_self")}e?(Fe.setRecentWallet(r),i(e)):(await qi.client().connectWalletConnect(s=>{i(s)},t?.id),Fe.setRecentWallet(r),ao.close())},async handleAndroidLinking(){Pr.removeWalletConnectDeepLink();let{standaloneUri:r,selectedChain:e}=yt.state;r?Pr.openHref(r,"_self"):(await qi.client().connectWalletConnect(t=>{Pr.setWalletConnectAndroidDeepLink(t),Pr.openHref(t,"_self")},e?.id),ao.close())},async handleUriCopy(){let{standaloneUri:r}=yt.state;if(r)await navigator.clipboard.writeText(r);else{let e=qi.client().walletConnectUri;await navigator.clipboard.writeText(e)}Nc.openToast("Link copied","success")},async handleConnectorConnection(r,e){try{let{selectedChain:t}=yt.state;await qi.client().connectConnector(r,t?.id),ao.close()}catch(t){console.error(t),e?e():Nc.openToast(Fe.getErrorMessage(t),"error")}},getCustomWallets(){var r;let{desktopWallets:e,mobileWallets:t}=Ds.state;return(r=Pr.isMobile()?t:e)!=null?r:[]},getCustomImageUrls(){let{chainImages:r,walletImages:e}=Ds.state,t=Object.values(r??{}),n=Object.values(e??{});return Object.values([...t,...n])},getConnectorImageUrls(){return qi.client().getConnectors().map(({id:r})=>A5.getInjectedId(r)).map(r=>Fe.getWalletIcon(r))},truncate(r,e=8){return r.length<=e?r:`${r.substring(0,4)}...${r.substring(r.length-4)}`},generateAvatarColors(r){var e;let t=(e=r.match(/.{1,7}/g))==null?void 0:e.splice(0,5),n=[];t?.forEach(i=>{let s=0;for(let c=0;c>c*8&255;o[c]=u}n.push(`rgb(${o[0]}, ${o[1]}, ${o[2]})`)});let a=document.querySelector(":root");if(a){let i={"--w3m-color-av-1":n[0],"--w3m-color-av-2":n[1],"--w3m-color-av-3":n[2],"--w3m-color-av-4":n[3],"--w3m-color-av-5":n[4]};Object.entries(i).forEach(([s,o])=>a.style.setProperty(s,o))}},setRecentWallet(r){let{walletConnectVersion:e}=yt.state;localStorage.setItem(Fe.W3M_RECENT_WALLET,JSON.stringify({[e]:r}))},getRecentWallet(){let r=localStorage.getItem(Fe.W3M_RECENT_WALLET);if(r){let{walletConnectVersion:e}=yt.state,t=JSON.parse(r);if(t[e])return t[e]}},getExtensionWallets(){let r=[];for(let[e,t]of Object.entries(A5.injectedPreset))t!=null&&t.isInjected&&!t.isDesktop&&r.push(x5n({id:e},t));return r},caseSafeIncludes(r,e){return r.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){Pr.openHref(Fe.EXPLORER_WALLET_URL,"_blank")}},_5n=pr`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`,T5n=Object.defineProperty,I5n=Object.getOwnPropertyDescriptor,LLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?I5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&T5n(e,t,a),a},oie=class extends gt{constructor(){super(),this.view=Br.state.view,this.prevView=Br.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=Br.subscribe(r=>{this.view!==r.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([r])=>{let e=`${r.contentRect.height}px`;this.oldHeight!=="0px"&&(Wm(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),Wm(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var r,e;(r=this.unsubscribe)==null||r.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return Fe.getShadowRootElement(this,".w3m-router")}get contentEl(){return Fe.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return xe``;case"SelectNetwork":return xe``;case"InjectedConnector":return xe``;case"InstallConnector":return xe``;case"GetWallet":return xe``;case"DesktopConnector":return xe``;case"WalletExplorer":return xe``;case"Qrcode":return xe``;case"Help":return xe``;case"Account":return xe``;case"SwitchNetwork":return xe``;case"Connectors":return xe``;default:return xe`
Not Found
`}}async onChangeRoute(){await Wm(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=Br.state.view}render(){return xe`
${this.viewTemplate()}
`}};oie.styles=[or.globalCss,_5n],LLe([xn()],oie.prototype,"view",2),LLe([xn()],oie.prototype,"prevView",2),oie=LLe([Jt("w3m-modal-router")],oie);E5n=pr`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`,C5n=Object.defineProperty,k5n=Object.getOwnPropertyDescriptor,qSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?k5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&C5n(e,t,a),a},Cve=class extends gt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Nc.subscribe(r=>{r.open?(this.open=!0,this.timeout=setTimeout(()=>Nc.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),clearTimeout(this.timeout),Nc.closeToast()}render(){let{message:r,variant:e}=Nc.state,t={"w3m-success":e==="success","w3m-error":e==="error"};return this.open?xe`
${e==="success"?yr.CHECKMARK_ICON:null} ${e==="error"?yr.CROSS_ICON:null}${r}
`:null}};Cve.styles=[or.globalCss,E5n],qSt([xn()],Cve.prototype,"open",2),Cve=qSt([Jt("w3m-modal-toast")],Cve);A5n=pr`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:hover{background-color:var(--w3m-color-overlay)}`,P5n=Object.defineProperty,S5n=Object.getOwnPropertyDescriptor,kve=(r,e,t,n)=>{for(var a=n>1?void 0:n?S5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&P5n(e,t,a),a},UQ=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return xe``}};UQ.styles=[or.globalCss,A5n],kve([ar()],UQ.prototype,"onClick",2),kve([ar()],UQ.prototype,"name",2),kve([ar()],UQ.prototype,"chainId",2),UQ=kve([Jt("w3m-network-button")],UQ);R5n=pr`div{width:inherit;height:inherit}.polygon-stroke{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}`,M5n=Object.defineProperty,N5n=Object.getOwnPropertyDescriptor,FSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?N5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&M5n(e,t,a),a},Ave=class extends gt{constructor(){super(...arguments),this.chainId=""}render(){let r=Fe.getChainIcon(this.chainId);return r?xe`
`:xe`${yr.NETWORK_PLACEHOLDER}`}};Ave.styles=[or.globalCss,R5n],FSt([ar()],Ave.prototype,"chainId",2),Ave=FSt([Jt("w3m-network-image")],Ave);B5n=.1,WSt=2.5,xy=7;L5n={generate(r,e,t,n){let a=n==="light"?"#141414":"#fff",i=n==="light"?"#fff":"#141414",s=[],o=D5n(r,"Q"),c=e/o.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:I,y:C})=>{let R=(o.length-xy)*c*I,L=(o.length-xy)*c*C,F=.32;for(let W=0;W`)}});let l=Math.floor((t+25)/c),h=o.length/2-l/2,f=o.length/2+l/2-1,m=[];o.forEach((I,C)=>{I.forEach((R,L)=>{if(o[C][L]&&!(Co.length-(xy+1)&&Lo.length-(xy+1))&&!(C>h&&Ch&&L{y[I]?y[I].push(C):y[I]=[C]}),Object.entries(y).map(([I,C])=>{let R=C.filter(L=>C.every(F=>!OLe(L,F,c)));return[Number(I),R]}).forEach(([I,C])=>{C.forEach(R=>{s.push(Dr``)})}),Object.entries(y).filter(([I,C])=>C.length>1).map(([I,C])=>{let R=C.filter(L=>C.some(F=>OLe(L,F,c)));return[Number(I),R]}).map(([I,C])=>{C.sort((L,F)=>LW.some(V=>OLe(L,V,c)));F?F.push(L):R.push([L])}return[I,R.map(L=>[L[0],L[L.length-1]])]}).forEach(([I,C])=>{C.forEach(([R,L])=>{s.push(Dr``)})}),s}},O5n=pr`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1;animation:fadeIn ease .2s}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`,q5n=Object.defineProperty,F5n=Object.getOwnPropertyDescriptor,cie=(r,e,t,n)=>{for(var a=n>1?void 0:n?F5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&q5n(e,t,a),a},_5=class extends gt{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var r;let e=(r=Lm.state.themeMode)!=null?r:"light";return Dr`${L5n.generate(this.uri,this.size,this.size/4,e)}`}render(){return xe`
${this.walletId||this.logoSrc?xe``:yr.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};_5.styles=[or.globalCss,O5n],cie([ar()],_5.prototype,"uri",2),cie([ar({type:Number})],_5.prototype,"size",2),cie([ar()],_5.prototype,"logoSrc",2),cie([ar()],_5.prototype,"walletId",2),_5=cie([Jt("w3m-qrcode")],_5);W5n=pr`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:transparent;position:absolute;background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--w3m-color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`,U5n=Object.defineProperty,H5n=Object.getOwnPropertyDescriptor,USt=(r,e,t,n)=>{for(var a=n>1?void 0:n?H5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&U5n(e,t,a),a},Pve=class extends gt{constructor(){super(...arguments),this.onChange=()=>null}render(){let r=Pr.isMobile()?"Search mobile wallets":"Search desktop wallets";return xe`
${yr.SEARCH_ICON}${r}
`}};Pve.styles=[or.globalCss,W5n],USt([ar()],Pve.prototype,"onChange",2),Pve=USt([Jt("w3m-search-input")],Pve);j5n=pr`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--w3m-accent-color)}`,z5n=Object.defineProperty,K5n=Object.getOwnPropertyDescriptor,G5n=(r,e,t,n)=>{for(var a=n>1?void 0:n?K5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&z5n(e,t,a),a},qLe=class extends gt{render(){return xe``}};qLe.styles=[or.globalCss,j5n],qLe=G5n([Jt("w3m-spinner")],qLe);V5n=pr`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:'tnum' on,'lnum' on,'case' on}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`,Y5n=Object.defineProperty,$5n=Object.getOwnPropertyDescriptor,FLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?$5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Y5n(e,t,a),a},uie=class extends gt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let r={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return xe``}};uie.styles=[or.globalCss,V5n],FLe([ar()],uie.prototype,"variant",2),FLe([ar()],uie.prototype,"color",2),uie=FLe([Jt("w3m-text")],uie);Q5n=pr`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`,J5n=Object.defineProperty,Z5n=Object.getOwnPropertyDescriptor,HSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Z5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&J5n(e,t,a),a},Sve=class extends gt{constructor(){super(...arguments),this.symbol=void 0}render(){var r;let e=Fe.getTokenIcon((r=this.symbol)!=null?r:"");return e?xe`
${this.id}
`:yr.TOKEN_PLACEHOLDER}};Sve.styles=[or.globalCss,Q5n],HSt([ar()],Sve.prototype,"symbol",2),Sve=HSt([Jt("w3m-token-image")],Sve);X5n=pr`button{transition:all .2s ease;width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:hover{background-color:var(--w3m-color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`,e3n=Object.defineProperty,t3n=Object.getOwnPropertyDescriptor,j1=(r,e,t,n)=>{for(var a=n>1?void 0:n?t3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&e3n(e,t,a),a},Um=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?xe`RECENT`:this.installed?xe`INSTALLED`:null}render(){var r;return xe``}};Um.styles=[or.globalCss,X5n],j1([ar()],Um.prototype,"onClick",2),j1([ar()],Um.prototype,"name",2),j1([ar()],Um.prototype,"walletId",2),j1([ar()],Um.prototype,"label",2),j1([ar()],Um.prototype,"src",2),j1([ar()],Um.prototype,"installed",2),j1([ar()],Um.prototype,"recent",2),Um=j1([Jt("w3m-wallet-button")],Um);r3n=pr`div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,n3n=Object.defineProperty,a3n=Object.getOwnPropertyDescriptor,WLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?a3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&n3n(e,t,a),a},lie=class extends gt{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var r;let e=Fe.getWalletId((r=this.walletId)!=null?r:""),t=Fe.getWalletId(e),n=this.src?this.src:Fe.getWalletIcon(t);return xe`${n.length?xe`
${this.id}
`:yr.WALLET_PLACEHOLDER}`}};lie.styles=[or.globalCss,r3n],WLe([ar()],lie.prototype,"walletId",2),WLe([ar()],lie.prototype,"src",2),lie=WLe([Jt("w3m-wallet-image")],lie);i3n=Object.defineProperty,s3n=Object.getOwnPropertyDescriptor,o3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?s3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&i3n(e,t,a),a},jSt=class extends gt{constructor(){super(),this.unwatchAccount=void 0,za.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=qi.client().watchAccount(r=>{let{address:e}=za.state;r.address!==e&&(this.fetchProfile(r.address),this.fetchBalance(r.address)),za.setAddress(r.address),za.setIsConnected(r.isConnected)})}disconnectedCallback(){var r;(r=this.unwatchAccount)==null||r.call(this)}async fetchProfile(r){var e;let t=(e=yt.state.chains)==null?void 0:e.find(n=>n.id===1);if(Ds.state.enableAccountView&&t)try{await za.fetchProfile(Fe.preloadImage,r)}catch(n){console.error(n),Nc.openToast(Fe.getErrorMessage(n),"error")}}async fetchBalance(r){if(Ds.state.enableAccountView)try{await za.fetchBalance(r)}catch(e){console.error(e),Nc.openToast(Fe.getErrorMessage(e),"error")}}};jSt=o3n([Jt("w3m-account-context")],jSt);c3n=Object.defineProperty,u3n=Object.getOwnPropertyDescriptor,zSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?u3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&c3n(e,t,a),a},ULe=class extends gt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(r){try{r!=null&&r.length&&await Promise.all(r.map(async e=>Fe.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images")}}async preloadListings(){var r;if(Ds.state.enableExplorer){let{standaloneChains:e,chains:t,walletConnectVersion:n}=yt.state,a=e?.join(",");await Promise.all([no.getPreviewWallets({page:1,entries:10,chains:a,device:Pr.isMobile()?"mobile":"desktop",version:n}),no.getRecomendedWallets()]),yt.setIsDataLoaded(!0);let{previewWallets:i,recomendedWallets:s}=no.state,o=(r=t?.map(u=>Fe.getChainIcon(u.id)))!=null?r:[],c=[...i,...s].map(u=>u.image_url.lg);await this.loadImages([...o,...c])}else yt.setIsDataLoaded(!0)}async preloadCustomImages(){let r=Fe.getCustomImageUrls();await this.loadImages(r)}async preloadConnectorImages(){if(!yt.state.isStandalone){let r=Fe.getConnectorImageUrls();await this.loadImages(r)}}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch(r){console.error(r),Nc.openToast("Failed preloading","error")}}};zSt([xn()],ULe.prototype,"preload",2),ULe=zSt([Jt("w3m-explorer-context")],ULe);l3n=Object.defineProperty,d3n=Object.getOwnPropertyDescriptor,KSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?d3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&l3n(e,t,a),a},HLe=class extends gt{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;let r=yt.getSelectedChain();this.activeChainId=r?.id,this.unwatchNetwork=qi.client().watchNetwork(e=>{let t=e.chain;t&&this.activeChainId!==t.id&&(yt.setSelectedChain(t),this.activeChainId=t.id,za.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var r;(r=this.unwatchNetwork)==null||r.call(this)}async fetchBalance(){if(Ds.state.enableAccountView)try{await za.fetchBalance()}catch(r){console.error(r),Nc.openToast(Fe.getErrorMessage(r),"error")}}};KSt([xn()],HLe.prototype,"activeChainId",2),HLe=KSt([Jt("w3m-network-context")],HLe);p3n=Object.defineProperty,h3n=Object.getOwnPropertyDescriptor,f3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?h3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&p3n(e,t,a),a},GSt=class extends gt{constructor(){super(),this.unsubscribeTheme=void 0,or.setTheme(),this.unsubscribeTheme=Lm.subscribe(or.setTheme)}disconnectedCallback(){var r;(r=this.unsubscribeTheme)==null||r.call(this)}};GSt=f3n([Jt("w3m-theme-context")],GSt);m3n=pr`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`,y3n=Object.defineProperty,g3n=Object.getOwnPropertyDescriptor,jLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?g3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&y3n(e,t,a),a},jQ=class extends gt{constructor(){super(),this.balance="hide",this.avatar="show",Fe.rejectStandaloneButtonComponent()}onOpen(){let{isStandalone:r}=yt.state;r||ao.open({route:"Account"})}accountTemplate(){let r=this.avatar==="show";return xe`${r?xe``:null}`}render(){let r=this.balance==="show",e={"w3m-no-avatar":this.avatar==="hide"};return r?xe`
`:xe`${this.accountTemplate()}`}};jQ.styles=[or.globalCss,m3n],jLe([ar()],jQ.prototype,"balance",2),jLe([ar()],jQ.prototype,"avatar",2),jQ=jLe([Jt("w3m-account-button")],jQ);b3n=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`,v3n=Object.defineProperty,w3n=Object.getOwnPropertyDescriptor,zLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?w3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&v3n(e,t,a),a},die=class extends gt{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;let{selectedChain:r}=yt.state;this.chainId=r?.id.toString(),this.label=r?.name,this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.chainId=e?.id.toString(),this.label=e?.name})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onClick(){Br.push("SelectNetwork")}render(){let{chains:r,selectedChain:e}=yt.state,t=r?.map(i=>i.id),n=e&&t?.includes(e.id),a=r&&r.length<=1&&n;return xe``}};die.styles=[or.globalCss,b3n],zLe([xn()],die.prototype,"chainId",2),zLe([xn()],die.prototype,"label",2),die=zLe([Jt("w3m-account-network-button")],die);x3n=pr`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`,_3n=Object.defineProperty,T3n=Object.getOwnPropertyDescriptor,pie=(r,e,t,n)=>{for(var a=n>1?void 0:n?T3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_3n(e,t,a),a},T5=class extends gt{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=za.state.address,this.name=za.state.profileName,this.loading=!!za.state.profileLoading,this.unsubscribeAccount=za.subscribe(({address:r,profileName:e,profileLoading:t})=>{this.address=r,this.name=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){var r;let e=this.variant==="button",t={"w3m-loading":this.loading};return xe`${this.name?this.name:Fe.truncate((r=this.address)!=null?r:"")}`}};T5.styles=[or.globalCss,x3n],pie([xn()],T5.prototype,"address",2),pie([xn()],T5.prototype,"name",2),pie([xn()],T5.prototype,"loading",2),pie([ar()],T5.prototype,"variant",2),T5=pie([Jt("w3m-address-text")],T5);al={allowedExplorerListings(r){let{explorerAllowList:e,explorerDenyList:t}=Ds.state,n=[...r];return e&&(n=n.filter(a=>e.includes(a.id))),t&&(n=n.filter(a=>!t.includes(a.id))),n},walletsWithInjected(r){let e=[...r??[]];if(window.ethereum){let t=Fe.getWalletName("");e=e.filter(({name:n})=>!Fe.caseSafeIncludes(n,t))}return e},connectorWallets(){let{isStandalone:r}=yt.state;if(r)return[];let e=qi.client().getConnectors();return!window.ethereum&&Pr.isMobile()&&(e=e.filter(({id:t})=>t!=="injected"&&t!==zQ.metaMask)),e},walletTemplatesWithRecent(r,e){let t=[...r];if(e){let n=Fe.getRecentWallet();t=t.filter(a=>!a.values.includes(n?.name)),t.splice(1,0,e)}return t},deduplicateExplorerListingsFromConnectors(r){let{isStandalone:e}=yt.state;if(e)return r;let t=qi.client().getConnectors().map(({name:n})=>n.toUpperCase());return r.filter(({name:n})=>!t.includes(n.toUpperCase()))}},I3n=pr`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 10),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px}.w3m-slider::after,.w3m-slider::before{content:'';height:100%;width:50px;z-index:2;position:absolute;background:linear-gradient(to right,var(--w3m-color-bg-1) 0,transparent 100%);top:0}.w3m-slider::before{left:0}.w3m-slider::after{right:0;transform:rotateZ(180deg)}.w3m-track{display:flex;width:calc(70px * 20);animation:scroll 20s linear infinite}.w3m-action{padding:30px 0 10px 0;display:flex;justify-content:center;align-items:center;flex-direction:column}.w3m-action w3m-button-big:last-child{margin-top:10px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;box-shadow:0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08);border-radius:15px}w3m-button-big{margin:0 5px}`,E3n=Object.defineProperty,C3n=Object.getOwnPropertyDescriptor,k3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?C3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&E3n(e,t,a),a},KLe=class extends gt{onGoToQrcode(){Br.push("Qrcode")}onGoToConnectors(){Br.push("Connectors")}onGoToGetWallet(){Br.push("GetWallet")}getConnectors(){let r=al.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==zQ.metaMask)),r}render(){let{previewWallets:r}=no.state,e=r.length,t=[...r,...r],n=this.getConnectors().length>0;return xe`${e?xe`
${t.map(({image_url:a})=>xe``)}
`:null}
${n?"WalletConnect":"Select Wallet"}${n?xe`Other`:null}
I don’t have a wallet
`}};KLe.styles=[or.globalCss,I3n],KLe=k3n([Jt("w3m-android-wallet-selection")],KLe);A3n=pr`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`,P3n=Object.defineProperty,S3n=Object.getOwnPropertyDescriptor,hie=(r,e,t,n)=>{for(var a=n>1?void 0:n?S3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&P3n(e,t,a),a},I5=class extends gt{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=za.state.address,this.avatar=za.state.profileAvatar,this.loading=!!za.state.profileLoading,this.unsubscribeAccount=za.subscribe(({address:r,profileAvatar:e,profileLoading:t})=>{this.address=r,this.avatar=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?xe``:this.address?(Fe.generateAvatarColors(this.address),xe`
${this.loading?xe`
`:null}
`):null}};I5.styles=[or.globalCss,A3n],hie([xn()],I5.prototype,"address",2),hie([xn()],I5.prototype,"avatar",2),hie([xn()],I5.prototype,"loading",2),hie([ar()],I5.prototype,"size",2),I5=hie([Jt("w3m-avatar")],I5);R3n=pr`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`,M3n=Object.defineProperty,N3n=Object.getOwnPropertyDescriptor,GLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?N3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&M3n(e,t,a),a},fie=class extends gt{constructor(){var r,e;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(r=za.state.balance)==null?void 0:r.symbol,this.amount=(e=za.state.balance)==null?void 0:e.amount,this.unsubscribeAccount=za.subscribe(({balance:t})=>{this.symbol=t?.symbol,this.amount=t?.amount})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r="_._";return this.amount==="0.0"&&(r=0),this.amount&&this.amount.length>6&&(r=parseFloat(this.amount).toFixed(3)),xe`
${r} ${this.symbol}
`}};fie.styles=[or.globalCss,R3n],GLe([xn()],fie.prototype,"symbol",2),GLe([xn()],fie.prototype,"amount",2),fie=GLe([Jt("w3m-balance")],fie);B3n=pr`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`,D3n=Object.defineProperty,L3n=Object.getOwnPropertyDescriptor,Rve=(r,e,t,n)=>{for(var a=n>1?void 0:n?L3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&D3n(e,t,a),a},C5=class extends gt{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,Fe.rejectStandaloneButtonComponent(),this.modalUnsub=ao.subscribe(r=>{r.open&&(this.loading=!0),r.open||(this.loading=!1)})}disconnectedCallback(){var r;(r=this.modalUnsub)==null||r.call(this)}iconTemplate(){return this.icon==="show"?yr.WALLET_CONNECT_ICON:null}onClick(){za.state.isConnected?this.onDisconnect():this.onConnect()}onConnect(){this.loading=!0;let{enableNetworkView:r}=Ds.state,{chains:e,selectedChain:t}=yt.state,n=e?.length&&e.length>1;r||n&&!t?ao.open({route:"SelectNetwork"}):ao.open({route:"ConnectWallet"})}onDisconnect(){qi.client().disconnect(),za.resetAccount()}render(){return xe`${this.loading?xe`Connecting...`:xe`${this.iconTemplate()}${this.label}`}`}};C5.styles=[or.globalCss,B3n],Rve([xn()],C5.prototype,"loading",2),Rve([ar()],C5.prototype,"label",2),Rve([ar()],C5.prototype,"icon",2),C5=Rve([Jt("w3m-connect-button")],C5);O3n=Object.defineProperty,q3n=Object.getOwnPropertyDescriptor,HQ=(r,e,t,n)=>{for(var a=n>1?void 0:n?q3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&O3n(e,t,a),a},z1=class extends gt{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,Fe.rejectStandaloneButtonComponent(),this.isConnected=za.state.isConnected,this.unsubscribeAccount=za.subscribe(({isConnected:r})=>{this.isConnected=r})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let{enableAccountView:r}=Ds.state,e=nl(this.balance),t=nl(this.label),n=nl(this.icon),a=nl(this.avatar);return this.isConnected&&r?xe``:xe``}};HQ([xn()],z1.prototype,"isConnected",2),HQ([ar()],z1.prototype,"label",2),HQ([ar()],z1.prototype,"icon",2),HQ([ar()],z1.prototype,"avatar",2),HQ([ar()],z1.prototype,"balance",2),z1=HQ([Jt("w3m-core-button")],z1);F3n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`,W3n=Object.defineProperty,U3n=Object.getOwnPropertyDescriptor,H3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?U3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&W3n(e,t,a),a},VLe=class extends gt{onDesktopWallet(r){Br.push("DesktopConnector",{DesktopConnector:r})}onInjectedWallet(){Br.push("InjectedConnector")}onInstallConnector(){Br.push("InstallConnector",{InstallConnector:{id:"metaMask",name:"MetaMask",isMobile:!0,url:"https://metamask.io"}})}async onConnectorWallet(r){window.ethereum?r==="injected"||r===zQ.metaMask?this.onInjectedWallet():await Fe.handleConnectorConnection(r):this.onInstallConnector()}desktopWalletsTemplate(){let{desktopWallets:r}=Ds.state;return r?.map(({id:e,name:t,links:{universal:n,native:a}})=>xe``)}previewWalletsTemplate(){let r=al.allowedExplorerListings(no.state.previewWallets);return r=al.deduplicateExplorerListingsFromConnectors(r),r.map(({name:e,desktop:{universal:t,native:n},homepage:a,image_url:i,id:s})=>xe``)}connectorWalletsTemplate(){return al.connectorWallets().map(({id:r,name:e,ready:t})=>xe``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return xe``}render(){let{standaloneUri:r}=yt.state,e=this.desktopWalletsTemplate(),t=this.previewWalletsTemplate(),n=this.connectorWalletsTemplate(),a=this.recentWalletTemplate(),i=[...e??[],...t],s=[...n,...i],o=al.walletTemplatesWithRecent(s,a),c=al.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>4,h=[];l?h=u.slice(0,3):h=u;let f=!!h.length;return xe`
${yr.MOBILE_ICON}Mobile
${yr.SCAN_ICON}Scan with your wallet
${f?xe`
${yr.DESKTOP_ICON}Desktop
${h} ${l?xe``:null}
`:null}`}};VLe.styles=[or.globalCss,F3n],VLe=H3n([Jt("w3m-desktop-wallet-selection")],VLe);j3n=pr`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out}a:hover{opacity:.8}`,z3n=Object.defineProperty,K3n=Object.getOwnPropertyDescriptor,G3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?K3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&z3n(e,t,a),a},YLe=class extends gt{render(){let{termsOfServiceUrl:r,privacyPolicyUrl:e}=Ds.state;return r??e?xe`
By connecting your wallet to this app, you agree to the app's
${r?xe`Terms of Service`:null} ${r&&e?"and":null} ${e?xe`Privacy Policy`:null}
`:null}};YLe.styles=[or.globalCss,j3n],YLe=G3n([Jt("w3m-legal-notice")],YLe);V3n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,Y3n=Object.defineProperty,$3n=Object.getOwnPropertyDescriptor,Q3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?$3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Y3n(e,t,a),a},$Le=class extends gt{onGoToQrcode(){Br.push("Qrcode")}async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}mobileWalletsTemplate(){let{mobileWallets:r}=Ds.state,e=al.walletsWithInjected(r);if(e.length)return e.map(({id:t,name:n,links:{universal:a,native:i}})=>xe``)}previewWalletsTemplate(){let{previewWallets:r}=no.state,e=al.walletsWithInjected(r);return e=al.allowedExplorerListings(e),e=al.deduplicateExplorerListingsFromConnectors(e),e.map(({image_url:t,name:n,mobile:{native:a,universal:i},id:s})=>xe``)}connectorWalletsTemplate(){let r=al.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==zQ.metaMask)),r.map(({name:e,id:t,ready:n})=>xe``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return xe``}render(){let{standaloneUri:r}=yt.state,e=this.connectorWalletsTemplate(),t=this.mobileWalletsTemplate(),n=this.previewWalletsTemplate(),a=this.recentWalletTemplate(),i=t??n,s=[...e,...i],o=al.walletTemplatesWithRecent(s,a),c=al.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>8,h=[];l?h=u.slice(0,7):h=u;let f=h.slice(0,4),m=h.slice(4,8),y=!!h.length;return xe`${y?xe`
${f} ${m.length?xe`${m} ${l?xe``:null}`:null}
`:null}`}};$Le.styles=[or.globalCss,V3n],$Le=Q3n([Jt("w3m-mobile-wallet-selection")],$Le);J3n=pr`:host{all:initial}.w3m-overlay{inset:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start}}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`,Z3n=Object.defineProperty,X3n=Object.getOwnPropertyDescriptor,VSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?X3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Z3n(e,t,a),a},gie=class extends gt{constructor(){super(),this.open=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=ao.subscribe(r=>{r.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var r;(r=this.unsubscribeModal)==null||r.call(this)}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return Fe.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(r){document.querySelector("body")&&(r?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(r){r.target===r.currentTarget&&ao.close()}async onOpenModalEvent(){this.toggleBodyScroll(!1);let r=.2;await Wm(this.containerEl,{y:0},{duration:0}).finished,Wm(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:r}),Wm(this.containerEl,Fe.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:FQ({velocity:.4})},y:{easing:FQ({mass:.5})},delay:r}),this.addKeyboardEvents(),this.open=!0}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents(),await Promise.all([Wm(this.containerEl,Fe.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:FQ({velocity:0})},y:{easing:FQ({mass:.5})}}).finished,Wm(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",r=>{var e;r.key==="Escape"?ao.close():r.key==="Tab"&&((e=r.target)!=null&&e.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var r;(r=this.abortController)==null||r.abort(),this.abortController=void 0}managedModalContextTemplate(){let{isStandalone:r}=yt.state;return r?null:xe``}render(){let r={"w3m-overlay":!0,"w3m-open":this.open};return xe`${this.managedModalContextTemplate()}
${this.open?xe`
`:null}
`}};gie.styles=[or.globalCss,J3n],VSt([xn()],gie.prototype,"open",2),gie=VSt([Jt("w3m-modal")],gie);exn=pr`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`,txn=Object.defineProperty,rxn=Object.getOwnPropertyDescriptor,Mve=(r,e,t,n)=>{for(var a=n>1?void 0:n?rxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&txn(e,t,a),a},k5=class extends gt{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0,Fe.rejectStandaloneButtonComponent();let{selectedChain:r}=yt.state;this.onSetChainData(r),this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.onSetChainData(e)})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onSetChainData(r){if(r){let{chains:e}=yt.state,t=e?.map(n=>n.id);this.chainId=r.id.toString(),this.wrongNetwork=!(t!=null&&t.includes(r.id)),this.label=this.wrongNetwork?"Wrong Network":r.name}}onClick(){ao.open({route:"SelectNetwork"})}render(){var r;let{chains:e}=yt.state,t=e&&e.length>1;return xe`${(r=this.label)!=null&&r.length?this.label:"Select Network"}`}};k5.styles=[or.globalCss,exn],Mve([xn()],k5.prototype,"chainId",2),Mve([xn()],k5.prototype,"label",2),Mve([xn()],k5.prototype,"wrongNetwork",2),k5=Mve([Jt("w3m-network-switch")],k5);nxn=pr`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:hover{background-color:var(--w3m-color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,axn=Object.defineProperty,ixn=Object.getOwnPropertyDescriptor,sxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?ixn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&axn(e,t,a),a},QLe=class extends gt{onClick(){Br.push("WalletExplorer")}render(){let{previewWallets:r}=no.state,e=Fe.getCustomWallets(),t=[...r,...e].reverse().slice(0,4);return xe``}};QLe.styles=[or.globalCss,nxn],QLe=sxn([Jt("w3m-view-all-wallets-button")],QLe);oxn=pr`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,cxn=Object.defineProperty,uxn=Object.getOwnPropertyDescriptor,YSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?uxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&cxn(e,t,a),a},Nve=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(r=0){var e;Pr.removeWalletConnectDeepLink();try{let{standaloneUri:t}=yt.state;t?setTimeout(()=>this.uri=t,0):(await qi.client().connectWalletConnect(n=>this.uri=n,(e=yt.state.selectedChain)==null?void 0:e.id),ao.close())}catch(t){console.error(t),Nc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}render(){return xe`
${this.uri?xe``:xe``}
`}};Nve.styles=[or.globalCss,oxn],YSt([xn()],Nve.prototype,"uri",2),Nve=YSt([Jt("w3m-walletconnect-qr")],Nve);lxn=pr`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`,dxn=Object.defineProperty,pxn=Object.getOwnPropertyDescriptor,hxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?pxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&dxn(e,t,a),a},JLe=class extends gt{onDisconnect(){ao.close(),qi.client().disconnect(),za.resetAccount()}async onCopyAddress(){var r;await navigator.clipboard.writeText((r=za.state.address)!=null?r:""),Nc.openToast("Address copied","success")}render(){return xe`
Connected
`}};JLe.styles=[or.globalCss,lxn],JLe=hxn([Jt("w3m-account-view")],JLe);fxn=Object.defineProperty,mxn=Object.getOwnPropertyDescriptor,yxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?mxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&fxn(e,t,a),a},ZLe=class extends gt{viewTemplate(){return Pr.isAndroid()?xe``:Pr.isMobile()?xe``:xe``}render(){return xe`${this.viewTemplate()}`}};ZLe.styles=[or.globalCss],ZLe=yxn([Jt("w3m-connect-wallet-view")],ZLe);gxn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}`,bxn=Object.defineProperty,vxn=Object.getOwnPropertyDescriptor,wxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?vxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bxn(e,t,a),a},XLe=class extends gt{async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}connectorWalletsTemplate(){let r=al.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==zQ.metaMask)),r.map(({name:e,id:t,ready:n})=>xe``)}render(){let r=this.connectorWalletsTemplate();return xe`
${r}
`}};XLe.styles=[or.globalCss,gxn],XLe=wxn([Jt("w3m-connectors-view")],XLe);xxn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`,_xn=Object.defineProperty,Txn=Object.getOwnPropertyDescriptor,$St=(r,e,t,n)=>{for(var a=n>1?void 0:n?Txn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_xn(e,t,a),a},Bve=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(r){let{native:e,universal:t,name:n}=this.getRouterData();if(e){let a=Pr.formatNativeUrl(e,r,n);Pr.openHref(a,"_self")}else if(t){let a=Pr.formatUniversalUrl(t,r,n);Pr.openHref(a,"_blank")}}async createConnectionAndWait(r=0){var e;Pr.removeWalletConnectDeepLink();let{standaloneUri:t}=yt.state,{name:n,walletId:a,native:i,universal:s,icon:o}=this.getRouterData(),c={name:n,id:a,links:{native:i,universal:s},image:o};if(t)Fe.setRecentWallet(c),this.onFormatAndRedirect(t);else try{await qi.client().connectWalletConnect(u=>{this.uri=u,this.onFormatAndRedirect(u)},(e=yt.state.selectedChain)==null?void 0:e.id),Fe.setRecentWallet(c),ao.close()}catch{Nc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}onConnectWithMobile(){Br.push("Qrcode")}onGoToWallet(){let{universal:r,name:e}=this.getRouterData();if(r){let t=Pr.formatUniversalUrl(r,this.uri,e);Pr.openHref(t,"_blank")}}render(){let{name:r,icon:e,universal:t,walletId:n}=this.getRouterData(),a=Fe.getWalletName(r);return xe`
${e?xe``:xe``}
${`Continue in ${a}...`}
Retry${t?xe`Go to Wallet`:xe`Connect with Mobile`}
`}};Bve.styles=[or.globalCss,xxn],$St([xn()],Bve.prototype,"uri",2),Bve=$St([Jt("w3m-desktop-connector-view")],Bve);Ixn=pr`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`,Exn=Object.defineProperty,Cxn=Object.getOwnPropertyDescriptor,kxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Cxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Exn(e,t,a),a},eOe=class extends gt{onGet(r){Pr.openHref(r,"_blank")}render(){let{recomendedWallets:r}=no.state,e=Fe.getCustomWallets().slice(0,6),t=r.length,n=e.length;return xe`${t?r.map(({name:a,image_url:i,homepage:s})=>xe`
${a}Get
`):null} ${n?e.map(({name:a,id:i,links:s})=>xe`
${a}Get
`):null}
`}};eOe.styles=[or.globalCss,Ixn],eOe=kxn([Jt("w3m-get-wallet-view")],eOe);Axn=pr`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`,Pxn=Object.defineProperty,Sxn=Object.getOwnPropertyDescriptor,Rxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Sxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Pxn(e,t,a),a},tOe=class extends gt{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){Ds.state.enableExplorer?Br.push("GetWallet"):Fe.openWalletExplorerUrl()}onLearnMore(){Pr.openHref(this.learnUrl,"_blank")}render(){return xe`
${yr.HELP_CHART_IMG} ${yr.HELP_PAINTING_IMG} ${yr.HELP_ETH_IMG}
A home for your digital assetsA wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.
${yr.HELP_KEY_IMG} ${yr.HELP_USER_IMG} ${yr.HELP_LOCK_IMG}
One login for all of web3Log in to any app by connecting your wallet. Say goodbye to countless passwords!
${yr.HELP_COMPAS_IMG} ${yr.HELP_NOUN_IMG} ${yr.HELP_DAO_IMG}
Your gateway to a new webWith your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.
`}};tOe.styles=[or.globalCss,Axn],tOe=Rxn([Jt("w3m-help-view")],tOe);Mxn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`,Nxn=Object.defineProperty,Bxn=Object.getOwnPropertyDescriptor,rOe=(r,e,t,n)=>{for(var a=n>1?void 0:n?Bxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Nxn(e,t,a),a},mie=class extends gt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=qi.client().getConnectorById("injected"),this.onConnect()}async onConnect(){let{ready:r}=this.connector;r&&(this.error=!1,this.connecting=!0,await Fe.handleConnectorConnection("injected",()=>{this.error=!0,this.connecting=!1}))}render(){let r=Fe.getWalletName(this.connector.name),e=Fe.getWalletId(this.connector.id),t={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return xe`
${this.connecting?xe``:null}${this.error?"Connection declined":`Continue in ${r}...`}
Try Again
`}};mie.styles=[or.globalCss,Mxn],rOe([xn()],mie.prototype,"connecting",2),rOe([xn()],mie.prototype,"error",2),mie=rOe([Jt("w3m-injected-connector-view")],mie);Dxn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:15px;align-items:center;flex-direction:column}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-install-actions w3m-button{margin:5px;opacity:1}.w3m-info-text{text-align:center}`,Lxn=Object.defineProperty,Oxn=Object.getOwnPropertyDescriptor,qxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Oxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Lxn(e,t,a),a},nOe=class extends gt{getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.InstallConnector;if(!e)throw new Error("Missing router data");return e}onInstall(){let{url:r}=this.getRouterData();Pr.openHref(r,"_blank")}onMobile(){let{name:r}=this.getRouterData();Br.push("ConnectWallet"),Nc.openToast(`Scan the code with ${r}`,"success")}render(){let{name:r,id:e,isMobile:t}=this.getRouterData();return xe`
Install ${r}To connect ${r}, install the browser extension.
Install Extension${t?xe`${r} Mobile`:null}
`}};nOe.styles=[or.globalCss,Dxn],nOe=qxn([Jt("w3m-install-connector-view")],nOe);Fxn=Object.defineProperty,Wxn=Object.getOwnPropertyDescriptor,Uxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Wxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Fxn(e,t,a),a},aOe=class extends gt{render(){return xe``}};aOe.styles=[or.globalCss],aOe=Uxn([Jt("w3m-qrcode-view")],aOe);Hxn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`,jxn=Object.defineProperty,zxn=Object.getOwnPropertyDescriptor,Kxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?zxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&jxn(e,t,a),a},iOe=class extends gt{async onSelectChain(r){try{let{selectedChain:e,walletConnectVersion:t}=yt.state,{isConnected:n}=za.state;n?e?.id===r.id?Br.replace("Account"):t===2?(await qi.client().switchNetwork({chainId:r.id}),Br.replace("Account")):Br.push("SwitchNetwork",{SwitchNetwork:r}):(Br.push("ConnectWallet"),yt.setSelectedChain(r))}catch(e){console.error(e),Nc.openToast(Fe.getErrorMessage(e),"error")}}render(){let{chains:r}=yt.state;return xe`
${r?.map(e=>xe`${e.name}`)}
`}};iOe.styles=[or.globalCss,Hxn],iOe=Kxn([Jt("w3m-select-network-view")],iOe);Gxn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`,Vxn=Object.defineProperty,Yxn=Object.getOwnPropertyDescriptor,QSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Yxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Vxn(e,t,a),a},Dve=class extends gt{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;let r=this.getRouterData();await qi.client().switchNetwork({chainId:r.id}),yt.setSelectedChain(r),Br.replace("Account")}catch{this.error=!0}}render(){let{id:r,name:e}=this.getRouterData(),t={"w3m-wrapper":!0,"w3m-error":this.error};return xe`
${this.error?null:xe``}${this.error?"Connection declined":"Approve in your wallet"}
Try Again
`}};Dve.styles=[or.globalCss,Gxn],QSt([xn()],Dve.prototype,"error",2),Dve=QSt([Jt("w3m-switch-network-view")],Dve);$xn=pr`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,Qxn=Object.defineProperty,Jxn=Object.getOwnPropertyDescriptor,yie=(r,e,t,n)=>{for(var a=n>1?void 0:n?Jxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Qxn(e,t,a),a},sOe=40,E5=class extends gt{constructor(){super(...arguments),this.loading=!no.state.wallets.listings.length,this.firstFetch=!no.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Fe.debounce(r=>{r.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=r,no.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),no.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var r;(r=this.intersectionObserver)==null||r.disconnect()}get placeholderEl(){return Fe.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([r])=>{r.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:r,search:e}=no.state,{listings:t,total:n}=this.search?e:r;return n<=sOe||t.length>=n}async fetchWallets(){var r;let{wallets:e,search:t}=no.state,n=Fe.getExtensionWallets(),{listings:a,total:i,page:s}=this.search?t:e;if(!this.endReached&&(this.firstFetch||i>sOe&&a.lengthh.lg),l=n.map(({id:h})=>Fe.getWalletIcon(h));await Promise.all([...u.map(async h=>Fe.preloadImage(h)),...l.map(async h=>Fe.preloadImage(h)),Pr.wait(300)]),this.endReached=this.isLastPage()}catch(o){console.error(o),Nc.openToast(Fe.getErrorMessage(o),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnectCustom({name:r,id:e,links:t}){Pr.isMobile()?Fe.handleMobileLinking({links:t,name:r,id:e}):Br.push("DesktopConnector",{DesktopConnector:{name:r,walletId:e,universal:t.universal,native:t.native}})}onConnectListing(r){if(Pr.isMobile()){let{id:e,image_url:t}=r,{native:n,universal:a}=r.mobile;Fe.handleMobileLinking({links:{native:n,universal:a},name:r.name,id:e,image:t.lg})}else Br.push("DesktopConnector",{DesktopConnector:{name:r.name,icon:r.image_url.lg,universal:r.desktop.universal||r.homepage,native:r.desktop.native}})}onConnectExtension(r){Fe.getWalletId("")===r.id?Br.push("InjectedConnector"):Br.push("InstallConnector",{InstallConnector:r})}onSearchChange(r){let{value:e}=r.target;this.searchDebounce(e)}render(){let{wallets:r,search:e}=no.state,{isStandalone:t}=yt.state,{listings:n}=this.search?e:r;n=al.allowedExplorerListings(n);let a=this.loading&&!n.length,i=this.search.length>=3,s=!t&&!Pr.isMobile()?Fe.getExtensionWallets():[],o=Fe.getCustomWallets();i&&(s=s.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)),o=o.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)));let c=!this.loading&&!n.length&&!s.length,u=Math.max(s.length,n.length),l={"w3m-loading":a,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":c};return xe`
${a?null:[...Array(u)].map((h,f)=>xe`${o[f]?xe``:null} ${s[f]?xe``:null} ${n[f]?xe``:null}`)}
${c?xe`No results found`:null} ${!c&&this.loading?xe``:null}
`}};E5.styles=[or.globalCss,$xn],yie([xn()],E5.prototype,"loading",2),yie([xn()],E5.prototype,"firstFetch",2),yie([xn()],E5.prototype,"search",2),yie([xn()],E5.prototype,"endReached",2),E5=yie([Jt("w3m-wallet-explorer-view")],E5)});var r7t={};cr(r7t,{Web3Modal:()=>oOe});var Zxn,e7t,Xxn,e_n,t7t,t_n,oOe,n7t=ce(()=>{d();p();qDe();Zxn=Object.defineProperty,e7t=Object.getOwnPropertySymbols,Xxn=Object.prototype.hasOwnProperty,e_n=Object.prototype.propertyIsEnumerable,t7t=(r,e,t)=>e in r?Zxn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,t_n=(r,e)=>{for(var t in e||(e={}))Xxn.call(e,t)&&t7t(r,t,e[t]);if(e7t)for(var t of e7t(e))e_n.call(e,t)&&t7t(r,t,e[t]);return r},oOe=class{constructor(e){this.openModal=ao.open,this.closeModal=ao.close,this.subscribeModal=ao.subscribe,this.setTheme=Lm.setThemeConfig,Lm.setThemeConfig(e),Ds.setConfig(t_n({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>(XSt(),ZSt));let e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),yt.setIsUiLoaded(!0)}}}});var lOe=_(K1=>{"use strict";d();p();Object.defineProperty(K1,"__esModule",{value:!0});var r_n=Lu(),bie=vae(),n_n=WAt();function a_n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var i_n="wc",s_n="ethereum_provider",o_n=`${i_n}@${2}:${s_n}:`,c_n="https://rpc.walletconnect.com/v1/",Lve=["eth_sendTransaction","personal_sign"],u_n=["eth_accounts","eth_requestAccounts","eth_call","eth_getBalance","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Ove=["chainChanged","accountsChanged"],l_n=["message","disconnect","connect"],d_n=Object.defineProperty,p_n=Object.defineProperties,h_n=Object.getOwnPropertyDescriptors,a7t=Object.getOwnPropertySymbols,f_n=Object.prototype.hasOwnProperty,m_n=Object.prototype.propertyIsEnumerable,i7t=(r,e,t)=>e in r?d_n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,s7t=(r,e)=>{for(var t in e||(e={}))f_n.call(e,t)&&i7t(r,t,e[t]);if(a7t)for(var t of a7t(e))m_n.call(e,t)&&i7t(r,t,e[t]);return r},o7t=(r,e)=>p_n(r,h_n(e));function uOe(r){return Number(r[0].split(":")[1])}function cOe(r){return`0x${r.toString(16)}`}function y_n(r){let{chains:e,optionalChains:t,methods:n,optionalMethods:a,events:i,optionalEvents:s,rpcMap:o}=r;if(!bie.isValidArray(e))throw new Error("Invalid chains");let c=e,u=n||Lve,l=i||Ove,h={[uOe(c)]:o[uOe(c)]},f={chains:c,methods:u,events:l,rpcMap:h},m=i?.filter(R=>!Ove.includes(R)),y=n?.filter(R=>!Lve.includes(R));if(!t&&!s&&!a&&!(m!=null&&m.length)&&!(y!=null&&y.length))return{required:f};let I=m?.length&&y?.length||!t,C={chains:[...new Set(I?c.concat(t||[]):t)],methods:[...new Set(u.concat(a||[]))],events:[...new Set(l.concat(s||[]))],rpcMap:o};return{required:f,optional:C}}var KQ=class{constructor(){this.events=new r_n.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=o_n,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new KQ;return await t.initialize(e),t}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,t){this.signer.sendAsync(e,t,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:n}=y_n(this.rpc);try{let a=await new Promise(async(s,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(o7t(s7t({namespaces:{[this.namespace]:t}},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:e?.pairingTopic})).then(u=>{s(u)}).catch(u=>{o(new Error(u.message))})});if(!a)return;this.setChainIds(this.rpc.chains);let i=bie.getAccountsFromNamespaces(a.namespaces,[this.namespace]);this.setAccounts(i),this.events.emit("connect",{chainId:cOe(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",cOe(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",o7t(s7t({},bie.getSdkError("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,n;this.rpc.showQrModal&&((t=this.modal)==null||t.closeModal(),(n=this.modal)==null||n.openModal({uri:e})),this.events.emit("display_uri",e)})}setHttpProvider(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",cOe(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.setHttpProvider(t)}}parseAccountId(e){let[t,n,a]=e.split(":");return{chainId:`${t}:${n}`,address:a}}setAccounts(e){this.accounts=e.filter(t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId).map(t=>this.parseAccountId(t).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,n;return{chains:((t=e.chains)==null?void 0:t.map(a=>this.formatChainId(a)))||[`${this.namespace}:1`],optionalChains:e.optionalChains?e.optionalChains.map(a=>this.formatChainId(a)):void 0,methods:e?.methods||Lve,events:e?.events||Ove,optionalMethods:e?.optionalMethods||[],optionalEvents:e?.optionalEvents||[],rpcMap:e?.rpcMap||this.buildRpcMap(e.chains.concat(e.optionalChains||[]),e.projectId),showQrModal:(n=e?.showQrModal)!=null?n:!0,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let n={};return e.forEach(a=>{n[a]=this.getRpcUrl(a,t)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=uOe(this.rpc.chains),this.signer=await n_n.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let{Web3Modal:t}=await Promise.resolve().then(function(){return a_n((n7t(),nt(r7t)))});this.modal=new t({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains})}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:n,rpcMap:a}=e;t&&bie.isValidArray(t)&&(this.rpc.chains=t.map(i=>this.formatChainId(i)),t.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)})),n&&bie.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(i=>this.formatChainId(i)),n.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)}))}getRpcUrl(e,t){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${c_n}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`);this.setChainIds(e?[this.formatChainId(e)]:this.session.namespaces[this.namespace].accounts),this.setAccounts(this.session.namespaces[this.namespace].accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(t=>this.parseAccount(t))}},g_n=KQ;K1.EthereumProvider=g_n,K1.OPTIONAL_EVENTS=l_n,K1.OPTIONAL_METHODS=u_n,K1.REQUIRED_EVENTS=Ove,K1.REQUIRED_METHODS=Lve,K1.default=KQ});var g7t=_(wOe=>{"use strict";d();p();Object.defineProperty(wOe,"__esModule",{value:!0});var fi=ym(),Qr=gm(),G1=ec(),P5=je(),vie=_Y();Vu();vt();Je();function b_n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var d7t="eip155",p7t="wagmi.requestedChains",mOe="wallet_addEthereumChain",dOe="last-used-chain-id",Fi=new WeakMap,Fve=new WeakMap,S5=new WeakMap,pOe=new WeakSet,h7t=new WeakSet,hOe=new WeakSet,fOe=new WeakSet,wie=new WeakSet,yOe=new WeakSet,gOe=new WeakSet,bOe=new WeakSet,vOe=class extends vie.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),fi._classPrivateMethodInitSpec(this,bOe),fi._classPrivateMethodInitSpec(this,gOe),fi._classPrivateMethodInitSpec(this,yOe),fi._classPrivateMethodInitSpec(this,wie),fi._classPrivateMethodInitSpec(this,fOe),fi._classPrivateMethodInitSpec(this,hOe),fi._classPrivateMethodInitSpec(this,h7t),fi._classPrivateMethodInitSpec(this,pOe),G1._defineProperty(this,"id","walletConnect"),G1._defineProperty(this,"name","WalletConnect"),G1._defineProperty(this,"ready",!0),Qr._classPrivateFieldInitSpec(this,Fi,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,Fve,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,S5,{writable:!0,value:void 0}),G1._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:P5.utils.getAddress(t[0])})}),G1._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Qr._classPrivateFieldGet(this,S5).setItem(dOe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),G1._defineProperty(this,"onDisconnect",()=>{fi._classPrivateMethodGet(this,wie,qve).call(this,[]),Qr._classPrivateFieldGet(this,S5).removeItem(dOe),this.emit("disconnect")}),G1._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),G1._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Qr._classPrivateFieldGet(this,Fi)})}),Qr._classPrivateFieldSet(this,S5,e.options.storage),fi._classPrivateMethodGet(this,pOe,c7t).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Qr._classPrivateFieldGet(this,S5).getItem(dOe),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await fi._classPrivateMethodGet(this,hOe,u7t).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l.length>0?l:[n]}),fi._classPrivateMethodGet(this,wie,qve).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=P5.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new P5.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new vie.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{fi._classPrivateMethodGet(this,fOe,l7t).call(this),fi._classPrivateMethodGet(this,wie,qve).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return P5.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr._classPrivateFieldGet(this,Fi)||await fi._classPrivateMethodGet(this,pOe,c7t).call(this),e&&await this.switchChain(e),!Qr._classPrivateFieldGet(this,Fi))throw new Error("No provider found.");return Qr._classPrivateFieldGet(this,Fi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new P5.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await fi._classPrivateMethodGet(this,hOe,u7t).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new vie.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=fi._classPrivateMethodGet(this,gOe,m7t).call(this),i=fi._classPrivateMethodGet(this,bOe,y7t).call(this);if(!a.includes(e)&&i.includes(mOe)){await n.request({method:mOe,params:[{chainId:P5.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await fi._classPrivateMethodGet(this,yOe,f7t).call(this);o.push(e),fi._classPrivateMethodGet(this,wie,qve).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:P5.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new vie.UserRejectedRequestError(n):new vie.SwitchChainError(n)}}async setupListeners(){!Qr._classPrivateFieldGet(this,Fi)||(fi._classPrivateMethodGet(this,fOe,l7t).call(this),Qr._classPrivateFieldGet(this,Fi).on("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Fi).on("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Fi).on("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).on("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).on("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Fi).on("connect",this.onConnect))}};async function c7t(){return!Qr._classPrivateFieldGet(this,Fve)&&typeof window<"u"&&Qr._classPrivateFieldSet(this,Fve,fi._classPrivateMethodGet(this,h7t,v_n).call(this)),Qr._classPrivateFieldGet(this,Fve)}async function v_n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return b_n(lOe())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Qr._classPrivateFieldSet(this,Fi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function u7t(){if(fi._classPrivateMethodGet(this,bOe,y7t).call(this).includes(mOe)||!this.options.isNewChainsStale)return!1;let e=await fi._classPrivateMethodGet(this,yOe,f7t).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=fi._classPrivateMethodGet(this,gOe,m7t).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function l7t(){!Qr._classPrivateFieldGet(this,Fi)||(Qr._classPrivateFieldGet(this,Fi).removeListener("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Fi).removeListener("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Fi).removeListener("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).removeListener("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).removeListener("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Fi).removeListener("connect",this.onConnect))}function qve(r){Qr._classPrivateFieldGet(this,S5).setItem(p7t,JSON.stringify(r))}async function f7t(){let r=await Qr._classPrivateFieldGet(this,S5).getItem(p7t);return r?JSON.parse(r):[]}function m7t(){return Qr._classPrivateFieldGet(this,Fi)?Qr._classPrivateFieldGet(this,Fi).session?.namespaces[d7t]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function y7t(){return Qr._classPrivateFieldGet(this,Fi)?Qr._classPrivateFieldGet(this,Fi).session?.namespaces[d7t]?.methods??[]:[]}wOe.WalletConnectConnector=vOe});var w7t=_(kOe=>{"use strict";d();p();Object.defineProperty(kOe,"__esModule",{value:!0});var xie=ym(),_ie=ec(),Hr=gm(),w_n=vY(),x_n=xY();Vu();Je();Yg();je();vt();var __n="145769e410f16970a79ff77b2d89a1e0",Ul=new WeakMap,GQ=new WeakMap,T_n=new WeakMap,_Oe=new WeakMap,TOe=new WeakMap,IOe=new WeakMap,EOe=new WeakMap,COe=new WeakMap,b7t=new WeakSet,xOe=new WeakSet,R5=class extends x_n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e?.walletId||R5.id,e),xie._classPrivateMethodInitSpec(this,xOe),xie._classPrivateMethodInitSpec(this,b7t),Hr._classPrivateFieldInitSpec(this,Ul,{writable:!0,value:void 0}),Hr._classPrivateFieldInitSpec(this,GQ,{writable:!0,value:void 0}),_ie._defineProperty(this,"connector",void 0),_ie._defineProperty(this,"projectId",void 0),_ie._defineProperty(this,"qrcode",void 0),Hr._classPrivateFieldInitSpec(this,T_n,{writable:!0,value:t=>{if(t)throw t}}),Hr._classPrivateFieldInitSpec(this,_Oe,{writable:!0,value:t=>{if(Hr._classPrivateFieldSet(this,GQ,t.provider),!Hr._classPrivateFieldGet(this,GQ))throw new Error("WalletConnect provider not found after connecting.")}}),Hr._classPrivateFieldInitSpec(this,TOe,{writable:!0,value:()=>{xie._classPrivateMethodGet(this,xOe,v7t).call(this)}}),Hr._classPrivateFieldInitSpec(this,IOe,{writable:!0,value:async t=>{t.chain||t.account}}),Hr._classPrivateFieldInitSpec(this,EOe,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),Hr._classPrivateFieldInitSpec(this,COe,{writable:!0,value:()=>{this.emit("open_wallet")}}),this.projectId=e?.projectId||__n,this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return g7t()});Hr._classPrivateFieldSet(this,Ul,new e({chains:this.chains,options:{qrcode:this.qrcode,projectId:this.projectId,dappMetadata:this.dappMetadata,storage:this.walletStorage}})),this.connector=new w_n.WagmiAdapter(Hr._classPrivateFieldGet(this,Ul)),Hr._classPrivateFieldSet(this,GQ,await Hr._classPrivateFieldGet(this,Ul).getProvider()),xie._classPrivateMethodGet(this,b7t,I_n).call(this)}return this.connector}};function I_n(){!Hr._classPrivateFieldGet(this,Ul)||(xie._classPrivateMethodGet(this,xOe,v7t).call(this),Hr._classPrivateFieldGet(this,Ul).on("connect",Hr._classPrivateFieldGet(this,_Oe)),Hr._classPrivateFieldGet(this,Ul).on("disconnect",Hr._classPrivateFieldGet(this,TOe)),Hr._classPrivateFieldGet(this,Ul).on("change",Hr._classPrivateFieldGet(this,IOe)),Hr._classPrivateFieldGet(this,Ul).on("message",Hr._classPrivateFieldGet(this,EOe)),Hr._classPrivateFieldGet(this,GQ)?.signer.client.on("session_request_sent",Hr._classPrivateFieldGet(this,COe)))}function v7t(){!Hr._classPrivateFieldGet(this,Ul)||(Hr._classPrivateFieldGet(this,Ul).removeListener("connect",Hr._classPrivateFieldGet(this,_Oe)),Hr._classPrivateFieldGet(this,Ul).removeListener("disconnect",Hr._classPrivateFieldGet(this,TOe)),Hr._classPrivateFieldGet(this,Ul).removeListener("change",Hr._classPrivateFieldGet(this,IOe)),Hr._classPrivateFieldGet(this,Ul).removeListener("message",Hr._classPrivateFieldGet(this,EOe)),Hr._classPrivateFieldGet(this,GQ)?.signer.client.removeListener("session_request_sent",Hr._classPrivateFieldGet(this,COe)))}_ie._defineProperty(R5,"id","walletConnect");_ie._defineProperty(R5,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});kOe.WalletConnect=R5});var S7t=_(OOe=>{"use strict";d();p();Object.defineProperty(OOe,"__esModule",{value:!0});var mi=Cm(),Jr=km(),V1=ac(),M5=je(),Tie=P$();Zu();vt();Je();function E_n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var I7t="eip155",E7t="wagmi.requestedChains",MOe="wallet_addEthereumChain",AOe="last-used-chain-id",Wi=new WeakMap,Uve=new WeakMap,N5=new WeakMap,POe=new WeakSet,C7t=new WeakSet,SOe=new WeakSet,ROe=new WeakSet,Iie=new WeakSet,NOe=new WeakSet,BOe=new WeakSet,DOe=new WeakSet,LOe=class extends Tie.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),mi._classPrivateMethodInitSpec(this,DOe),mi._classPrivateMethodInitSpec(this,BOe),mi._classPrivateMethodInitSpec(this,NOe),mi._classPrivateMethodInitSpec(this,Iie),mi._classPrivateMethodInitSpec(this,ROe),mi._classPrivateMethodInitSpec(this,SOe),mi._classPrivateMethodInitSpec(this,C7t),mi._classPrivateMethodInitSpec(this,POe),V1._defineProperty(this,"id","walletConnect"),V1._defineProperty(this,"name","WalletConnect"),V1._defineProperty(this,"ready",!0),Jr._classPrivateFieldInitSpec(this,Wi,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,Uve,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,N5,{writable:!0,value:void 0}),V1._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:M5.utils.getAddress(t[0])})}),V1._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Jr._classPrivateFieldGet(this,N5).setItem(AOe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),V1._defineProperty(this,"onDisconnect",()=>{mi._classPrivateMethodGet(this,Iie,Wve).call(this,[]),Jr._classPrivateFieldGet(this,N5).removeItem(AOe),this.emit("disconnect")}),V1._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),V1._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Jr._classPrivateFieldGet(this,Wi)})}),Jr._classPrivateFieldSet(this,N5,e.options.storage),mi._classPrivateMethodGet(this,POe,x7t).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Jr._classPrivateFieldGet(this,N5).getItem(AOe),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await mi._classPrivateMethodGet(this,SOe,_7t).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l.length>0?l:[n]}),mi._classPrivateMethodGet(this,Iie,Wve).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=M5.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new M5.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new Tie.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{mi._classPrivateMethodGet(this,ROe,T7t).call(this),mi._classPrivateMethodGet(this,Iie,Wve).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return M5.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jr._classPrivateFieldGet(this,Wi)||await mi._classPrivateMethodGet(this,POe,x7t).call(this),e&&await this.switchChain(e),!Jr._classPrivateFieldGet(this,Wi))throw new Error("No provider found.");return Jr._classPrivateFieldGet(this,Wi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new M5.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await mi._classPrivateMethodGet(this,SOe,_7t).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new Tie.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=mi._classPrivateMethodGet(this,BOe,A7t).call(this),i=mi._classPrivateMethodGet(this,DOe,P7t).call(this);if(!a.includes(e)&&i.includes(MOe)){await n.request({method:MOe,params:[{chainId:M5.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await mi._classPrivateMethodGet(this,NOe,k7t).call(this);o.push(e),mi._classPrivateMethodGet(this,Iie,Wve).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:M5.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new Tie.UserRejectedRequestError(n):new Tie.SwitchChainError(n)}}async setupListeners(){!Jr._classPrivateFieldGet(this,Wi)||(mi._classPrivateMethodGet(this,ROe,T7t).call(this),Jr._classPrivateFieldGet(this,Wi).on("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Wi).on("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Wi).on("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).on("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).on("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Wi).on("connect",this.onConnect))}};async function x7t(){return!Jr._classPrivateFieldGet(this,Uve)&&typeof window<"u"&&Jr._classPrivateFieldSet(this,Uve,mi._classPrivateMethodGet(this,C7t,C_n).call(this)),Jr._classPrivateFieldGet(this,Uve)}async function C_n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return E_n(lOe())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Jr._classPrivateFieldSet(this,Wi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function _7t(){if(mi._classPrivateMethodGet(this,DOe,P7t).call(this).includes(MOe)||!this.options.isNewChainsStale)return!1;let e=await mi._classPrivateMethodGet(this,NOe,k7t).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=mi._classPrivateMethodGet(this,BOe,A7t).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function T7t(){!Jr._classPrivateFieldGet(this,Wi)||(Jr._classPrivateFieldGet(this,Wi).removeListener("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Wi).removeListener("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Wi).removeListener("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).removeListener("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).removeListener("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Wi).removeListener("connect",this.onConnect))}function Wve(r){Jr._classPrivateFieldGet(this,N5).setItem(E7t,JSON.stringify(r))}async function k7t(){let r=await Jr._classPrivateFieldGet(this,N5).getItem(E7t);return r?JSON.parse(r):[]}function A7t(){return Jr._classPrivateFieldGet(this,Wi)?Jr._classPrivateFieldGet(this,Wi).session?.namespaces[I7t]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function P7t(){return Jr._classPrivateFieldGet(this,Wi)?Jr._classPrivateFieldGet(this,Wi).session?.namespaces[I7t]?.methods??[]:[]}OOe.WalletConnectConnector=LOe});var N7t=_(zOe=>{"use strict";d();p();Object.defineProperty(zOe,"__esModule",{value:!0});var Eie=Cm(),Cie=ac(),jr=km(),k_n=C$(),A_n=A$();Zu();Je();p1();je();vt();var P_n="145769e410f16970a79ff77b2d89a1e0",Hl=new WeakMap,VQ=new WeakMap,S_n=new WeakMap,FOe=new WeakMap,WOe=new WeakMap,UOe=new WeakMap,HOe=new WeakMap,jOe=new WeakMap,R7t=new WeakSet,qOe=new WeakSet,B5=class extends A_n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e?.walletId||B5.id,e),Eie._classPrivateMethodInitSpec(this,qOe),Eie._classPrivateMethodInitSpec(this,R7t),jr._classPrivateFieldInitSpec(this,Hl,{writable:!0,value:void 0}),jr._classPrivateFieldInitSpec(this,VQ,{writable:!0,value:void 0}),Cie._defineProperty(this,"connector",void 0),Cie._defineProperty(this,"projectId",void 0),Cie._defineProperty(this,"qrcode",void 0),jr._classPrivateFieldInitSpec(this,S_n,{writable:!0,value:t=>{if(t)throw t}}),jr._classPrivateFieldInitSpec(this,FOe,{writable:!0,value:t=>{if(jr._classPrivateFieldSet(this,VQ,t.provider),!jr._classPrivateFieldGet(this,VQ))throw new Error("WalletConnect provider not found after connecting.")}}),jr._classPrivateFieldInitSpec(this,WOe,{writable:!0,value:()=>{Eie._classPrivateMethodGet(this,qOe,M7t).call(this)}}),jr._classPrivateFieldInitSpec(this,UOe,{writable:!0,value:async t=>{t.chain||t.account}}),jr._classPrivateFieldInitSpec(this,HOe,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),jr._classPrivateFieldInitSpec(this,jOe,{writable:!0,value:()=>{this.emit("open_wallet")}}),this.projectId=e?.projectId||P_n,this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return S7t()});jr._classPrivateFieldSet(this,Hl,new e({chains:this.chains,options:{qrcode:this.qrcode,projectId:this.projectId,dappMetadata:this.dappMetadata,storage:this.walletStorage}})),this.connector=new k_n.WagmiAdapter(jr._classPrivateFieldGet(this,Hl)),jr._classPrivateFieldSet(this,VQ,await jr._classPrivateFieldGet(this,Hl).getProvider()),Eie._classPrivateMethodGet(this,R7t,R_n).call(this)}return this.connector}};function R_n(){!jr._classPrivateFieldGet(this,Hl)||(Eie._classPrivateMethodGet(this,qOe,M7t).call(this),jr._classPrivateFieldGet(this,Hl).on("connect",jr._classPrivateFieldGet(this,FOe)),jr._classPrivateFieldGet(this,Hl).on("disconnect",jr._classPrivateFieldGet(this,WOe)),jr._classPrivateFieldGet(this,Hl).on("change",jr._classPrivateFieldGet(this,UOe)),jr._classPrivateFieldGet(this,Hl).on("message",jr._classPrivateFieldGet(this,HOe)),jr._classPrivateFieldGet(this,VQ)?.signer.client.on("session_request_sent",jr._classPrivateFieldGet(this,jOe)))}function M7t(){!jr._classPrivateFieldGet(this,Hl)||(jr._classPrivateFieldGet(this,Hl).removeListener("connect",jr._classPrivateFieldGet(this,FOe)),jr._classPrivateFieldGet(this,Hl).removeListener("disconnect",jr._classPrivateFieldGet(this,WOe)),jr._classPrivateFieldGet(this,Hl).removeListener("change",jr._classPrivateFieldGet(this,UOe)),jr._classPrivateFieldGet(this,Hl).removeListener("message",jr._classPrivateFieldGet(this,HOe)),jr._classPrivateFieldGet(this,VQ)?.signer.client.removeListener("session_request_sent",jr._classPrivateFieldGet(this,jOe)))}Cie._defineProperty(B5,"id","walletConnect");Cie._defineProperty(B5,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});zOe.WalletConnect=B5});var B7t=_((hSa,KOe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?KOe.exports=w7t():KOe.exports=N7t()});d();p();var O7t=un(OXe()),q7t=un(set()),F7t=un(wmt()),GOe=un(bn()),QOe=un(P3t()),JOe=un(W3t()),VOe=un(j3t()),ZOe=un(Z3t()),XOe=un(NEt()),eqe=un(B7t()),YOe=un(je()),M_n="339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3",N_n="145769e410f16970a79ff77b2d89a1e0",D7t="/",L7t="#",Y1=(r,e)=>YOe.BigNumber.isBigNumber(e)||typeof e=="object"&&e!==null&&e.type==="BigNumber"&&"hex"in e?YOe.BigNumber.from(e).toString():e,B_n=[XOe.MetaMaskWallet,ZOe.InjectedWallet,eqe.WalletConnect,QOe.CoinbaseWallet,JOe.DeviceBrowserWallet],D_n=window,$Oe=class{constructor(){this.walletMap=new Map}updateSDKSigner(e){this.activeSDK&&(e?this.activeSDK.updateSignerOrProvider(e):this.initializedChain&&this.activeSDK.updateSignerOrProvider(this.initializedChain)),e&&(this.auth?this.auth.updateWallet(new VOe.EthersWallet(e)):this.auth=new O7t.ThirdwebAuth(new VOe.EthersWallet(e),"example.com"))}initialize(e,t){this.initializedChain=e,console.debug("thirdwebSDK initialization:",e,t);let n=JSON.parse(t),a=n?.storage&&n?.storage?.ipfsGatewayUrl?new GOe.ThirdwebStorage({gatewayUrls:{"ipfs://":[n.storage.ipfsGatewayUrl]}}):new GOe.ThirdwebStorage;n.thirdwebApiKey=n.thirdwebApiKey||M_n,this.activeSDK=new F7t.ThirdwebSDK(e,n,a);for(let i of B_n){let s,o={name:n.wallet?.appName||"thirdweb powered game",url:n.wallet?.appUrl||"https://thirdweb.com",description:n.wallet?.appDescription||"",logoUrl:n.wallet?.appIcons?.[0]||"",...n.wallet?.extras};switch(i.id){case"injected":s=new ZOe.InjectedWallet({dappMetadata:o});break;case"metamask":s=new XOe.MetaMaskWallet({dappMetadata:o});break;case"walletConnect":s=new eqe.WalletConnect({dappMetadata:o,projectId:N_n});break;case"coinbaseWallet":s=new QOe.CoinbaseWallet({dappMetadata:o});break;case"deviceWallet":s=new JOe.DeviceBrowserWallet({dappMetadata:o});break;default:throw new Error(`Unknown wallet type: ${i.id}`)}s&&(s.on("connect",async()=>this.updateSDKSigner(await s.getSigner())),s.on("change",async()=>this.updateSDKSigner(await s.getSigner())),s.on("disconnect",()=>this.updateSDKSigner()),this.walletMap.set(i.id,s))}}async connect(e="injected",t,n){if(!this.activeSDK)throw new Error("SDK not initialized");t===0&&(t=void 0);let a=this.walletMap.get(e);if(a)return a.walletId==="deviceWallet"&&n?await a.connect({chainId:t,password:n}):await a.connect({chainId:t}),this.activeWallet=a,this.updateSDKSigner(await a.getSigner()),await this.activeSDK.wallet.getAddress();throw new Error("Invalid Wallet")}async disconnect(){this.activeWallet&&(await this.activeWallet.disconnect(),this.activeWallet=void 0,this.updateSDKSigner())}async switchNetwork(e){if(e&&this.activeWallet&&"switchChain"in this.activeWallet)await this.activeWallet.switchChain(e),this.updateSDKSigner(await this.activeWallet.getSigner());else throw new Error("Error Switching Network")}async invoke(e,t){if(!this.activeSDK)throw new Error("SDK not initialized");let n=e.split(D7t),a=n[0].split(L7t),i=a[0],o=JSON.parse(t).arguments.map(c=>{try{return typeof c=="string"&&(c.startsWith("{")||c.startsWith("["))?JSON.parse(c):c}catch{return c}});if(console.debug("thirdwebSDK call:",e,o),i.startsWith("sdk")){let c;if(a.length>1&&(c=a[1]),c&&n.length===2){let u=await this.activeSDK[c][n[1]](...o);return JSON.stringify({result:u},Y1)}else if(n.length===2){let u=await this.activeSDK[n[1]](...o);return JSON.stringify({result:u},Y1)}else throw new Error("Invalid Route")}if(i.startsWith("auth")){if(!this.auth)throw new Error("You need to connect a wallet to use auth!");let c;if(a.length>1&&(c=a[1]),c==="login"&&n.length===1){let u=await this.auth.login({domain:o[0]});return JSON.stringify({result:u})}else if(c==="verify"&&n.length===1){let u=await this.auth.verify(o[0]);return JSON.stringify({result:u})}}if(i.startsWith("0x")){let c;if(a.length>1)try{c=JSON.parse(a[1])}catch{c=a[1]}let u=c?await this.activeSDK.getContract(i,c):await this.activeSDK.getContract(i);if(n.length===2){let l=await u[n[1]](...o);return JSON.stringify({result:l},Y1)}else if(n.length===3){let l=await u[n[1]][n[2]](...o);return JSON.stringify({result:l},Y1)}else if(n.length===4){let l=await u[n[1]][n[2]][n[3]](...o);return JSON.stringify({result:l},Y1)}else throw new Error("Invalid Route")}}async invokeListener(e,t,n,a,i){if(!this.activeSDK)throw new Error("SDK not initialized");let s=t.split(D7t),o=s[0].split(L7t),c=o[0],l=JSON.parse(n).arguments.map(h=>{try{return typeof h=="string"&&(h.startsWith("{")||h.startsWith("["))?JSON.parse(h):h}catch{return h}});if(console.debug("thirdwebSDK invoke listener:",e,t,l,a),c.startsWith("0x")){let h;if(o.length>1)try{h=JSON.parse(o[1])}catch{h=o[1]}let f=h?await this.activeSDK.getContract(c,h):await this.activeSDK.getContract(c);if(s.length===2)await f[s[1]](...l,m=>i(a,e,JSON.stringify(m,Y1)));else if(s.length===3)await f[s[1]][s[2]](...l,m=>i(a,e,JSON.stringify(m,Y1)));else if(s.length===4)await f[s[1]][s[2]][s[3]](...l,m=>i(a,e,JSON.stringify(m,Y1)));else throw new Error("Invalid Route")}}async fundWallet(e){if(!this.activeSDK)throw new Error("SDK not initialized");let{appId:t,...n}=JSON.parse(e);return await new q7t.CoinbasePayIntegration({appId:t}).fundWallet(n)}};D_n.bridge=new $Oe;})(); /*! * The buffer module from node.js, for the browser. *